npub1yx…c399s on Nostr: I want to build a web wallet that uses Compact Block Filters To do it, I think I need ...
I want to build a web wallet that uses Compact Block Filters
To do it, I think I need a reliable way to get data from bitcoin nodes in a web context, particularly (1) block headers (2) compact block filters (3) blocks themselves
Has anyone done any research into this? I found at least one electrum server that exposes its p2p interface via websockets, but I don't know if any bitcoin nodes do that. I thought about getting block headers from electrum servers and then downloading blocks from services like mempool_space and blockstream_info, but I suspect their rate limits would stop me from downloading more than ~100 blocks, and that still leaves me with the problem of finding someone that serves compact block filters in a web-friendly way.
What to do? Has anyone thought about running websockify on top of a bitcoin node to expose its p2p interface to the web? Maybe if a few nodes did that, a directory of web-friendly bitcoin nodes could be created, and web-SPV wallets could download blocks and block filters from them. Is that a good idea? Seeking feedback 🙂
Published at
2025-10-16 22:37:59 UTCEvent JSON
{
"id": "54e44c2714a16133edd9e3561b355f2e00aa2e9579234979c4f03f3760ee2e89",
"pubkey": "2183e94758481d0f124fbd93c56ccaa45e7e545ceeb8d52848f98253f497b975",
"created_at": 1760654279,
"kind": 1,
"tags": [],
"content": "I want to build a web wallet that uses Compact Block Filters\n\nTo do it, I think I need a reliable way to get data from bitcoin nodes in a web context, particularly (1) block headers (2) compact block filters (3) blocks themselves\n\nHas anyone done any research into this? I found at least one electrum server that exposes its p2p interface via websockets, but I don't know if any bitcoin nodes do that. I thought about getting block headers from electrum servers and then downloading blocks from services like mempool_space and blockstream_info, but I suspect their rate limits would stop me from downloading more than ~100 blocks, and that still leaves me with the problem of finding someone that serves compact block filters in a web-friendly way.\n\nWhat to do? Has anyone thought about running websockify on top of a bitcoin node to expose its p2p interface to the web? Maybe if a few nodes did that, a directory of web-friendly bitcoin nodes could be created, and web-SPV wallets could download blocks and block filters from them. Is that a good idea? Seeking feedback 🙂",
"sig": "f97f5ef67e1fc70f60b9fdaac4ae18c26f52d231b756f22e6eb376accae44bba3a02390432a4fef890de2036c1f5aa55ba0b982e86f3292d445531c2dd4310f1"
}