@nexellia/grpc
TypeScript icon, indicating that this package has built-in type declarations

1.4.1 • Public • Published

Nexellia gRPC interface

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

Installing nexellia-grpc

npm install -g @nexellia/grpc

Cloning nexellia-grpc

git clone https://github.com/nexellia-network/node-nexellia-grpc
cd node-nexellia-grpc
npm install

Example

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

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

Readme

Keywords

none

Package Sidebar

Install

npm i @nexellia/grpc

Weekly Downloads

1

Version

1.4.1

License

ISC

Unpacked Size

97.5 kB

Total Files

20

Last publish

Collaborators

  • nexellia