1.0.12 • Published 2 years ago

@saturn-chain/dlt-rest-api v1.0.12

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

dlt-rest-api: access the dlt-services via http api

Expose an object that encapsulates the web api exposed by the dlt-service process.

Usage:

npm i --save @saturn-chain/dlt-rest-api

Includes typescript types declaration

Documentation

import { DLTNodeApi } from "@saturn-chain/dlt-rest-api";
import { DLTProtocolEnum } from "@saturn-chain/dlt-rest-api/dist/domain/blockchain";
const node = new DLTNodeApi("http://localhost:8080", DLTProtocolEnum.Ethererum);

const walletAddress = "0x123...999";
const wallet = node.getWallet(walletAddress));
const balance: bigint = await wallet.getBalance();
1.0.12

2 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.7

3 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago