Skip to main content
Glama
query.lcd.js1.98 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LCDQueryClient = void 0; class LCDQueryClient { req; constructor({ requestClient }) { this.req = requestClient; this.feeTokens = this.feeTokens.bind(this); this.denomSpotPrice = this.denomSpotPrice.bind(this); this.denomPoolId = this.denomPoolId.bind(this); this.baseDenom = this.baseDenom.bind(this); this.getEipBaseFee = this.getEipBaseFee.bind(this); } /* FeeTokens returns a list of all the whitelisted fee tokens and their corresponding pools. It does not include the BaseDenom, which has its own query endpoint */ async feeTokens(_params = {}) { const endpoint = `osmosis/txfees/v1beta1/fee_tokens`; return await this.req.get(endpoint); } /* DenomSpotPrice returns all spot prices by each registered token denom. */ async denomSpotPrice(params) { const options = { params: {} }; if (typeof params?.denom !== "undefined") { options.params.denom = params.denom; } const endpoint = `osmosis/txfees/v1beta1/spot_price_by_denom`; return await this.req.get(endpoint, options); } /* Returns the poolID for a specified denom input. */ async denomPoolId(params) { const endpoint = `osmosis/txfees/v1beta1/denom_pool_id/${params.denom}`; return await this.req.get(endpoint); } /* Returns a list of all base denom tokens and their corresponding pools. */ async baseDenom(_params = {}) { const endpoint = `osmosis/txfees/v1beta1/base_denom`; return await this.req.get(endpoint); } /* Returns a list of all base denom tokens and their corresponding pools. */ async getEipBaseFee(_params = {}) { const endpoint = `osmosis/txfees/v1beta1/cur_eip_base_fee`; return await this.req.get(endpoint); } } 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