{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "QueryMsg", "oneOf": [ { "description": "CW20. Returns the current balance of the given address, 0 if unset.", "type": "object", "required": [ "balance" ], "properties": { "balance": { "type": "object", "required": [ "address" ], "properties": { "address": { "type": "string" } }, "additionalProperties": false } }, "additionalProperties": false }, { "description": "CW20. Returns metadata on the contract - name, decimals, supply, etc.", "type": "object", "required": [ "token_info" ], "properties": { "token_info": { "type": "object", "additionalProperties": false } }, "additionalProperties": false }, { "description": "CW20. Only with \"mintable\" extension. Returns who can mint and how much.", "type": "object", "required": [ "minter" ], "properties": { "minter": { "type": "object", "additionalProperties": false } }, "additionalProperties": false }, { "description": "CW20 \"allowance\" extension. Returns how much spender can use from owner account, 0 if unset.", "type": "object", "required": [ "allowance" ], "properties": { "allowance": { "type": "object", "required": [ "owner", "spender" ], "properties": { "owner": { "type": "string" }, "spender": { "type": "string" } }, "additionalProperties": false } }, "additionalProperties": false }, { "description": "CW20. Only with \"enumerable\" extension (and \"allowances\") Returns all allowances this owner has approved. Supports pagination.", "type": "object", "required": [ "all_allowances" ], "properties": { "all_allowances": { "type": "object", "required": [ "owner" ], "properties": { "limit": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "owner": { "type": "string" }, "start_after": { "type": [ "string", "null" ] } }, "additionalProperties": false } }, "additionalProperties": false }, { "description": "CW20. Only with \"enumerable\" extension Returns all accounts that have balances. Supports pagination.", "type": "object", "required": [ "all_accounts" ], "properties": { "all_accounts": { "type": "object", "properties": { "limit": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "start_after": { "type": [ "string", "null" ] } }, "additionalProperties": false } }, "additionalProperties": false } ] }