Skip to main content

listLatestBlocks Query

Lists the most recent blocks on the blockchain.

Updated on
Oct 16, 2024

Parameters

block
integer
REQUIRED

The number of blocks you want to fetch

Returns

data
object

The data object which contains the following fields:

blocks
object

The blocks object which contains the following fields:

nodes
array

An array containing individual block records.

id
string

The unique identifier of a block

transactions
array

An array containing the transactions within the block

id
string

The unique identifier of a transaction

inputAssetIds
array | null

An array of asset IDs used as inputs in the transaction, or null when the node omits input metadata for that transaction

inputs
array | null

An array containing the inputs used in the transaction, or null when the node omits input metadata for that transaction

__typename
string

The specific type of input or output in the transaction

owner
string

(Optional) The address that owned the input in the transaction (InputCoin)

utxoId
string

The unique identifier for the unspent transaction output (UTXO) related to the input (InputCoin, InputContract)

amount
string

(Optional) The amount of the asset involved in the transaction (InputCoin, InputMessage)

assetId
string

(Optional) The unique identifier of the asset involved in the transaction (InputCoin)

contractId
string

(Optional) The contract identifier for a contract input (InputContract)

sender
string

(Optional) The sender address for a message input (InputMessage)

recipient
string

(Optional) The recipient address for a message input (InputMessage)

data
string

(Optional) The payload data for a message input (InputMessage)

outputs
array

An array of outputs, representing where the transaction sends value

__typename
string

The specific type of input or output in the transaction

to
string

(Optional) The address which recieved the transaction (coin-style outputs)

amount
string

(Optional) The amount of the asset involved in the transaction (coin-style outputs)

assetId
string

(Optional) The unique identifier of the asset involved in the transaction (coin-style outputs)

inputIndex
string

(Optional) The index of the input that this contract output is associated with (ContractOutput)

balanceRoot
string

(Optional) The root hash representing the contracts balance state (ContractOutput)

stateRoot
string

(Optional) The root hash representing the contracts overall state (ContractOutput, ContractCreated)

contract
string

(Optional) The contract identifier for a created contract output (ContractCreated)

extensions
object

GraphQL response metadata returned by the Fuel node.

current_consensus_parameters_version
integer

The current consensus parameters version

current_fuel_block_height
integer

The current Fuel block height

current_stf_version
integer

The current STF version

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free