Skip to main content

Parameters

chainId
string
default:"5000"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"eth_getBlockRange"
required
JSON-RPC method name.
params
object
required
Parameters for eth_getBlockRange: [startBlockTag, endBlockTag, fullTxObjects]Positional parameters for eth_getBlockRange:
  • params[0]: Start block number (hex) or tag (latest, earliest, pending, safe, finalized).
  • params[1]: End block number (hex) or tag (latest, earliest, pending, safe, finalized).
  • params[2]: Set to true to return full transaction objects, false for only transaction hashes.

Returns

result
array
List of block objects in the specified range.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=5000 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "eth_getBlockRange",
    "params": [
      "0x1",
      "0x2",
      false
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "difficulty": "0x2",
      "extraData": "0xd9773508...",
      "gasLimit": "0xe4e1c0",
      "gasUsed": "0x3183d",
      "hash": "0xbee7192e...",
      "logsBloom": "0x00000000...",
      "miner": "0x0000000000000000000000000000000000000000",
      "nonce": "0x0000000000000000",
      "__truncated": true
    }
  ]
}