Parameters
blockstringrequired- Block number in hex (e.g. "0x1208a5f") or a tag: "latest", "safe", "finalized", "earliest" or "pending". L0vd endpoints run archive nodes, so any historical block works.
fullTransactionsbooleanrequired- true returns full transaction objects, false only their hashes.
Returns
object Block object, or null if the block does not exist.
numberstring- Block number, hex.
hashstring- Block hash.
parentHashstring- Hash of the parent block.
timestampstring- Unix timestamp, hex.
minerstring- Fee recipient address.
gasUsedstring- Total gas used by the block's transactions, hex.
gasLimitstring- Block gas limit, hex.
baseFeePerGasstring- EIP-1559 base fee, hex wei (London and later).
transactionsarray- Transaction hashes, or full transaction objects when the second parameter is true.
logsBloomstring- Bloom filter for the block's logs.
stateRootstring- Root of the state trie after the block.
When to use it
Read a block header and its transactions by number or tag.
Map blocks to timestamps, follow the chain head, or walk history block by block.
How to read the result
Numbers are hex: timestamp 0x65922b33 is Unix time 1,704,078,131 (2024-01-01 03:02 UTC); baseFeePerGas is wei.
With fullTransactions = false you get transaction hashes only, which is much smaller. Use true when you need from, to, value and input for every transaction.
Tips
- Use "finalized" or "safe" when you must not see reorged data.
- To get receipts for the whole block, call eth_getBlockReceipts instead of one receipt call per transaction.