Home

Send transaction

POST
wss://ltcbook.nownodes.io/wss/{api_key}

Calls the sendTransaction method over a WebSocket connection.

Connection URL:

Copied!
wss://ltcbook.nownodes.io/wss/{{api_key}}

Open the connection, then send the message below as a text frame.

Example:

Copied!
wscat -c 'wss://ltcbook.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": "-22: TX decode failed. Make sure the tx has at least one input."}}}.

Body

application/json
object

Parameters

api_keystringrequiredpath

Your NOWNodes API key.

Response

200OK

A successful response.