getAccountInfo RPC-methode
Retourneert alle informatie die is gekoppeld aan het account van de opgegeven pubkey
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getAccountInfo",> "params": [> "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",> {> "commitment": "finalized",> "encoding": "base58"> }> ]> }> '
params
stringrequired
Pubkey van het account om op te vragen, als base-58 gecodeerde string.
objectoptional
Configuratie-object.
result
Response
{"jsonrpc": "2.0","result": {"context": { "apiVersion": "2.0.15", "slot": 341197053 },"value": {"data": ["", "base58"],"executable": false,"lamports": 88849814690250,"owner": "11111111111111111111111111111111","rentEpoch": 18446744073709551615,"space": 0}},"id": 1}
object | null
Als het opgevraagde account niet bestaat, zal het resultaat null
zijn. Anders,
een object dat het volgende bevat:
Is this page helpful?