Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

JSON-RPC

Submit Raw Transaction

POST /rpc

Accepts JSON-RPC 2.0 eth_sendRawTransaction requests. The service extracts the chainId from the transaction, validates it against configured chains, and stores it for broadcasting.

Request

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_sendRawTransaction",
  "params": ["0x...signed_tx_hex..."]
}
FieldTypeRequiredDescription
jsonrpcstringYesMust be "2.0"
idanyNoRequest identifier
methodstringYesMust be "eth_sendRawTransaction"
paramsarrayYesArray with single hex-encoded signed transaction

Response (Success)

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x...tx_hash..."
}

Response (Error)

{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32602,
    "message": "unsupported chainId 1"
  }
}
CodeMeaning
-32600Invalid request (malformed JSON-RPC)
-32601Method not found
-32602Invalid params (bad tx, unsupported chain, expired, etc.)
-32603Internal error