Send transaction
POST
Calls the sendTransaction method over a WebSocket connection.
Connection URL:
Copied!
wss://ethbook-sepolia.nownodes.io/wss/{{api_key}}Open the connection, then send the message below as a text frame.
Example:
Copied!
wscat -c 'wss://ethbook-sepolia.nownodes.io/wss/YOUR_API_KEY'
> {"id":"13","method":"sendTransaction","params":{"hex":"<signed raw transaction hex>"}}A transaction the backend rejects returns an error object instead, for example
{"id": "13", "data": {"error": {"message": "invalid argument 0: json: cannot unmarshal hex string without 0x prefix into Go value of type hexutil.Bytes"}}}.
Body
application/json
object
Parameters
api_keystringrequiredpathYour NOWNodes API key.
Response
200OK
A successful response.