Skip to main content

ChainGate 1.3 — Real-time events in the SDK: onBlock, onBalance, onTransaction

· 4 min read

Earlier this week the API learned to push events over WebSocket. Today the SDK does the work for you: subscribe with a callback and stop polling. New blocks, balance changes, transactions, pending activity and contract interactions arrive as typed events on Bitcoin, Litecoin, Dogecoin, Bitcoin Cash, Bitcoin Testnet, Ethereum and Avalanche — no sockets to open, no reconnection code, no JSON to parse.

import { ChainGate } from 'chaingate'

const cg = new ChainGate()
const btc = cg.explore(cg.networks.bitcoin)

btc.onBlock((block) => console.log(`Block ${block.height} — ${block.numTxs} transactions`))

btc.onBalance('bc1q...', async ({ confirmed }) => {
console.log('New balance:', confirmed.base(), 'BTC', '≈', await confirmed.toCurrency('usd'), 'USD')
})

Real-time events — follow blocks, balances and transactions over WebSocket

· 4 min read

The ChainGate API can now push events to you as they happen. Open a single WebSocket connection, subscribe to the addresses and channels you care about, and receive new blocks, balance changes, transaction activity and pending transactions the moment they land — no polling loops, no block scanning, no third-party webhook service.

Events are available today on Bitcoin, Litecoin, Dogecoin, Bitcoin Cash, Bitcoin Testnet, Ethereum and Avalanche, and they are included with the free API key.

ChainGate 1.0 is here — One SDK, every blockchain, zero compromises

· 6 min read

ChainGate 1.0 is the first TypeScript SDK that lets you create wallets, sign transactions, query balances, and explore blockchain data across every major network — with a single, unified API. No ethers.js. No chain-specific boilerplate. Just npm install chaingate and you're building.

This isn't a minor version bump — it's a complete rewrite from the ground up. New wallet architecture, new connector system, new transaction pipeline, native crypto signing, and first-class support for both EVM and UTXO chains. If you've been looking for a single library to replace your patchwork of blockchain tools, this is it.

Market data now included in /global/networksInfo

· 2 min read

The /global/networksInfo endpoint now returns market data alongside network status, and we've added support for 20+ new EVM networks.

Previously, you needed to call both /global/markets and /global/networksInfo to get complete network information. Now everything is unified in a single response.

New /global/networksInfo endpoint

· One min read

We've added a new endpoint that returns network status for all supported EVM chains in a single request.

Previously, you needed to call /{network}/networkStatus separately for each network. Now you can get all network data at once with /global/networksInfo.

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.

New Block Endpoints & Deprecations

· 2 min read

ChainGate API v0.21 introduces new dedicated block endpoints for EVM and UTXO networks. These are more powerful, standardized, and ready for modern applications.