Function getInstalledExecutors

  • Retrieves the installed executors for a given smart account.

    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";
      }

    Parameters

    Returns Promise<readonly [readonly Hex[], Hex]>

    A tuple containing an array of executor addresses and the next cursor.

    Throws

    If the account is not found.

    Example

    import { getInstalledExecutors } from '@biconomy/abstractjs'

    const [executors, nextCursor] = await getInstalledExecutors(nexusClient, {
    pageSize: 10n
    })
    console.log(executors, nextCursor) // ['0x...', '0x...'], '0x...'