Skip to Content

Blocks

getBlockHeight

Returns the latest block number for EVM/Bitcoin or slot for Solana.

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "getBlockHeight",
  "params": {
    "chain": "ethereum"
  },
  "id": 1
}

Parameters

NameRequiredDescription
chainyesNetwork slug

Response Fields

FieldType
dataobject
chainstring
heightinteger

Supported Networks

EthereumPolygonBNB ChainOptimismBaseAvalancheArbitrumGnosisMoonbeamLineaHyperliquidSolanaBitcoin
Try It
{
  "jsonrpc": "2.0",
  "method": "getBlockHeight",
  "params": {
    "chain": "ethereum"
  },
  "id": 1
}

getBlockTransactions

Returns all transactions in a specific block with full transaction objects including from, to, value, input data, and gas details.

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "getBlockTransactions",
  "params": {
    "chain": "ethereum",
    "blockNumber": 21000000
  },
  "id": 1
}

Parameters

NameRequiredDescription
chainyesNetwork slug
blockNumberyesBlock number to fetch transactions from
e.g. 21000000

Response Fields

FieldType
dataobject
blockNumberinteger
hashstring
timestampinteger
transactionCountinteger
transactionsobject[]
hashstring
fromstring
tostring
valuestring
gasPricestring

Supported Networks

EthereumPolygonBNB ChainOptimismBaseAvalancheArbitrumGnosisMoonbeamLineaHyperliquid
Try It
{
  "jsonrpc": "2.0",
  "method": "getBlockTransactions",
  "params": {
    "chain": "ethereum",
    "blockNumber": 21000000
  },
  "id": 1
}

getBlockByNumber

Get blocks by number from multiple chains in a single call. Pass chain:blockNumber pairs. Supports EVM chains, Solana, and Bitcoin in the same batch — Bitcoin returns Bitcoin Core's `getblock` payload (the `confirmations` field drifts as new tip blocks arrive).

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "getBlockByNumber",
  "params": [
    {
      "chain": "ethereum",
      "block": 21000000
    },
    {
      "chain": "bitcoin",
      "block": 900000
    }
  ],
  "id": 1
}

Parameters

NameRequiredDescription
itemsyesComma-separated chain:blockNumber pairs (EVM/Solana/Bitcoin)
e.g. ethereum:21000000,bitcoin:900000

Response Fields

FieldType
dataobject
countinteger
resultsobject[]
chainstring
heightstring
blockobject
numberstring
hashstring
Try It
{
  "jsonrpc": "2.0",
  "method": "getBlockByNumber",
  "params": [
    {
      "chain": "ethereum",
      "block": 21000000
    },
    {
      "chain": "bitcoin",
      "block": 900000
    }
  ],
  "id": 1
}

getBlockByHash

Get blocks by hash from multiple chains in a single call. Pass chain:blockHash pairs.

curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
  -H "Content-Type: application/json" \
{
  "jsonrpc": "2.0",
  "method": "getBlockByHash",
  "params": [
    {
      "chain": "ethereum",
      "hash": "0x4e3a3754410177e6937ef1f84bba68ea139e8d1a2258c5f85db9f1cd715a1bdd"
    }
  ],
  "id": 1
}

Parameters

NameRequiredDescription
itemsyesComma-separated chain:blockHash pairs
e.g. ethereum:0x4e3a3754410177e6937ef1f84bba68ea139e8d1a2258c5f85db9f1cd715a1bdd

Response Fields

FieldType
dataobject
countinteger
resultsobject[]
chainstring
hashstring
blockobject
numberstring
Try It
{
  "jsonrpc": "2.0",
  "method": "getBlockByHash",
  "params": [
    {
      "chain": "ethereum",
      "hash": "0x4e3a3754410177e6937ef1f84bba68ea139e8d1a2258c5f85db9f1cd715a1bdd"
    }
  ],
  "id": 1
}