addErc20TokenSpendLimit
Adds an ERC20 token spend limit to the list of limits and returns the updated object.
Import
import { SessionKeyPermissionsBuilder } from "@account-kit/smart-contracts";
Usage
import { SessionKeyPermissionsBuilder } from "@account-kit/smart-contracts";
const builder = new SessionKeyPermissionsBuilder();
builder.addErc20TokenSpendLimit({
tokenAddress: "0x1234",
spendLimit: 1000000000000000000n,
refreshInterval: 3600,
});
Parameters
limit
Erc20TokenLimit
The ERC20 token spend limit to be added
Returns
object
The updated object with the new ERC20 token spend limit