Type alias UsePermissionParameters<TModularSmartAccount>

UsePermissionParameters<TModularSmartAccount>: {
    account?: TModularSmartAccount;
    callGasLimit?: bigint;
    calls: Call[];
    maxFeePerGas?: bigint;
    maxPriorityFeePerGas?: bigint;
    nonce?: bigint;
    preVerificationGas?: bigint;
    signer?: Signer;
    verificationGasLimit?: bigint;
}

Parameters for using a smart session to execute actions.

Type Parameters

  • TModularSmartAccount extends ModularSmartAccount | undefined

    Type of the modular smart account, extending ModularSmartAccount or undefined.

Type declaration

  • Optional account?: TModularSmartAccount

    The modular smart account to use for the session. If not provided, the client's account will be used.

  • Optional callGasLimit?: bigint

    The gas limit for the call phase.

  • calls: Call[]

    Array of executions to perform in the session. Allows for batch transactions if the session is enabled for multiple actions.

  • Optional maxFeePerGas?: bigint

    The maximum fee per gas unit the transaction is willing to pay.

  • Optional maxPriorityFeePerGas?: bigint

    The maximum priority fee per gas unit the transaction is willing to pay.

  • Optional nonce?: bigint

    The nonce of the transaction. If not provided, it will be determined automatically.

  • Optional preVerificationGas?: bigint

    The gas limit for the pre-verification phase.

  • Optional signer?: Signer

    The signer to use for the session. Defaults to the signer of the client.

  • Optional verificationGasLimit?: bigint

    The gas limit for the verification phase.