Query a Contract
Command Line Interface
oraid query wasm contract-state smart [contract_bech32] [query] [flags]CONTRACT=orai1ase8wkkhczqdda83f0cd9lnuyvf47465j70hyk
oraid q wasm contract-state smart $CONTRACT '{"abcde":{}}' --node https://rpc.orai.io
# Error parsing into type
# Error parsing into type oraichain_nft::msg::QueryMsg:
# unknown variant `abcde`,
# expected one of `owner_of`, `approved_for_all`, `num_tokens`, `contract_info`,
# `nft_info`, `all_nft_info`, `tokens`, `all_tokens`, `minter` CONTRACT=orai1ase8wkkhczqdda83f0cd9lnuyvf47465j70hyk
oraid q wasm contract-state smart $CONTRACT '{"all_tokens":{}}' --node https://rpc.orai.io
data:
tokens:
- "10"
- "100"
- "1000"
- "10005"
- "10006"
- "10009"
- "1001"
- "10010"
- "10011"
- "10023"
# You can use --output json to read it via JSON form
# oraid q wasm contract-state smart $CONTRACT '{"all_tokens":{}}' --output json | jq .dataLast updated
Was this helpful?