Arbitrum One
Bereit, das in der Produktion aufzurufen?
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
Arbitrum One
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
eth_getTransactionByBlockHashAndIndex fetches a single transaction by its position inside a block, where the block is named by its hash, on Arbitrum One. Arbitrum One (chain ID 42161) is an Optimistic Rollup where the Nitro sequencer fixes transaction ordering and gas is paid in ETH, so the index reflects the sequencer's deterministic order. Send the block hash and a hex index to https://arbitrum.therpc.io/YOUR_API_KEY and it returns the transaction at that index position within the block, or null if the block or index does not exist.
0x0 upward.| # | Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|---|
| 1 | blockHash | string (hex) | Ja | The hash of the block containing the transaction. |
| 2 | transactionIndex | string (hex) | Ja | Zero-based position of the transaction within the block. |
| Typ | Beschreibung |
|---|---|
| object | null | Same transaction object as eth_getTransactionByHash. Returns null if block or index not found. |
Try it live in the Arbitrum One playground.
| Code | Meldung | Ursache |
|---|---|---|
-32602 | Invalid params | Block hash or transaction index is malformed. |
"0x0" for the first transaction, not the integer 0.null, so null-check before reading fields.Parameter
0x-prefixed 32-byte block hash
0x-prefixed hex integer (e.g. "0x0" for the first transaction)