๐ Send pre-signed raw Ethereum transaction
Code samples
POST /api/v1/eth/transactions/send-raw
curl -X POST 'https://settla.net/api/v1/eth/transactions/send-raw' \
-H 'X-API-Key: $SETTLA_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"rawTransaction": "0x02f8750182013285012a05f20085012d098220825208946928f3e126dbac9923d52300fdef714b280b305c870dd09beac4d71c80c001a09723dc578adc6e2ae34c505a895ef21655e9c85dc9c296d9b4098975e91bc8a3a0764f36e553595cf61f14f8756cb4611c4d5099d93fda66007f7872ea5b287ad3"
}'
Sends a signed, RLP-encoded transaction using eth_sendRawTransaction. This is the supported way to move funds: keys stay on your side, the API only relays the signed blob.
Build the transaction with the nonce from GET /api/v1/eth/account/{address}/nonce and a gas limit from POST /api/v1/eth/account/estimate-gas, sign it locally, then submit the 0x-prefixed hex here. A 200 means the node accepted the transaction into its pool โ not that it is mined. Poll GET /api/v1/eth/transactions/{hash}/receipt until it returns a receipt and check status is 0x1.
Body parameter
{
"rawTransaction": "0x02f8750182013285012a05f20085012d098220825208946928f3e126dbac9923d52300fdef714b280b305c870dd09beac4d71c80c001a09723dc578adc6e2ae34c505a895ef21655e9c85dc9c296d9b4098975e91bc8a3a0764f36e553595cf61f14f8756cb4611c4d5099d93fda66007f7872ea5b287ad3"
}
๐ ๏ธ Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | true | none |
| ยป rawTransaction | body | string | true | Signed, RLP-encoded transaction as a 0x-prefixed hex string. The example is a real EIP-1559 (type 0x02) mainnet transfer of 0.003888542774515484 ETH. |
Example responses
200 Response
{
"transactionHash": "0x034f561a3af0d2ea225dee1f9539fdb5c77769b85cecadf1bfda9bea8e178f01"
}
422 Response
{
"error": "Field \"rawTransaction\" is required and must be a string"
}
500 Response
{
"error": "Could not connect to ETH node."
}
๐ Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Transaction hash returned by the node. Accepted into the pool, not yet mined โ the hash below is the one produced by the raw transaction in the request example. | Inline |
| 422 | Unprocessable Entity | Missing rawTransaction. The legacy field name signedTransaction is also accepted as an alias. | Inline |
| 500 | Internal Server Error | Node unreachable, or it rejected the transaction (bad signature, nonce already used, fee below the pool minimum). | Inline |
๐ Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ยป transactionHash | string | false | none | none |
Status Code 422
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ยป error | string | false | none | none |
Status Code 500
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ยป error | string | false | none | none |