2.0.0 • Published 1 year ago

@btc-helpers/rpc v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@btc-helpers/rpc

Installation

npm install @btc-helpers/rpc

Example

import RpcClient from "@btc-helpers/rpc";

const rpc = new RpcClient("http://devnet:devnet@localhost:8332").Typed; // .Typed lets TypeScript know about the available RPC endpoints

await rpc.listunspent({
  addresses: ["mqVnk6NPRdhntvfm4hh9vvjiRkFDUuSYsH"],
});