Skip to main content
GET
/
v1
/
blocks
/
{slot}
Get block by slot or hash.
curl --request GET \
  --url https://rest.alphanet.thruput.org/v1/blocks/{slot}
{
  "header": {
    "slot": "<string>",
    "blockHash": {
      "value": "aSDinaTvuI8gbWludGxpZnk="
    },
    "headerSignature": {
      "value": "aSDinaTvuI8gbWludGxpZnk="
    },
    "version": 123,
    "producer": {
      "value": "aSDinaTvuI8gbWludGxpZnk="
    },
    "expiryTimestamp": "2023-11-07T05:31:56Z",
    "startSlot": "<string>",
    "expiryAfter": 123,
    "maxBlockSize": 123,
    "maxComputeUnits": "<string>",
    "maxStateUnits": 123,
    "price": "<string>"
  },
  "footer": {
    "signature": {
      "value": "aSDinaTvuI8gbWludGxpZnk="
    },
    "status": "EXECUTION_STATUS_UNSPECIFIED",
    "consumedComputeUnits": "<string>",
    "consumedStateUnits": 123
  },
  "body": "aSDinaTvuI8gbWludGxpZnk=",
  "consensusStatus": "CONSENSUS_STATUS_UNSPECIFIED"
}

Path Parameters

slot
string<uint64>
required

Query Parameters

blockHash.value
string<byte>
required

64-byte block hash buffer.

view
enum<string>
default:BLOCK_VIEW_UNSPECIFIED
Available options:
BLOCK_VIEW_UNSPECIFIED,
BLOCK_VIEW_HEADER_ONLY,
BLOCK_VIEW_HEADER_AND_FOOTER,
BLOCK_VIEW_BODY_ONLY,
BLOCK_VIEW_FULL
minConsensus
enum<string>
default:CONSENSUS_STATUS_UNSPECIFIED
  • CONSENSUS_STATUS_UNSPECIFIED: CONSENSUS_STATUS_UNSPECIFIED indicates the consensus status is unknown.
  • CONSENSUS_STATUS_OBSERVED: CONSENSUS_STATUS_OBSERVED indicates the resource has been observed but not yet confirmed in a finalized block.
  • CONSENSUS_STATUS_INCLUDED: CONSENSUS_STATUS_INCLUDED indicates the resource has been included in the ledger but may not be finalized.
  • CONSENSUS_STATUS_FINALIZED: CONSENSUS_STATUS_FINALIZED indicates the resource is finalized for a slot.
  • CONSENSUS_STATUS_LOCALLY_EXECUTED: CONSENSUS_STATUS_LOCALLY_EXECUTED indicates the local node executed the resource but broader cluster finality may not have been achieved.
  • CONSENSUS_STATUS_CLUSTER_EXECUTED: CONSENSUS_STATUS_CLUSTER_EXECUTED indicates the entire cluster has executed and agreed on the resource.
Available options:
CONSENSUS_STATUS_UNSPECIFIED,
CONSENSUS_STATUS_OBSERVED,
CONSENSUS_STATUS_INCLUDED,
CONSENSUS_STATUS_FINALIZED,
CONSENSUS_STATUS_LOCALLY_EXECUTED,
CONSENSUS_STATUS_CLUSTER_EXECUTED

Response

A successful response.

Block represents a fully decoded block resource.

header
object
required

BlockHeader describes metadata about a block.

BlockFooter captures execution result metadata for a block.

body
string<byte>
consensusStatus
enum<string>
default:CONSENSUS_STATUS_UNSPECIFIED

ConsensusStatus represents the minimum consensus level a resource has achieved when returned by the service.

  • CONSENSUS_STATUS_UNSPECIFIED: CONSENSUS_STATUS_UNSPECIFIED indicates the consensus status is unknown.
  • CONSENSUS_STATUS_OBSERVED: CONSENSUS_STATUS_OBSERVED indicates the resource has been observed but not yet confirmed in a finalized block.
  • CONSENSUS_STATUS_INCLUDED: CONSENSUS_STATUS_INCLUDED indicates the resource has been included in the ledger but may not be finalized.
  • CONSENSUS_STATUS_FINALIZED: CONSENSUS_STATUS_FINALIZED indicates the resource is finalized for a slot.
  • CONSENSUS_STATUS_LOCALLY_EXECUTED: CONSENSUS_STATUS_LOCALLY_EXECUTED indicates the local node executed the resource but broader cluster finality may not have been achieved.
  • CONSENSUS_STATUS_CLUSTER_EXECUTED: CONSENSUS_STATUS_CLUSTER_EXECUTED indicates the entire cluster has executed and agreed on the resource.
Available options:
CONSENSUS_STATUS_UNSPECIFIED,
CONSENSUS_STATUS_OBSERVED,
CONSENSUS_STATUS_INCLUDED,
CONSENSUS_STATUS_FINALIZED,
CONSENSUS_STATUS_LOCALLY_EXECUTED,
CONSENSUS_STATUS_CLUSTER_EXECUTED