UNPKG

@bandprotocol/bandchain.js

Version:

TypeScript library for Cosmos SDK and BandChain

23 lines (22 loc) 782 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LCDQueryClient = void 0; class LCDQueryClient { req; constructor({ requestClient }) { this.req = requestClient; this.chainID = this.chainID.bind(this); this.eVMValidators = this.eVMValidators.bind(this); } /* ChainID queries the chain ID of this node */ async chainID(_params = {}) { const endpoint = `bandchain/v1/chain_id`; return await this.req.get(endpoint); } /* EVMValidators queries current list of validator's address and power */ async eVMValidators(_params = {}) { const endpoint = `bandchain/v1/evm-validators`; return await this.req.get(endpoint); } } exports.LCDQueryClient = LCDQueryClient;