eth_sendTransaction
Signs a transaction with the key of an account held by the node and submits it to the network.
Ethereum specification · All supported methods
Parameters
Parameters are positional, in the order below.
| Parameter | Type | Required | Description |
|---|---|---|---|
Transaction | Transaction object | Yes | The transaction to sign and send. See the fields below. |
Transaction fields
| Field | Meaning |
|---|---|
from | Address of the account that signs and sends the transaction |
to | Recipient address; omit to deploy a contract |
gas | Gas limit as a hexadecimal quantity |
maxFeePerGas, maxPriorityFeePerGas | EIP-1559 fee caps as hexadecimal quantities; or gasPrice for a legacy transaction |
value | Amount in wei as a hexadecimal quantity |
data | Call data or contract creation code as hexadecimal bytes |
nonce | Account nonce as a hexadecimal quantity; filled in by the node if omitted |
Return value
The transaction hash as a 32-byte value.
Example
Replace <gateway-url> with your gateway base URL and <service-url> with the chain’s service path, such as service/ethereum.
sh
curl -X POST "<gateway-url>/<service-url>" \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":1,"method":"eth_sendTransaction","params":[{"from":"0xc94770007dda54cF92009BFF0dE90c06F603a09f","to":"0xd46e8dd67c5d32be8058bb8eb970870f07244567","gas":"0x5208","maxFeePerGas":"0x2540be400","maxPriorityFeePerGas":"0x3b9aca00","value":"0x9184e72a"}]}'Illustrative response; values depend on the selected network and request:
json
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x88df016429689c079f3b2f6ad39fa052532c56795b733da78a91ebe6a713944b"
}