Create Gasless Links
We even support creating links where we sponsor the gas!
Gasless Depositing
Gasless Depositing Happens in 3 steps
1. Create Payload & Message
const { payload, message } = await peanut.makeGaslessDepositPayload({
address, // address of the user's wallet
contractVersion, // peanut version. At least 'v4.2'.
password, // unique password for the link, can be generated via 'getRandomString' function
linkDetails: {
chainId,
tokenAmount,
tokenType, // must be 1 for ERC-20
tokenAddress,
tokenDecimals,
},
})2. Sign the Message
3. Execute the Deposit
3.2 Advanced. Execute the Tx by Yourself
Last updated