Damus
Super Testnet · 3w
It's annoyingly hard to use bitcoin's p2p layer from browsers. BTC nodes don't understand the handshakes browsers do when they make GET/POST requests, unless you use RPC, which is permissioned. It's c...
Super Testnet profile picture
A few services make data from bitcoin's p2p layer *available* to browsers, e.g. block explorers, some electrum servers (including esplora servers), and block-dn. But it'd be great if browsers could talk to *any* node instead of placing the load directly on those limited services.
1
Super Testnet · 3w
On that note, did you know the websocat tool can expose any TCP port (including bitcoin's) as if it was a websocket port? Yep! It's got a built-in converter that will do the websocket handshake and then directly pipe TCP data to the browser. Consider running it on your node!