1.1.2 • Published 3 years ago

chia-client-with-configs v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Chia Client

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

Edit from chia-client by Freddie Coleman

Configs for using testnet

export CHIA_ROOT="~/.chia/[TEST_NET_FOLDER]"
export CHIA_FOLDER_PATH=CHIA_FOLDER_PATH
export CHIA_NET="testnet"

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.

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.0.2

3 years ago