interface MsgInstantiateContractParams {
    code_hash?: string;
    code_id: string | number;
    init_funds?: SecretJS.Tx.Coin[];
    init_msg: any;
    label: string;
    sender: string;
}

Hierarchy (view full)

Properties

code_hash?: string

The SHA256 hash value of the contract's WASM bytecode, represented as case-insensitive 64 character hex string. This is used to make sure only the contract that's being invoked can decrypt the query data.

codeHash is an optional parameter but using it will result in way faster execution time.

Valid examples:

  • "af74387e276be8874f07bec3a87023ee49b0e7ebe08178c49d0a49c3c98ed60e"
  • "0xaf74387e276be8874f07bec3a87023ee49b0e7ebe08178c49d0a49c3c98ed60e"
  • "AF74387E276BE8874F07BEC3A87023EE49B0E7EBE08178C49D0A49C3C98ED60E"
  • "0xAF74387E276BE8874F07BEC3A87023EE49B0E7EBE08178C49D0A49C3C98ED60E"
code_id: string | number

The id of the contract's WASM code

init_funds?: SecretJS.Tx.Coin[]

Funds to send to the contract

init_msg: any

The input message to the contract's constructor

label: string

A unique label across all contracts

sender: string

Generated using TypeDoc