BSV
$53.96
Vol 30.24m
0.93%
BTC
$96403
Vol 42517.76m
-1.05%
BCH
$453.17
Vol 329.99m
-0.7%
LTC
$101.77
Vol 786m
0.86%
DOGE
$0.32
Vol 4549.38m
-0.42%
Getting your Trinity Audio player ready...

Prolific Bitcoin developer Unwriter has released an update for Bitwork, the simple yet powerful Bitcoin data processing library. Bitwork now lets you connect to remote Bitcoin nodes as well as listen to multiple events from one Bitwork instance.

Unwriter took to Twitter to reveal the updates:

Connecting to remote Bitcoin nodes was theoretically possible in Bitwork’s original release. However, this version had a bug and whenever you attempted to connect to a remote node, it would return incorrect result. Unwriter has fixed this and all you have to do is specify the host attribute on Bitwork.

codes

The update also lets you listen to multiple events from one Bitwork instance. In the original release, you had to set up multiple instances if you wanted to listen to both Mempool and block events.

Unwriter also fixed a critical bug which returned corrupt transaction format. He stated:

“Some may have been seeing “Invalid argument type: script” errors lately. I am unsure where and when this started happening, but the engine started returning corrupt txs for certain requests. It was coming from one of the dependencies. Fixed.”

Unwriter released the original version of Bitwork in early September. Bitwork makes it easier to interact with the Bitcoin blockchain, similar to making HTTP GET requests. It achieves this by abstracting the complex networking APIs into a unified, easy-to-use interface that resembles a simple HTTP request.

Bitwork eliminates the need to work with the P2P protocol directly which is tedious and limited. Ideally, a developer should be able to interact with the P2P network with just a few lines of code, just like when dealing with HTTP. However, this is rarely the case.

The JSON-RPC protocol is meant to be a better alternative to P2P, making it easier to query the blockchain. However, since it doesn’t support streaming, it often crashes the nodes as the block gets larger.

Bitwork acts as an abstraction layer, allowing developers to interact with the blockchain without having to worry about these quirks. It uses the more reliable P2P protocol directly, and whenever necessary, turns to JSON-RPC.

Recommended for you

Google unveils ‘Willow’; Bernstein downplays quantum threat to Bitcoin
Google claims that Willow can eliminate common errors associated with quantum computing, while Bernstein analysts noted that Willow’s 105 qubits...
December 18, 2024
WhatsOnChain adds support for 1Sat Ordinals with new API set
WhatsOnChain now supports the 1Sat Ordinals with a set of APIs in beta testing; with this new development, developers can...
December 13, 2024
Advertisement
Advertisement
Advertisement