symbol-node-util
v2.1.1
Published
Symbol-Node-Util Module
Downloads
19
Readme
Symbol-Node-Util Module
This module retrieves the active node of the blockchain Symbol
Installation
npm install symbol-node-util
or
yarn add symbol-node-util
Usage
.ts
import { getActiveNode } from "symbol-node-util";
(async ()=>{
const node = await getActiveNode(152);
console.log(node);
})()
npx ts-node index.ts
.js
const nodeUtil = require("symbol-node-util");
(async() => {
const node = await nodeUtil.getActiveNode(104);
console.log(node);
})()
node index.js
Feature
- getActiveNode(NetworkType: number): Promise<string>