setNativeTokenSpendLimit
Sets the native token spend limit and returns the instance for chaining.
Import
import { SessionKeyPermissionsBuilder } from "@account-kit/smart-contracts";
Usage
import { SessionKeyPermissionsBuilder } from "@account-kit/smart-contracts";
const builder = new SessionKeyPermissionsBuilder();
builder.setNativeTokenSpendLimit({
spendLimit: 1000000000000000000n,
refreshInterval: 3600,
});
Parameters
limit
NativeTokenLimit
The limit to set for native token spending
Returns
SessionKeyPermissionsBuilder
The instance for chaining