Skip to main content
EVM

eth_sendRawTransaction

Summary: Submit a raw transaction

This request submits a raw, pre-signed, transaction. Linea is compatible with the London fork and supports EIP-1559 type 2 transactions. Important:
  • The transaction must be signed externally using a private key. Consider using a wallet such as MetaMask or libraries such as web3.js or ethers.js.
  • Ensure the account controlled by the private key has enough funds to pay the network's gas fee.
  • The gas allocated to this transaction must cover both the value of the transaction and network gas fees.

Parameters

transaction string
required

Hex-encoded, serialized, pre-signed transaction data that includes all necessary fields (such as sender, recipient, value, gas, etc.) as required by the Ethereum transaction format. Linea supports 1559, 2930, and legacy transactions types.

Pattern: ^0x[0-9a-f]*$

Returns

The transaction hash if the transaction was successfully broadcast, or a zero hash if the transaction is not yet included in a block. If creating a contract, consider using eth_getTransactionReceipt to get the contract address after the transaction is included.
eth_sendRawTransactionResponse string

The transaction hash if the transaction was successfully broadcast, or a zero hash if the transaction is not yet included in a block. If creating a contract, consider using eth_getTransactionReceipt to get the contract address after the transaction is included.

Pattern: ^0x[0-9a-f]{64}$

Customize request
Parameter
Value
string
Request
curl https://linea-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_sendRawTransaction",
"params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"],
"id": 1
}'
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331"
}