Skip to Content

Blocks

Chain coverage: getBlockHeight, getBlockByNumber, getBlockByHash, and getBlockTransactions are dispatched through a shared service layer that supports EVM chains, Solana, Bitcoin, Starknet, and the Cosmos SDK chains (cosmoshub, osmosis, axelar, noble, agoric). On Cosmos chains, block transactions are decoded from the LCD txs/block/{n} endpoint (Cosmos SDK 0.50+).

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 ChainOptimismBaseAvalancheArbitrumGnosisMoonbeamLineaHyperliquidBerachainMonadScrollPlasmaX LayerSolanaBitcoinStarknetCosmos HubOsmosisAxelarNobleAgoric
Try It
{
  "jsonrpc": "2.0",
  "method": "getBlockHeight",
  "params": {
    "chain": "ethereum"
  },
  "id": 1
}

getBlockTransactions

Returns all transactions in a specific block. On EVM the response includes full transaction objects (from, to, value, input data, gas). On Starknet the transactions come from `starknet_getBlockWithTxs`. On Cosmos SDK chains they are decoded from the LCD `txs/block/{n}` endpoint (sdk 0.50+).

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 ChainOptimismBaseAvalancheArbitrumGnosisMoonbeamLineaHyperliquidBerachainMonadScrollPlasmaX LayerStarknetCosmos HubOsmosisAxelarNobleAgoric
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
}