Home

Send transaction

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

Calls the sendTransaction method over a WebSocket connection.

Connection URL:

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

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

Example:

Copied!
wscat -c 'wss://dash.nownodes.io/wss/YOUR_API_KEY'
> {"id":"13","method":"sendTransaction","params":{"hex":"01000000019eb11566cc1a3147cb3673a5fbbe9bd00138c8a2eef565ed7681bb67b5f96fe6150000006a4730440220203a653d6295af1c06bcb52574acc96fd30ea1ffa9637ece7f269f9325fb0e50022053c3e21378b4924a80113088b13a5f775cb0bc74e8e36090675004d74797eee0012102ce387685d901544a9f0f0f3a492152196f9c1b086646343e1d80938ada3a7d67ffffffff01932ddd00000000001976a91496f349dc5ecacc35043c317053cdc8a15d92fbb588ac00000000"}}

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.