Skip to main content
POST
getBlock
curl --request POST \
  --url https://ca.raze.sh/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getBlock",
  "params": [
    200000000,
    {
      "encoding": "json",
      "maxSupportedTransactionVersion": 0,
      "transactionDetails": "none",
      "rewards": false
    }
  ]
}
'
{ "jsonrpc": "2.0", "id": 1, "result": { "blockHeight": 182664994, "blockTime": 1686964563, "blockhash": "bYJHNf3HevTfeX2EDCoHNCs3zedpdsTYAvtRgX...", "parentSlot": 199999999, "previousBlockhash": "Ai7r..." } }

Documentation Index

Fetch the complete documentation index at: https://docs.raze.bot/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
jsonrpc
enum<string>
required
Available options:
2.0
Example:

"2.0"

method
enum<string>
required
Available options:
getBlock
Example:

"getBlock"

params
any[]
required

[slot, config?]config supports encoding, transactionDetails (full/accounts/signatures/none), rewards, commitment, maxSupportedTransactionVersion

Example:
[
  200000000,
  {
    "encoding": "json",
    "maxSupportedTransactionVersion": 0,
    "transactionDetails": "none",
    "rewards": false
  }
]
id
Example:

1

Response

200 - application/json

JSON-RPC response. Inspect result (success) or error (failure).

jsonrpc
string
required
Example:

"2.0"

result
any
required
id
Example:

1