Step-by-step guides for performing basic operations with the module
connection-0
(this is the connection ID on the Neutron side).
apis
section, and use it in subsequent neutrond
queries with the --node
flag.
connection-0
.
apis
section, and use it in gaiad
queries with the --node
flag.
cosmos17s3uhcvrwrsp2ldjvxp8rseyc3ulpchdry87hp
on CosmosHub.
staking
module used by CosmosHub. Check the chain registry to find the repository and version in use, e.g., v21.0.0
.gaia
repository for v21.0.0
, locate the cosmos-sdk import in the go.mod
file, e.g., v0.50.9
. In this case, the cosmos-sdk
version is replaced with a special release v0.50.9-lsmstaking
module’s source code in the cosmos-sdk with tag v0.50.9-lsm.staking
module’s keeper.
unbond.delegator=cosmos17s3uhcvrwrsp2ldjvxp8rseyc3ulpchdry87hp
types.EventTypeUnbond.types.AttributeKeyDelegator = cosmos17s3uhcvrwrsp2ldjvxp8rseyc3ulpchdry87hp
.
gaiad q txs
query to ensure it retrieves the expected results.
Might be interesting:
execute
message handler in your contract to register the Interchain Query using the helper function as a submessage.
interchainqueries
module’s storage using the query_balance function and process it.
KVKeys
manually. This example demonstrates registering an Account Interchain Query for cosmos-hub
v21.0.0
.
acc
.BaseAccount
.execute
message handler in your smart contract. This handler will broadcast a MsgRegisterInterchainQuery message as a submessage. Use the data path information derived earlier to configure the message.
BaseAccount
instance. This involves decoding the stored values into the appropriate data structure.
interchainqueries
module’s storage using the query_kv_result helper function. Handle the result by decoding it and performing your contract’s desired logic.
execute
message handler in your contract to handle Interchain Query registration. Use the MsgRegisterInterchainQuery message. Populate this message using the tx_search
query identified in step 1 as the transactions_filter
.