{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "QueryMsg", "oneOf": [ { "description": "List of collections that have asks on them Return type: `CollectionsResponse`", "type": "object", "required": [ "collections" ], "properties": { "collections": { "type": "object", "properties": { "limit": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "start_after": { "type": [ "string", "null" ] } } } }, "additionalProperties": false }, { "description": "Get the current ask for specific NFT Return type: `CurrentAskResponse`", "type": "object", "required": [ "ask" ], "properties": { "ask": { "type": "object", "required": [ "collection", "token_id" ], "properties": { "collection": { "type": "string" }, "token_id": { "type": "integer", "format": "uint32", "minimum": 0.0 } } } }, "additionalProperties": false }, { "description": "Get all asks for a collection Return type: `AsksResponse`", "type": "object", "required": [ "asks" ], "properties": { "asks": { "type": "object", "required": [ "collection" ], "properties": { "collection": { "type": "string" }, "include_inactive": { "type": [ "boolean", "null" ] }, "limit": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "start_after": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 } } } }, "additionalProperties": false }, { "description": "Get all asks for a collection in reverse Return type: `AsksResponse`", "type": "object", "required": [ "reverse_asks" ], "properties": { "reverse_asks": { "type": "object", "required": [ "collection" ], "properties": { "collection": { "type": "string" }, "include_inactive": { "type": [ "boolean", "null" ] }, "limit": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "start_before": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 } } } }, "additionalProperties": false }, { "description": "Get all asks for a collection, sorted by price Return type: `AsksResponse`", "type": "object", "required": [ "asks_sorted_by_price" ], "properties": { "asks_sorted_by_price": { "type": "object", "required": [ "collection" ], "properties": { "collection": { "type": "string" }, "include_inactive": { "type": [ "boolean", "null" ] }, "limit": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "start_after": { "anyOf": [ { "$ref": "#/definitions/AskOffset" }, { "type": "null" } ] } } } }, "additionalProperties": false }, { "description": "Get all asks for a collection, sorted by price in reverse Return type: `AsksResponse`", "type": "object", "required": [ "reverse_asks_sorted_by_price" ], "properties": { "reverse_asks_sorted_by_price": { "type": "object", "required": [ "collection" ], "properties": { "collection": { "type": "string" }, "include_inactive": { "type": [ "boolean", "null" ] }, "limit": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "start_before": { "anyOf": [ { "$ref": "#/definitions/AskOffset" }, { "type": "null" } ] } } } }, "additionalProperties": false }, { "description": "Count of all asks Return type: `AskCountResponse`", "type": "object", "required": [ "ask_count" ], "properties": { "ask_count": { "type": "object", "required": [ "collection" ], "properties": { "collection": { "type": "string" } } } }, "additionalProperties": false }, { "description": "Get all asks by seller Return type: `AsksResponse`", "type": "object", "required": [ "asks_by_seller" ], "properties": { "asks_by_seller": { "type": "object", "required": [ "seller" ], "properties": { "include_inactive": { "type": [ "boolean", "null" ] }, "limit": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "seller": { "type": "string" }, "start_after": { "anyOf": [ { "$ref": "#/definitions/CollectionOffset" }, { "type": "null" } ] } } } }, "additionalProperties": false }, { "description": "Get data for a specific bid Return type: `BidResponse`", "type": "object", "required": [ "bid" ], "properties": { "bid": { "type": "object", "required": [ "bidder", "collection", "token_id" ], "properties": { "bidder": { "type": "string" }, "collection": { "type": "string" }, "token_id": { "type": "integer", "format": "uint32", "minimum": 0.0 } } } }, "additionalProperties": false }, { "description": "Get all bids by a bidder Return type: `BidsResponse`", "type": "object", "required": [ "bids_by_bidder" ], "properties": { "bids_by_bidder": { "type": "object", "required": [ "bidder" ], "properties": { "bidder": { "type": "string" }, "limit": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "start_after": { "anyOf": [ { "$ref": "#/definitions/CollectionOffset" }, { "type": "null" } ] } } } }, "additionalProperties": false }, { "description": "Get all bids by a bidder, sorted by expiration Return type: `BidsResponse`", "type": "object", "required": [ "bids_by_bidder_sorted_by_expiration" ], "properties": { "bids_by_bidder_sorted_by_expiration": { "type": "object", "required": [ "bidder" ], "properties": { "bidder": { "type": "string" }, "limit": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "start_after": { "anyOf": [ { "$ref": "#/definitions/CollectionOffset" }, { "type": "null" } ] } } } }, "additionalProperties": false }, { "description": "Get all bids for a specific NFT Return type: `BidsResponse`", "type": "object", "required": [ "bids" ], "properties": { "bids": { "type": "object", "required": [ "collection", "token_id" ], "properties": { "collection": { "type": "string" }, "limit": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "start_after": { "type": [ "string", "null" ] }, "token_id": { "type": "integer", "format": "uint32", "minimum": 0.0 } } } }, "additionalProperties": false }, { "description": "Get all bids for a collection, sorted by price Return type: `BidsResponse`", "type": "object", "required": [ "bids_sorted_by_price" ], "properties": { "bids_sorted_by_price": { "type": "object", "required": [ "collection" ], "properties": { "collection": { "type": "string" }, "limit": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "start_after": { "anyOf": [ { "$ref": "#/definitions/BidOffset" }, { "type": "null" } ] } } } }, "additionalProperties": false }, { "description": "Get all bids for a collection, sorted by price in reverse Return type: `BidsResponse`", "type": "object", "required": [ "reverse_bids_sorted_by_price" ], "properties": { "reverse_bids_sorted_by_price": { "type": "object", "required": [ "collection" ], "properties": { "collection": { "type": "string" }, "limit": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "start_before": { "anyOf": [ { "$ref": "#/definitions/BidOffset" }, { "type": "null" } ] } } } }, "additionalProperties": false }, { "description": "Get data for a specific collection bid Return type: `CollectionBidResponse`", "type": "object", "required": [ "collection_bid" ], "properties": { "collection_bid": { "type": "object", "required": [ "bidder", "collection" ], "properties": { "bidder": { "type": "string" }, "collection": { "type": "string" } } } }, "additionalProperties": false }, { "description": "Get all collection bids by a bidder Return type: `CollectionBidsResponse`", "type": "object", "required": [ "collection_bids_by_bidder" ], "properties": { "collection_bids_by_bidder": { "type": "object", "required": [ "bidder" ], "properties": { "bidder": { "type": "string" }, "limit": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "start_after": { "anyOf": [ { "$ref": "#/definitions/CollectionOffset" }, { "type": "null" } ] } } } }, "additionalProperties": false }, { "description": "Get all collection bids by a bidder, sorted by expiration Return type: `CollectionBidsResponse`", "type": "object", "required": [ "collection_bids_by_bidder_sorted_by_expiration" ], "properties": { "collection_bids_by_bidder_sorted_by_expiration": { "type": "object", "required": [ "bidder" ], "properties": { "bidder": { "type": "string" }, "limit": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "start_after": { "anyOf": [ { "$ref": "#/definitions/CollectionBidOffset" }, { "type": "null" } ] } } } }, "additionalProperties": false }, { "description": "Get all collection bids for a collection sorted by price Return type: `CollectionBidsResponse`", "type": "object", "required": [ "collection_bids_sorted_by_price" ], "properties": { "collection_bids_sorted_by_price": { "type": "object", "required": [ "collection" ], "properties": { "collection": { "type": "string" }, "limit": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "start_after": { "anyOf": [ { "$ref": "#/definitions/CollectionBidOffset" }, { "type": "null" } ] } } } }, "additionalProperties": false }, { "description": "Get all collection bids for a collection sorted by price in reverse Return type: `CollectionBidsResponse`", "type": "object", "required": [ "reverse_collection_bids_sorted_by_price" ], "properties": { "reverse_collection_bids_sorted_by_price": { "type": "object", "required": [ "collection" ], "properties": { "collection": { "type": "string" }, "limit": { "type": [ "integer", "null" ], "format": "uint32", "minimum": 0.0 }, "start_before": { "anyOf": [ { "$ref": "#/definitions/CollectionBidOffset" }, { "type": "null" } ] } } } }, "additionalProperties": false }, { "description": "Show all registered ask hooks Return type: `HooksResponse`", "type": "object", "required": [ "ask_hooks" ], "properties": { "ask_hooks": { "type": "object" } }, "additionalProperties": false }, { "description": "Show all registered bid hooks Return type: `HooksResponse`", "type": "object", "required": [ "bid_hooks" ], "properties": { "bid_hooks": { "type": "object" } }, "additionalProperties": false }, { "description": "Show all registered sale hooks Return type: `HooksResponse`", "type": "object", "required": [ "sale_hooks" ], "properties": { "sale_hooks": { "type": "object" } }, "additionalProperties": false }, { "description": "Get the config for the contract Return type: `ParamsResponse`", "type": "object", "required": [ "params" ], "properties": { "params": { "type": "object" } }, "additionalProperties": false } ], "definitions": { "Addr": { "description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.", "type": "string" }, "AskOffset": { "description": "Offset for ask pagination", "type": "object", "required": [ "price", "token_id" ], "properties": { "price": { "$ref": "#/definitions/Uint128" }, "token_id": { "type": "integer", "format": "uint32", "minimum": 0.0 } } }, "BidOffset": { "description": "Offset for bid pagination", "type": "object", "required": [ "bidder", "price", "token_id" ], "properties": { "bidder": { "$ref": "#/definitions/Addr" }, "price": { "$ref": "#/definitions/Uint128" }, "token_id": { "type": "integer", "format": "uint32", "minimum": 0.0 } } }, "CollectionBidOffset": { "description": "Offset for collection bid pagination", "type": "object", "required": [ "bidder", "collection", "price" ], "properties": { "bidder": { "type": "string" }, "collection": { "type": "string" }, "price": { "$ref": "#/definitions/Uint128" } } }, "CollectionOffset": { "description": "Offset for collection pagination", "type": "object", "required": [ "collection", "token_id" ], "properties": { "collection": { "type": "string" }, "token_id": { "type": "integer", "format": "uint32", "minimum": 0.0 } } }, "Uint128": { "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", "type": "string" } } }