query_msg.json 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "title": "QueryMsg",
  4. "oneOf": [
  5. {
  6. "description": "Return the owner of the given token, error if token does not exist Return type: OwnerOfResponse",
  7. "type": "object",
  8. "required": [
  9. "owner_of"
  10. ],
  11. "properties": {
  12. "owner_of": {
  13. "type": "object",
  14. "required": [
  15. "token_id"
  16. ],
  17. "properties": {
  18. "include_expired": {
  19. "description": "unset or false will filter out expired approvals, you must set to true to see them",
  20. "type": [
  21. "boolean",
  22. "null"
  23. ]
  24. },
  25. "token_id": {
  26. "type": "string"
  27. }
  28. }
  29. }
  30. },
  31. "additionalProperties": false
  32. },
  33. {
  34. "description": "Return operator that can access all of the owner's tokens. Return type: `ApprovalResponse`",
  35. "type": "object",
  36. "required": [
  37. "approval"
  38. ],
  39. "properties": {
  40. "approval": {
  41. "type": "object",
  42. "required": [
  43. "spender",
  44. "token_id"
  45. ],
  46. "properties": {
  47. "include_expired": {
  48. "type": [
  49. "boolean",
  50. "null"
  51. ]
  52. },
  53. "spender": {
  54. "type": "string"
  55. },
  56. "token_id": {
  57. "type": "string"
  58. }
  59. }
  60. }
  61. },
  62. "additionalProperties": false
  63. },
  64. {
  65. "description": "Return approvals that a token has Return type: `ApprovalsResponse`",
  66. "type": "object",
  67. "required": [
  68. "approvals"
  69. ],
  70. "properties": {
  71. "approvals": {
  72. "type": "object",
  73. "required": [
  74. "token_id"
  75. ],
  76. "properties": {
  77. "include_expired": {
  78. "type": [
  79. "boolean",
  80. "null"
  81. ]
  82. },
  83. "token_id": {
  84. "type": "string"
  85. }
  86. }
  87. }
  88. },
  89. "additionalProperties": false
  90. },
  91. {
  92. "description": "List all operators that can access all of the owner's tokens Return type: `OperatorsResponse`",
  93. "type": "object",
  94. "required": [
  95. "all_operators"
  96. ],
  97. "properties": {
  98. "all_operators": {
  99. "type": "object",
  100. "required": [
  101. "owner"
  102. ],
  103. "properties": {
  104. "include_expired": {
  105. "description": "unset or false will filter out expired items, you must set to true to see them",
  106. "type": [
  107. "boolean",
  108. "null"
  109. ]
  110. },
  111. "limit": {
  112. "type": [
  113. "integer",
  114. "null"
  115. ],
  116. "format": "uint32",
  117. "minimum": 0.0
  118. },
  119. "owner": {
  120. "type": "string"
  121. },
  122. "start_after": {
  123. "type": [
  124. "string",
  125. "null"
  126. ]
  127. }
  128. }
  129. }
  130. },
  131. "additionalProperties": false
  132. },
  133. {
  134. "description": "Total number of tokens issued",
  135. "type": "object",
  136. "required": [
  137. "num_tokens"
  138. ],
  139. "properties": {
  140. "num_tokens": {
  141. "type": "object"
  142. }
  143. },
  144. "additionalProperties": false
  145. },
  146. {
  147. "description": "With MetaData Extension. Returns top-level metadata about the contract: `ContractInfoResponse`",
  148. "type": "object",
  149. "required": [
  150. "contract_info"
  151. ],
  152. "properties": {
  153. "contract_info": {
  154. "type": "object"
  155. }
  156. },
  157. "additionalProperties": false
  158. },
  159. {
  160. "description": "With MetaData Extension. Returns metadata about one particular token, based on *ERC721 Metadata JSON Schema* but directly from the contract: `NftInfoResponse`",
  161. "type": "object",
  162. "required": [
  163. "nft_info"
  164. ],
  165. "properties": {
  166. "nft_info": {
  167. "type": "object",
  168. "required": [
  169. "token_id"
  170. ],
  171. "properties": {
  172. "token_id": {
  173. "type": "string"
  174. }
  175. }
  176. }
  177. },
  178. "additionalProperties": false
  179. },
  180. {
  181. "description": "With MetaData Extension. Returns the result of both `NftInfo` and `OwnerOf` as one query as an optimization for clients: `AllNftInfo`",
  182. "type": "object",
  183. "required": [
  184. "all_nft_info"
  185. ],
  186. "properties": {
  187. "all_nft_info": {
  188. "type": "object",
  189. "required": [
  190. "token_id"
  191. ],
  192. "properties": {
  193. "include_expired": {
  194. "description": "unset or false will filter out expired approvals, you must set to true to see them",
  195. "type": [
  196. "boolean",
  197. "null"
  198. ]
  199. },
  200. "token_id": {
  201. "type": "string"
  202. }
  203. }
  204. }
  205. },
  206. "additionalProperties": false
  207. },
  208. {
  209. "description": "With Enumerable extension. Returns all tokens owned by the given address, [] if unset. Return type: TokensResponse.",
  210. "type": "object",
  211. "required": [
  212. "tokens"
  213. ],
  214. "properties": {
  215. "tokens": {
  216. "type": "object",
  217. "required": [
  218. "owner"
  219. ],
  220. "properties": {
  221. "limit": {
  222. "type": [
  223. "integer",
  224. "null"
  225. ],
  226. "format": "uint32",
  227. "minimum": 0.0
  228. },
  229. "owner": {
  230. "type": "string"
  231. },
  232. "start_after": {
  233. "type": [
  234. "string",
  235. "null"
  236. ]
  237. }
  238. }
  239. }
  240. },
  241. "additionalProperties": false
  242. },
  243. {
  244. "description": "With Enumerable extension. Requires pagination. Lists all token_ids controlled by the contract. Return type: TokensResponse.",
  245. "type": "object",
  246. "required": [
  247. "all_tokens"
  248. ],
  249. "properties": {
  250. "all_tokens": {
  251. "type": "object",
  252. "properties": {
  253. "limit": {
  254. "type": [
  255. "integer",
  256. "null"
  257. ],
  258. "format": "uint32",
  259. "minimum": 0.0
  260. },
  261. "start_after": {
  262. "type": [
  263. "string",
  264. "null"
  265. ]
  266. }
  267. }
  268. }
  269. },
  270. "additionalProperties": false
  271. },
  272. {
  273. "type": "object",
  274. "required": [
  275. "minter"
  276. ],
  277. "properties": {
  278. "minter": {
  279. "type": "object"
  280. }
  281. },
  282. "additionalProperties": false
  283. }
  284. ]
  285. }