Skip to main content

Block Lookup

Fetch a block row by height or hash and optionally expand its transactions and receipts.

Network
With ReceiptsRequest body field
With TransactionsRequest body field
FastNear API keyNo saved key
Get API key
Endpointhttps://tx.main.fastnear.com
Authnone detected
Live Response

Responses from the selected endpoint appear here after you run a request.

Live response output will appear here after you run a request.

Request reference

application/json

This operation performs POST /v0/block with an application/json request body.

Required request inputs: yes

POST /v0/block
{
  "block_id": 193916411,
  "with_receipts": true,
  "with_transactions": true
}

Request body schema

objectBlockInput
requires block_id
block_id *one of
integerstring
with_receiptsboolean
with_transactionsboolean

Response reference

200 application/json

Block lookup result

Response schema

objectBlockResponse
requires block, block_txs, block_receipts
block *object
requires block_height, block_hash, prev_block_hash, block_timestamp, epoch_id, next_epoch_id, chunks_included, author_id, protocol_version, gas_price, total_supply, num_transactions, num_receipts, gas_burnt, tokens_burnt
author_id *string
block_hash *string
block_height *integer
block_ordinalinteger
block_timestamp *string
chunks_included *integer
epoch_id *string
gas_burnt *string
gas_price *string
next_epoch_id *string
num_receipts *integer
num_transactions *integer
prev_block_hash *string
prev_block_heightinteger
protocol_version *integer
tokens_burnt *string
total_supply *string
block_receipts *array
itemsobjectReceiptTxRow
requires receipt_id, block_height, block_timestamp, receipt_index, appear_block_height, appear_receipt_index, transaction_hash, tx_block_height, tx_block_timestamp, tx_index, predecessor_id, receiver_id, receipt_type, priority, shard_id, is_success
appear_block_height *integer
appear_receipt_index *integer
block_height *integer
block_timestamp *string
is_success *boolean
predecessor_id *string
priority *integer
receipt_id *string
receipt_index *integer
receipt_type *string
receiver_id *string
shard_id *integer
transaction_hash *string
tx_block_height *integer
tx_block_timestamp *string
tx_index *integer
block_txs *array
itemsobjectBlockTxRow
requires transaction_hash, signer_id, tx_block_height, tx_index, tx_block_hash, tx_block_timestamp, last_block_height, is_completed, shard_id, receiver_id, signer_public_key, priority_fee, nonce, is_relayed, real_signer_id, real_receiver_id, is_success, gas_burnt, tokens_burnt
gas_burnt *integer
is_completed *boolean
is_relayed *boolean
is_success *boolean
last_block_height *integer
nonce *integer
priority_fee *integer
real_receiver_id *string
real_signer_id *string
receiver_id *string
shard_id *integer
signer_id *string
signer_public_key *string
tokens_burnt *string
transaction_hash *string
tx_block_hash *string
tx_block_height *integer
tx_block_timestamp *string
tx_index *integer