| 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 |
"name":"BatchGetTokenBalance", |
| 18 |
"http":{ |
| 19 |
"method":"POST", |
| 20 |
"requestUri":"/batch-get-token-balance", |
| 21 |
"responseCode":200 |
| 22 |
}, |
| 23 |
"input":{"shape":"BatchGetTokenBalanceInput"}, |
| 24 |
"output":{"shape":"BatchGetTokenBalanceOutput"}, |
| 25 |
"errors":[ |
| 26 |
{"shape":"ThrottlingException"}, |
| 27 |
{"shape":"ValidationException"}, |
| 28 |
{"shape":"ResourceNotFoundException"}, |
| 29 |
{"shape":"AccessDeniedException"}, |
| 30 |
{"shape":"InternalServerException"}, |
| 31 |
{"shape":"ServiceQuotaExceededException"} |
| 32 |
] |
| 33 |
}, |
| 34 |
"GetAssetContract":{ |
| 35 |
"name":"GetAssetContract", |
| 36 |
"http":{ |
| 37 |
"method":"POST", |
| 38 |
"requestUri":"/get-asset-contract", |
| 39 |
"responseCode":200 |
| 40 |
}, |
| 41 |
"input":{"shape":"GetAssetContractInput"}, |
| 42 |
"output":{"shape":"GetAssetContractOutput"}, |
| 43 |
"errors":[ |
| 44 |
{"shape":"ThrottlingException"}, |
| 45 |
{"shape":"ValidationException"}, |
| 46 |
{"shape":"ResourceNotFoundException"}, |
| 47 |
{"shape":"AccessDeniedException"}, |
| 48 |
{"shape":"InternalServerException"}, |
| 49 |
{"shape":"ServiceQuotaExceededException"} |
| 50 |
] |
| 51 |
}, |
| 52 |
"GetTokenBalance":{ |
| 53 |
"name":"GetTokenBalance", |
| 54 |
"http":{ |
| 55 |
"method":"POST", |
| 56 |
"requestUri":"/get-token-balance", |
| 57 |
"responseCode":200 |
| 58 |
}, |
| 59 |
"input":{"shape":"GetTokenBalanceInput"}, |
| 60 |
"output":{"shape":"GetTokenBalanceOutput"}, |
| 61 |
"errors":[ |
| 62 |
{"shape":"ThrottlingException"}, |
| 63 |
{"shape":"ValidationException"}, |
| 64 |
{"shape":"ResourceNotFoundException"}, |
| 65 |
{"shape":"AccessDeniedException"}, |
| 66 |
{"shape":"InternalServerException"}, |
| 67 |
{"shape":"ServiceQuotaExceededException"} |
| 68 |
] |
| 69 |
}, |
| 70 |
"GetTransaction":{ |
| 71 |
"name":"GetTransaction", |
| 72 |
"http":{ |
| 73 |
"method":"POST", |
| 74 |
"requestUri":"/get-transaction", |
| 75 |
"responseCode":200 |
| 76 |
}, |
| 77 |
"input":{"shape":"GetTransactionInput"}, |
| 78 |
"output":{"shape":"GetTransactionOutput"}, |
| 79 |
"errors":[ |
| 80 |
{"shape":"ThrottlingException"}, |
| 81 |
{"shape":"ValidationException"}, |
| 82 |
{"shape":"ResourceNotFoundException"}, |
| 83 |
{"shape":"AccessDeniedException"}, |
| 84 |
{"shape":"InternalServerException"}, |
| 85 |
{"shape":"ServiceQuotaExceededException"} |
| 86 |
] |
| 87 |
}, |
| 88 |
"ListAssetContracts":{ |
| 89 |
"name":"ListAssetContracts", |
| 90 |
"http":{ |
| 91 |
"method":"POST", |
| 92 |
"requestUri":"/list-asset-contracts", |
| 93 |
"responseCode":200 |
| 94 |
}, |
| 95 |
"input":{"shape":"ListAssetContractsInput"}, |
| 96 |
"output":{"shape":"ListAssetContractsOutput"}, |
| 97 |
"errors":[ |
| 98 |
{"shape":"ThrottlingException"}, |
| 99 |
{"shape":"ValidationException"}, |
| 100 |
{"shape":"AccessDeniedException"}, |
| 101 |
{"shape":"InternalServerException"}, |
| 102 |
{"shape":"ServiceQuotaExceededException"} |
| 103 |
] |
| 104 |
}, |
| 105 |
"ListTokenBalances":{ |
| 106 |
"name":"ListTokenBalances", |
| 107 |
"http":{ |
| 108 |
"method":"POST", |
| 109 |
"requestUri":"/list-token-balances", |
| 110 |
"responseCode":200 |
| 111 |
}, |
| 112 |
"input":{"shape":"ListTokenBalancesInput"}, |
| 113 |
"output":{"shape":"ListTokenBalancesOutput"}, |
| 114 |
"errors":[ |
| 115 |
{"shape":"ThrottlingException"}, |
| 116 |
{"shape":"ValidationException"}, |
| 117 |
{"shape":"AccessDeniedException"}, |
| 118 |
{"shape":"InternalServerException"}, |
| 119 |
{"shape":"ServiceQuotaExceededException"} |
| 120 |
] |
| 121 |
}, |
| 122 |
"ListTransactionEvents":{ |
| 123 |
"name":"ListTransactionEvents", |
| 124 |
"http":{ |
| 125 |
"method":"POST", |
| 126 |
"requestUri":"/list-transaction-events", |
| 127 |
"responseCode":200 |
| 128 |
}, |
| 129 |
"input":{"shape":"ListTransactionEventsInput"}, |
| 130 |
"output":{"shape":"ListTransactionEventsOutput"}, |
| 131 |
"errors":[ |
| 132 |
{"shape":"ThrottlingException"}, |
| 133 |
{"shape":"ValidationException"}, |
| 134 |
{"shape":"AccessDeniedException"}, |
| 135 |
{"shape":"InternalServerException"}, |
| 136 |
{"shape":"ServiceQuotaExceededException"} |
| 137 |
] |
| 138 |
}, |
| 139 |
"ListTransactions":{ |
| 140 |
"name":"ListTransactions", |
| 141 |
"http":{ |
| 142 |
"method":"POST", |
| 143 |
"requestUri":"/list-transactions", |
| 144 |
"responseCode":200 |
| 145 |
}, |
| 146 |
"input":{"shape":"ListTransactionsInput"}, |
| 147 |
"output":{"shape":"ListTransactionsOutput"}, |
| 148 |
"errors":[ |
| 149 |
{"shape":"ThrottlingException"}, |
| 150 |
{"shape":"ValidationException"}, |
| 151 |
{"shape":"AccessDeniedException"}, |
| 152 |
{"shape":"InternalServerException"}, |
| 153 |
{"shape":"ServiceQuotaExceededException"} |
| 154 |
] |
| 155 |
} |
| 156 |
}, |
| 157 |
"shapes":{ |
| 158 |
"AccessDeniedException":{ |
| 159 |
"type":"structure", |
| 160 |
"required":["message"], |
| 161 |
"members":{ |
| 162 |
"message":{"shape":"ExceptionMessage"} |
| 163 |
}, |
| 164 |
"error":{ |
| 165 |
"httpStatusCode":403, |
| 166 |
"senderFault":true |
| 167 |
}, |
| 168 |
"exception":true |
| 169 |
}, |
| 170 |
"AssetContract":{ |
| 171 |
"type":"structure", |
| 172 |
"required":[ |
| 173 |
"contractIdentifier", |
| 174 |
"tokenStandard", |
| 175 |
"deployerAddress" |
| 176 |
], |
| 177 |
"members":{ |
| 178 |
"contractIdentifier":{"shape":"ContractIdentifier"}, |
| 179 |
"tokenStandard":{"shape":"QueryTokenStandard"}, |
| 180 |
"deployerAddress":{"shape":"ChainAddress"} |
| 181 |
} |
| 182 |
}, |
| 183 |
"AssetContractList":{ |
| 184 |
"type":"list", |
| 185 |
"member":{"shape":"AssetContract"}, |
| 186 |
"max":250, |
| 187 |
"min":0 |
| 188 |
}, |
| 189 |
"BatchGetTokenBalanceErrorItem":{ |
| 190 |
"type":"structure", |
| 191 |
"required":[ |
| 192 |
"errorCode", |
| 193 |
"errorMessage", |
| 194 |
"errorType" |
| 195 |
], |
| 196 |
"members":{ |
| 197 |
"tokenIdentifier":{"shape":"TokenIdentifier"}, |
| 198 |
"ownerIdentifier":{"shape":"OwnerIdentifier"}, |
| 199 |
"atBlockchainInstant":{"shape":"BlockchainInstant"}, |
| 200 |
"errorCode":{"shape":"String"}, |
| 201 |
"errorMessage":{"shape":"String"}, |
| 202 |
"errorType":{"shape":"ErrorType"} |
| 203 |
} |
| 204 |
}, |
| 205 |
"BatchGetTokenBalanceErrors":{ |
| 206 |
"type":"list", |
| 207 |
"member":{"shape":"BatchGetTokenBalanceErrorItem"}, |
| 208 |
"max":10, |
| 209 |
"min":0 |
| 210 |
}, |
| 211 |
"BatchGetTokenBalanceInput":{ |
| 212 |
"type":"structure", |
| 213 |
"members":{ |
| 214 |
"getTokenBalanceInputs":{"shape":"GetTokenBalanceInputList"} |
| 215 |
} |
| 216 |
}, |
| 217 |
"BatchGetTokenBalanceInputItem":{ |
| 218 |
"type":"structure", |
| 219 |
"required":[ |
| 220 |
"tokenIdentifier", |
| 221 |
"ownerIdentifier" |
| 222 |
], |
| 223 |
"members":{ |
| 224 |
"tokenIdentifier":{"shape":"TokenIdentifier"}, |
| 225 |
"ownerIdentifier":{"shape":"OwnerIdentifier"}, |
| 226 |
"atBlockchainInstant":{"shape":"BlockchainInstant"} |
| 227 |
} |
| 228 |
}, |
| 229 |
"BatchGetTokenBalanceOutput":{ |
| 230 |
"type":"structure", |
| 231 |
"required":[ |
| 232 |
"tokenBalances", |
| 233 |
"errors" |
| 234 |
], |
| 235 |
"members":{ |
| 236 |
"tokenBalances":{"shape":"BatchGetTokenBalanceOutputList"}, |
| 237 |
"errors":{"shape":"BatchGetTokenBalanceErrors"} |
| 238 |
} |
| 239 |
}, |
| 240 |
"BatchGetTokenBalanceOutputItem":{ |
| 241 |
"type":"structure", |
| 242 |
"required":[ |
| 243 |
"balance", |
| 244 |
"atBlockchainInstant" |
| 245 |
], |
| 246 |
"members":{ |
| 247 |
"ownerIdentifier":{"shape":"OwnerIdentifier"}, |
| 248 |
"tokenIdentifier":{"shape":"TokenIdentifier"}, |
| 249 |
"balance":{"shape":"String"}, |
| 250 |
"atBlockchainInstant":{"shape":"BlockchainInstant"}, |
| 251 |
"lastUpdatedTime":{"shape":"BlockchainInstant"} |
| 252 |
} |
| 253 |
}, |
| 254 |
"BatchGetTokenBalanceOutputList":{ |
| 255 |
"type":"list", |
| 256 |
"member":{"shape":"BatchGetTokenBalanceOutputItem"}, |
| 257 |
"max":10, |
| 258 |
"min":0 |
| 259 |
}, |
| 260 |
"BlockHash":{ |
| 261 |
"type":"string", |
| 262 |
"pattern":"(0x[A-Fa-f0-9]{64}|[A-Fa-f0-9]{64})" |
| 263 |
}, |
| 264 |
"BlockchainInstant":{ |
| 265 |
"type":"structure", |
| 266 |
"members":{ |
| 267 |
"time":{"shape":"Timestamp"} |
| 268 |
} |
| 269 |
}, |
| 270 |
"ChainAddress":{ |
| 271 |
"type":"string", |
| 272 |
"pattern":"[-A-Za-z0-9]{13,74}" |
| 273 |
}, |
| 274 |
"ContractFilter":{ |
| 275 |
"type":"structure", |
| 276 |
"required":[ |
| 277 |
"network", |
| 278 |
"tokenStandard", |
| 279 |
"deployerAddress" |
| 280 |
], |
| 281 |
"members":{ |
| 282 |
"network":{"shape":"QueryNetwork"}, |
| 283 |
"tokenStandard":{"shape":"QueryTokenStandard"}, |
| 284 |
"deployerAddress":{"shape":"ChainAddress"} |
| 285 |
} |
| 286 |
}, |
| 287 |
"ContractIdentifier":{ |
| 288 |
"type":"structure", |
| 289 |
"required":[ |
| 290 |
"network", |
| 291 |
"contractAddress" |
| 292 |
], |
| 293 |
"members":{ |
| 294 |
"network":{"shape":"QueryNetwork"}, |
| 295 |
"contractAddress":{"shape":"ChainAddress"} |
| 296 |
} |
| 297 |
}, |
| 298 |
"ContractMetadata":{ |
| 299 |
"type":"structure", |
| 300 |
"members":{ |
| 301 |
"name":{"shape":"String"}, |
| 302 |
"symbol":{"shape":"String"}, |
| 303 |
"decimals":{"shape":"Integer"} |
| 304 |
} |
| 305 |
}, |
| 306 |
"ErrorType":{ |
| 307 |
"type":"string", |
| 308 |
"enum":[ |
| 309 |
"VALIDATION_EXCEPTION", |
| 310 |
"RESOURCE_NOT_FOUND_EXCEPTION" |
| 311 |
] |
| 312 |
}, |
| 313 |
"ExceptionMessage":{ |
| 314 |
"type":"string", |
| 315 |
"min":1 |
| 316 |
}, |
| 317 |
"GetAssetContractInput":{ |
| 318 |
"type":"structure", |
| 319 |
"required":["contractIdentifier"], |
| 320 |
"members":{ |
| 321 |
"contractIdentifier":{"shape":"ContractIdentifier"} |
| 322 |
} |
| 323 |
}, |
| 324 |
"GetAssetContractOutput":{ |
| 325 |
"type":"structure", |
| 326 |
"required":[ |
| 327 |
"contractIdentifier", |
| 328 |
"tokenStandard", |
| 329 |
"deployerAddress" |
| 330 |
], |
| 331 |
"members":{ |
| 332 |
"contractIdentifier":{"shape":"ContractIdentifier"}, |
| 333 |
"tokenStandard":{"shape":"QueryTokenStandard"}, |
| 334 |
"deployerAddress":{"shape":"ChainAddress"}, |
| 335 |
"metadata":{"shape":"ContractMetadata"} |
| 336 |
} |
| 337 |
}, |
| 338 |
"GetTokenBalanceInput":{ |
| 339 |
"type":"structure", |
| 340 |
"required":[ |
| 341 |
"tokenIdentifier", |
| 342 |
"ownerIdentifier" |
| 343 |
], |
| 344 |
"members":{ |
| 345 |
"tokenIdentifier":{"shape":"TokenIdentifier"}, |
| 346 |
"ownerIdentifier":{"shape":"OwnerIdentifier"}, |
| 347 |
"atBlockchainInstant":{"shape":"BlockchainInstant"} |
| 348 |
} |
| 349 |
}, |
| 350 |
"GetTokenBalanceInputList":{ |
| 351 |
"type":"list", |
| 352 |
"member":{"shape":"BatchGetTokenBalanceInputItem"}, |
| 353 |
"max":10, |
| 354 |
"min":1 |
| 355 |
}, |
| 356 |
"GetTokenBalanceOutput":{ |
| 357 |
"type":"structure", |
| 358 |
"required":[ |
| 359 |
"balance", |
| 360 |
"atBlockchainInstant" |
| 361 |
], |
| 362 |
"members":{ |
| 363 |
"ownerIdentifier":{"shape":"OwnerIdentifier"}, |
| 364 |
"tokenIdentifier":{"shape":"TokenIdentifier"}, |
| 365 |
"balance":{"shape":"String"}, |
| 366 |
"atBlockchainInstant":{"shape":"BlockchainInstant"}, |
| 367 |
"lastUpdatedTime":{"shape":"BlockchainInstant"} |
| 368 |
} |
| 369 |
}, |
| 370 |
"GetTransactionInput":{ |
| 371 |
"type":"structure", |
| 372 |
"required":[ |
| 373 |
"transactionHash", |
| 374 |
"network" |
| 375 |
], |
| 376 |
"members":{ |
| 377 |
"transactionHash":{"shape":"QueryTransactionHash"}, |
| 378 |
"network":{"shape":"QueryNetwork"} |
| 379 |
} |
| 380 |
}, |
| 381 |
"GetTransactionOutput":{ |
| 382 |
"type":"structure", |
| 383 |
"required":["transaction"], |
| 384 |
"members":{ |
| 385 |
"transaction":{"shape":"Transaction"} |
| 386 |
} |
| 387 |
}, |
| 388 |
"Integer":{ |
| 389 |
"type":"integer", |
| 390 |
"box":true |
| 391 |
}, |
| 392 |
"InternalServerException":{ |
| 393 |
"type":"structure", |
| 394 |
"required":["message"], |
| 395 |
"members":{ |
| 396 |
"message":{"shape":"ExceptionMessage"}, |
| 397 |
"retryAfterSeconds":{ |
| 398 |
"shape":"Integer", |
| 399 |
"location":"header", |
| 400 |
"locationName":"Retry-After" |
| 401 |
} |
| 402 |
}, |
| 403 |
"error":{"httpStatusCode":500}, |
| 404 |
"exception":true, |
| 405 |
"fault":true, |
| 406 |
"retryable":{"throttling":false} |
| 407 |
}, |
| 408 |
"ListAssetContractsInput":{ |
| 409 |
"type":"structure", |
| 410 |
"required":["contractFilter"], |
| 411 |
"members":{ |
| 412 |
"contractFilter":{"shape":"ContractFilter"}, |
| 413 |
"nextToken":{"shape":"NextToken"}, |
| 414 |
"maxResults":{"shape":"ListAssetContractsInputMaxResultsInteger"} |
| 415 |
} |
| 416 |
}, |
| 417 |
"ListAssetContractsInputMaxResultsInteger":{ |
| 418 |
"type":"integer", |
| 419 |
"box":true, |
| 420 |
"max":250, |
| 421 |
"min":1 |
| 422 |
}, |
| 423 |
"ListAssetContractsOutput":{ |
| 424 |
"type":"structure", |
| 425 |
"required":["contracts"], |
| 426 |
"members":{ |
| 427 |
"contracts":{"shape":"AssetContractList"}, |
| 428 |
"nextToken":{"shape":"NextToken"} |
| 429 |
} |
| 430 |
}, |
| 431 |
"ListTokenBalancesInput":{ |
| 432 |
"type":"structure", |
| 433 |
"required":["tokenFilter"], |
| 434 |
"members":{ |
| 435 |
"ownerFilter":{"shape":"OwnerFilter"}, |
| 436 |
"tokenFilter":{"shape":"TokenFilter"}, |
| 437 |
"nextToken":{"shape":"NextToken"}, |
| 438 |
"maxResults":{"shape":"ListTokenBalancesInputMaxResultsInteger"} |
| 439 |
} |
| 440 |
}, |
| 441 |
"ListTokenBalancesInputMaxResultsInteger":{ |
| 442 |
"type":"integer", |
| 443 |
"box":true, |
| 444 |
"max":250, |
| 445 |
"min":1 |
| 446 |
}, |
| 447 |
"ListTokenBalancesOutput":{ |
| 448 |
"type":"structure", |
| 449 |
"required":["tokenBalances"], |
| 450 |
"members":{ |
| 451 |
"tokenBalances":{"shape":"TokenBalanceList"}, |
| 452 |
"nextToken":{"shape":"NextToken"} |
| 453 |
} |
| 454 |
}, |
| 455 |
"ListTransactionEventsInput":{ |
| 456 |
"type":"structure", |
| 457 |
"required":[ |
| 458 |
"transactionHash", |
| 459 |
"network" |
| 460 |
], |
| 461 |
"members":{ |
| 462 |
"transactionHash":{"shape":"QueryTransactionHash"}, |
| 463 |
"network":{"shape":"QueryNetwork"}, |
| 464 |
"nextToken":{"shape":"NextToken"}, |
| 465 |
"maxResults":{"shape":"ListTransactionEventsInputMaxResultsInteger"} |
| 466 |
} |
| 467 |
}, |
| 468 |
"ListTransactionEventsInputMaxResultsInteger":{ |
| 469 |
"type":"integer", |
| 470 |
"box":true, |
| 471 |
"max":250, |
| 472 |
"min":1 |
| 473 |
}, |
| 474 |
"ListTransactionEventsOutput":{ |
| 475 |
"type":"structure", |
| 476 |
"required":["events"], |
| 477 |
"members":{ |
| 478 |
"events":{"shape":"TransactionEventList"}, |
| 479 |
"nextToken":{"shape":"NextToken"} |
| 480 |
} |
| 481 |
}, |
| 482 |
"ListTransactionsInput":{ |
| 483 |
"type":"structure", |
| 484 |
"required":[ |
| 485 |
"address", |
| 486 |
"network" |
| 487 |
], |
| 488 |
"members":{ |
| 489 |
"address":{"shape":"ChainAddress"}, |
| 490 |
"network":{"shape":"QueryNetwork"}, |
| 491 |
"fromBlockchainInstant":{"shape":"BlockchainInstant"}, |
| 492 |
"toBlockchainInstant":{"shape":"BlockchainInstant"}, |
| 493 |
"sort":{"shape":"ListTransactionsSort"}, |
| 494 |
"nextToken":{"shape":"NextToken"}, |
| 495 |
"maxResults":{"shape":"ListTransactionsInputMaxResultsInteger"} |
| 496 |
} |
| 497 |
}, |
| 498 |
"ListTransactionsInputMaxResultsInteger":{ |
| 499 |
"type":"integer", |
| 500 |
"box":true, |
| 501 |
"max":250, |
| 502 |
"min":1 |
| 503 |
}, |
| 504 |
"ListTransactionsOutput":{ |
| 505 |
"type":"structure", |
| 506 |
"required":["transactions"], |
| 507 |
"members":{ |
| 508 |
"transactions":{"shape":"TransactionOutputList"}, |
| 509 |
"nextToken":{"shape":"NextToken"} |
| 510 |
} |
| 511 |
}, |
| 512 |
"ListTransactionsSort":{ |
| 513 |
"type":"structure", |
| 514 |
"members":{ |
| 515 |
"sortBy":{"shape":"ListTransactionsSortBy"}, |
| 516 |
"sortOrder":{"shape":"SortOrder"} |
| 517 |
} |
| 518 |
}, |
| 519 |
"ListTransactionsSortBy":{ |
| 520 |
"type":"string", |
| 521 |
"enum":["TRANSACTION_TIMESTAMP"] |
| 522 |
}, |
| 523 |
"Long":{ |
| 524 |
"type":"long", |
| 525 |
"box":true |
| 526 |
}, |
| 527 |
"NextToken":{ |
| 528 |
"type":"string", |
| 529 |
"max":131070, |
| 530 |
"min":0 |
| 531 |
}, |
| 532 |
"OwnerFilter":{ |
| 533 |
"type":"structure", |
| 534 |
"required":["address"], |
| 535 |
"members":{ |
| 536 |
"address":{"shape":"ChainAddress"} |
| 537 |
} |
| 538 |
}, |
| 539 |
"OwnerIdentifier":{ |
| 540 |
"type":"structure", |
| 541 |
"required":["address"], |
| 542 |
"members":{ |
| 543 |
"address":{"shape":"ChainAddress"} |
| 544 |
} |
| 545 |
}, |
| 546 |
"QueryNetwork":{ |
| 547 |
"type":"string", |
| 548 |
"enum":[ |
| 549 |
"ETHEREUM_MAINNET", |
| 550 |
"BITCOIN_MAINNET", |
| 551 |
"BITCOIN_TESTNET", |
| 552 |
"ETHEREUM_SEPOLIA_TESTNET" |
| 553 |
] |
| 554 |
}, |
| 555 |
"QueryTokenId":{ |
| 556 |
"type":"string", |
| 557 |
"pattern":"[a-zA-Z0-9]{1,66}" |
| 558 |
}, |
| 559 |
"QueryTokenStandard":{ |
| 560 |
"type":"string", |
| 561 |
"enum":[ |
| 562 |
"ERC20", |
| 563 |
"ERC721", |
| 564 |
"ERC1155" |
| 565 |
] |
| 566 |
}, |
| 567 |
"QueryTransactionEventType":{ |
| 568 |
"type":"string", |
| 569 |
"enum":[ |
| 570 |
"ERC20_TRANSFER", |
| 571 |
"ERC20_MINT", |
| 572 |
"ERC20_BURN", |
| 573 |
"ERC20_DEPOSIT", |
| 574 |
"ERC20_WITHDRAWAL", |
| 575 |
"ERC721_TRANSFER", |
| 576 |
"ERC1155_TRANSFER", |
| 577 |
"BITCOIN_VIN", |
| 578 |
"BITCOIN_VOUT", |
| 579 |
"INTERNAL_ETH_TRANSFER", |
| 580 |
"ETH_TRANSFER" |
| 581 |
] |
| 582 |
}, |
| 583 |
"QueryTransactionHash":{ |
| 584 |
"type":"string", |
| 585 |
"pattern":"(0x[A-Fa-f0-9]{64}|[A-Fa-f0-9]{64})" |
| 586 |
}, |
| 587 |
"QueryTransactionStatus":{ |
| 588 |
"type":"string", |
| 589 |
"enum":[ |
| 590 |
"FINAL", |
| 591 |
"FAILED" |
| 592 |
] |
| 593 |
}, |
| 594 |
"QuotaCode":{"type":"string"}, |
| 595 |
"ResourceId":{"type":"string"}, |
| 596 |
"ResourceNotFoundException":{ |
| 597 |
"type":"structure", |
| 598 |
"required":[ |
| 599 |
"message", |
| 600 |
"resourceId", |
| 601 |
"resourceType" |
| 602 |
], |
| 603 |
"members":{ |
| 604 |
"message":{"shape":"ExceptionMessage"}, |
| 605 |
"resourceId":{"shape":"ResourceId"}, |
| 606 |
"resourceType":{"shape":"ResourceType"} |
| 607 |
}, |
| 608 |
"error":{ |
| 609 |
"httpStatusCode":404, |
| 610 |
"senderFault":true |
| 611 |
}, |
| 612 |
"exception":true |
| 613 |
}, |
| 614 |
"ResourceType":{ |
| 615 |
"type":"string", |
| 616 |
"enum":["collection"] |
| 617 |
}, |
| 618 |
"ServiceCode":{"type":"string"}, |
| 619 |
"ServiceQuotaExceededException":{ |
| 620 |
"type":"structure", |
| 621 |
"required":[ |
| 622 |
"message", |
| 623 |
"resourceId", |
| 624 |
"resourceType", |
| 625 |
"serviceCode", |
| 626 |
"quotaCode" |
| 627 |
], |
| 628 |
"members":{ |
| 629 |
"message":{"shape":"ExceptionMessage"}, |
| 630 |
"resourceId":{"shape":"ResourceId"}, |
| 631 |
"resourceType":{"shape":"ResourceType"}, |
| 632 |
"serviceCode":{"shape":"ServiceCode"}, |
| 633 |
"quotaCode":{"shape":"QuotaCode"} |
| 634 |
}, |
| 635 |
"error":{ |
| 636 |
"httpStatusCode":402, |
| 637 |
"senderFault":true |
| 638 |
}, |
| 639 |
"exception":true |
| 640 |
}, |
| 641 |
"SortOrder":{ |
| 642 |
"type":"string", |
| 643 |
"enum":[ |
| 644 |
"ASCENDING", |
| 645 |
"DESCENDING" |
| 646 |
] |
| 647 |
}, |
| 648 |
"String":{"type":"string"}, |
| 649 |
"ThrottlingException":{ |
| 650 |
"type":"structure", |
| 651 |
"required":[ |
| 652 |
"message", |
| 653 |
"serviceCode", |
| 654 |
"quotaCode" |
| 655 |
], |
| 656 |
"members":{ |
| 657 |
"message":{"shape":"ExceptionMessage"}, |
| 658 |
"serviceCode":{"shape":"ServiceCode"}, |
| 659 |
"quotaCode":{"shape":"QuotaCode"}, |
| 660 |
"retryAfterSeconds":{ |
| 661 |
"shape":"Integer", |
| 662 |
"location":"header", |
| 663 |
"locationName":"Retry-After" |
| 664 |
} |
| 665 |
}, |
| 666 |
"error":{ |
| 667 |
"httpStatusCode":429, |
| 668 |
"senderFault":true |
| 669 |
}, |
| 670 |
"exception":true, |
| 671 |
"retryable":{"throttling":true} |
| 672 |
}, |
| 673 |
"Timestamp":{"type":"timestamp"}, |
| 674 |
"TokenBalance":{ |
| 675 |
"type":"structure", |
| 676 |
"required":[ |
| 677 |
"balance", |
| 678 |
"atBlockchainInstant" |
| 679 |
], |
| 680 |
"members":{ |
| 681 |
"ownerIdentifier":{"shape":"OwnerIdentifier"}, |
| 682 |
"tokenIdentifier":{"shape":"TokenIdentifier"}, |
| 683 |
"balance":{"shape":"String"}, |
| 684 |
"atBlockchainInstant":{"shape":"BlockchainInstant"}, |
| 685 |
"lastUpdatedTime":{"shape":"BlockchainInstant"} |
| 686 |
} |
| 687 |
}, |
| 688 |
"TokenBalanceList":{ |
| 689 |
"type":"list", |
| 690 |
"member":{"shape":"TokenBalance"}, |
| 691 |
"max":250, |
| 692 |
"min":0 |
| 693 |
}, |
| 694 |
"TokenFilter":{ |
| 695 |
"type":"structure", |
| 696 |
"required":["network"], |
| 697 |
"members":{ |
| 698 |
"network":{"shape":"QueryNetwork"}, |
| 699 |
"contractAddress":{"shape":"ChainAddress"}, |
| 700 |
"tokenId":{"shape":"QueryTokenId"} |
| 701 |
} |
| 702 |
}, |
| 703 |
"TokenIdentifier":{ |
| 704 |
"type":"structure", |
| 705 |
"required":["network"], |
| 706 |
"members":{ |
| 707 |
"network":{"shape":"QueryNetwork"}, |
| 708 |
"contractAddress":{"shape":"ChainAddress"}, |
| 709 |
"tokenId":{"shape":"QueryTokenId"} |
| 710 |
} |
| 711 |
}, |
| 712 |
"Transaction":{ |
| 713 |
"type":"structure", |
| 714 |
"required":[ |
| 715 |
"network", |
| 716 |
"transactionHash", |
| 717 |
"transactionTimestamp", |
| 718 |
"transactionIndex", |
| 719 |
"numberOfTransactions", |
| 720 |
"status", |
| 721 |
"to" |
| 722 |
], |
| 723 |
"members":{ |
| 724 |
"network":{"shape":"QueryNetwork"}, |
| 725 |
"blockHash":{"shape":"BlockHash"}, |
| 726 |
"transactionHash":{"shape":"QueryTransactionHash"}, |
| 727 |
"blockNumber":{"shape":"String"}, |
| 728 |
"transactionTimestamp":{"shape":"Timestamp"}, |
| 729 |
"transactionIndex":{"shape":"Long"}, |
| 730 |
"numberOfTransactions":{"shape":"Long"}, |
| 731 |
"status":{"shape":"QueryTransactionStatus"}, |
| 732 |
"to":{"shape":"ChainAddress"}, |
| 733 |
"from":{"shape":"ChainAddress"}, |
| 734 |
"contractAddress":{"shape":"ChainAddress"}, |
| 735 |
"gasUsed":{"shape":"String"}, |
| 736 |
"cumulativeGasUsed":{"shape":"String"}, |
| 737 |
"effectiveGasPrice":{"shape":"String"}, |
| 738 |
"signatureV":{"shape":"Integer"}, |
| 739 |
"signatureR":{"shape":"String"}, |
| 740 |
"signatureS":{"shape":"String"}, |
| 741 |
"transactionFee":{"shape":"String"}, |
| 742 |
"transactionId":{"shape":"String"} |
| 743 |
} |
| 744 |
}, |
| 745 |
"TransactionEvent":{ |
| 746 |
"type":"structure", |
| 747 |
"required":[ |
| 748 |
"network", |
| 749 |
"transactionHash", |
| 750 |
"eventType" |
| 751 |
], |
| 752 |
"members":{ |
| 753 |
"network":{"shape":"QueryNetwork"}, |
| 754 |
"transactionHash":{"shape":"QueryTransactionHash"}, |
| 755 |
"eventType":{"shape":"QueryTransactionEventType"}, |
| 756 |
"from":{"shape":"ChainAddress"}, |
| 757 |
"to":{"shape":"ChainAddress"}, |
| 758 |
"value":{"shape":"String"}, |
| 759 |
"contractAddress":{"shape":"ChainAddress"}, |
| 760 |
"tokenId":{"shape":"QueryTokenId"}, |
| 761 |
"transactionId":{"shape":"String"}, |
| 762 |
"voutIndex":{"shape":"Integer"} |
| 763 |
} |
| 764 |
}, |
| 765 |
"TransactionEventList":{ |
| 766 |
"type":"list", |
| 767 |
"member":{"shape":"TransactionEvent"}, |
| 768 |
"max":250, |
| 769 |
"min":0 |
| 770 |
}, |
| 771 |
"TransactionOutputItem":{ |
| 772 |
"type":"structure", |
| 773 |
"required":[ |
| 774 |
"transactionHash", |
| 775 |
"network", |
| 776 |
"transactionTimestamp" |
| 777 |
], |
| 778 |
"members":{ |
| 779 |
"transactionHash":{"shape":"QueryTransactionHash"}, |
| 780 |
"network":{"shape":"QueryNetwork"}, |
| 781 |
"transactionTimestamp":{"shape":"Timestamp"} |
| 782 |
} |
| 783 |
}, |
| 784 |
"TransactionOutputList":{ |
| 785 |
"type":"list", |
| 786 |
"member":{"shape":"TransactionOutputItem"}, |
| 787 |
"max":250, |
| 788 |
"min":0 |
| 789 |
}, |
| 790 |
"ValidationException":{ |
| 791 |
"type":"structure", |
| 792 |
"required":[ |
| 793 |
"message", |
| 794 |
"reason" |
| 795 |
], |
| 796 |
"members":{ |
| 797 |
"message":{"shape":"ExceptionMessage"}, |
| 798 |
"reason":{"shape":"ValidationExceptionReason"}, |
| 799 |
"fieldList":{"shape":"ValidationExceptionFieldList"} |
| 800 |
}, |
| 801 |
"error":{ |
| 802 |
"httpStatusCode":400, |
| 803 |
"senderFault":true |
| 804 |
}, |
| 805 |
"exception":true |
| 806 |
}, |
| 807 |
"ValidationExceptionField":{ |
| 808 |
"type":"structure", |
| 809 |
"required":[ |
| 810 |
"name", |
| 811 |
"message" |
| 812 |
], |
| 813 |
"members":{ |
| 814 |
"name":{"shape":"String"}, |
| 815 |
"message":{"shape":"String"} |
| 816 |
} |
| 817 |
}, |
| 818 |
"ValidationExceptionFieldList":{ |
| 819 |
"type":"list", |
| 820 |
"member":{"shape":"ValidationExceptionField"} |
| 821 |
}, |
| 822 |
"ValidationExceptionReason":{ |
| 823 |
"type":"string", |
| 824 |
"enum":[ |
| 825 |
"unknownOperation", |
| 826 |
"cannotParse", |
| 827 |
"fieldValidationFailed", |
| 828 |
"other" |
| 829 |
] |
| 830 |
} |
| 831 |
} |
| 832 |
} |