Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MsgInstantiateContract

Hierarchy

Index

Constructors

  • new MsgInstantiateContract(sender: string, admin: undefined | string, code_id: number, init_msg: string | object, init_coins?: Coins.Input, label?: string): MsgInstantiateContract
  • Parameters

    • sender: string

      is a sender address

    • admin: undefined | string

      is an optional contract admin address who can migrate the contract, put empty string to disable migration

    • code_id: number

      is the reference to the stored WASM code

    • init_msg: string | object

      json encoded message to be passed to the contract on instantiation

    • init_coins: Coins.Input = {}

      are transferred to the contract on execution

    • Optional label: string

      label for the contract. v2 supported only

    Returns MsgInstantiateContract

Properties

admin: undefined | string
code_id: number
init_coins: Coins
init_msg: string | object
label?: string
sender: string

Methods

  • packAny(isClassic?: boolean): Any
  • toAminoJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string

  • toJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string