getMultipleAccounts RPC-methode
Retourneert de accountinformatie voor een lijst van pubkeys.
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getMultipleAccounts",> "params": [> [> "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",> "4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"> ],> {> "encoding": "base58",> "commitment": "finalized"> }> ]> }> '
params
arrayrequired
Een array van pubkeys om op te vragen, als base-58 gecodeerde strings (tot een maximum van 100)
objectoptional
Configuratieobject dat de volgende velden bevat:
result
Response
{"jsonrpc": "2.0","result": {"context": { "apiVersion": "2.0.15", "slot": 341197247 },"value": [{"data": ["", "base58"],"executable": false,"lamports": 88849814690250,"owner": "11111111111111111111111111111111","rentEpoch": 18446744073709551615,"space": 0},{"data": ["", "base58"],"executable": false,"lamports": 998763433,"owner": "2WRuhE4GJFoE23DYzp2ij6ZnuQ8p9mJeU6gDgfsjR4or","rentEpoch": 18446744073709551615,"space": 0}]},"id": 1}
array
Het resultaat is een array die ofwel bevat:
null
- als het account met die pubkey niet bestaat, of- Accountobjecten met de volgende velden:
Is this page helpful?