Queries the network and returns block information for the given block height or hash. To return the latest block information, the finality parameter shall be used.
Supported on NEAR (mainnet) only.
Parameters
finality
- string - The assurance that the transaction cannot be altered, reversed, or canceled after they are completed. For finality=final, it means that it has been validated on at least 66% of the nodes in the network and for finality=optimistic, it uses the latest block recorded on the node that responded to the query passedblock_id
- int/string - The block id which could be either a block number or block hash
Note: You can only use one parameter, either finality or block_id. The block_id param can take either the block number or the block hash as an argument.
Returns
author
- The author namechunks
- The information about the chunksbalance_burnt
- The number of tokens burntchunk_hash
- The hash of the chunkencoded_length
- The chunk length encoded in integer formatencoded_merkle_root
- The merkle root encoded in hexadecimal formgas_limit
- The maximum gas allowed in this blockgas_used
- The total used gas by all transactions in this blockheight_created
- The chunk height createdheight_included
- The included height of the chunkoutcome_root
- The outcome rootoutgoing_receipts_root
- The root of the outgoing receipts of the blockprev_block_hash
- The hash of the previous block corresponding to the current oneprev_state_root
- The previous root state of the corresponding blockrent_paid
- The number of tokens paid as rentshard_id
- The id of the multiple data grouped togethervalidator_reward
- The reward sent to the validatorssignature
- The standard ed25519 signature typetx_root
- The transaction rootvalidator_proposals
- An array of proposals provided by the validators
header
- The header of the blockapprovals
- An array of signatures, encoded in the standard ed25519 signature typeblock_merkle_root
- The merkle root of the blockblock_ordinal
- The ordinal number of the blockchallenges_result
- An array of challenges outcomechallenges_root
- The root challenges incurredchunk_headers_root
- The root of the headers trie of the blockchunk_mask
- A boolean valuechunk_receipts_root
- The root of the receipts trie of the blockchunk_tx_root
- The root of the transaction trie of the blockchunks_included
- The chunks included in the queried blockepoch_id
- The corresponding epoch idepoch_sync_data_hash
- The epoch sync data hashgas_price
- Integer of the gasPrice used for each paid gas encoded as a hexadecimalhash
- The block hashheight
- The block height or indexlast_ds_final_block
- The last ds final blocklast_final_block
- The address of the last final blocklatest_protocol_version
- The version of the latest protocolnext_bp_hash
- The hash of the next bp nodenext_epoch_id
- The id next to the current epoch numberoutcome_root
- The root of the outcome trie of the blockprev_hash
- The hash of the previous blockprev_height
- The height of the previous blockprev_state_root
- The previous state of the root of corresponding blockrandom_value
- The random value generated to make the result deterministicrent_paid
- The number of tokens paid as rentsignature
- The standard ed25519 signature typetimestamp
- The unix timestamp for when the block was collatedtimestamp_nanosec
- The timestamp in nano second for when the block was collatedtotal_supply
- The total number of tokens suppliedvalidator_proposals
- The validator proposalsvalidator_reward
- The reward sent to the validators
API Endpoint
The format of a Near API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/near/
Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/near/
Example
Request
curl https://open-platform.nodereal.io/{{apiKey}}/near/ \
--request POST \
--header "Content-Type: application/json" \
--data '{"method": "block","params": {"finality": "final"},"id":1,"jsonrpc":"2.0"}'
Result