Polygon
Bereit, das in der Produktion aufzurufen?
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
Polygon
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
eth_sendRawTransaction broadcasts a fully signed, RLP-encoded transaction to the Polygon network and returns its 32-byte transaction hash. This is how every state-changing action — a MATIC transfer, a contract deployment, or a contract write — reaches the chain after you sign it client-side. Send it to https://polygon.therpc.io/YOUR_API_KEY (chain ID 137, 0x89); sign with chain ID 137 baked in so the transaction is valid on Polygon PoS and not replayable elsewhere. With ~2-second blocks and low fees, a well-formed transaction is usually picked up within a few seconds of broadcast.
to field and setting data to the compiled contract bytecode; the receipt's contractAddress then gives you the deployed address.transfer on the Polygon USDT token at 0xc2132D05D31c914a87C6611C10748AEb04B58e8F — by signing a call to its method and broadcasting it here.| # | Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|---|
| 1 | signedTransaction | string | Ja | 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. |
| Typ | Beschreibung |
|---|---|
| string | 32-byte transaction hash (0x-prefixed). The transaction is now in the mempool but not yet confirmed. |
Try it live in the Polygon playground.
| Code | Meldung | Ursache |
|---|---|---|
-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 Polygon this is typically a few seconds.status: "0x0" means the transaction was included in a Polygon block but reverted, and the sender still paid the gas in MATIC.eth_getTransactionCount immediately before signing to avoid nonce collisions; if you must replace a stuck transaction, resend with the same nonce and bump the fee by at least ~10% or the node returns replacement transaction underpriced.Parameter
0x-prefixed hex string of the RLP-encoded signed transaction