Base
Base
Base
Free tier covers personal projects. Pay-as-you-go scales without a card.
eth_sendRawTransaction broadcasts a fully signed, RLP-encoded transaction to Base — Coinbase's OP Stack optimistic rollup that uses ETH for gas — and returns the resulting transaction hash. You sign the transaction client-side (with viem, ethers, or web3.js) and submit the serialized hex; the private key never leaves your machine. The node forwards it toward the Base sequencer, which orders it into a block roughly every 2 seconds. Be sure the transaction is signed for chain ID 8453 (0x2105) to prevent replay, and send it to https://base.therpc.io/YOUR_API_KEY.
to field and setting data to the contract creation bytecode; the deployed address comes back later in the receipt's contractAddress.transfer or an Aerodrome swap by signing a transaction whose data holds the encoded function call.| # | Name | Type | Required | Description |
|---|---|---|---|---|
| 1 | signedTransaction | string | Yes | 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 Base 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 you get a non-null receipt to confirm inclusion on Base.status: "0x0" means the transaction was included in a Base block but reverted, and the ETH gas was still spent.eth_getTransactionCount immediately before signing — on Base's fast ~2s blocks, a stale nonce easily collides with a transaction you just sent and triggers a "nonce too low" error.Parameters
0x-prefixed hex string of the RLP-encoded signed transaction