Skip to content

About

TypeScript client for Chia RPC interfaces.

Topics

Resources

Stars

87 stars

Watchers

5 watching

Forks

Latest commit

 

History

158 Commits

Folders and files

Repository files navigation

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.

About

TypeScript client for Chia RPC interfaces.

Topics

Resources

Stars

87 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages