Last updated 8 months ago
Was this helpful?
Returns the compressed account with the given address or hash
An ID to identify the request.
test-account
The version of the JSON-RPC protocol.
2.0
The name of the method to invoke.
getCompressedAccount
Request for compressed account data
{"address":null,"hash":"11111111111111111111111111111111"}
POST / HTTP/1.1 Host: mainnet.helius-rpc.com Content-Type: application/json Accept: */* Content-Length: 137 { "id": "test-account", "jsonrpc": "2.0", "method": "getCompressedAccount", "params": { "address": null, "hash": "11111111111111111111111111111111" } }
{ "context": { "slot": 100 }, "value": { "address": "11111112D1oxKts8YPdTJRG5FzxTNpMtWmq8hkVx3", "data": { "data": "SGVsbG8sIFdvcmxkIQ==", "dataHash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP", "discriminator": 100 }, "hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP", "lamports": 100, "leafIndex": 100, "owner": "11111112D1oxKts8YPdTJRG5FzxTNpMtWmq8hkVx3", "seq": 100, "slotCreated": 100, "tree": "11111112D1oxKts8YPdTJRG5FzxTNpMtWmq8hkVx3" } }