+-+-+ +-+ +-+-+-+-+
|G|O| |4| |H|I|V|E|
+-+-+ +-+ +-+-+-+-+

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

[v7.0.0] Hive-tx - JavaScript/TypeScript library for Hive Blockchain

BY: @mahdiyari | CREATED: Dec. 6, 2025, 1:12 a.m. | VOTES: 635 | PAYOUT: $58.10 | [ VOTE ]

[IMAGE: https://files.peakd.com/file/peakd-hive/mahdiyari/23tknHgYp4vWqN6pk7ovmLRrazNfFzHWBEHtCYTouAbuhroEQhtURhzQKFEasYhCNwyQo.png]

This is a technical post for developers.

What is hive-tx? It is a lightweight and complete TypeScript/JavaScript toolkit for building on Hive with minimal dependencies.

v7.0.0

Added more features but also reduced the overall size of the library. I'll add more QoL features going forward. But for now, I think this is a good place for a stable release.

The highlight of the new version for me is callWithQuorum() which cross-checks the API result with multiple nodes. Trusting one single public node in sensitive tasks is a bit risky. With this, your confidence in the data can be quite high. The function rotates the nodes and calls random nodes every time and return the result once enough nodes (passed as quorum to function) agree on the result. By default quorum is 2. Meaning two nodes must agree on the result.

Example call:

const accounts = await callWithQuorum('condenser_api.get_accounts', [['username']], 2)
console.log('Account:', result[0])

Hopefully I will be able to maintain and improve this library further. There have been a lot of changes that can break the older apps. v7.0.0 requires node version 20+. So test and let me know. Feature requests are welcome.

Here is the rough list of the changes:

Major Changes

Complete TypeScript rewrite of the library with significant API improvements and breaking changes.

Added

Changed

https://github.com/mahdiyari/hive-tx
https://www.npmjs.com/package/hive-tx

Consider giving a star on GitHub repository ;P

TAGS: [ #hive ] [ #dev ] [ #hive-tx ] [ #typescript ] [ #javascript ]

Replies

@hivebuzz | Dec. 7, 2025, 4:01 a.m. | Votes: 0 | [ VOTE ]

Congratulations @mahdiyari! Your post has been a top performer on the Hive blockchain and you have been rewarded with this rare badge

Post with the highest payout of the day.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out our last posts:

Our Hive Power Delegations to the November PUM WinnersFeedback from the December Hive Power Up DayHive Power Up Month Challenge - November 2025 Winners List

@boostervoter | Dec. 7, 2025, 9:15 a.m. | Votes: 0 | [ VOTE ]

This post received a free 6% upvote from Hive Booster. Visit https://hivebooster.xyz to receive a free upvote for your post!

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>