addErc20TokenSpendLimit

Adds an ERC20 token spend limit to the list of limits and returns the updated object.

Import

1import { SessionKeyPermissionsBuilder } from "@account-kit/smart-contracts";

Usage

1import { SessionKeyPermissionsBuilder } from "@account-kit/smart-contracts";
2
3const builder = new SessionKeyPermissionsBuilder();
4builder.addErc20TokenSpendLimit({
5 tokenAddress: "0x1234",
6 spendLimit: 1000000000000000000n,
7 refreshInterval: 3600,
8});

Parameters

limit

Erc20TokenLimit The ERC20 token spend limit to be added

Returns

object The updated object with the new ERC20 token spend limit