@btc-helpers/rpc
v2.0.0
Published
A somewhat typesafe Bitcoin RPC library
Downloads
48
Readme
@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"],
});