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

1.0.3 • Public • Published

Chia Client

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

Full Node

import { FullNode } from 'chia-client';

const fullNode = new FullNode({
    protocol: 'http',
    hostname: 'localhost',
    port: 8555
});

const blockchain = await fullNode.getBlockchainState();

Wallet

import { Wallet } from 'chia-client';

const wallet = new Wallet({
    protocol: 'http',
    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 @epaypool/chia-client

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

240 kB

Total Files

252

Last publish

Collaborators

  • epaypool.admin