Portal Community

All 9 operations share the same two optional/required fields pattern — most take a blockHash, a few take a numeric height, and two need neither.

get

Returns full block metadata for a block hash.

FieldTypeRequiredDescription
blockHashtext✓ YesBlock hash (hex).
networkselectNoDefaults to Bitcoin:DefaultNetwork.

getStatus

Returns the block's confirmation/orphan status.

FieldTypeRequiredDescription
blockHashtext✓ YesBlock hash.
networkselectNoDefaults to Bitcoin:DefaultNetwork.

getTransactions

Returns the block's transaction list, paginated.

FieldTypeRequiredDescription
blockHashtext✓ YesBlock hash.
startIndexnumberNoOffset into the block's transaction list — omit for the first page.
networkselectNoDefaults to Bitcoin:DefaultNetwork.

getTransactionId

Returns a single transaction id at a specific position within the block, without fetching the whole list.

FieldTypeRequiredDescription
blockHashtext✓ YesBlock hash.
indexnumberNo (default 0)Zero-based position of the transaction within the block.
networkselectNoDefaults to Bitcoin:DefaultNetwork.

getRaw

Returns the block's raw serialized bytes as hex.

FieldTypeRequiredDescription
blockHashtext✓ YesBlock hash.
networkselectNoDefaults to Bitcoin:DefaultNetwork.

getHeader

Returns just the 80-byte block header (hex) — lighter than getRaw when you only need the header.

FieldTypeRequiredDescription
blockHashtext✓ YesBlock hash.
networkselectNoDefaults to Bitcoin:DefaultNetwork.

getHash

Looks up a block's hash by its height — the reverse of the usual hash-based lookups above.

FieldTypeRequiredDescription
heightnumberNo (default 0)Block height, must be non-negative.
networkselectNoDefaults to Bitcoin:DefaultNetwork.

getRecentBlocks

Returns the most recent blocks at the current chain tip — no parameters beyond network.

FieldTypeRequiredDescription
networkselectNoDefaults to Bitcoin:DefaultNetwork.

getBlocksFromHeight

Returns a page of blocks starting from a given height — useful for backfilling or scanning a range.

FieldTypeRequiredDescription
startHeightnumberNo (default 0)Height to start from, must be non-negative.
networkselectNoDefaults to Bitcoin:DefaultNetwork.
Raw JSON pass-through: Most block operations return Esplora's own JSON response shape as-is rather than a hand-modeled subset of fields — this node doesn't redefine dozens of nested block fields no workflow actually needs. If your workflow needs a specific field, check the response object directly rather than assuming a fixed schema.