Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zcah

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zcah

zcash library for Node

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

zcash

:dollar: Minimal Zcash library for Node.js

Note: This library has been succeeded by the isomorphic library stdrpc.

npm install zcash --save

Features

  • A fast, concise codebase, with zero dependencies.
  • Supports all commands listed in the zcash Payment API.
  • Test suite!

To Do

  • Write a more full test suite.

API

Zcash.auto()

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().then(addresses => {
	console.log(addresses);
});

new Zcash(options)

Returns a new Zcash instances, with the specified options.

options

Type: object

username

The RPC username.

Type: string

password

The RPC password.

Type: string

host

The RPC host.

Type: string

port

The RPC port.

Type: number

const Zcash = require("zcash");

const rpc = new Zcash({
	username: "__username__",
	password: "__password__"
});

rpc.z_listaddresses().then(addresses => {
	console.log(addresses);
});
[ 'zcW36oxxUKViWZsFUb6SUDLr61b3N6EaY9oRt8zPYhxFAUGRwUNCLuGFfd2yxYrDgM5ouLkTDHMRdGNgVqJgriHncbjRedN' ]

FAQs

Package last updated on 01 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc