eth_getBlockByNumber
POST/
Returns information about a block by its number.
Parameters:
blockNumber
: block number in hex format or the strings 'latest', 'earliest', 'pending'.transaction_detail
: iftrue
, returns the full transaction objects, otherwise only the hashes of the transactions.
Returns:
note
For "pending" blocks, the API forwards requests to RPC nodes, and returns back to clients the responses received from the RPC nodes.
Request
Query Parameters
apikey stringrequired
Your API key
- application/json
Body
id integer
jsonrpc string
method string
params string[]
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
jsonrpc string
id integer
result string
{
"jsonrpc": "2.0",
"id": 1,
"result": null
}
Loading...
Was this helpful?
Happy React is loading...