Skip to main content
Glama
signdoc.d.ts1.61 kB
import { Coin } from "./coins"; export interface AminoMsg { readonly type: string; readonly value: any; } export interface StdFee { readonly amount: readonly Coin[]; readonly gas: string; /** The granter address that is used for paying with feegrants */ readonly granter?: string; /** The fee payer address. The payer must have signed the transaction. */ readonly payer?: string; } /** * The document to be signed * * @see https://docs.cosmos.network/master/modules/auth/03_types.html#stdsigndoc */ export interface StdSignDoc { readonly chain_id: string; readonly account_number: string; readonly sequence: string; readonly fee: StdFee; readonly msgs: readonly AminoMsg[]; readonly memo: string; readonly timeout_height?: string; } /** Returns a JSON string with objects sorted by key */ export declare function sortedJsonStringify(obj: any): string; export declare function makeSignDoc(msgs: readonly AminoMsg[], fee: StdFee, chainId: string, memo: string | undefined, accountNumber: number | string, sequence: number | string, timeout_height?: bigint): StdSignDoc; /** * Takes a valid JSON document and performs the following escapings in string values: * * `&` -> `\u0026` * `<` -> `\u003c` * `>` -> `\u003e` * * Since those characters do not occur in other places of the JSON document, only * string values are affected. * * If the input is invalid JSON, the behaviour is undefined. */ export declare function escapeCharacters(input: string): string; export declare function serializeSignDoc(signDoc: StdSignDoc): Uint8Array;

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