@saturn-chain/dlt-rest-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.12 • Public • Published

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();

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

16

Version

1.0.12

License

ISC

Unpacked Size

43 kB

Total Files

9

Last publish

Collaborators

  • guenoledc