Function supportsExecutionMode

  • Checks if a smart account supports a specific execution mode.

    Type Parameters

    • TSmartAccount extends undefined | object & Assign_<SmartAccountImplementation<Abi, EntryPointVersion, object>, {
          address: `0x${string}`;
          getNonce: ((parameters?) => Promise<bigint>);
          isDeployed: (() => Promise<boolean>);
          type: "smart";
      }> & {
          address: `0x${string}`;
          getNonce: ((parameters?) => Promise<bigint>);
          isDeployed: (() => Promise<boolean>);
          type: "smart";
      }
    • callType extends CallType = CallType

    Parameters

    Returns Promise<boolean>

    A boolean indicating whether the execution mode is supported.

    Throws

    If the account is not found.

    Example

    import { supportsExecutionMode } from '@biconomy/abstractjs'

    const isSupported = await supportsExecutionMode(nexusClient, {
    type: 'call',
    revertOnError: true,
    selector: '0x12345678'
    })
    console.log(isSupported) // true or false