Get realtime notification of transaction
var wsuri = "wss://www.blockonomics.co/payment/<bitcoin address>"
The response is returned in json format. Here is an example:
{"status": 0, "timestamp": 1470371749, "value": 167377096, "txid": "aed36253434b90e45ded86ccf1729f5d2acd78bd7665c54e62d5000035a8f6d8"}
- status is the status of transaction. 0-Unconfirmed, 1-Partially Confirmed, 2-Confirmed
- _timestamp _is the unix timestamp of transaction
- value is the recevied payment amount in satoshis
- txid is the id of the paying transaction