Skip to main content
Glama
query.lcd.js1.52 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LCDQueryClient = void 0; //@ts-nocheck const helpers_1 = require("../../../helpers"); class LCDQueryClient { req; constructor({ requestClient }) { this.req = requestClient; this.pools = this.pools.bind(this); this.params = this.params.bind(this); this.contractInfoByPoolId = this.contractInfoByPoolId.bind(this); } /* Pools returns all cosmwasm pools */ async pools(params = { pagination: undefined }) { const options = { params: {} }; if (typeof params?.pagination !== "undefined") { (0, helpers_1.setPaginationParams)(options, params.pagination); } const endpoint = `osmosis/cosmwasmpool/v1beta1/pools`; return await this.req.get(endpoint, options); } /* Params returns the parameters of the x/cosmwasmpool module. */ async params(_params = {}) { const endpoint = `osmosis/cosmwasmpool/v1beta1/params`; return await this.req.get(endpoint); } /* ContractInfoByPoolId */ async contractInfoByPoolId(params) { const options = { params: {} }; if (typeof params?.poolId !== "undefined") { options.params.pool_id = params.poolId; } const endpoint = `osmosis/cosmwasmpool/v1beta1/contract_info`; 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