TypeScript client for communicating with Chia RPC interfaces. All API calls return promises.
import { FullNode } from 'chia-client';
const fullNode = new FullNode({
protocol: 'http',
hostname: 'localhost',
port: 8555
});
const blockchain = await fullNode.getBlockchainState();
import { Wallet } from 'chia-client';
const wallet = new Wallet({
protocol: 'http',
hostname: 'localhost',
port: 8555
});
const mnemonic = await wallet.generateMnemonic();
This client is provided by Chia Blockchain Explorer.