Avalanche
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Avalanche
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
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.| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 1 | transactionHash | string (hex) | نعم | The hash of the transaction to retrieve. |
| النوع | الوصف |
|---|---|
| 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.
| الكود | الرسالة | السبب |
|---|---|---|
-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".المعاملات
0x-prefixed 32-byte transaction hash