{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "QueryMsg", "anyOf": [ { "description": "Returns the current balance of the given address, 0 if unset. Return type: BalanceResponse.", "type": "object", "required": [ "balance" ], "properties": { "balance": { "type": "object", "required": [ "address" ], "properties": { "address": { "type": "string" } } } }, "additionalProperties": false }, { "description": "Returns metadata on the contract - name, decimals, supply, etc. Return type: TokenInfoResponse.", "type": "object", "required": [ "token_info" ], "properties": { "token_info": { "type": "object" } }, "additionalProperties": false }, { "description": "Only with \"mintable\" extension. Returns who can mint and how much. Return type: MinterResponse.", "type": "object", "required": [ "minter" ], "properties": { "minter": { "type": "object" } }, "additionalProperties": false }, { "description": "Only with \"allowance\" extension. Returns how much spender can use from owner account, 0 if unset. Return type: AllowanceResponse.", "type": "object", "required": [ "allowance" ], "properties": { "allowance": { "type": "object", "required": [ "owner", "spender" ], "properties": { "owner": { "type": "string" }, "spender": { "type": "string" } } } }, "additionalProperties": false }, { "description": "Only with \"enumerable\" extension (and \"allowances\") Returns all allowances this owner has approved. Supports pagination. Return type: AllAllowancesResponse.", "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 }, { "description": "Only with \"enumerable\" extension Returns all accounts that have balances. Supports pagination. Return type: AllAccountsResponse.", "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 } ] }