Skip to main content
type SpendPermission = {
  account: EvmAddress;
  spender: EvmAddress;
  token: EvmAddress;
  allowance: bigint;
  period: number;
  start: number;
  end: number;
  salt: bigint;
  extraData: Hex;
};
A spend permission.

Properties

PropertyTypeDescription
accountEvmAddressThe account address that owns the tokens
spenderEvmAddressEntity that can spend account’s tokens. Can be either a Smart Account or an EOA.
tokenEvmAddressThe token address.
allowancebigintThe allowance for the spend permission.
periodnumberThe period in seconds for the spend permission.
startnumberThe start timestamp for the spend permission.
endnumberThe end timestamp for the spend permission.
saltbigintThe salt for the spend permission.
extraDataHexThe extra data for the spend permission.