Arbitrum One
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.
Arbitrum One
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
eth_sendRawTransaction broadcasts a fully signed, RLP-encoded transaction to Arbitrum One and returns its transaction hash. You build and sign the transaction client-side — paying gas in ETH, the chain's native token — then submit the serialized bytes; the node forwards it to the sequencer, which orders it into a block. Because Arbitrum One is an Optimistic Rollup, the fee you commit to covers both the L2 execution cost and the L1 calldata posting cost, so size your maxFeePerGas with that combined cost in mind. Sign with the correct chain ID — 42161 (0xa4b1) — and send to https://arbitrum.therpc.io/YOUR_API_KEY.
to field and sets data to the contract bytecode.transfer or a swap on GMX or Camelot — by sending the signed call.| # | Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| 1 | signedTransaction | string | Sim | 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. |
| Tipo | Descrição |
|---|---|
| string | 32-byte transaction hash (0x-prefixed). The transaction is now in the mempool but not yet confirmed. |
Try it live in the Arbitrum One playground.
| Código | Mensagem | Causa |
|---|---|---|
-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, and remember the sequencer's sub-second confirmations are soft until the L1 challenge window passes.status: "0x0" means it was included but reverted, and the ETH gas was still spent.eth_getTransactionCount immediately before signing to avoid nonce collisions, especially when submitting transactions back-to-back to the fast sequencer.Parâmetros
0x-prefixed hex string of the RLP-encoded signed transaction