Skip to content

aspectron/kaspa-grpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kaspa gRPC interface

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

Usage

Clone the following repository:

$ git clone https://github.com/aspectron/kaspa-grpc

Example

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

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

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •