-
Notifications
You must be signed in to change notification settings - Fork 195
02QueryingChainPeggy
Ivan Angelkoski edited this page Jun 12, 2023
·
4 revisions
Example code snippets to query the chain via the peggy api.
- Get parameters related to peggy
import { ChainGrpcPeggyApi } from "@injectivelabs/sdk-ts";
import { getNetworkEndpoints, Network } from "@injectivelabs/networks";
const endpoints = getNetworkEndpoints(Network.TestnetK8s);
const chainGrpcPeggyApi = new ChainGrpcPeggyApi(endpoints.grpc);
const moduleParams = await chainGrpcPeggyApi.fetchModuleParams();
console.log(moduleParams);
Powering the future of decentralized finance.