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
rpcclient.d.ts•1 KiB
import { JsonRpcRequest, JsonRpcSuccessResponse } from "@cosmjs/json-rpc";
import { Stream } from "xstream";
/**
* An event emitted from Tendermint after subscribing via RPC.
*
* These events are passed as the `result` of JSON-RPC responses, which is kind
* of hacky because it breaks the idea that exactly one JSON-RPC response belongs
* to each JSON-RPC request. But this is how subscriptions work in Tendermint.
*/
export interface SubscriptionEvent {
readonly query: string;
readonly data: {
readonly type: string;
readonly value: any;
};
}
export interface RpcClient {
readonly execute: (request: JsonRpcRequest) => Promise<JsonRpcSuccessResponse>;
readonly disconnect: () => void;
}
export interface RpcStreamingClient extends RpcClient {
readonly listen: (request: JsonRpcRequest) => Stream<SubscriptionEvent>;
}
export declare function instanceOfRpcStreamingClient(client: RpcClient): client is RpcStreamingClient;
export declare function hasProtocol(url: string): boolean;