chia-client
TypeScript icon, indicating that this package has built-in type declarations

11.0.0 • Public • Published

Chia Client

TypeScript client for communicating with Chia RPC interfaces. All API calls return promises.

Install and Setup

npm install chia-client

Full Node

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);

Wallet

import { Wallet } from 'chia-client';

const wallet = new Wallet({
    protocol: 'https',
    hostname: 'localhost',
    port: 8555
});

const mnemonic = await wallet.generateMnemonic();

Credits

This client is provided by Chia Blockchain Explorer.

Readme

Keywords

Package Sidebar

Install

npm i chia-client

Weekly Downloads

15

Version

11.0.0

License

MIT

Unpacked Size

107 kB

Total Files

180

Last publish

Collaborators

  • fcoleman