Actions20
- Block Number
- Chain ID
- Gas Price
- Get Balance
- Get Block by Hash
- Get Block by Number
- Get Block Tx Count by Hash
- Get Block Tx Count by Number
- Get Code
- Get My Balance
- Get Transaction by Block Hash and Index
- Get Transaction by Block Number and Index
- Get Transaction by Hash
- Get Transaction Count
- Get Transaction Receipt
- Get Uncle Count by Block Hash
- Get Uncle Count by Block Number
- Help
- Peer Count
- Syncing
Get Transaction by Block Hash and Index
AI-generatedSummary
Retrieves a specific transaction's details from the Ethereum blockchain using a block hash and transaction index.
Inputs
- network — Select the network (mainnet or sepolia). Defaults to mainnet.
- block_hash (required) — The block hash (0x-prefixed hex) where the transaction resides.
- index (required) — The transaction index position within the block (integer). Defaults to 0.
Output shape
A list of items, each containing the full transaction object returned by the API.
The exact fields in the transaction object depend on the underlying API response.
Examples
Example 1: Get the first transaction from block 0x123...
Network: mainnet, Block Hash: 0x123..., Index: 0
Example 2: Retrieve a specific transaction at index 5 from a known block hash.
Network: sepolia, Block Hash: 0xabc..., Index: 5