Package Exports
- @dashevo/dapi-grpc
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dashevo/dapi-grpc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
DAPI GRPC
Decentralized API GRPC definition files and generated clients
Table of Contents
Install
npm install @dashevo/dapi-grpcUsage
import { TransactionsFilterStreamPromiseClient, BloomFilter } from '@dashevo/dapi-grpc';
const client = new TransactionsFilterStreamPromiseClient('http://localhost:8080');
const filter = new BloomFilter();
filter.setBytes('...');
const stream = client.getTransactionsByFilter(filter);
stream.on('data', function(response) {
console.log(response.getData());
});
stream.on('status', function(status) {
console.log(status.code);
console.log(status.details);
console.log(status.metadata);
});
stream.on('end', function(end) {
// stream end signal
});Maintainer
Contributing
Feel free to dive in! Open an issue or submit PRs.
License
MIT © Dash Core Group, Inc.