๐ต Minimal Zcash library for Node.js
npm install zcash --save
- A fast, concise codebase, with zero dependencies.
- Supports all commands listed in the zcash Payment API.
- Test suite!
- Write a more full test suite.
Returns a new Zcash
instance, after reading the username and password from HOME/.zcash/zcash.conf
. You can then use all the RPC commands as normal.
const rpc = Zcash.auto();
rpc.z_listaddresses((err, addresses) => {
console.log(addresses);
});
Returns a new Zcash
instances, with the specified options.
Type: object
The RPC username.
Type: string
The RPC password.
Type: string
The RPC host.
Type: string
The RPC port.
Type: number
const Zcash = require("zcash");
const rpc = new Zcash({
user: "__username__",
pass: "__password__"
});
rpc.z_listaddresses((err, addresses) => {
console.log(addresses);
});
[ 'zcW36oxxUKViWZsFUb6SUDLr61b3N6EaY9oRt8zPYhxFAUGRwUNCLuGFfd2yxYrDgM5ouLkTDHMRdGNgVqJgriHncbjRedN' ]