POST
https://optimism-mainnet.core.chainstack.com
/
efb0a5eccd2caa5135eb54eba6f7f300
curl --request POST \
  --url https://optimism-mainnet.core.chainstack.com/efb0a5eccd2caa5135eb54eba6f7f300 \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_sendRawTransaction",
  "id": 1,
  "params": [
    "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"
  ]
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<string>"
}

Optimism API method eth_sendRawTransaction allows for the submission of a pre-signed transaction to the Optimism network for broadcast. This method is crucial for executing transactions from externally owned accounts without relying on Optimism node wallets for signing.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • signedTransactionData — the signed transaction data in hexadecimal format. This data includes the transaction details such as nonce, gas price, gas limit, to address, value, data, and the signature.

Response

  • result — the hash of the successfully submitted transaction.

Use case

The eth_sendRawTransaction method is essential for:

  • Wallets and other applications that sign transactions offline or in a secure environment and then submit them to the network.
  • Services that batch or automate transaction submissions.
  • Users and developers requiring control over the transaction signing process for security reasons.

Body

application/json

Response

200 - application/json

The transaction hash of the submitted transaction

The response is of type object.