Path Parameters
- versionintegerREQUIRED
The ledger version to retrieve the block information
Query Parameters
- with_transactionsboolean
When set to true, all transactions are included in the block; otherwise, if not provided or set to false, no transactions will be retrieved
Returns
- block_heightstring
The height of the block
- block_hashstring
The hash of the block at the specified height
- block_timestampstring
The time at which the block was created/added to the chain
- first_versionstring
The version number of the first transaction in the block
- last_versionstring
The version number of the last transaction in the block
- transactionsarray
An array containing the details of the transactions included in the block:
- typestring
The type of the change
- hashstring
The hash of the transaction
- state_checkpoint_hashstring | null
Hash of the state checkpoint encoded in hex; null for some user transactions
- senderstring
(Optional) The account from which the transaction was sent
- sequence_numberstring
(Optional) The sequence of a transaction sent by the specific sender
- max_gas_amountstring
(Optional) The maximum amount of gas allocated for the execution of a transaction
- gas_unit_pricestring
(Optional) The cost per unit of gas, determining the transaction fee paid by the sender for each unit of computational resource consumed
- expiration_timestamp_secsstring
(Optional) The timestamp indicating the expiration period of a transaction, specifying the time until which the transaction can be included in a block
- payloadobject
(Optional) The data that is being carried by a transaction. It contains the following fields:
- typestring
The type of payload indicating the purpose of the data contained
- functionstring
The function associated with the payload
- type_argumentsarray
An array specifying the types of arguments provided to the function
- argumentsarray
An array containing the actual arguments passed to the function
- signatureobject
(Optional) An array with the following fields:
- typestring
The type of signature used to verify the authenticity of the function
- public_keystring
The public key associated with the account that generated the signature, used for verifying the signature's validity
- signaturestring
The actual signature generated using the private key corresponding to the public key provided