@anuma-network/grpc
v1.4.2
Published
Node gRPC interface for Anuma
Downloads
10
Maintainers
Readme
Anuma gRPC interface
Anuma gRPC module is a basic request/response wrapper for interfacing with Anumad
Installing anuma-grpc
npm install -g @anuma-network/grpc
Cloning anuma-grpc
git clone https://github.com/AnumaNetwork/node-anuma-grpc
cd node-anuma-grpc
npm install
Example
const { Client } = require('@anuma-network/grpc');
const client = new Client({
host:"127.0.0.1:12512"
});
client.connect();
client.verbose = true;
try {
let response = await client.call('getMempoolEntriesRequest', { });
console.log(response);
} catch(ex) {
...
}
client.call('getVirtualSelectedParentBlueScoreRequest', { }).then((response)=>{
console.log(response);
}).catch((err)=>{
console.log('error:',err);
})