Skip to main content

πŸš€ A Massive Refactor + React Support

Β· 2 min read

Big news: ChainGate just got its biggest upgrade yet.

Version 0.6.0 delivers a full internal restructuring, setting the foundation for the upcoming 1.0 release β€” along with a cleaner API, improved performance, and initial support for React apps.

What's new in 0.6.0​

πŸ”§ Total codebase refactor​

The internal architecture of ChainGate has been completely restructured. This enables better modularity, clearer logic, and smoother upgrades going forward β€” all in preparation for the upcoming 1.0 stable release.

🚫 No more client dependency​

The chaingate framework no longer depends on the separate ChainGate client. Everything is now managed internally. To initialize utility methods, simply use:

const { utils } = await initializeUtils({ apiKey })

No need to manually configure clients anymore.

πŸͺ² Bug fixes galore​

Many long-standing bugs have been addressed. You should notice increased stability and fewer edge-case issues.

πŸ”„ API changes: .amount and .amountFiat​

Amount helpers have moved to a new, more consistent location:

currency.utils.amount('0.05')
currency.utils.amountFiat('100', 'eur')

This replaces the older currency.amount(...) pattern. All amount-related logic is now accessed via .utils.

βš›οΈ Initial React support​

The new release includes first-class support for React:

  • useWallet() β€” manage and access wallet context in your app
  • useUtils() β€” access currency utility methods across components

More React hooks are on the way!


Upgrade to 0.6.0 now and get ready for what’s coming next. The path to 1.0 starts here.