News for hackers. Stuff that matters.

mononaut

Thank you!

Yeah, there's a lightweight pruned node running on the back end that supplies all of the transaction data and mempool statistics.

Sizing based on byte size is a great idea, I'll think about adding that as an option.

Thanks!

Yeah, keysend would be perfect for this. Last time I checked there wasn't quite enough support across the more popular lightning wallets, but I'm definitely keen to switch over once the feature gains more traction.

Hi! I've spent the last few weeks developing a visualization of live Bitcoin activity, which shows how new transactions pile up in the mempool before being packaged into blocks.

Whenever I make Bitcoin transactions, I tend to sit mindlessly refreshing a block explorer until they're confirmed. My aim with this project was to come up with something a bit more engaging to watch while waiting for the next block.

The front end is built in Svelte, with the visualization itself rendered in vanilla WebGL. On the back there's an Elixir server which consumes ZeroMQ events emitted by a local Bitcoin node, parses the raw block and transaction data, and forwards it over websockets to any connected clients.

This was my first foray into both Svelte and Elixir/Erlang (coming from a professional background of mostly Vue, Node and Python), so the whole project was a bit of a learning exercise.

Aside from playing with those bits of new tech, I particularly enjoyed the challenge of designing the Mondrian-style online square packing algorithm, and streamlining the graphics pipeline to handle several thousand separately animated squares without hammering the processor or frame rate too hard.

I'd love to hear any feedback or questions!