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>"
}
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>"
}
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.
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.result
— the hash of the successfully submitted transaction.eth_sendRawTransaction
method is essential for:
The transaction hash of the submitted transaction
The response is of type object
.
Was this page helpful?