Function readMultipleFromRPC

  • Read multiple accounts from the RPC

    Type Parameters

    Parameters

    • accountsToRead: PublicKey[]

      array of keys of accounts to read

    • connection: Connection

      Solana connection object

    • program: ProgramMethods<IDL>

      the program that owns the accounts

    • accountClass: AccountStatic<A, IDL>

      the account class

    • Optional commitment: TransactionConfirmationStatus

      the Solana commitment level

    Returns Promise<DecodedAccountData<A>[]>

    an array of the decoded accounts

Generated using TypeDoc