eth_sendRawTransaction - Optimism RPC Method
Submit signed transactions to Optimism. Essential for broadcasting transactions for cross-chain DeFi, Superchain-interoperable dApps, and public goods funding recipients.
Submits a pre-signed transaction for broadcast to Optimism.
Why Optimism? Build on the heart of the Superchain powering 60%+ of Ethereum L2 transactions with $6B+ TVL with OP Stack modularity, Superchain interoperability, 17M+ daily transactions across 33 chains, and 20% of tokens for public goods.
Use Cases
The eth_sendRawTransaction method is essential for:
- Broadcasting transactions - Submit signed transactions to the network
- Wallet operations - Send native tokens and interact with contracts
- DeFi operations - Execute swaps, provide liquidity for cross-chain DeFi, Superchain-interoperable dApps, and public goods funding recipients
- Batch operations - Submit multiple transactions efficiently
Code Examples
Error Handling
| Error Code | Message | Description |
|---|---|---|
| -32000 | Nonce too low | Transaction nonce already used |
| -32000 | Insufficient funds | Account has insufficient balance |
| -32000 | Gas too low | Gas limit insufficient |
| -32000 | Replacement underpriced | Gas price too low for replacement |
Related Methods
eth_estimateGas- Estimate gas requiredeth_gasPrice- Get current gas priceeth_getTransactionReceipt- Get transaction result
eth_accounts
Returns a list of addresses owned by the client on Optimism. Typically returns an empty array on public RPC endpoints.
eth_getTransactionByHash
Retrieve transaction details by hash on Optimism. Essential for L2 builders, DeFi developers, and teams launching Superchain-compatible apps tracking transactions on the heart of the Superchain powering 60%+ of Ethereum L2 transactions with $6B+ TVL.