CLI
A user can query and interact with the Interchain Accounts module using the CLI. Use the--help
flag to discover the available commands:
Please not that this section does not document all the available commands, but only the ones that deserved extra documentation that was not possible to fit in the command line documentation.
Controller
A user can query and interact with the controller submodule.Query
Thequery
commands allow users to query the controller submodule.
Transactions
Thetx
commands allow users to interact with the controller submodule.
send-tx
The send-tx
command allows users to send a transaction on the provided connection to be executed using an interchain account on the host chain.
packet-data.json
. The CLI handler will unmarshal the following into InterchainAccountPacketData
appropriately.
data
field is a base64 encoded byte string as per the proto3 JSON encoding specification.
A helper CLI is provided in the host submodule which can be used to generate the packet data JSON using the counterparty chain’s binary. See the generate-packet-data
command for an example.
Host
A user can query and interact with the host submodule.Query
Thequery
commands allow users to query the host submodule.
Transactions
Thetx
commands allow users to interact with the controller submodule.
generate-packet-data
The generate-packet-data
command allows users to generate interchain accounts packet data for input message(s). The packet data can then be used with the controller submodule’s send-tx
command.
sdk.Msg
or a list of sdk.Msg
s that will be encoded into the outputs data
field.
Example output:
gRPC
A user can query the interchain account module using gRPC endpoints.Controller
A user can query the controller submodule using gRPC endpoints.InterchainAccount
The InterchainAccount
endpoint allows users to query the controller submodule for the interchain account address for a given owner on a particular connection.
Params
The Params
endpoint users to query the current controller submodule parameters.
Host
A user can query the host submodule using gRPC endpoints.Params
The Params
endpoint users to query the current host submodule parameters.