Waves gRPC services
Installation
If you are using npm:
npm i waves-grpc-services-client
If you are using yarn:
yarn add waves-grpc-services-client
Examples
Blockchain Updates
import { BlockchainUpdates } from 'waves-grpc-services-client';
const blockchainUpdatesBuilder = BlockchainUpdates.builder();
const blockchainUpdates = blockchainUpdatesBuilder
.buAddress('grpc.wavesnodes.com:6881')
.from(3528000)
.to(3528050)
.onData(({ height }) => {
console.log(height);
})
.build();
blockchainUpdates.start();
AccountsApi
import { AccountsApi } from 'waves-grpc-services-client';
const accountsApi = new AccountsApi();
accountsApi.fetchState('3P8qJyxUqizCWWtEn2zsLZVPzZAjdNGppB1').then((entries) => {
});