
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
grpc-bchrpc-node
Advanced tools
This package provides a gRPC client for connecting to BCHD. SLP support is provided when the full node has SLP index enabled, which is currently under development here.
$ npm i grpc-bchrpc-node
(for web-browser based projects see this version)
$ git clone https://github.com/simpleledgerinc/grpc-bchrpc-node
$ npm i
$ npm test
./bchrpc.proto
)$ npm i
$ npm run build
In this simple example we create a new client that connects to bchd.greyh.at:8335
and calls the getRawTransaction
rpc endpoint and prints the result to the console. We use reversedHashOrder: true
to automatically reverse the txid endianness because BCHD expects to receive transaction hashes without endianness reversed.
let grpc = new GrpcClient();
let txid = "11556da6ee3cb1d14727b3a8f4b37093b6fecd2bc7d577a02b4e98b7be58a7e8";
let res = await grpc.getRawTransaction({ hash: txid, reversedHashOrder: true });
console.log(Buffer.from(res.getTransaction_asU8()).toString('hex'));
See also the test
directory for more examples of how to use.
Some integration tests have been added. Extensive test coverage is not planned currently planned since this library is just a wrapper for BCHD's gRPC interface.
$ npm test
To connect to a local BCHD server you will need to utilize a self-signed certificate. Simply start BCHD using rpccert=
and rpckey=
flags pointing to a location where to save new certificate and private key files.
Then you can connect using the following GrpcClient
constructor:
const grpc = new GrpcClient({ url: "localhost:8335", rootCertPath: "<path to cert>"});
FAQs
BCHD gRPC interface for node.js clients.
The npm package grpc-bchrpc-node receives a total of 134 weekly downloads. As such, grpc-bchrpc-node popularity was classified as not popular.
We found that grpc-bchrpc-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.