Get Block by Number
POST
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns the block information for the specified block number. The second parameter indicates whether to return full transaction objects or just transaction hashes.
Body
application/json
JSON-RPC request envelope.
jsonrpcstring2.0requiredJSON-RPC protocol version.
methodstringeth_getBlockByNumberrequiredJSON-RPC method name.
paramsArray<string | boolean>requiredArray of parameters:
- Block number (hex string, e.g., "0x1b4") or special tags ("latest", "earliest", "pending")
- Boolean flag — if true, return full transactions; if false, only hashes.
idintegerrequiredIdentifier echoed in the response.
Response
200OK
Block information