WebSocket API
WebSocket API provide real-time data coming from 3xpl.com blockchain explorer.
As a developer-friendly solution we offer AsyncAPI based document: stream.3xpl.net-asyncapi.yml. The AsyncAPI Generator is a tool that you can use to generate code examples (SDK) for preferred language based on provided AsyncAPI document.
Common features
- The base endpoint is: wss://stream.3xpl.net. Public beta server available without authorization.
- Once the socket is open you can subscribe to a public channel by sending a subscribe request message.
- Every message is JSON encoded.
- A special JSON value
null
used as a PING message. You can simply ignore it on a client side upon receiving. You can ignore such messages or use them to detect broken connections (nothing received from a server for a long time). Server sends PING message every 25 seconds. - Server supports reconnect scenario and provide history for missed data automatically.
Available blockchains
All channel contains {:blockchain}
parameter.
You can get list of available blockchains directly from api main stats endpoint: https://api.3xpl.com/ (api token key required)
List of available blockchains
Id | Title |
---|---|
bitcoin | Bitcoin |
ethereum | Ethereum |
bitcoin-cash | Bitcoin Cash |
bnb | BNB |
dogecoin | Dogecoin |
litecoin | Litecoin |
ton | TON |
zcash | Zcash |