๐นQuery
How to Send a Query Request
Command line
ex)
RESTFul API
ex)
How to Organize a Query Message
You may check <contract>/src/msg.rs
of each contract.
Here is an example. Query messages are defined as below:
This is one of the messages
You may change it into snake case and add within {}
as like below:
Addr
is a type, which is bech32-encoded address inj prefixed.
Here is an example:
This rule also can be applied to other messages, so you can utilize this guide as a reference for your practice.
Last updated