Questions tagged [websockets]
19 questions
5
votes
1 answer
ZeroMQ Notifications in Browser JavaScript
I am trying to develop an online application primarily in JavaScript. As I am aware, the only way to receive notifications for unconfirmed/mempool transactions as they appear on the network is to utilize the -zmqpubrawtx or -zmqpubhashtx commands in…
OmegaLulz
- 51
- 3
5
votes
2 answers
Remove address sub from blockchain websocket API
According to the docs, Blockchain.info provides a websocket API that streams a few things:
All unconfirmed transactions using "op: unconfirmed_sub"
New blocks & the data they contain using "op: blocks_sub"
All new tx that are detected at a…
ACVentures
- 81
- 4
2
votes
0 answers
How to connect to an ElectrumX server using JavaScript WebSockets?
I'm trying to connect to an ElectrumX server from an HTML webpage. But I can't get a working connection.
I've tried with many servers from Electrum's servers.json list but none worked.
Here's the JavaScript code that I tried:
const socket = new…
M.K. Safi
- 143
- 6
2
votes
0 answers
How can one confirm that reported transactions on the exchange actually occur and are not due to wash-trading?
For instance, if I'm subscribed to binance's websocket trade stream.. and it is reporting trades.. how can one be assured that the trades are actually occuring and not just the exchange trading with itself or generating false data to pump up their…
crow
- 1
- 3
2
votes
1 answer
Trade Execution v.s. Trade Execution Update
Using the Bitfinex WebSocket API I am subscribing to trades.
The data I receive looks like this:
chanId msgType tradeID Timestamp Amount Price
[ 139260, 'te', [ 73962571, 1507383025000, 97.628437, 0.503 ] ]
[ 139260, 'tu', [ 73962571,…
seymar
- 131
- 5
1
vote
1 answer
Why public Electrum servers serving on websocket (WS) are so rare?
Couldn't find a single one. Only TCP or TLS.
Am I looking in the wrong place? ( https://1209k.com/bitcoin-eye/ele.php?chain=btc )
Igor Korsakov
- 113
- 4
1
vote
0 answers
Stratum Server with twisted: Worker Autoadd enabled, nut not working?
I have a problem with Twisted, It works but I have set the config.py the Param for USERS_AUTOADD = True but it doesnt works?
Already restarted my Ubuntu 14.04 LTS 64 bit, and Stratum too, but it never works. If you create the Worker in the Pool MPOS…
barks
- 31
- 3
1
vote
1 answer
print websocket messages in a textfile
I am doing a PhD in economics and I am currently working on bitcoin. I am trying to understand how senders decide how much fee they include in transactions. Since in a couple decades miners will be rewarded mostly with fees, I think this is an…
benjiw
- 37
- 3
1
vote
1 answer
Get a JavaScript notification when Bitcoin transaction arrives to a certain address
I'd like to implement a very simple address monitoring feature on a site I'm working on. I'd like to just be able to say "Listen to this address on the testnet for money to come in", and update the HTML on the page when BTC comes in. I realize…
opticon
- 111
- 2
1
vote
1 answer
MtGox socket.io streaming problem
MtGox Streaming API is down or is something wrong with the code.
I used this example https:// bitbucket.org/nitrous/mtgox-api/src/004c254993963baeb239ac7ac7f676b5024fc93f/socket/ws.client.html?at=master
You can see the example here…
leadsoft
- 13
- 2
1
vote
1 answer
Blockchain API not sending subscribed info
I'm having trouble receiving WebSocket messages for address-related events. Here is the code that I'm using (trackAddress gets called externally and I'm sure it sends the right thing). I also tried from an online WebSocket client (as seen in the…
DreamY
- 11
- 1
0
votes
1 answer
Bitfinex api v2 not returning candles
I am using bitfinex websockets v2 api in a Java application, to get the candles from a market. But I don't get any message back from the socket(not even an error).
I wonder what I am doing wrong. Also I noticed that I can't subscribe to the…
sfrj
- 163
- 8
0
votes
1 answer
Blockchain.info websocket not working
I have been trying to get this code to work and I get a blank page no response at all from the server what is wrong with the code? or has blockchain.info changed something in their code? Can some help???
Here is the code i'm using :…
Nelson101
- 5
- 2
0
votes
0 answers
blockchain.info websocket: Error code = 1006, Unexpected end of stream
I am using javax.websockets to have a webSocket connection with Blockchain.info, except that it closes down after random intervals, and I can see the close reason as:
'Unexpected end of stream', Error Code = 1006.
I am not able to figure out why…
Syed Waqas
- 143
- 5
0
votes
1 answer
blockchain.com websocket not working
I started to listen to the "wss://ws.blockchain.info/inv" websocket address in the link below, but none of the transactions I made were sent to the messages. Later, when I tried the blockcyper's websocket, all the transactions came. Currently, I am…
BeycanDeveloper
- 11
- 3