Query commands
Some useful commands for querying contract state

Useful commands

The CW1 subkeys contract has several useful commands available.
You can query a specific address, to see if it has an allowance:
1
junod query wasm contract-state smart <contract-addr> '{"allowance":{"spender":"<address>"}}' --chain-id <chain-id>
Copied!
You can query to see which keys are admins:
1
junod query wasm contract-state smart <contract-addr> '{"admin_list":{}}' --chain-id <chain-id>
Copied!
Or query to see all allowances:
1
junod query wasm contract-state smart <contract-addr> '{"all_allowances":{}}' --chain-id <chain-id>
Copied!
Last modified 5d ago
Copy link