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

0.1.16 • Public • Published

Chia JS

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

API

FullNode

Wallet

Connection Management

Package Sidebar

Install

npm i chia-js

Weekly Downloads

0

Version

0.1.16

License

MIT

Unpacked Size

157 kB

Total Files

185

Last publish

Collaborators

  • chiaforce