Waves gRPC services client
npm install waves-grpc-services-clientIf you are using npm:
``shell`
npm i waves-grpc-services-client
If you are using yarn:
`shell`
yarn add waves-grpc-services-client
[//]: # (## Usage)
[//]: # ()
[//]: # (### Blockchain Updates)
[//]: # ()
[//]: # (#### Builder methods)
[//]: # (buAddress(string) (required) )
[//]: # ()
[//]: # (label(string) used only for logging to distinguish one stream from another )
`js
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();
`
`js
import { AccountsApi } from 'waves-grpc-services-client';
const accountsApi = new AccountsApi();
accountsApi.fetchState('3P8qJyxUqizCWWtEn2zsLZVPzZAjdNGppB1').then((entries) => {
// do something
});
``