curl --request POST \ --url https://devnet-as.magicblock.app/ \ --header 'Content-Type: application/json' \ --data '{ "method": "getAccountInfo", "jsonrpc": "2.0", "params": [ "5RgeA5P8bRaynJovch3zQURfJxXL3QK2JYg1YamSvyLb", { "encoding": "base64" } ], "id": 0 }'
{ "jsonrpc": "2.0", "result": { "context": { "apiVersion": "2.2.1", "slot": 85838062 }, "value": { "data": [ "KLUv/QBYQQAAAgAAAAAAAAA=", "base64" ], "executable": false, "lamports": 946560, "owner": "11111111111111111111111111111111", "rentEpoch": "18446744073709551615", "space": 8 } }, "id": 1 }
Returns all information associated with an account of provided Pubkey.
2.0
getAccountInfo
Account address and optional config object
2
[ "5RgeA5P8bRaynJovch3zQURfJxXL3QK2JYg1YamSvyLb", { "encoding": "base64" }]
Successful response
Show child attributes
Was this page helpful?