Path Parameters
Query Parameters
- finalizedboolean
A boolean representing whether or not to get the finalized head. If it is not set the value defaults to true. When set to false it will attempt to get the newest known block, which may not be finalized.
- eventDocsboolean
When set to
true, every event will have an extradocsproperty with a string of the events documentation.
- extrinsicDocsboolean
When set to
true, every extrinsic will have an extradocsproperty with a string of the extrinsics documentation.
- noFeesboolean
When set to
true, the fee won't be calculated for the extrinsics.
- decodedXcmMsgsboolean
When set to
true, this will show the decoded XCM messages within the extrinsics of the requested block.
- paraIdstring
When it is set, this will return only the decoded XCM messages for the specified origin Parachain Id (originParaId). To activate this functionality, ensure that the
decodedXcmMsgsparameter is set to true.
Returns
- numberstring
The block number
- hashstring
The unique identifier of the block
- parentHashstring
The hash of the previous block in the chain
- stateRootstring
The root of the state trie after the block's execution
- extrinsicRootstring | null
(Optional) The root of the Merkle tree containing all extrinsics in the block, or null when not present
- authorIdstring
The identifier of the block author or the validator who created this block
- logsarray
An array of log items associated with the block. Each log entry contains:
- typestring
The type of log
- indexstring
An index or identifier for the log
- valuestring | array
The log's content or value
- onInitializeobject
The events triggered during the block's initialization phase. It contains:
- eventsarray
An array of event objects triggered on initialization. Each event contains:
- methodstring
The method or event name
- dataarray
An array of data associated with the event.
- extrinsicsarray
An array of extrinsics included in the block. Each extrinsic contains:
- methodobject
The pallet and method associated with the extrinsic
- palletstring
The pallet (module) name
- methodstring
The method being called in the extrinsic
- signatureobject | null
The signature object which contains the following fields:
- signaturestring
The cryptographic signature.
- signerstring | object
The account that signed the extrinsic (SS58 string or a MultiAddress object such as
{ Id: "…" })- Idstring
Account id when the signer is encoded as a MultiAddress Id variant
- noncestring | null
The nonce of the transaction, used to ensure the uniqueness of each transaction from a given account
- argsobject
The arguments passed to the extrinsic method
- tipstring | null
Any tip attached to the transaction to prioritize it
- hashstring
The hash of the extrinsic
- infoobject
The info object which contains the following fields:
- weightobject
The weight object which contains the following fields:
- refTimestring
The reference time used to calculate the weight
- proofSizestring
The size of the proof associated with the extrinsic
- classstring
The class of the transaction
- partialFeestring
The partial fee associated with the transaction
- kindstring
The kind of extrinsic
- eraobject
The era object which contains the following fields:
- mortalErastring | object
Mortality for the extrinsic (compact hex string or
{ period, phase }object)- periodstring
Period of the mortal era
- phasestring
Phase of the mortal era
- immortalErastring
(Optional) Present when the extrinsic uses an immortal era (e.g.
0x00)
- eventsarray
Events triggered by this extrinsic
- methodstring | object
The event method name
- dataarray
The data associated with the event
- successboolean
Indicates whether the extrinsic was successfully executed
- paysFeeboolean
Indicates whether the fee for the extrinsic was paid
- onFinalizeobject
The onFinalize object which contains the following fields:
- eventsarray
An array of event objects triggered on finalization.
- methodobject
The pallet and method that triggered the event
- palletstring
The pallet name
- methodstring
The method name
- dataarray
The data associated with the event
- finalizedboolean
A boolean indicating whether the block has been finalized
- decodedXcmMsgsobject | null
(Optional) The decodedXcmMsgs object which contains the following fields:, or null when not requested
- horizontalMessagesarray
An array of horizontalMessages
- originParaIdstring
The ID of the originating parachain
- destinationParaIdstring
The ID of the destination parachain
- dataobject
The data associated with the message
- downwardMessagesarray
The messages sent from the relay chain to a parachain.
- sentAtstring
The block number at which the message was sent
- msgstring
The message content
- dataobject
The data associated with the message.
- upwardMessagesarray
Messages sent from a parachain to the relay chain
- originParaIdstring
The ID of the originating parachain
- dataobject
The data associated with the message.