MsgInstantiateContract2 create a new smart contract instance for the given code id with a predicable address.

from message cosmwasm.wasm.v1.MsgInstantiateContract2

Hierarchy

Constructors

Properties

admin: string = ""

Admin is an optional address that can execute migrations

from field: string admin = 2;

codeId: bigint = protoInt64.zero

CodeID is the reference to the stored WASM code

from field: uint64 code_id = 3;

fixMsg: boolean = false

FixMsg include the msg value into the hash for the predictable address. Default is false

from field: bool fix_msg = 8;

funds: Coin[] = []

Funds coins that are transferred to the contract on instantiation

from field: repeated cosmos.base.v1beta1.Coin funds = 6;

label: string = ""

Label is optional metadata to be stored with a contract instance.

from field: string label = 4;

msg: Uint8Array = ...

Msg json encoded message to be passed to the contract on instantiation

from field: bytes msg = 5;

salt: Uint8Array = ...

Salt is an arbitrary value provided by the sender. Size can be 1 to 64.

from field: bytes salt = 7;

sender: string = ""

Sender is the that actor that signed the messages

from field: string sender = 1;

fields: FieldList = ...
runtime: ProtoRuntime = proto3
typeName: "cosmwasm.wasm.v1.MsgInstantiateContract2" = "cosmwasm.wasm.v1.MsgInstantiateContract2"

Methods