1

I am using the Blockcypher API for test bitcoin transactions and I have troubles with the websocket API endpoint. When sending the regular ping object after creating a new Websocket it works fine:

this.ws.onopen = () => {
  this.ws.send(JSON.stringify({"event": "ping"})) 

but when trying to check the confidence of a transaction like this we get an error

this.ws.onopen = () => { this.ws.send(JSON.stringify({event: 'tx-confidence', address:'<bitcoin address as string>', confidence:0.9}))

Is there anything wrong with the datatypes? Any help would be great!

API reference Event reference

Hans Tausend
  • 93
  • 2
  • 8
  • were you able to solve the issue? – Ronin Nov 14 '18 at 14:46
  • 1
    Hi Ronin, unfortunately not. I have contacted them but they did not respond. I have used normal Get requested with an setIntervall timer every 20 seconds (which should not expand the rate limit) – Hans Tausend Nov 19 '18 at 17:30
  • 1
    ok, thanks for your reply. you might want to consider using other services, such as blockchain.info :) – Ronin Nov 19 '18 at 23:37

1 Answers1

1

You probably reached the limit. Consider adding your BlockCypher token at the end of the websocket URL. This was somehow forgotten in the documentation.