0.1.6 • Published 1 year ago

waves-grpc-services-client v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Waves gRPC clients 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) => {
    // do something
});
0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago