eth_sendRawTransaction
The eth_sendRawTransaction method submits a signed transaction to the Optimism network for inclusion in a block. This method broadcasts a pre-signed transaction to the Optimism network, where it will be validated, added to the mempool, and eventually included in a block by miners. It's the final step in the transaction lifecycle after a transaction has been created and signed offline, and is essential for all wallet applications and transaction broadcast services.
Parameters
parameter | type | description |
|---|---|---|
signedTransactionData | string (required) | The signed transaction data as a hex string (RLP-encoded transaction signed with a private key) |
Return Object
The method returns the transaction hash if successful, or an error if the transaction is invalid.
Request Example
Request
Response Example
Response