Skip to main content
Version: v0.6.x

QueryMsg

The QueryMsg is the message that allows you to see the state of the contract. Therefore, it is important to understand the state of the contract.

GetChannel

src/types/msg.rs
loading...

This message is used to query the state of the ICS-27 channel as tracked by the contract. It returns

src/types/state.rs
loading...

GetContractState

src/types/msg.rs
loading...

This message is used to query the state of the contract. It returns

src/types/state.rs
loading...

Lets look at the fields of the ContractState:

ica_info

This field will be empty if the channel handshake has not been completed. Otherwise, it will contain the following information:

src/types/state.rs
loading...

callback_address

This is the contract address that the cw-ica-controller contract will send callbacks to. If this field is empty, then the contract will not send callbacks.

Ownership

packages/ownable/derive/src/lib.rs
loading...

This message type is provided by the cw-ownable crate. It allows to query the ownership of the contract. It returns Ownership<String>:

packages/ownable/src/lib.rs
loading...