Avalanche
Pronto para usar isso em produção?
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
Avalanche
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
eth_getTransactionByHash returns the full transaction object for a given hash on the Avalanche C-Chain: sender, recipient, AVAX value, gas pricing, input data, and — once mined — the block hash and number it landed in. It is the everyday way to look up a transaction you submitted or saw on Snowtrace and read its details programmatically. Thanks to the C-Chain's roughly 1–2 second finality under Snowman consensus, a freshly broadcast transaction usually resolves to a mined object within a couple of seconds. Send the request to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, 0xa86a) with the 32-byte transaction hash.
blockNumber is non-null after broadcast.input field to identify which contract function was called — for example a swap on Trader Joe or a borrow on Aave.from address and AVAX value to verify an inbound payment before crediting an account.| # | Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| 1 | transactionHash | string (hex) | Sim | The hash of the transaction to retrieve. |
| Tipo | Descrição |
|---|---|
| object | null | Transaction object containing: hash, nonce, blockHash, blockNumber, transactionIndex, from, to (null for contract creation), value (hex wei), gas, gasPrice / maxFeePerGas / maxPriorityFeePerGas, input, type, accessList (type-1/2), chainId, v, r, s. Returns null if not found or still pending (blockHa |
Try it live in the Avalanche playground.
| Código | Mensagem | Causa |
|---|---|---|
-32602 | Invalid params | Transaction hash is malformed or not 32 bytes. |
eth_getTransactionReceipt and check its status field for the actual execution outcome.blockHash, blockNumber, and transactionIndex are all null; treat those nulls as "not yet mined", not "not found".Parâmetros
0x-prefixed 32-byte transaction hash