managedblockchain-query-2023-05-04.min.json 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  1. {
  2. "version": "2.0",
  3. "metadata": {
  4. "apiVersion": "2023-05-04",
  5. "endpointPrefix": "managedblockchain-query",
  6. "jsonVersion": "1.1",
  7. "protocol": "rest-json",
  8. "ripServiceName": "chainquery",
  9. "serviceFullName": "Amazon Managed Blockchain Query",
  10. "serviceId": "ManagedBlockchain Query",
  11. "signatureVersion": "v4",
  12. "signingName": "managedblockchain-query",
  13. "uid": "managedblockchain-query-2023-05-04"
  14. },
  15. "operations": {
  16. "BatchGetTokenBalance": {
  17. "http": {
  18. "requestUri": "/batch-get-token-balance",
  19. "responseCode": 200
  20. },
  21. "input": {
  22. "type": "structure",
  23. "members": {
  24. "getTokenBalanceInputs": {
  25. "type": "list",
  26. "member": {
  27. "type": "structure",
  28. "required": [
  29. "tokenIdentifier",
  30. "ownerIdentifier"
  31. ],
  32. "members": {
  33. "tokenIdentifier": {
  34. "shape": "S4"
  35. },
  36. "ownerIdentifier": {
  37. "shape": "S8"
  38. },
  39. "atBlockchainInstant": {
  40. "shape": "S9"
  41. }
  42. }
  43. }
  44. }
  45. }
  46. },
  47. "output": {
  48. "type": "structure",
  49. "required": [
  50. "tokenBalances",
  51. "errors"
  52. ],
  53. "members": {
  54. "tokenBalances": {
  55. "type": "list",
  56. "member": {
  57. "type": "structure",
  58. "required": [
  59. "balance",
  60. "atBlockchainInstant"
  61. ],
  62. "members": {
  63. "ownerIdentifier": {
  64. "shape": "S8"
  65. },
  66. "tokenIdentifier": {
  67. "shape": "S4"
  68. },
  69. "balance": {},
  70. "atBlockchainInstant": {
  71. "shape": "S9"
  72. },
  73. "lastUpdatedTime": {
  74. "shape": "S9"
  75. }
  76. }
  77. }
  78. },
  79. "errors": {
  80. "type": "list",
  81. "member": {
  82. "type": "structure",
  83. "required": [
  84. "errorCode",
  85. "errorMessage",
  86. "errorType"
  87. ],
  88. "members": {
  89. "tokenIdentifier": {
  90. "shape": "S4"
  91. },
  92. "ownerIdentifier": {
  93. "shape": "S8"
  94. },
  95. "atBlockchainInstant": {
  96. "shape": "S9"
  97. },
  98. "errorCode": {},
  99. "errorMessage": {},
  100. "errorType": {}
  101. }
  102. }
  103. }
  104. }
  105. }
  106. },
  107. "GetAssetContract": {
  108. "http": {
  109. "requestUri": "/get-asset-contract",
  110. "responseCode": 200
  111. },
  112. "input": {
  113. "type": "structure",
  114. "required": [
  115. "contractIdentifier"
  116. ],
  117. "members": {
  118. "contractIdentifier": {
  119. "shape": "Sj"
  120. }
  121. }
  122. },
  123. "output": {
  124. "type": "structure",
  125. "required": [
  126. "contractIdentifier",
  127. "tokenStandard",
  128. "deployerAddress"
  129. ],
  130. "members": {
  131. "contractIdentifier": {
  132. "shape": "Sj"
  133. },
  134. "tokenStandard": {},
  135. "deployerAddress": {},
  136. "metadata": {
  137. "type": "structure",
  138. "members": {
  139. "name": {},
  140. "symbol": {},
  141. "decimals": {
  142. "type": "integer"
  143. }
  144. }
  145. }
  146. }
  147. }
  148. },
  149. "GetTokenBalance": {
  150. "http": {
  151. "requestUri": "/get-token-balance",
  152. "responseCode": 200
  153. },
  154. "input": {
  155. "type": "structure",
  156. "required": [
  157. "tokenIdentifier",
  158. "ownerIdentifier"
  159. ],
  160. "members": {
  161. "tokenIdentifier": {
  162. "shape": "S4"
  163. },
  164. "ownerIdentifier": {
  165. "shape": "S8"
  166. },
  167. "atBlockchainInstant": {
  168. "shape": "S9"
  169. }
  170. }
  171. },
  172. "output": {
  173. "type": "structure",
  174. "required": [
  175. "balance",
  176. "atBlockchainInstant"
  177. ],
  178. "members": {
  179. "ownerIdentifier": {
  180. "shape": "S8"
  181. },
  182. "tokenIdentifier": {
  183. "shape": "S4"
  184. },
  185. "balance": {},
  186. "atBlockchainInstant": {
  187. "shape": "S9"
  188. },
  189. "lastUpdatedTime": {
  190. "shape": "S9"
  191. }
  192. }
  193. }
  194. },
  195. "GetTransaction": {
  196. "http": {
  197. "requestUri": "/get-transaction",
  198. "responseCode": 200
  199. },
  200. "input": {
  201. "type": "structure",
  202. "required": [
  203. "network"
  204. ],
  205. "members": {
  206. "transactionHash": {},
  207. "transactionId": {},
  208. "network": {}
  209. }
  210. },
  211. "output": {
  212. "type": "structure",
  213. "required": [
  214. "transaction"
  215. ],
  216. "members": {
  217. "transaction": {
  218. "type": "structure",
  219. "required": [
  220. "network",
  221. "transactionHash",
  222. "transactionTimestamp",
  223. "transactionIndex",
  224. "numberOfTransactions",
  225. "to"
  226. ],
  227. "members": {
  228. "network": {},
  229. "blockHash": {},
  230. "transactionHash": {},
  231. "blockNumber": {},
  232. "transactionTimestamp": {
  233. "type": "timestamp"
  234. },
  235. "transactionIndex": {
  236. "type": "long"
  237. },
  238. "numberOfTransactions": {
  239. "type": "long"
  240. },
  241. "to": {},
  242. "from": {},
  243. "contractAddress": {},
  244. "gasUsed": {},
  245. "cumulativeGasUsed": {},
  246. "effectiveGasPrice": {},
  247. "signatureV": {
  248. "type": "integer"
  249. },
  250. "signatureR": {},
  251. "signatureS": {},
  252. "transactionFee": {},
  253. "transactionId": {},
  254. "confirmationStatus": {},
  255. "executionStatus": {}
  256. }
  257. }
  258. }
  259. }
  260. },
  261. "ListAssetContracts": {
  262. "http": {
  263. "requestUri": "/list-asset-contracts",
  264. "responseCode": 200
  265. },
  266. "input": {
  267. "type": "structure",
  268. "required": [
  269. "contractFilter"
  270. ],
  271. "members": {
  272. "contractFilter": {
  273. "type": "structure",
  274. "required": [
  275. "network",
  276. "tokenStandard",
  277. "deployerAddress"
  278. ],
  279. "members": {
  280. "network": {},
  281. "tokenStandard": {},
  282. "deployerAddress": {}
  283. }
  284. },
  285. "nextToken": {},
  286. "maxResults": {
  287. "type": "integer"
  288. }
  289. }
  290. },
  291. "output": {
  292. "type": "structure",
  293. "required": [
  294. "contracts"
  295. ],
  296. "members": {
  297. "contracts": {
  298. "type": "list",
  299. "member": {
  300. "type": "structure",
  301. "required": [
  302. "contractIdentifier",
  303. "tokenStandard",
  304. "deployerAddress"
  305. ],
  306. "members": {
  307. "contractIdentifier": {
  308. "shape": "Sj"
  309. },
  310. "tokenStandard": {},
  311. "deployerAddress": {}
  312. }
  313. }
  314. },
  315. "nextToken": {}
  316. }
  317. }
  318. },
  319. "ListFilteredTransactionEvents": {
  320. "http": {
  321. "requestUri": "/list-filtered-transaction-events",
  322. "responseCode": 200
  323. },
  324. "input": {
  325. "type": "structure",
  326. "required": [
  327. "network",
  328. "addressIdentifierFilter"
  329. ],
  330. "members": {
  331. "network": {},
  332. "addressIdentifierFilter": {
  333. "type": "structure",
  334. "required": [
  335. "transactionEventToAddress"
  336. ],
  337. "members": {
  338. "transactionEventToAddress": {
  339. "type": "list",
  340. "member": {}
  341. }
  342. }
  343. },
  344. "timeFilter": {
  345. "type": "structure",
  346. "members": {
  347. "from": {
  348. "shape": "S9"
  349. },
  350. "to": {
  351. "shape": "S9"
  352. }
  353. }
  354. },
  355. "voutFilter": {
  356. "type": "structure",
  357. "required": [
  358. "voutSpent"
  359. ],
  360. "members": {
  361. "voutSpent": {
  362. "type": "boolean"
  363. }
  364. }
  365. },
  366. "confirmationStatusFilter": {
  367. "shape": "S1c"
  368. },
  369. "sort": {
  370. "type": "structure",
  371. "members": {
  372. "sortBy": {},
  373. "sortOrder": {}
  374. }
  375. },
  376. "nextToken": {},
  377. "maxResults": {
  378. "type": "integer"
  379. }
  380. }
  381. },
  382. "output": {
  383. "type": "structure",
  384. "required": [
  385. "events"
  386. ],
  387. "members": {
  388. "events": {
  389. "shape": "S1j"
  390. },
  391. "nextToken": {}
  392. }
  393. }
  394. },
  395. "ListTokenBalances": {
  396. "http": {
  397. "requestUri": "/list-token-balances",
  398. "responseCode": 200
  399. },
  400. "input": {
  401. "type": "structure",
  402. "required": [
  403. "tokenFilter"
  404. ],
  405. "members": {
  406. "ownerFilter": {
  407. "type": "structure",
  408. "required": [
  409. "address"
  410. ],
  411. "members": {
  412. "address": {}
  413. }
  414. },
  415. "tokenFilter": {
  416. "type": "structure",
  417. "required": [
  418. "network"
  419. ],
  420. "members": {
  421. "network": {},
  422. "contractAddress": {},
  423. "tokenId": {}
  424. }
  425. },
  426. "nextToken": {},
  427. "maxResults": {
  428. "type": "integer"
  429. }
  430. }
  431. },
  432. "output": {
  433. "type": "structure",
  434. "required": [
  435. "tokenBalances"
  436. ],
  437. "members": {
  438. "tokenBalances": {
  439. "type": "list",
  440. "member": {
  441. "type": "structure",
  442. "required": [
  443. "balance",
  444. "atBlockchainInstant"
  445. ],
  446. "members": {
  447. "ownerIdentifier": {
  448. "shape": "S8"
  449. },
  450. "tokenIdentifier": {
  451. "shape": "S4"
  452. },
  453. "balance": {},
  454. "atBlockchainInstant": {
  455. "shape": "S9"
  456. },
  457. "lastUpdatedTime": {
  458. "shape": "S9"
  459. }
  460. }
  461. }
  462. },
  463. "nextToken": {}
  464. }
  465. }
  466. },
  467. "ListTransactionEvents": {
  468. "http": {
  469. "requestUri": "/list-transaction-events",
  470. "responseCode": 200
  471. },
  472. "input": {
  473. "type": "structure",
  474. "required": [
  475. "network"
  476. ],
  477. "members": {
  478. "transactionHash": {},
  479. "transactionId": {},
  480. "network": {},
  481. "nextToken": {},
  482. "maxResults": {
  483. "type": "integer"
  484. }
  485. }
  486. },
  487. "output": {
  488. "type": "structure",
  489. "required": [
  490. "events"
  491. ],
  492. "members": {
  493. "events": {
  494. "shape": "S1j"
  495. },
  496. "nextToken": {}
  497. }
  498. }
  499. },
  500. "ListTransactions": {
  501. "http": {
  502. "requestUri": "/list-transactions",
  503. "responseCode": 200
  504. },
  505. "input": {
  506. "type": "structure",
  507. "required": [
  508. "address",
  509. "network"
  510. ],
  511. "members": {
  512. "address": {},
  513. "network": {},
  514. "fromBlockchainInstant": {
  515. "shape": "S9"
  516. },
  517. "toBlockchainInstant": {
  518. "shape": "S9"
  519. },
  520. "sort": {
  521. "type": "structure",
  522. "members": {
  523. "sortBy": {},
  524. "sortOrder": {}
  525. }
  526. },
  527. "nextToken": {},
  528. "maxResults": {
  529. "type": "integer"
  530. },
  531. "confirmationStatusFilter": {
  532. "shape": "S1c"
  533. }
  534. }
  535. },
  536. "output": {
  537. "type": "structure",
  538. "required": [
  539. "transactions"
  540. ],
  541. "members": {
  542. "transactions": {
  543. "type": "list",
  544. "member": {
  545. "type": "structure",
  546. "required": [
  547. "transactionHash",
  548. "network",
  549. "transactionTimestamp"
  550. ],
  551. "members": {
  552. "transactionHash": {},
  553. "transactionId": {},
  554. "network": {},
  555. "transactionTimestamp": {
  556. "type": "timestamp"
  557. },
  558. "confirmationStatus": {}
  559. }
  560. }
  561. },
  562. "nextToken": {}
  563. }
  564. }
  565. }
  566. },
  567. "shapes": {
  568. "S4": {
  569. "type": "structure",
  570. "required": [
  571. "network"
  572. ],
  573. "members": {
  574. "network": {},
  575. "contractAddress": {},
  576. "tokenId": {}
  577. }
  578. },
  579. "S8": {
  580. "type": "structure",
  581. "required": [
  582. "address"
  583. ],
  584. "members": {
  585. "address": {}
  586. }
  587. },
  588. "S9": {
  589. "type": "structure",
  590. "members": {
  591. "time": {
  592. "type": "timestamp"
  593. }
  594. }
  595. },
  596. "Sj": {
  597. "type": "structure",
  598. "required": [
  599. "network",
  600. "contractAddress"
  601. ],
  602. "members": {
  603. "network": {},
  604. "contractAddress": {}
  605. }
  606. },
  607. "S1c": {
  608. "type": "structure",
  609. "required": [
  610. "include"
  611. ],
  612. "members": {
  613. "include": {
  614. "type": "list",
  615. "member": {}
  616. }
  617. }
  618. },
  619. "S1j": {
  620. "type": "list",
  621. "member": {
  622. "type": "structure",
  623. "required": [
  624. "network",
  625. "transactionHash",
  626. "eventType"
  627. ],
  628. "members": {
  629. "network": {},
  630. "transactionHash": {},
  631. "eventType": {},
  632. "from": {},
  633. "to": {},
  634. "value": {},
  635. "contractAddress": {},
  636. "tokenId": {},
  637. "transactionId": {},
  638. "voutIndex": {
  639. "type": "integer"
  640. },
  641. "voutSpent": {
  642. "type": "boolean"
  643. },
  644. "spentVoutTransactionId": {},
  645. "spentVoutTransactionHash": {},
  646. "spentVoutIndex": {
  647. "type": "integer"
  648. },
  649. "blockchainInstant": {
  650. "shape": "S9"
  651. },
  652. "confirmationStatus": {}
  653. }
  654. }
  655. }
  656. }
  657. }