eth_sendRawTransaction
Last updated:
`eth_sendRawTransaction` submits an **already-signed** transaction to the network for inclusion in a block. You sign the transaction locally with your private key, RLP-encode it, hex-encode the result, and pass that single hex string as the only parameter. Triport never sees or holds your key — only the signed payload.
On success the method returns the transaction hash immediately. This hash is returned as soon as the transaction is accepted into the mempool; it does **not** mean the transaction has been mined. Poll [`eth_getTransactionReceipt`](./eth_getTransactionReceipt.md) with the returned hash to confirm inclusion and read the final status.
This is the only state-changing method in the `eth` read namespace, and it sits in its own `eth_send_tx` rate-limit category with **markedly lower limits than read methods** (3 RPS on free vs. 10+ RPS for reads). Budget your send rate accordingly and back off on `-32003`. The method is available from the free tier upward — no paid tier is required to broadcast transactions.
Parameters
This method takes no parameters.
Returns
| Field | Type |
|---|---|
| result | object |
Examples
curl https://<your-endpoint>/ \
-X POST -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_sendRawTransaction","params":[]}'const res = await fetch("https://<your-endpoint>/", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"id": 1,
"method": "eth_sendRawTransaction",
"params": [],
"jsonrpc": "2.0"
}),
});
const data = await res.json();import requests
resp = requests.post("https://<your-endpoint>/", json={"id":1,"method":"eth_sendRawTransaction","params":[],"jsonrpc":"2.0"})
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Networks: mainnet.
- Credit cost: 5 per call.
FAQ
- What does eth_sendRawTransaction do?
- Broadcasts a signed, RLP-encoded transaction to the Ethereum network and returns its transaction hash.
- How many credits does eth_sendRawTransaction cost?
- eth_sendRawTransaction costs 5 credit(s) per call on Triport by default.
- Is eth_sendRawTransaction available over WebSocket?
- eth_sendRawTransaction is an HTTP JSON-RPC method.