
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@actalink/snap
Advanced tools
Welcome to the MetaMask Snap integration for Acta SDK. This Snap empowers users to harness the full potential of their smart wallet payments by seamlessly integrating the Acta SDK into the MetaMask extension.
Utilize Acta Snap to effortlessly create and load smart wallets into MetaMask Keyring API, seamlessly integrating them as regular MetaMask accounts labeled with Snaps Beta. These off-chain smart wallets incur no gas fees during creation, transitioning to on-chain upon the completion of the first transaction. Enjoy a streamlined and cost-effective onboarding experience with Acta Snap.
Send ERC20 tokens using your smart wallet. Steps to achieve this :-
Work in progress.
To install the snap, you need to attach the follwing code to the button
await window.ethereum.request({
method: 'wallet_requestSnaps',
params: {
[npm:@actalink/snap]: <version number>,
},
});
await window.ethereum.request({
method: 'wallet_invokeSnap',
params: {
snapId: "npm:@actalink/snap",
request: { method: 'snap.createAccount' },
},
}))
Here, the tokenAddress
is the address of the ERC20 toke smart contract, tokenAmount
is the amount you want to transfer, and to
is the reciever's address.
await window.ethereum.request({
method: 'wallet_invokeSnap',
params: {
snapId: 'npm:@actalink/snap',
request: {
method: 'snap.transaction',
params: {
to: targetAddress,
tokenAmount,
tokenAddress,
},
},
},
});
Here, the scheduledTokenAddress
is the address of the ERC20 toke smart contract, scheduledTokenAmount
is the amount you want to transfer, and scheduledTo
is the reciever's address. The minutes
filed here is a comma-seperated uints
for specific intervals, eg. - [3,2,1]
will execute the first tx after 3 mins from now, and then 2 minutes from then after 1 minute.
await window.ethereum.request({
method: 'wallet_invokeSnap',
params: {
snapId: defaultSnapOrigin,
request: {
method: 'snap.scheduledOp',
params: {
scheduledTo: targetAddress,
scheduledTokenAmount: tokenAmount,
scheduledTokenAddress: tokenAddress,
minutes: intervalMinutes,
},
},
},
});
FAQs
Metamask Snap powered by in-house Acta SDK
The npm package @actalink/snap receives a total of 15 weekly downloads. As such, @actalink/snap popularity was classified as not popular.
We found that @actalink/snap demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.