Send transaction
POST
Calls the sendTransaction method over a WebSocket connection.
Connection URL:
Copied!
wss://bch.nownodes.io/wss/{{api_key}}Open the connection, then send the message below as a text frame.
Example:
Copied!
wscat -c 'wss://bch.nownodes.io/wss/YOUR_API_KEY'
> {"id":"13","method":"sendTransaction","params":{"hex":"0100000001d0cc0fded22f3ff5f93fa03be72a570d7458f65aa4266fe7dce6b6bf945b1aab010000006a4730440220268792155a20e4b242a1771f2469484504bfb92a3bba1efd4be6f8b2733f4a7202202414bd9dd8655594e97e94fa6e8c846c40f32b3ece6a200513c88802aebb122f41210332aa9c07e6a606e55298edd927629c9816a0fe3bc45623a1ade1c537297c24cdffffffff0200000000000000000b6a026d020649646561733a4e4e0000000000001976a91487285e03bf5e5f4a923b0e6361ffc5f92c7a4b0f88ac00000000"}}A transaction the backend rejects returns an error object instead, for example
{"id":"13","data":{"error":{"message":"-22: TX decode failed"}}}.
Body
application/json
object
Parameters
api_keystringrequiredpathYour NOWNodes API key.
Response
200OK
A successful response.