Chia Client Save

TypeScript client for Chia RPC interfaces.

Project README

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.

Open Source Agenda is not affiliated with "Chia Client" Project. README Source: freddiecoleman/chia-client
Stars
90
Open Issues
18
Last Commit
1 year ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating