Skip to content

eth_sendRawTransaction

Submits a pre-signed, RLP-encoded transaction to the network and returns the resulting transaction hash.

Submit to https://mainnet-preconf.base.org to have the transaction considered for the next Flashblock (~200ms). After submission, call base_transactionStatus to confirm receipt in the mempool, then subscribe to newFlashblockTransactions to detect pre-confirmation.

NameTypeRequiredDescription
datastringYesThe signed transaction as an RLP-encoded hex string. Typically produced by a wallet library such as viem, ethers.js, or web3.js.
FieldTypeDescription
resultstringThe 32-byte transaction hash, returned when the transaction is accepted into the mempool.
CodeMessageDescription
-32000nonce too lowThe transaction nonce is below the current account nonce.
-32000insufficient funds for gas * price + valueThe sender’s balance cannot cover the gas cost plus the value transferred.
-32000already knownAn identical transaction is already in the mempool.
-32000replacement transaction underpricedA replacement transaction must increase the gas price by at least 10%.
Terminal window
curl https://mainnet.base.org \
-X POST -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["0x02f86b82210501843b9aca008477359400825208944200000000000000000000000000000000000006872c68af0bb1400080c001a0..."],"id":1}'
Terminal window
curl https://mainnet-preconf.base.org \
-X POST -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["0x02f86b82210501843b9aca008477359400825208944200000000000000000000000000000000000006872c68af0bb1400080c001a0..."],"id":1}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"
}