eth_getBlockByHash

Returns information about a given block by hash.

Parameters

  1. Blockhash - hash of the requested block.

  2. Boolean - If true it returns the full transaction objects; if false it returns only the hashes of the transactions.

Sample Request

curl https://lb.nodies.app/v1/<INSERT URL> \
   -H "x-api-key: <API-KEY>" \
   -X POST \
   -H "Content-Type: application/json" \
   -d '{ 
  "jsonrpc": "2.0",
  "method": "eth_getBlockByHash",
  "params": [
    "0x656fcfdec6065b932607243d2fab1e80963454f7e058af1238a0f8aa62598ad8",
    false
  ],
  "id": 1
}'

Sample Response

Last updated