Arbitrum One
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Arbitrum One
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
eth_getTransactionReceipt returns the execution receipt for a transaction that has already been mined on Arbitrum One — the Optimistic Rollup that settles to Ethereum L1 and pays gas in ETH. Given a transaction hash, it reports the outcome once the sequencer has included the transaction in a block: the success/revert status, the gas consumed, and every log the transaction emitted. On Arbitrum One the receipt also reflects the chain's two-part fee model, where the cost combines L2 execution and L1 calldata posting, both denominated in ETH. Send requests to https://arbitrum.therpc.io/YOUR_API_KEY (chain ID 42161, 0xa4b1).
status field.logs — such as ERC-20 Transfer or Uniswap Swap events — to update balances and application state.contractAddress to capture the address of a freshly deployed contract; it is non-null only for deployment transactions.gasUsed * effectiveGasPrice, which on Arbitrum One folds in both the L2 execution and L1 calldata components.| # | Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|---|
| 1 | transactionHash | string (hex) | Sí | The hash of the mined transaction. |
| Tipo | Descripción |
|---|---|
| object | null | Receipt object containing: transactionHash, transactionIndex, blockHash, blockNumber, from, to, contractAddress (non-null only for contract deployments), gasUsed, cumulativeGasUsed, effectiveGasPrice, status ("0x1" success / "0x0" revert), logs (array of log objects), logsBloom, type. Returns null f |
Try it live in the Arbitrum One playground.
| Código | Mensaje | Causa |
|---|---|---|
-32602 | Invalid params | Transaction hash is malformed. |
null. Arbitrum's sequencer gives sub-second soft confirmations, but you should still poll until the result is non-null rather than assume the receipt exists immediately after broadcast.status of "0x0" means the transaction was mined but reverted on-chain — the ETH gas was still consumed even though the call failed.eth_getBlockReceipts once instead of issuing one eth_getTransactionReceipt per transaction; it is far more efficient and uses fewer compute units.Parámetros
0x-prefixed 32-byte transaction hash