Skip to content

zygimantas/albatross-rpc-client-ts

 
 

Repository files navigation

Nimiq RPC Client for TypeScript

A fully typed Nimiq RPC client for TypeScript.

How to use

Installation

npm install nimiq-rpc-client-ts

NIMIQ_SECRET

The development network is currently in a phase where we request developers to set up their own nodes.

Usage

It is structured the same way as the Rust RPC Client

// getClient() defined before
getClient().blockchain.getBlockNumber()
getClient().network.getPeerCount()
// use auto-complete to see all available methods

Need help?

Check the tests for examples on how to use the client here.

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.9%
  • JavaScript 0.1%