A TypeScript-based gRPC client for the Kaspa cryptocurrency network (v1.1.8). Provides auto-generated typed methods for RPC calls, connection failover across multiple servers, and experimental wallet/account management via WASM. Requires Node >=16.14. Supports both Node.js and browser (CodeSandbox demo). Alternative to direct gRPC usage with built-in failover and typed interfaces.
npm install kaspa-rpc-clientNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize ClientWrapper with a host, get a client, and make basic RPC calls (getBlock, getBalanceByAddress).
Use for testing only; avoid in production until stable release.
Migrate from direct Client usage to ClientWrapper with initialize() call.
Use TypeScript with ES module resolution or set module to NodeNext.
Always specify port in hosts array.
Use import instead of require(), or set type: module in package.json.
Provide at least one host string (e.g., ['seeder2.kaspad.net:16110']).
Upgrade to v1.0.0+ and call wrapper.initialize() before getClient().
No dependency data recorded yet.