Avalanche
Avalanche
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Avalanche
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
eth_sendRawTransaction broadcasts a fully signed, RLP-encoded transaction to the Avalanche C-Chain (chain ID 43114), whose gas is paid in AVAX, and returns the resulting transaction hash. You sign the transaction client-side — never send a private key to the node — then submit the serialized bytes; the node validates them, places the transaction in its mempool, and propagates it. Thanks to Snowman/Avalanche consensus, an accepted transaction typically finalizes within about one to two seconds. Send the request to https://avalanche.therpc.io/YOUR_API_KEY.
to field and setting data to the contract bytecode in the signed transaction.transfer or an Aave deposit — by broadcasting the signed call.| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 1 | signedTransaction | string | نعم | The serialized signed transaction. Build and sign it client-side with a library (e.g. ethers, viem, web3.js); never send a private key to the node. |
| النوع | الوصف |
|---|---|
| string | 32-byte transaction hash (0x-prefixed). The transaction is now in the mempool but not yet confirmed. |
Try it live in the Avalanche playground.
| الكود | الرسالة | السبب |
|---|---|---|
-32000 | nonce too low | The nonce in the signed transaction is lower than the sender's current on-chain nonce. |
-32000 | insufficient funds for gas * price + value | The sender does not have enough native-token balance to cover gas cost and the transferred value. |
-32000 | replacement transaction underpriced | Tried to replace a pending transaction (same nonce) but the new fee is not high enough (typically requires ≥10% bump). |
eth_getTransactionReceipt to track inclusion; on the C-Chain finality is fast (about 1–2 seconds), so the wait is usually brief.status: "0x0" means the transaction was included but reverted, and the AVAX gas was still spent.eth_getTransactionCount immediately before signing to avoid nonce collisions, especially when sending several C-Chain transactions in quick succession.المعاملات
0x-prefixed hex string of the RLP-encoded signed transaction