@interchainjs/cosmos-query
v0.0.8
Published
Query implementation generated by telescope for cosmos chains
Downloads
9
Readme
@interchainjs/cosmos-query
Query implementation generated by telescope for cosmos chains
Usage
npm install @interchainjs/cosmos-query
Make queries (taking querying validators
as example)
import { RpcQuery } from "@interchainjs/cosmos-query/rpc";
const rpcQuery = new RpcQuery(<rpc-endpoint>);
const { validators } = await rpcQuery.validators({
status: bondStatusToJSON(BondStatus.BOND_STATUS_BONDED),
});
Implementations
- query
- rpc query client from
@interchainjs/cosmos-query/rpc
- rpc query client from
License
MIT License (MIT) & Apache License
Copyright (c) 2024 Cosmology (https://cosmology.zone/)