Block
Block Api
Get the header of the most recently finalized block.
GET /rpc/v1/block HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Returns the header of the most recently finalized block.
No content
Get information about the block that has been finalized at the given height.
Block height
If true, returns all transactions that were finalized by this block in the order that they were executed.
GET /rpc/v1/block/height/{height} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Information about the block that has been finalized at the given height.
No content
Get the header of the block with the given hash.
Hash of block to retrieve
GET /rpc/v1/block/{block_hash} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
The header of the block with the given hash.
No content
Get a list containing the hashes of the transactions that were finalized in the block with the given hash in the order that they were executed.
Hex encoded block hash
Hex encoded hash
GET /rpc/v1/block/{block_hash}/transactions HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
List of the hashes of the transactions contained in the block.
[
"text"
]
Get the header of the most recently finalized block.
GET /rpc/v2/block HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Returns the header of the most recently finalized block.
{
"author": "text",
"hash": "text",
"height": 1,
"parent": "text",
"timestamp": {
"timestamp": 1
},
"view": {
"epoch_id": {
"chain_id": 1,
"epoch": 1
},
"round": 1
}
}
Get information about the block that has been finalized at the given height.
Block height
If true, returns all transactions that were finalized by this block in the order that they were executed.
GET /rpc/v2/block/height/{height} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Information about the block that has been finalized at the given height.
{
"header": {
"author": "text",
"hash": "text",
"height": 1,
"parent": "text",
"timestamp": {
"timestamp": 1
},
"view": {
"epoch_id": {
"chain_id": 1,
"epoch": 1
},
"round": 1
}
},
"transactions": [
{
"authenticator": {},
"block_header": null,
"hash": "text",
"header": {
"chain_id": 1,
"expiration_timestamp": {
"timestamp": 1
},
"sender": "text",
"sequence_number": 1,
"gas_unit_price": 1,
"max_gas_amount": 1
},
"payload": {},
"output": {
"Dkg": "Success"
},
"status": "Success"
}
]
}
Get the header of the block with the given hash.
Hex encoded block hash
GET /rpc/v2/block/{block_hash} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
The header of the block with the given hash.
{
"author": "text",
"hash": "text",
"height": 1,
"parent": "text",
"timestamp": {
"timestamp": 1
},
"view": {
"epoch_id": {
"chain_id": 1,
"epoch": 1
},
"round": 1
}
}
Get the meta information of the most recently finalized and executed block.
GET /rpc/v3/block HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Returns the header of the most recently finalized block.
{
"header": {
"author": "text",
"hash": "text",
"height": 1,
"parent": "text",
"timestamp": {
"timestamp": 1
},
"view": {
"epoch_id": {
"chain_id": 1,
"epoch": 1
},
"round": 1
}
},
"execution_statistics": {
"automated_txn_count": null,
"automated_txn_gas_unit_price": null,
"block_gas_unit_price_min": null,
"block_gas_unit_price_max": null,
"block_total_user_gas_used": null,
"block_total_automated_gas_used": null,
"user_txn_count": null
}
}
Get information about the block that has been finalized at the given height.
Block height
If true, returns all transactions that were finalized by this block in the order that they were executed.
Type of the transaction to be queried.
GET /rpc/v3/block/height/{height} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Information about the block that has been finalized at the given height.
{
"header": {
"author": "text",
"hash": "text",
"height": 1,
"parent": "text",
"timestamp": {
"timestamp": 1
},
"view": {
"epoch_id": {
"chain_id": 1,
"epoch": 1
},
"round": 1
}
},
"execution_statistics": {
"automated_txn_count": null,
"automated_txn_gas_unit_price": null,
"block_gas_unit_price_min": null,
"block_gas_unit_price_max": null,
"block_total_user_gas_used": null,
"block_total_automated_gas_used": null,
"user_txn_count": null
},
"transactions": [
{
"authenticator": {},
"block_header": null,
"hash": "text",
"header": {
"chain_id": 1,
"expiration_timestamp": {
"timestamp": 1
},
"sender": "text",
"sequence_number": 1,
"gas_unit_price": 1,
"max_gas_amount": 1
},
"payload": {},
"output": {
"Dkg": "Success"
},
"status": "Success",
"txn_type": "user"
}
]
}
Get the header and execution output statistics of the block with the given hash.
Hex encoded block hash
GET /rpc/v3/block/{block_hash} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
The header of the block with the given hash.
{
"header": {
"author": "text",
"hash": "text",
"height": 1,
"parent": "text",
"timestamp": {
"timestamp": 1
},
"view": {
"epoch_id": {
"chain_id": 1,
"epoch": 1
},
"round": 1
}
},
"execution_statistics": {
"automated_txn_count": null,
"automated_txn_gas_unit_price": null,
"block_gas_unit_price_min": null,
"block_gas_unit_price_max": null,
"block_total_user_gas_used": null,
"block_total_automated_gas_used": null,
"user_txn_count": null
}
}
Get a list containing the hashes of the transactions that were finalized in the block with the given hash in the order that they were executed.
Hex encoded block hash
Type of the transaction to be queried.
Hex encoded hash
GET /rpc/v3/block/{block_hash}/transactions HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
List of the hashes of the transactions contained in the block.
[
"text"
]