Quicknode RPC icon

Quicknode RPC

Interact with blockchain via Quicknode RPC

Get Block

AI-generated

Summary

Retrieves block details from a specified block identifier using the Quicknode RPC endpoint, optionally including full transaction objects.

Inputs

  • blockIdentifier (required) — The block to query. Accepts a block number (decimal or hex), block hash, or tag (latest, earliest, pending).
  • fullTransactions — If true, returns the full transaction objects for the block; if false, returns only transaction hashes.

Output shape

A single item containing the block data returned by the RPC method (eth_getBlockByNumber or eth_getBlockByHash).

The exact shape depends on the 'fullTransactions' parameter and the RPC response. Includes standard block metadata like number, hash, and timestamp.

Examples

Example 1: Fetch the latest block with full transaction details.

Block Identifier: 'latest', Include Full Transactions: true

Example 2: Retrieve a specific block by hash without transaction details.

Block Identifier: '0x1a2b3c...', Include Full Transactions: false

Links

Discussion