Parameters
chainId
string
default:"solana-devnet"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"getMultipleAccounts"
required
JSON-RPC method name.
Parameters for method getMultipleAccounts: [pubkeys, config]Positional parameters for getMultipleAccounts:params[0]: List of base-58 encoded public keys for which to retrieve account information.params[1]: Optional configuration object.
Returns
Array of account info objects or null (if the account does not exist).
Null if the account does not exist at the given Pubkey.
Null if the account does not exist at the given Pubkey.
Account info object.
Number of lamports assigned to this account.
Base-58 encoded Pubkey of the program this account is assigned to.
Data associated with the account. Can be an encoded [string, encoding] tuple or a JSON object representing state.
Encoded account data tuple [data, encoding].
Base64 or base58 encoded string.
Base64 or base58 encoded string.
Encoding type (e.g., base58, base64, jsonParsed).
Decoded JSON object representing program-specific state if encoding=jsonParsed.
True if the account contains a program (strictly read-only).
Epoch at which this account will next owe rent.
The data size of the account (in bytes).
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=solana-devnet \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getMultipleAccounts",
"params": [
[],
{}
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"context": {
"apiVersion": "2.0.15",
"slot": 341197247
},
"value": [
{
"data": [
"..."
],
"executable": false,
"lamports": 88849814690250,
"owner": "11111111111111111111111111111111",
"rentEpoch": "18446744073709551615",
"space": 0
},
{
"data": [
"..."
],
"executable": false,
"lamports": 998763433,
"owner": "2WRuhE4GJFoE23DYzp2ij6ZnuQ8p9mJeU6gDgfsjR4or",
"rentEpoch": "18446744073709551615",
"space": 0
}
]
}
}