1.4.2 • Published 11 months ago

@pugdag/grpc v1.4.2

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

Pugdag gRPC interface

Pugdag gRPC module is a basic request/response wrapper for interfacing with Pugdag

Installing pugdag-grpc

npm install -g @pugdag/grpc

Cloning pugdag-grpc

git clone https://github.com/Pugdag/node-pugdag-grpc
cd node-pugdag-grpc
npm install

Example

const { Client } = require('@pugdag/grpc');

const client = new Client({
    host:"127.0.0.1:26589"
});
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);
})
1.4.2

11 months ago

1.4.1

12 months ago