Home

Send transaction

POST
wss://ltc-testnet.nownodes.io/wss/{api_key}

Calls the sendTransaction method over a WebSocket connection.

Connection URL:

Copied!
wss://ltc-testnet.nownodes.io/wss/{{api_key}}

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

Example:

Copied!
wscat -c 'wss://ltc-testnet.nownodes.io/wss/YOUR_API_KEY'
> {"id":"13","method":"sendTransaction","params":{"hex":"0200000001b7d4c48e6553283b61bd09c508f58a707d2bd621e4f30d6e82f31c94e3ce3469000000006a47304402205948d845c6027e5ce49a182aeb19d07e54034e7e920025761cf71604f350fc790220015c57d8008a558cb2ebe90e0c182dfef203d0a8896b9609b5da620c7ef7571b01210246d3efb666e39f43242f50048df9baf47326e6e918ae20fa79f8ff0491a415aaffffffff0137c02d00000000001600142eeefc3d45c59f8d286702ba53c7117fc572841000000000"}}

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.