Skip to main content

getParsedAccountData

Returns the parsed account data of the provided Pubkey. This endpoint requires an rpcX package that implements the program parser interface or an IDL to be published for the program that owns the account.

Parameters

Pubkey <string>

  • Pubkey of account to query, as base-58 encoded string

Result

The result will be an RpcResponse JSON object with the value field set to the output of the program parser rpcX interface.

Code sample

curl "https://testnet.atlas.xyz" -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": "bd1d8e81-75d4-4075-9bdb-8d7321c6f163",
"method": "getParsedAccountData",
"params": [
"FcUoEFxxKSr4PxxWiwp4EGSKRXhhELFUZhUSevK8qnoz"
]
}
'

Response

{
"jsonrpc": "2.0",
"id": "bd1d8e81-75d4-4075-9bdb-8d7321c6f163",
"result": {
"context": {
"slot": 242008506
},
"value": {
"name": "MarketHeader",
"owner": "PhoeNiXZ8ByJGLkxNfZRnkUfjvmuYqLR89jjFHGqdXY",
"lamports": "11996367360",
"executable": false,
"data": {
"authority": "BnarsTFsuZ4yw62DJXzFwwy4B1CjrsSWdtjp4v4thLDP",
"baseLotSize": 1000000,
"baseMint": "2JK9EMHDLoU3J1VpXRcpXPYb3wKm78sZ5cJhX2Rc2VSF",
"baseVault": "6woZ82rQX9Sm2eVTx4Wfz6VCCfTkqD9gfiSLZMuPvv7G",
"marketSequenceNumber": 25445,
"marketSizeParams": {
"asksSize": 4096,
"bidsSize": 4096,
"numSeats": 8321
},
"quoteLotSize": 1,
"quoteMint": "AawN6GG2RpuDAtyv3rfV6qseS8j8DGTKWHrNpVrRRmrP",
"quoteVault": "B33xiCWa4PwzaoJnpu5az7gKZYdxHwFfg5CmrGsY1BMp",
"rawBaseUnitsPerBaseUnit": 1,
"status": "Active",
"tickSizeInQuoteAtomsPerBaseUnit": 1000
},
"space": 1723488,
"parseErr": null
}
}
}