Request schema
{
"type": "object",
"properties": {
"method": {
"type": "string",
"description": "JSON-RPC read method, e.g. getAccountInfo",
"examples": [
"getAccountInfo",
"getBalance",
"getBlock",
"getBlockCommitment",
"getBlockHeight",
"getBlockProduction",
"getBlockTime",
"getBlocks",
"getBlocksWithLimit",
"getClusterNodes",
"getEpochInfo",
"getEpochSchedule",
"getFeeForMessage",
"getFirstAvailableBlock",
"getGenesisHash",
"getHealth",
"getHighestSnapshotSlot",
"getIdentity",
"getInflationGovernor",
"getInflationRate",
"getInflationReward",
"getLatestBlockhash",
"getLeaderSchedule",
"getMaxRetransmitSlot",
"getMaxShredInsertSlot",
"getMinimumBalanceForRentExemption",
"getMultipleAccounts",
"getProgramAccounts",
"getRecentPerformanceSamples",
"getRecentPrioritizationFees",
"getSignatureStatuses",
"getSignaturesForAddress",
"getSlot",
"getSlotLeader",
"getSlotLeaders",
"getStakeMinimumDelegation",
"getTokenAccountBalance",
"getTokenAccountsByDelegate",
"getTokenAccountsByOwner",
"getTokenLargestAccounts",
"getTokenSupply",
"getTransaction",
"getTransactionCount",
"getVersion",
"getVoteAccounts",
"isBlockhashValid",
"minimumLedgerSlot",
"simulateTransaction"
]
},
"params": {
"description": "Parameters per the Solana JSON-RPC spec"
}
},
"required": [
"method"
]
}
Response schema
{
"type": "object",
"description": "JSON-RPC 2.0 response envelope. Exactly one of `result` or `error` is present. `result` takes the shape the called method defines per the Solana JSON-RPC specification; most account and block reads return an object with `context` (the slot) and `value`.",
"properties": {
"jsonrpc": {
"type": "string",
"description": "The protocol version, always \"2.0\""
},
"id": {
"type": [
"string",
"number",
"null"
],
"description": "The request id, echoed back"
},
"result": {
"description": "The method's result, in the shape the called method defines. Present when the call succeeded; absent when `error` is."
},
"error": {
"type": "object",
"description": "Present instead of `result` when the call failed",
"properties": {
"code": {
"type": "integer",
"description": "A JSON-RPC 2.0 error code"
},
"message": {
"type": "string"
},
"data": {
"description": "Method-specific detail, when the node supplies it"
}
}
}
},
"examples": [
{
"jsonrpc": "2.0",
"id": 1,
"result": "ok"
}
]
}