getMultipleAccounts
Returns the account information for a list of Pubkeys.
https://api.1inch.com/web3/501
Supported on: Solana
Request
Request
object jsonrpc
* string (Enum)JSON-RPC version
2.0
method
* string The method to call
params
array Method parameters
items
any id
* number Request ID
JavaScript
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const response = await fetch('https://api.1inch.com/web3/501', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${API_KEY}`,
},
body: JSON.stringify({
jsonrpc: '2.0',
method: 'getMultipleAccounts',
params: [],
id: 1,
}),
});
const data = await response.json();
console.log(data);
Response
Multiple Accounts Response
Multiple Accounts Response
object context
* object slot
* integer additionalProperties
none value
* array items
any oneOf[0]
null oneOf[1]
object data
* array items
any executable
* boolean lamports
* integer owner
* string rentEpoch
* integer space
* integer additionalProperties
none additionalProperties
none JSON
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"context": {
"slot": 1
},
"value": [
{
"data": ["", "base58"],
"executable": false,
"lamports": 1000000000,
"owner": "11111111111111111111111111111111",
"rentEpoch": 2,
"space": 0
},
null
]
}