Parameters
- optionsobject
Specifies the query method by selecting one of the available options.
- option_1object
Query based on a specific chunk ID.
- chunk_idstring
The hash of the chunk ID.
- option_2object
Query based on block ID and shard ID.
- block_idinteger
The block identifier, which can be either a block number or a block hash.
- shard_idinteger
The shard identifier.
Returns
- authorstring
The author name
- headerobject
The header of the chunk
- balance_burntstring
The number of tokens burnt
- bandwidth_requestsnull
Information about bandwidth requests. If null, no bandwidth request data is available
- congestion_infoobject
Details about network congestion. If null, no congestion data is available
- chunk_hashstring
The hash of the chunk
- encoded_lengthinteger
The chunk length encoded in integer format
- encoded_merkle_rootstring
The encoded merkle root
- gas_limitinteger
The maximum gas allowed in this block
- gas_usedinteger
The total used gas by all transactions in this block
- height_createdinteger
The chunk height created
- height_includedinteger
The included height of the chunk
- outcome_rootstring
The root of the outcome trie of the block
- outgoing_receipts_rootstring
The root of the outgoing receipts of the block
- prev_block_hashstring
The hash of the previous block chunk corresponding to the current one
- prev_state_rootstring
The previous state of the root of corresponding block
- rent_paidstring
The number of tokens paid as rent
- shard_idinteger
The id of the multiple data grouped together
- signaturestring
The standard ed25519 signature type
- tx_rootstring
The transaction root
- validator_proposalsarray
An array of proposals provided by the validators
- validator_rewardstring
The reward sent to the validators
- transactionsarray
An array of multiple transactions
- actionsarray
An action built from near-api-js.transactions
- FunctionCallobject
Represents a function call action within the transaction.
- argsstring
Base64-encoded arguments passed to the function.
- depositstring
The amount of tokens (in yocto) attached to the function call.
- gasinteger
The amount of gas allocated for the function execution.
- method_namestring
The name of the method being invoked in the function call.
- hashstring
The hash of the transaction
- nonceinteger
The number of transactions made by the sender prior to this one encoded as hexadecimal
- priority_feeinteger
The priority fee
- public_keystring
The public key of the signer
- receiver_idstring
The account id of the transaction receiver
- signaturestring
Standard ed25519 signature type
- signer_idstring
The account id of the transaction originator
- receiptsarray
An array of receipts