| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285 |
- {
- "$schema": "http://json-schema.org/draft-07/schema#",
- "title": "QueryMsg",
- "oneOf": [
- {
- "description": "Return the owner of the given token, error if token does not exist Return type: OwnerOfResponse",
- "type": "object",
- "required": [
- "owner_of"
- ],
- "properties": {
- "owner_of": {
- "type": "object",
- "required": [
- "token_id"
- ],
- "properties": {
- "include_expired": {
- "description": "unset or false will filter out expired approvals, you must set to true to see them",
- "type": [
- "boolean",
- "null"
- ]
- },
- "token_id": {
- "type": "string"
- }
- }
- }
- },
- "additionalProperties": false
- },
- {
- "description": "Return operator that can access all of the owner's tokens. Return type: `ApprovalResponse`",
- "type": "object",
- "required": [
- "approval"
- ],
- "properties": {
- "approval": {
- "type": "object",
- "required": [
- "spender",
- "token_id"
- ],
- "properties": {
- "include_expired": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "spender": {
- "type": "string"
- },
- "token_id": {
- "type": "string"
- }
- }
- }
- },
- "additionalProperties": false
- },
- {
- "description": "Return approvals that a token has Return type: `ApprovalsResponse`",
- "type": "object",
- "required": [
- "approvals"
- ],
- "properties": {
- "approvals": {
- "type": "object",
- "required": [
- "token_id"
- ],
- "properties": {
- "include_expired": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "token_id": {
- "type": "string"
- }
- }
- }
- },
- "additionalProperties": false
- },
- {
- "description": "List all operators that can access all of the owner's tokens Return type: `OperatorsResponse`",
- "type": "object",
- "required": [
- "all_operators"
- ],
- "properties": {
- "all_operators": {
- "type": "object",
- "required": [
- "owner"
- ],
- "properties": {
- "include_expired": {
- "description": "unset or false will filter out expired items, you must set to true to see them",
- "type": [
- "boolean",
- "null"
- ]
- },
- "limit": {
- "type": [
- "integer",
- "null"
- ],
- "format": "uint32",
- "minimum": 0.0
- },
- "owner": {
- "type": "string"
- },
- "start_after": {
- "type": [
- "string",
- "null"
- ]
- }
- }
- }
- },
- "additionalProperties": false
- },
- {
- "description": "Total number of tokens issued",
- "type": "object",
- "required": [
- "num_tokens"
- ],
- "properties": {
- "num_tokens": {
- "type": "object"
- }
- },
- "additionalProperties": false
- },
- {
- "description": "With MetaData Extension. Returns top-level metadata about the contract: `ContractInfoResponse`",
- "type": "object",
- "required": [
- "contract_info"
- ],
- "properties": {
- "contract_info": {
- "type": "object"
- }
- },
- "additionalProperties": false
- },
- {
- "description": "With MetaData Extension. Returns metadata about one particular token, based on *ERC721 Metadata JSON Schema* but directly from the contract: `NftInfoResponse`",
- "type": "object",
- "required": [
- "nft_info"
- ],
- "properties": {
- "nft_info": {
- "type": "object",
- "required": [
- "token_id"
- ],
- "properties": {
- "token_id": {
- "type": "string"
- }
- }
- }
- },
- "additionalProperties": false
- },
- {
- "description": "With MetaData Extension. Returns the result of both `NftInfo` and `OwnerOf` as one query as an optimization for clients: `AllNftInfo`",
- "type": "object",
- "required": [
- "all_nft_info"
- ],
- "properties": {
- "all_nft_info": {
- "type": "object",
- "required": [
- "token_id"
- ],
- "properties": {
- "include_expired": {
- "description": "unset or false will filter out expired approvals, you must set to true to see them",
- "type": [
- "boolean",
- "null"
- ]
- },
- "token_id": {
- "type": "string"
- }
- }
- }
- },
- "additionalProperties": false
- },
- {
- "description": "With Enumerable extension. Returns all tokens owned by the given address, [] if unset. Return type: TokensResponse.",
- "type": "object",
- "required": [
- "tokens"
- ],
- "properties": {
- "tokens": {
- "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": "With Enumerable extension. Requires pagination. Lists all token_ids controlled by the contract. Return type: TokensResponse.",
- "type": "object",
- "required": [
- "all_tokens"
- ],
- "properties": {
- "all_tokens": {
- "type": "object",
- "properties": {
- "limit": {
- "type": [
- "integer",
- "null"
- ],
- "format": "uint32",
- "minimum": 0.0
- },
- "start_after": {
- "type": [
- "string",
- "null"
- ]
- }
- }
- }
- },
- "additionalProperties": false
- },
- {
- "type": "object",
- "required": [
- "minter"
- ],
- "properties": {
- "minter": {
- "type": "object"
- }
- },
- "additionalProperties": false
- }
- ]
- }
|