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?: { key?: bigint }) => Promise<bigint>;
                  isDeployed: () => Promise<boolean>;
                  type: "smart";
              },
          > & {
              address: `0x${string}`;
              getNonce: (parameters?: { key?: bigint }) => Promise<bigint>;
              isDeployed: () => Promise<boolean>;
              type: "smart";
          }

    Parameters

    Returns Promise<readonly [readonly `0x${string}`[], `0x${string}`]>

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

    If the account is not found.

    import { getInstalledExecutors } from '@biconomy/abstractjs'

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