Skip to main content
Glama
query.lcd.js981 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LCDQueryClient = void 0; class LCDQueryClient { req; constructor({ requestClient }) { this.req = requestClient; this.epochInfos = this.epochInfos.bind(this); this.currentEpoch = this.currentEpoch.bind(this); } /* EpochInfos provide running epochInfos */ async epochInfos(_params = {}) { const endpoint = `osmosis/epochs/v1beta1/epochs`; return await this.req.get(endpoint); } /* CurrentEpoch provide current epoch of specified identifier */ async currentEpoch(params) { const options = { params: {} }; if (typeof params?.identifier !== "undefined") { options.params.identifier = params.identifier; } const endpoint = `osmosis/epochs/v1beta1/current_epoch`; return await this.req.get(endpoint, options); } } exports.LCDQueryClient = LCDQueryClient;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MyronKoch-dev/osmosis-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server