description | cover | coverY |
---|---|---|
Some useful commands for querying contract state |
../../.gitbook/assets/Gitbook Banner large 6 (1) (1) (1) (1) (1) (1) (1) (1) (31).png |
0 |
The CW1 subkeys contract has several useful commands available.
You can query a specific address, to see if it has an allowance:
junod query wasm contract-state smart <contract-addr> '{"allowance":{"spender":"<address>"}}' --chain-id <chain-id>
You can query to see which keys are admins:
junod query wasm contract-state smart <contract-addr> '{"admin_list":{}}' --chain-id <chain-id>
Or query to see all allowances:
junod query wasm contract-state smart <contract-addr> '{"all_allowances":{}}' --chain-id <chain-id>