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