Function getInstalledValidators

  • Retrieves the installed validators 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 validator addresses and the next cursor.

    If the account is not found.

    import { getInstalledValidators } from '@biconomy/abstractjs'

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