Skip to main content
type CreateSpendPermissionOptions = Omit<SpendPermissionInput, "account"> & {
  evmSmartAccount: EvmAddress;
  network: SpendPermissionNetwork;
  useCdpPaymaster?: boolean;
  paymasterUrl?: string;
  idempotencyKey?: string;
};
Input for creating a spend permission. The permission owner is automatically detected from the current user.

Type declaration

NameTypeDescription
evmSmartAccountEvmAddressThe EVM Smart Account to create the spend permission for.
networkSpendPermissionNetworkThe network to create the spend permission on.
useCdpPaymaster?booleanWhether to use the CDP Paymaster for the user operation. Only available on Base. Enabled by default on Base Sepolia.
paymasterUrl?stringThe URL of the paymaster to use for the user operation.
idempotencyKey?stringOptional idempotency key for safe retries.