teckel Ethereum icon

teckel Ethereum

Query the Ethereum blockchain via the teckel platform

Get Transaction by Block Number and Index

AI-generated

Summary

Retrieves a specific transaction object from a block using the transaction's index position.

Inputs

  • network — The Ethereum network to query (mainnet or sepolia).
  • block — Block number (integer) or one of: latest, earliest, pending, safe, finalized.
  • index (required) — Transaction index position (integer).

Output shape

A list of items, each containing a single transaction object (JSON).

Requires a valid teckelEthereumApi credential. If the node is configured to continue on error, failed requests return a single item with an 'error' field.

Examples

Example 1: Get the first transaction in the latest block on Mainnet.

Network: mainnet, Block: latest, Index: 0

Example 2: Get a specific transaction by its block number and position on Sepolia.

Network: sepolia, Block: 12345678, Index: 5

Links

Discussion