Skip to main content
Glama
pubkey.d.ts1.11 kB
import { Pubkey, SinglePubkey } from "@cosmjs/amino"; import { Any } from "cosmjs-types/google/protobuf/any"; /** * Takes a pubkey in the Amino JSON object style (type/value wrapper) * and convertes it into a protobuf `Any`. * * This is the reverse operation to `decodePubkey`. */ export declare function encodePubkey(pubkey: Pubkey): Any; /** * Decodes a single pubkey (i.e. not a multisig pubkey) from `Any` into * `SinglePubkey`. * * In most cases you probably want to use `decodePubkey`. */ export declare function anyToSinglePubkey(pubkey: Any): SinglePubkey; /** * Decodes a pubkey from a protobuf `Any` into `Pubkey`. * This supports single pubkeys such as Cosmos ed25519 and secp256k1 keys * as well as multisig threshold pubkeys. */ export declare function decodePubkey(pubkey: Any): Pubkey; /** * Decodes an optional pubkey from a protobuf `Any` into `Pubkey | null`. * This supports single pubkeys such as Cosmos ed25519 and secp256k1 keys * as well as multisig threshold pubkeys. */ export declare function decodeOptionalPubkey(pubkey: Any | null | undefined): Pubkey | null;

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