Get Block by Hash or Height
POST
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Retrieves information about a specific block from the ONT blockchain. The block can be identified by either its hash or its height (block number). The response can be returned in different verbosity levels (0, 1, or 2).
Body
application/json
jsonrpcstringrequiredThe JSON-RPC protocol version. Must be "2.0" for JSON-RPC 2.0 specification compliance.
methodstringrequiredThe RPC method name. For this operation, it must be "getblock".
paramsArray<string | integer | integer>requiredAn array containing two parameters:
- Block hash or height (string or integer)
- Verbosity level (0, 1, or 2) - determines the detail level of the response
idintegerrequiredA unique identifier for the request, used to correlate the response with the request.
Response
200OK
Successful response containing detailed block information.