Home

Get Block by Number

POST
https://cronos.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns the Cronos block for the given block number. Set the second parameter to true for full transaction objects or false for transaction hashes. The example uses an explicit block number.

Body

application/json
jsonrpcstringrequired

JSON-RPC version

methodstringeth_getBlockByNumberrequired

JSON-RPC method name

paramsArray<string | boolean>required
  1. Block number (hexadecimal quantity) or block tag such as latest. Other tags were not tested.
  2. Boolean: true returns full transactions; false returns hashes.
Show child attributes
One of
string
boolean
idintegerrequired

Request ID

Response

200OK

Block information