Htmlcoin JSON RPC with type validation
npm install althashd-rpcHtmlcoin JSON RPC for TypeScript with Response Type Enforcement
npm install althashd-rpc
``typescript
import AlthashRpc from 'althashd-rpc';
const rpc = new AlthashRpc('http://localhost:4889');
const balance = await rpc.getBalance();
console.log(balance);
`
This library provides TypeScript types for RPC commands and validates the responses
using io-ts`. If the response does not match the schema, an error is thrown.
Andreas Brekken
Port to Htmlcoin on Althash by Leandro Machado with break changes
MIT