Kit
Type aliases

GetMultipleAccountsApi

GetMultipleAccountsApi = object

Methods

getMultipleAccounts()

Call Signature

getMultipleAccounts(addresses, config): SolanaRpcResponse<GetMultipleAccountsApiResponseBase & AccountInfoWithBase64EncodedData | null[]>

Fetches information associated with the accounts at the given addresses.

If the accounts have data, it will be returned in the response as a tuple whose first element is a base64-encoded string.

Parameters
ParameterTypeDescription
addressesAddress[]A maximum of 100 addresses for which to fetch account data
configReadonly<{ commitment?: Commitment; encoding?: "base58" | "base64" | "base64+zstd" | "jsonParsed"; minContextSlot?: Slot; }> & Readonly<{ dataSlice?: DataSlice; }> & Readonly<{ encoding: "base64"; }>-
Returns

SolanaRpcResponse<GetMultipleAccountsApiResponseBase & AccountInfoWithBase64EncodedData | null[]>

See

https://solana.com/docs/rpc/http/getmultipleaccounts

Call Signature

getMultipleAccounts(addresses, config): SolanaRpcResponse<GetMultipleAccountsApiResponseBase & AccountInfoWithBase64EncodedZStdCompressedData | null[]>

Fetches information associated with the accounts at the given addresses.

If the accounts have data, it will first be compressed using ZStandard and the result will be returned in the response as a tuple whose first element is a base64-encoded string.

Parameters
ParameterTypeDescription
addressesAddress[]A maximum of 100 addresses for which to fetch account data
configReadonly<{ commitment?: Commitment; encoding?: "base58" | "base64" | "base64+zstd" | "jsonParsed"; minContextSlot?: Slot; }> & Readonly<{ dataSlice?: DataSlice; }> & Readonly<{ encoding: "base64+zstd"; }>-
Returns

SolanaRpcResponse<GetMultipleAccountsApiResponseBase & AccountInfoWithBase64EncodedZStdCompressedData | null[]>

See

https://solana.com/docs/rpc/http/getmultipleaccounts

Call Signature

getMultipleAccounts(addresses, config): SolanaRpcResponse<GetMultipleAccountsApiResponseBase & AccountInfoWithJsonData | null[]>

Fetches information associated with the accounts at the given addresses.

If the accounts have data, the server will attempt to process it using a parser specific to each account's owning program. If successful, the parsed data will be returned in the response as JSON. Otherwise, the raw account data will be returned in the response as a tuple whose first element is a base64-encoded string.

Parameters
ParameterTypeDescription
addressesAddress[]A maximum of 100 addresses for which to fetch account data
configReadonly<{ commitment?: Commitment; encoding?: "base58" | "base64" | "base64+zstd" | "jsonParsed"; minContextSlot?: Slot; }> & Readonly<{ encoding: "jsonParsed"; }>-
Returns

SolanaRpcResponse<GetMultipleAccountsApiResponseBase & AccountInfoWithJsonData | null[]>

See

https://solana.com/docs/rpc/http/getmultipleaccounts

Call Signature

getMultipleAccounts(addresses, config): SolanaRpcResponse<GetMultipleAccountsApiResponseBase & AccountInfoWithBase58EncodedData | null[]>

Fetches information associated with the accounts at the given addresses.

If the accounts have data, it will be returned in the response as a tuple whose first element is a base58-encoded string. If any account contains more than 129 bytes of data, this method will raise an error.

Parameters
ParameterTypeDescription
addressesAddress[]A maximum of 100 addresses for which to fetch account data
configReadonly<{ commitment?: Commitment; encoding?: "base58" | "base64" | "base64+zstd" | "jsonParsed"; minContextSlot?: Slot; }> & Readonly<{ dataSlice?: DataSlice; }> & Readonly<{ encoding: "base58"; }>-
Returns

SolanaRpcResponse<GetMultipleAccountsApiResponseBase & AccountInfoWithBase58EncodedData | null[]>

See

https://solana.com/docs/rpc/http/getmultipleaccounts

Call Signature

getMultipleAccounts(addresses, config?): SolanaRpcResponse<GetMultipleAccountsApiResponseBase & AccountInfoWithBase64EncodedData | null[]>

Fetches information associated with the accounts at the given addresses.

If the accounts have data, it will be returned in the response as a base58-encoded string. If any account contains more than 129 bytes of data, this method will raise an error.

Parameters
ParameterTypeDescription
addressesAddress[]A maximum of 100 addresses for which to fetch account data
config?Readonly<{ commitment?: Commitment; encoding?: "base58" | "base64" | "base64+zstd" | "jsonParsed"; minContextSlot?: Slot; }>-
Returns

SolanaRpcResponse<GetMultipleAccountsApiResponseBase & AccountInfoWithBase64EncodedData | null[]>

See

https://solana.com/docs/rpc/http/getmultipleaccounts

On this page