UNPKG

interchainjs

Version:

InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.

55 lines (54 loc) 3.19 kB
import { GetNodeInfoRequest, GetNodeInfoResponse, GetSyncingRequest, GetSyncingResponse, GetLatestBlockRequest, GetLatestBlockResponse, GetBlockByHeightRequest, GetBlockByHeightResponse, GetLatestValidatorSetRequest, GetLatestValidatorSetResponse, GetValidatorSetByHeightRequest, GetValidatorSetByHeightResponse, ABCIQueryRequest, ABCIQueryResponse } from "./query"; /** * GetNodeInfo queries the current node info. * @name getGetNodeInfo * @package cosmos.base.tendermint.v1beta1 * @see proto service: cosmos.base.tendermint.v1beta1.GetNodeInfo */ export declare const getGetNodeInfo: (client: import("../../../../helper-func-types").EndpointOrRpc, request: GetNodeInfoRequest) => Promise<GetNodeInfoResponse>; /** * GetSyncing queries node syncing. * @name getGetSyncing * @package cosmos.base.tendermint.v1beta1 * @see proto service: cosmos.base.tendermint.v1beta1.GetSyncing */ export declare const getGetSyncing: (client: import("../../../../helper-func-types").EndpointOrRpc, request: GetSyncingRequest) => Promise<GetSyncingResponse>; /** * GetLatestBlock returns the latest block. * @name getGetLatestBlock * @package cosmos.base.tendermint.v1beta1 * @see proto service: cosmos.base.tendermint.v1beta1.GetLatestBlock */ export declare const getGetLatestBlock: (client: import("../../../../helper-func-types").EndpointOrRpc, request: GetLatestBlockRequest) => Promise<GetLatestBlockResponse>; /** * GetBlockByHeight queries block for given height. * @name getGetBlockByHeight * @package cosmos.base.tendermint.v1beta1 * @see proto service: cosmos.base.tendermint.v1beta1.GetBlockByHeight */ export declare const getGetBlockByHeight: (client: import("../../../../helper-func-types").EndpointOrRpc, request: GetBlockByHeightRequest) => Promise<GetBlockByHeightResponse>; /** * GetLatestValidatorSet queries latest validator-set. * @name getGetLatestValidatorSet * @package cosmos.base.tendermint.v1beta1 * @see proto service: cosmos.base.tendermint.v1beta1.GetLatestValidatorSet */ export declare const getGetLatestValidatorSet: (client: import("../../../../helper-func-types").EndpointOrRpc, request: GetLatestValidatorSetRequest) => Promise<GetLatestValidatorSetResponse>; /** * GetValidatorSetByHeight queries validator-set at a given height. * @name getGetValidatorSetByHeight * @package cosmos.base.tendermint.v1beta1 * @see proto service: cosmos.base.tendermint.v1beta1.GetValidatorSetByHeight */ export declare const getGetValidatorSetByHeight: (client: import("../../../../helper-func-types").EndpointOrRpc, request: GetValidatorSetByHeightRequest) => Promise<GetValidatorSetByHeightResponse>; /** * ABCIQuery defines a query handler that supports ABCI queries directly to the * application, bypassing Tendermint completely. The ABCI query must contain * a valid and supported path, including app, custom, p2p, and store. * * Since: cosmos-sdk 0.46 * @name getABCIQuery * @package cosmos.base.tendermint.v1beta1 * @see proto service: cosmos.base.tendermint.v1beta1.ABCIQuery */ export declare const getABCIQuery: (client: import("../../../../helper-func-types").EndpointOrRpc, request: ABCIQueryRequest) => Promise<ABCIQueryResponse>;