Options
All
  • Public
  • Public/Protected
  • All
Menu

@cosmjs/cosmwasm-stargate Documentation

Index

Type Aliases

JsonObject: any

An object containing a parsed JSON document. The result of JSON.parse(). This doesn't provide any type safety over any but expresses intent in the code.

This type is returned by queryContractSmart.

Variables

cosmWasmTypes: AminoConverters = ...
deprecated

use createWasmAminoConverters()

Functions

  • createWasmAminoConverters(): AminoConverters
  • fromBinary(base64: string): any
  • Takes a base64 string, decodes it and parses the content from JSON to an object.

    This can be used for parsing the values of a CosmWasm Binary field.

    Parameters

    • base64: string

    Returns any

  • toBinary(obj: any): string
  • Takes a value, serializes it to JSON and encodes it as base64.

    This can be used for creating values of fields that have the CosmWasm Binary type.

    Parameters

    • obj: any

    Returns string

Generated using TypeDoc