CDP Frontend SDK
    Preparing search index...

    Type Alias CreateSpendPermissionOptions

    CreateSpendPermissionOptions: Omit<SpendPermissionInput, "account"> & {
        evmSmartAccount: EvmAddress;
        network: SpendPermissionNetwork;
        useCdpPaymaster?: boolean;
        paymasterUrl?: string;
    }

    Input for creating a spend permission. The permission owner is automatically detected from the current user.

    Type declaration

    • evmSmartAccount: EvmAddress

      The EVM Smart Account to create the spend permission for.

    • network: SpendPermissionNetwork

      The network to create the spend permission on.

    • OptionaluseCdpPaymaster?: boolean

      Whether to use the CDP Paymaster for the user operation.

      Only available on Base. Enabled by default on Base Sepolia.

    • OptionalpaymasterUrl?: string

      The URL of the paymaster to use for the user operation.