Returns the account state and metadata for a single address. Returns null if
the account does not exist at the requested commitment.
Source
$ 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": "base64"> }> ]> }> '
params
stringrequired
Pubkey of account to query, as base-58 encoded string.
objectoptional
Configuration object.
result
Response
{"jsonrpc": "2.0","result": {"context": { "apiVersion": "3.1.8", "slot": 341197053 },"value": {"data": ["", "base64"],"executable": false,"lamports": 88849814690250,"owner": "11111111111111111111111111111111","rentEpoch": 18446744073709551615,"space": 0}},"id": 1}
object
RpcResponse object containing:
Is this page helpful?