Ethereum
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Ethereum
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
eth_sendRawTransaction is how a signed transaction enters Ethereum. You sign and RLP-encode the transaction client-side with a library like ethers, viem, or web3.js, then pass the resulting hex blob to this method; the node validates it, drops it into its mempool, and gossips it to peers so a validator can include it in an upcoming 12-second slot. The call returns the 32-byte transaction hash right away, which is your handle for tracking the transaction, not proof that it has been mined. Broadcast against https://ethereum.therpc.io/YOUR_API_KEY on chain ID 1. Most transactions today are EIP-1559 type-2, carrying maxFeePerGas and maxPriorityFeePerGas so the protocol can burn the base fee in ETH and route the tip to the proposer. Your private key never leaves your machine; only the signed payload is sent.
to empty and putting the compiled bytecode in data; the receipt's contractAddress then tells you where it landed.transfer or an approve for a DEX, by encoding the call into data and signing it.| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | signedTransaction | string | Oui | 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. |
| Type | Description |
|---|---|
| string | 32-byte transaction hash (0x-prefixed). The transaction is now in the mempool but not yet confirmed. |
Try it live in the Ethereum playground.
| Code | Message | Cause |
|---|---|---|
-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 until it returns non-null to know the transaction was actually mined.status: "0x0" and the sender still paid for the gas burned up to the revert.eth_getTransactionCount right before signing. A stale nonce triggers a nonce-too-low rejection, and to replace a stuck pending transaction you must reuse its nonce with a fee bump of roughly 10% or more, or you will hit replacement-transaction-underpriced.Paramètres
0x-prefixed hex string of the RLP-encoded signed transaction