Skip to main content

getParsedAccountsData

Returns the parsed account data of the provided Pubkeys. All accounts should be owned by the same program. 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

Pubkeys array<string>

  • An array of Pubkeys to query, as base-58 encoded strings (up to a maximum of 100)

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": "f8c45ea2-5f68-447a-b2d9-ea03ee55a348",
"method": "getParsedAccountsData",
"params": {
"pubkeys": [
"FcUoEFxxKSr4PxxWiwp4EGSKRXhhELFUZhUSevK8qnoz",
"7DjuHQ3SAQmjDTF1wMmURA2rHhkajkYL1H71i3kjm2Lk"
]
}
}
'

Response

{
"jsonrpc": "2.0",
"id": "f8c45ea2-5f68-447a-b2d9-ea03ee55a348",
"result": {
"context": {
"slot": 243533668
},
"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
},
{
"name": "Seat",
"owner": "PhoeNiXZ8ByJGLkxNfZRnkUfjvmuYqLR89jjFHGqdXY",
"lamports": "1781760",
"executable": false,
"data": {
"approvalStatus": "Approved",
"market": "FcUoEFxxKSr4PxxWiwp4EGSKRXhhELFUZhUSevK8qnoz",
"trader": "DUA1d5UvJTuZoiQUuKiGf64R18Bhyic4MFDRyAbGLsvf"
},
"space": 128,
"parseErr": null
}
]
}
}