{ "smithy": "2.0", "shapes": { "com.amazonaws.managedblockchainquery#AccessDeniedException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.managedblockchainquery#ExceptionMessage", "traits": { "smithy.api#documentation": "
The container for the exception message.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "The Amazon Web Services account doesn\u2019t have access to this resource.
", "smithy.api#error": "client", "smithy.api#httpError": 403 } }, "com.amazonaws.managedblockchainquery#AddressIdentifierFilter": { "type": "structure", "members": { "transactionEventToAddress": { "target": "com.amazonaws.managedblockchainquery#ChainAddresses", "traits": { "smithy.api#documentation": "The container for the recipient address of the transaction.
", "smithy.api#length": { "min": 1, "max": 1 }, "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "This is the container for the unique public address on the blockchain.
" } }, "com.amazonaws.managedblockchainquery#AssetContract": { "type": "structure", "members": { "contractIdentifier": { "target": "com.amazonaws.managedblockchainquery#ContractIdentifier", "traits": { "smithy.api#documentation": "The container for the contract identifier containing its blockchain network \n and address.
", "smithy.api#required": {} } }, "tokenStandard": { "target": "com.amazonaws.managedblockchainquery#QueryTokenStandard", "traits": { "smithy.api#documentation": "The token standard of the contract.
", "smithy.api#required": {} } }, "deployerAddress": { "target": "com.amazonaws.managedblockchainquery#ChainAddress", "traits": { "smithy.api#documentation": "The address of the contract deployer.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "This container contains information about an contract.
" } }, "com.amazonaws.managedblockchainquery#AssetContractList": { "type": "list", "member": { "target": "com.amazonaws.managedblockchainquery#AssetContract" }, "traits": { "smithy.api#length": { "min": 0, "max": 250 } } }, "com.amazonaws.managedblockchainquery#BatchGetTokenBalance": { "type": "operation", "input": { "target": "com.amazonaws.managedblockchainquery#BatchGetTokenBalanceInput" }, "output": { "target": "com.amazonaws.managedblockchainquery#BatchGetTokenBalanceOutput" }, "errors": [ { "target": "com.amazonaws.managedblockchainquery#AccessDeniedException" }, { "target": "com.amazonaws.managedblockchainquery#InternalServerException" }, { "target": "com.amazonaws.managedblockchainquery#ResourceNotFoundException" }, { "target": "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException" }, { "target": "com.amazonaws.managedblockchainquery#ThrottlingException" }, { "target": "com.amazonaws.managedblockchainquery#ValidationException" } ], "traits": { "aws.iam#actionPermissionDescription": "Grants permission to batch calls for GetTokenBalance API", "smithy.api#documentation": "Gets the token balance for a batch of tokens by using the BatchGetTokenBalance \n action for every token in the request.
Only the native tokens BTC and ETH, and the ERC-20, \n ERC-721, and ERC 1155 token standards are supported.
\nThe error code associated with the error.
", "smithy.api#required": {} } }, "errorMessage": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "The message associated with the error.
", "smithy.api#required": {} } }, "errorType": { "target": "com.amazonaws.managedblockchainquery#ErrorType", "traits": { "smithy.api#documentation": "The type of error.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Error generated from a failed BatchGetTokenBalance request.
An array of BatchGetTokenBalanceInputItem objects whose balance is being requested.
The container for the input for getting a token balance.
" } }, "com.amazonaws.managedblockchainquery#BatchGetTokenBalanceOutput": { "type": "structure", "members": { "tokenBalances": { "target": "com.amazonaws.managedblockchainquery#BatchGetTokenBalanceOutputList", "traits": { "smithy.api#documentation": "An array of BatchGetTokenBalanceOutputItem objects returned by the response.
An array of BatchGetTokenBalanceErrorItem objects returned from the request.
The container for the token balance.
", "smithy.api#required": {} } }, "atBlockchainInstant": { "target": "com.amazonaws.managedblockchainquery#BlockchainInstant", "traits": { "smithy.api#required": {} } }, "lastUpdatedTime": { "target": "com.amazonaws.managedblockchainquery#BlockchainInstant" } }, "traits": { "smithy.api#documentation": "The container for the properties of a token balance output.
" } }, "com.amazonaws.managedblockchainquery#BatchGetTokenBalanceOutputList": { "type": "list", "member": { "target": "com.amazonaws.managedblockchainquery#BatchGetTokenBalanceOutputItem" }, "traits": { "smithy.api#length": { "min": 0, "max": 10 } } }, "com.amazonaws.managedblockchainquery#BlockHash": { "type": "string", "traits": { "smithy.api#pattern": "^(0x[A-Fa-f0-9]{64}|[A-Fa-f0-9]{64})$" } }, "com.amazonaws.managedblockchainquery#BlockchainInstant": { "type": "structure", "members": { "time": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "The container of the Timestamp of the blockchain instant.
This timestamp will only be recorded up to \n the second.
The container for time.
" } }, "com.amazonaws.managedblockchainquery#ChainAddress": { "type": "string", "traits": { "smithy.api#pattern": "^[-A-Za-z0-9]{13,74}$" } }, "com.amazonaws.managedblockchainquery#ChainAddresses": { "type": "list", "member": { "target": "com.amazonaws.managedblockchainquery#ChainAddress" } }, "com.amazonaws.managedblockchainquery#ConfirmationStatus": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "FINAL", "name": "FINAL" }, { "value": "NONFINAL", "name": "NONFINAL" } ] } }, "com.amazonaws.managedblockchainquery#ConfirmationStatusFilter": { "type": "structure", "members": { "include": { "target": "com.amazonaws.managedblockchainquery#ConfirmationStatusIncludeList", "traits": { "smithy.api#documentation": "The container to determine whether to list results that have only reached \n finality\n . Transactions \n that have reached finality are always part of the response.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "The container for the ConfirmationStatusFilter that filters for the \n finality\n of the results.
The blockchain network of the contract.
", "smithy.api#required": {} } }, "tokenStandard": { "target": "com.amazonaws.managedblockchainquery#QueryTokenStandard", "traits": { "smithy.api#documentation": "The container for the token standard.
", "smithy.api#required": {} } }, "deployerAddress": { "target": "com.amazonaws.managedblockchainquery#ChainAddress", "traits": { "smithy.api#documentation": "The network address of the deployer.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "The contract or wallet address by which to filter the request.
" } }, "com.amazonaws.managedblockchainquery#ContractIdentifier": { "type": "structure", "members": { "network": { "target": "com.amazonaws.managedblockchainquery#QueryNetwork", "traits": { "smithy.api#documentation": "The blockchain network of the contract.
", "smithy.api#required": {} } }, "contractAddress": { "target": "com.amazonaws.managedblockchainquery#ChainAddress", "traits": { "smithy.api#documentation": "Container for the blockchain address about a contract.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Container for the blockchain address and network information about a contract.
" } }, "com.amazonaws.managedblockchainquery#ContractMetadata": { "type": "structure", "members": { "name": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "The name of the token contract.
" } }, "symbol": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "The symbol of the token contract.
" } }, "decimals": { "target": "smithy.api#Integer", "traits": { "smithy.api#documentation": "The decimals used by the token contract.
" } } }, "traits": { "smithy.api#documentation": "The metadata of the contract.
" } }, "com.amazonaws.managedblockchainquery#ErrorType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "VALIDATION_EXCEPTION", "name": "VALIDATION_EXCEPTION", "documentation": "An API request validation exception" }, { "value": "RESOURCE_NOT_FOUND_EXCEPTION", "name": "RESOURCE_NOT_FOUND_EXCEPTION", "documentation": "An API request retrieving an item that can't be found" } ] } }, "com.amazonaws.managedblockchainquery#ExceptionMessage": { "type": "string", "traits": { "smithy.api#length": { "min": 1 } } }, "com.amazonaws.managedblockchainquery#ExecutionStatus": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "FAILED", "name": "FAILED" }, { "value": "SUCCEEDED", "name": "SUCCEEDED" } ] } }, "com.amazonaws.managedblockchainquery#GetAssetContract": { "type": "operation", "input": { "target": "com.amazonaws.managedblockchainquery#GetAssetContractInput" }, "output": { "target": "com.amazonaws.managedblockchainquery#GetAssetContractOutput" }, "errors": [ { "target": "com.amazonaws.managedblockchainquery#AccessDeniedException" }, { "target": "com.amazonaws.managedblockchainquery#InternalServerException" }, { "target": "com.amazonaws.managedblockchainquery#ResourceNotFoundException" }, { "target": "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException" }, { "target": "com.amazonaws.managedblockchainquery#ThrottlingException" }, { "target": "com.amazonaws.managedblockchainquery#ValidationException" } ], "traits": { "aws.iam#actionPermissionDescription": "Grants permission to fetch information about a contract on the blockchain", "smithy.api#documentation": "Gets the information about a specific contract deployed on the blockchain.
\nThe Bitcoin blockchain networks do not support this \n operation.
\nMetadata is currently only available for some ERC-20 contracts. \n Metadata will be available for additional contracts in the future.
Contains the blockchain address and network information about the contract.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.managedblockchainquery#GetAssetContractOutput": { "type": "structure", "members": { "contractIdentifier": { "target": "com.amazonaws.managedblockchainquery#ContractIdentifier", "traits": { "smithy.api#documentation": "Contains the blockchain address and network information about the contract.
", "smithy.api#required": {} } }, "tokenStandard": { "target": "com.amazonaws.managedblockchainquery#QueryTokenStandard", "traits": { "smithy.api#documentation": "The token standard of the contract requested.
", "smithy.api#required": {} } }, "deployerAddress": { "target": "com.amazonaws.managedblockchainquery#ChainAddress", "traits": { "smithy.api#documentation": "The address of the deployer of contract.
", "smithy.api#required": {} } }, "metadata": { "target": "com.amazonaws.managedblockchainquery#ContractMetadata" } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.managedblockchainquery#GetTokenBalance": { "type": "operation", "input": { "target": "com.amazonaws.managedblockchainquery#GetTokenBalanceInput" }, "output": { "target": "com.amazonaws.managedblockchainquery#GetTokenBalanceOutput" }, "errors": [ { "target": "com.amazonaws.managedblockchainquery#AccessDeniedException" }, { "target": "com.amazonaws.managedblockchainquery#InternalServerException" }, { "target": "com.amazonaws.managedblockchainquery#ResourceNotFoundException" }, { "target": "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException" }, { "target": "com.amazonaws.managedblockchainquery#ThrottlingException" }, { "target": "com.amazonaws.managedblockchainquery#ValidationException" } ], "traits": { "aws.iam#actionPermissionDescription": "Grants permission to retrieve balance of a token for an address on the blockchain", "smithy.api#documentation": "Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the blockchain.
\nOnly the native tokens BTC and ETH, and the ERC-20, \n ERC-721, and ERC 1155 token standards are supported.
\nThe container for the identifier for the token, including the unique \n token ID and its blockchain network.
", "smithy.api#required": {} } }, "ownerIdentifier": { "target": "com.amazonaws.managedblockchainquery#OwnerIdentifier", "traits": { "smithy.api#documentation": "The container for the identifier for the owner.
", "smithy.api#required": {} } }, "atBlockchainInstant": { "target": "com.amazonaws.managedblockchainquery#BlockchainInstant", "traits": { "smithy.api#documentation": "The time for when the TokenBalance is requested or \n the current time if a time is not provided in the request.
\nThis time will only be recorded up to the second.
\nThe container for the token balance.
", "smithy.api#required": {} } }, "atBlockchainInstant": { "target": "com.amazonaws.managedblockchainquery#BlockchainInstant", "traits": { "smithy.api#required": {} } }, "lastUpdatedTime": { "target": "com.amazonaws.managedblockchainquery#BlockchainInstant" } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.managedblockchainquery#GetTransaction": { "type": "operation", "input": { "target": "com.amazonaws.managedblockchainquery#GetTransactionInput" }, "output": { "target": "com.amazonaws.managedblockchainquery#GetTransactionOutput" }, "errors": [ { "target": "com.amazonaws.managedblockchainquery#AccessDeniedException" }, { "target": "com.amazonaws.managedblockchainquery#InternalServerException" }, { "target": "com.amazonaws.managedblockchainquery#ResourceNotFoundException" }, { "target": "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException" }, { "target": "com.amazonaws.managedblockchainquery#ThrottlingException" }, { "target": "com.amazonaws.managedblockchainquery#ValidationException" } ], "traits": { "aws.iam#actionPermissionDescription": "Grants permission to retrieve a transaction on the blockchain", "smithy.api#documentation": "Gets the details of a transaction.
\nThis action will return transaction details for all transactions \n that are confirmed on the blockchain, even if they have not reached \n finality.\n
\nThe hash of a transaction. It is generated when a transaction is created.
" } }, "transactionId": { "target": "com.amazonaws.managedblockchainquery#QueryTransactionId", "traits": { "smithy.api#documentation": "The identifier of a Bitcoin transaction. It is generated when a transaction is created.
\n\n transactionId is only supported on the Bitcoin networks.
The blockchain network where the transaction occurred.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.managedblockchainquery#GetTransactionOutput": { "type": "structure", "members": { "transaction": { "target": "com.amazonaws.managedblockchainquery#Transaction", "traits": { "smithy.api#documentation": "Contains the details of the transaction.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.managedblockchainquery#InternalServerException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.managedblockchainquery#ExceptionMessage", "traits": { "smithy.api#documentation": "The container for the exception message.
", "smithy.api#required": {} } }, "retryAfterSeconds": { "target": "smithy.api#Integer", "traits": { "smithy.api#documentation": "Specifies the retryAfterSeconds value.
The request processing has failed because of an internal error in the service.
", "smithy.api#error": "server", "smithy.api#httpError": 500, "smithy.api#retryable": {} } }, "com.amazonaws.managedblockchainquery#ListAssetContracts": { "type": "operation", "input": { "target": "com.amazonaws.managedblockchainquery#ListAssetContractsInput" }, "output": { "target": "com.amazonaws.managedblockchainquery#ListAssetContractsOutput" }, "errors": [ { "target": "com.amazonaws.managedblockchainquery#AccessDeniedException" }, { "target": "com.amazonaws.managedblockchainquery#InternalServerException" }, { "target": "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException" }, { "target": "com.amazonaws.managedblockchainquery#ThrottlingException" }, { "target": "com.amazonaws.managedblockchainquery#ValidationException" } ], "traits": { "aws.iam#actionPermissionDescription": "Grants permission to fetch multiple contracts on the blockchain", "smithy.api#documentation": "Lists all the contracts for a given contract type deployed by an address \n (either a contract address or a wallet address).
\nThe Bitcoin blockchain networks do not support this \n operation.
", "smithy.api#http": { "uri": "/list-asset-contracts", "method": "POST" }, "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", "items": "contracts", "pageSize": "maxResults" }, "smithy.api#readonly": {} } }, "com.amazonaws.managedblockchainquery#ListAssetContractsInput": { "type": "structure", "members": { "contractFilter": { "target": "com.amazonaws.managedblockchainquery#ContractFilter", "traits": { "smithy.api#documentation": "Contains the filter parameter for the request.
", "smithy.api#required": {} } }, "nextToken": { "target": "com.amazonaws.managedblockchainquery#NextToken", "traits": { "smithy.api#documentation": "The pagination token that indicates the next set of results to retrieve.
" } }, "maxResults": { "target": "smithy.api#Integer", "traits": { "smithy.api#documentation": "The maximum number of contracts to list.
\nDefault: 100\n
Even if additional results can be retrieved, the request can return less \n results than maxResults or an empty array of results.
To retrieve the next set of results, make another request with the \n returned nextToken value. The value of nextToken is \n null when there are no more results to return
An array of contract objects that contain the properties for each contract.
", "smithy.api#required": {} } }, "nextToken": { "target": "com.amazonaws.managedblockchainquery#NextToken", "traits": { "smithy.api#documentation": "The pagination token that indicates the next set of results to retrieve.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.managedblockchainquery#ListFilteredTransactionEvents": { "type": "operation", "input": { "target": "com.amazonaws.managedblockchainquery#ListFilteredTransactionEventsInput" }, "output": { "target": "com.amazonaws.managedblockchainquery#ListFilteredTransactionEventsOutput" }, "errors": [ { "target": "com.amazonaws.managedblockchainquery#AccessDeniedException" }, { "target": "com.amazonaws.managedblockchainquery#InternalServerException" }, { "target": "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException" }, { "target": "com.amazonaws.managedblockchainquery#ThrottlingException" }, { "target": "com.amazonaws.managedblockchainquery#ValidationException" } ], "traits": { "aws.iam#actionPermissionDescription": "Grants permission to retrieve events on the blockchain with additional filters", "smithy.api#documentation": "Lists all the transaction events for an address on the blockchain.
\nThis operation is only supported on the Bitcoin networks.
\nThe blockchain network where the transaction occurred.
\nValid Values: BITCOIN_MAINNET | BITCOIN_TESTNET\n
This is the unique public address on the blockchain for which the transaction events are being requested.
", "smithy.api#required": {} } }, "timeFilter": { "target": "com.amazonaws.managedblockchainquery#TimeFilter", "traits": { "smithy.api#documentation": "This container specifies the time frame for the transaction events returned in the response.
" } }, "voutFilter": { "target": "com.amazonaws.managedblockchainquery#VoutFilter", "traits": { "smithy.api#documentation": "This container specifies filtering attributes related to BITCOIN_VOUT event types
" } }, "confirmationStatusFilter": { "target": "com.amazonaws.managedblockchainquery#ConfirmationStatusFilter" }, "sort": { "target": "com.amazonaws.managedblockchainquery#ListFilteredTransactionEventsSort", "traits": { "smithy.api#documentation": "The order by which the results will be sorted.
" } }, "nextToken": { "target": "com.amazonaws.managedblockchainquery#NextToken", "traits": { "smithy.api#documentation": "The pagination token that indicates the next set of results to retrieve.
" } }, "maxResults": { "target": "smithy.api#Integer", "traits": { "smithy.api#documentation": "The maximum number of transaction events to list.
\nDefault: 100\n
Even if additional results can be retrieved, the request can return less \n results than maxResults or an empty array of results.
To retrieve the next set of results, make another request with the \n returned nextToken value. The value of nextToken is \n null when there are no more results to return
The transaction events returned by the request.
", "smithy.api#required": {} } }, "nextToken": { "target": "com.amazonaws.managedblockchainquery#NextToken", "traits": { "smithy.api#documentation": "The pagination token that indicates the next set of results to retrieve.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.managedblockchainquery#ListFilteredTransactionEventsSort": { "type": "structure", "members": { "sortBy": { "target": "com.amazonaws.managedblockchainquery#ListFilteredTransactionEventsSortBy", "traits": { "smithy.api#documentation": "Container on how the results will be sorted by?
" } }, "sortOrder": { "target": "com.amazonaws.managedblockchainquery#SortOrder", "traits": { "smithy.api#documentation": "The container for the sort order for ListFilteredTransactionEvents. \n The SortOrder field only accepts the values ASCENDING \n and DESCENDING. Not providing SortOrder will default \n to ASCENDING.
Lists all the transaction events for an address on the blockchain.
\nThis operation is only supported on the Bitcoin blockchain networks.
\nThis action returns the following for a given blockchain network:
\nLists all token balances owned by an address (either a contract \n address or a wallet address).
\nLists all token balances for all tokens created by a contract.
\nLists all token balances for a given token.
\nYou must always specify the network property of \n the tokenFilter when using this operation.
The contract or wallet address on the blockchain network by which to filter the \n request. You must specify the address property of the ownerFilter \n when listing balances of tokens owned by the address.
The contract address or a token identifier on the \n blockchain network by which to filter the request. You must specify the contractAddress \n property of this container when listing tokens minted by a contract.
You must always specify the network property of this \n container when using this operation.
\nThe pagination token that indicates the next set of results to retrieve.
" } }, "maxResults": { "target": "smithy.api#Integer", "traits": { "smithy.api#documentation": "The maximum number of token balances to return.
\nDefault: 100\n
Even if additional results can be retrieved, the request can return less \n results than maxResults or an empty array of results.
To retrieve the next set of results, make another request with the \n returned nextToken value. The value of nextToken is \n null when there are no more results to return
An array of TokenBalance objects. Each object contains details about \n the token balance.
The pagination token that indicates the next set of results to retrieve.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.managedblockchainquery#ListTransactionEvents": { "type": "operation", "input": { "target": "com.amazonaws.managedblockchainquery#ListTransactionEventsInput" }, "output": { "target": "com.amazonaws.managedblockchainquery#ListTransactionEventsOutput" }, "errors": [ { "target": "com.amazonaws.managedblockchainquery#AccessDeniedException" }, { "target": "com.amazonaws.managedblockchainquery#InternalServerException" }, { "target": "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException" }, { "target": "com.amazonaws.managedblockchainquery#ThrottlingException" }, { "target": "com.amazonaws.managedblockchainquery#ValidationException" } ], "traits": { "aws.iam#actionPermissionDescription": "Grants permission to retrieve events in a transaction on the blockchain", "smithy.api#documentation": "Lists all the transaction events for a transaction
\nThis action will return transaction details for all transactions \n that are confirmed on the blockchain, even if they have not reached \n finality.\n
\nThe hash of a transaction. It is generated when a transaction is created.
" } }, "transactionId": { "target": "com.amazonaws.managedblockchainquery#QueryTransactionId", "traits": { "smithy.api#documentation": "The identifier of a Bitcoin transaction. It is generated when a transaction is created.
\n\n transactionId is only supported on the Bitcoin networks.
The blockchain network where the transaction events occurred.
", "smithy.api#required": {} } }, "nextToken": { "target": "com.amazonaws.managedblockchainquery#NextToken", "traits": { "smithy.api#documentation": "The pagination token that indicates the next set of results to retrieve.
" } }, "maxResults": { "target": "smithy.api#Integer", "traits": { "smithy.api#documentation": "The maximum number of transaction events to list.
\nDefault: 100\n
Even if additional results can be retrieved, the request can return less \n results than maxResults or an empty array of results.
To retrieve the next set of results, make another request with the \n returned nextToken value. The value of nextToken is \n null when there are no more results to return
An array of TransactionEvent objects. Each object contains details \n about the transaction events.
The pagination token that indicates the next set of results to retrieve.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.managedblockchainquery#ListTransactions": { "type": "operation", "input": { "target": "com.amazonaws.managedblockchainquery#ListTransactionsInput" }, "output": { "target": "com.amazonaws.managedblockchainquery#ListTransactionsOutput" }, "errors": [ { "target": "com.amazonaws.managedblockchainquery#AccessDeniedException" }, { "target": "com.amazonaws.managedblockchainquery#InternalServerException" }, { "target": "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException" }, { "target": "com.amazonaws.managedblockchainquery#ThrottlingException" }, { "target": "com.amazonaws.managedblockchainquery#ValidationException" } ], "traits": { "aws.iam#actionPermissionDescription": "Grants permission to retrieve a multiple transactions on a blockchain", "smithy.api#documentation": "Lists all the transaction events for a transaction.
", "smithy.api#http": { "uri": "/list-transactions", "method": "POST" }, "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", "items": "transactions", "pageSize": "maxResults" }, "smithy.api#readonly": {} } }, "com.amazonaws.managedblockchainquery#ListTransactionsInput": { "type": "structure", "members": { "address": { "target": "com.amazonaws.managedblockchainquery#ChainAddress", "traits": { "smithy.api#documentation": "The address (either a contract or wallet), whose transactions are being requested.
", "smithy.api#required": {} } }, "network": { "target": "com.amazonaws.managedblockchainquery#QueryNetwork", "traits": { "smithy.api#documentation": "The blockchain network where the transactions occurred.
", "smithy.api#required": {} } }, "fromBlockchainInstant": { "target": "com.amazonaws.managedblockchainquery#BlockchainInstant" }, "toBlockchainInstant": { "target": "com.amazonaws.managedblockchainquery#BlockchainInstant" }, "sort": { "target": "com.amazonaws.managedblockchainquery#ListTransactionsSort", "traits": { "smithy.api#documentation": "The order by which the results will be sorted.
" } }, "nextToken": { "target": "com.amazonaws.managedblockchainquery#NextToken", "traits": { "smithy.api#documentation": "The pagination token that indicates the next set of results to retrieve.
" } }, "maxResults": { "target": "smithy.api#Integer", "traits": { "smithy.api#documentation": "The maximum number of transactions to list.
\nDefault: 100\n
Even if additional results can be retrieved, the request can return less \n results than maxResults or an empty array of results.
To retrieve the next set of results, make another request with the \n returned nextToken value. The value of nextToken is \n null when there are no more results to return
This filter is used to include transactions in the response that haven't reached \n finality\n . Transactions that have reached finality are always \n part of the response.
" } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.managedblockchainquery#ListTransactionsOutput": { "type": "structure", "members": { "transactions": { "target": "com.amazonaws.managedblockchainquery#TransactionOutputList", "traits": { "smithy.api#documentation": "The array of transactions returned by the request.
", "smithy.api#required": {} } }, "nextToken": { "target": "com.amazonaws.managedblockchainquery#NextToken", "traits": { "smithy.api#documentation": "The pagination token that indicates the next set of results to retrieve.
" } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.managedblockchainquery#ListTransactionsSort": { "type": "structure", "members": { "sortBy": { "target": "com.amazonaws.managedblockchainquery#ListTransactionsSortBy", "traits": { "smithy.api#documentation": "Defaults to the value TRANSACTION_TIMESTAMP.
The container for the sort order for ListTransactions. \n The SortOrder field only accepts the values ASCENDING \n and DESCENDING. Not providing SortOrder will default \n to ASCENDING.
The container for determining how the list transaction result will \n be sorted.
" } }, "com.amazonaws.managedblockchainquery#ListTransactionsSortBy": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "TRANSACTION_TIMESTAMP", "name": "TRANSACTION_TIMESTAMP", "documentation": "Timestamp of a transaction" } ] } }, "com.amazonaws.managedblockchainquery#NextToken": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 131070 } } }, "com.amazonaws.managedblockchainquery#OwnerFilter": { "type": "structure", "members": { "address": { "target": "com.amazonaws.managedblockchainquery#ChainAddress", "traits": { "smithy.api#documentation": "The contract or wallet address.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "The container for the owner information to filter by.
" } }, "com.amazonaws.managedblockchainquery#OwnerIdentifier": { "type": "structure", "members": { "address": { "target": "com.amazonaws.managedblockchainquery#ChainAddress", "traits": { "smithy.api#documentation": "The contract or wallet address for the owner.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "The container for the owner identifier.
" } }, "com.amazonaws.managedblockchainquery#QueryNetwork": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "ETHEREUM_MAINNET", "name": "ETHEREUM_MAINNET", "documentation": "Ethereum main network" }, { "value": "ETHEREUM_SEPOLIA_TESTNET", "name": "ETHEREUM_SEPOLIA_TESTNET", "documentation": "SEPOLIA network (ethereum testnet)" }, { "value": "BITCOIN_MAINNET", "name": "BITCOIN_MAINNET", "documentation": "Bitcoin main network" }, { "value": "BITCOIN_TESTNET", "name": "BITCOIN_TESTNET", "documentation": "Bitcoin test network" } ] } }, "com.amazonaws.managedblockchainquery#QueryTokenId": { "type": "string", "traits": { "smithy.api#pattern": "^[a-zA-Z0-9]{1,66}$" } }, "com.amazonaws.managedblockchainquery#QueryTokenStandard": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "ERC20", "name": "ERC20" }, { "value": "ERC721", "name": "ERC721" }, { "value": "ERC1155", "name": "ERC1155" } ] } }, "com.amazonaws.managedblockchainquery#QueryTransactionEventType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "ERC20_TRANSFER", "name": "ERC20_TRANSFER", "documentation": "An ERC20 transfer type" }, { "value": "ERC20_MINT", "name": "ERC20_MINT", "documentation": "An ERC20_MINT transfer type" }, { "value": "ERC20_BURN", "name": "ERC20_BURN", "documentation": "An ERC20_BURN transfer type" }, { "value": "ERC20_DEPOSIT", "name": "ERC20_DEPOSIT", "documentation": "An ERC20_DEPOSIT transfer type" }, { "value": "ERC20_WITHDRAWAL", "name": "ERC20_WITHDRAWAL", "documentation": "An ERC20_WITHDRAWAL transfer type" }, { "value": "ERC721_TRANSFER", "name": "ERC721_TRANSFER", "documentation": "An ERC721 transfer type" }, { "value": "ERC1155_TRANSFER", "name": "ERC1155_TRANSFER", "documentation": "An ERC1155 transfer type" }, { "value": "BITCOIN_VIN", "name": "BITCOIN_VIN", "documentation": "A Bitcoin Vin transfer type" }, { "value": "BITCOIN_VOUT", "name": "BITCOIN_VOUT", "documentation": "A Bitcoin Vout transfer type" }, { "value": "INTERNAL_ETH_TRANSFER", "name": "INTERNAL_ETH_TRANSFER", "documentation": "An internal ETH transfer type" }, { "value": "ETH_TRANSFER", "name": "ETH_TRANSFER", "documentation": "An ETH transfer type" } ] } }, "com.amazonaws.managedblockchainquery#QueryTransactionHash": { "type": "string", "traits": { "smithy.api#pattern": "^(0x[A-Fa-f0-9]{64}|[A-Fa-f0-9]{64})$" } }, "com.amazonaws.managedblockchainquery#QueryTransactionId": { "type": "string", "traits": { "smithy.api#pattern": "^(0x[A-Fa-f0-9]{64}|[A-Fa-f0-9]{64})$" } }, "com.amazonaws.managedblockchainquery#QuotaCode": { "type": "string" }, "com.amazonaws.managedblockchainquery#ResourceId": { "type": "string" }, "com.amazonaws.managedblockchainquery#ResourceNotFoundException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.managedblockchainquery#ExceptionMessage", "traits": { "smithy.api#documentation": "The container for the exception message.
", "smithy.api#required": {} } }, "resourceId": { "target": "com.amazonaws.managedblockchainquery#ResourceId", "traits": { "smithy.api#documentation": "The resourceId of the resource that caused the exception.
The resourceType of the resource that caused the exception.
The resource was not found.
", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.managedblockchainquery#ResourceType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "collection", "name": "COLLECTION" } ] } }, "com.amazonaws.managedblockchainquery#ServiceCode": { "type": "string" }, "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.managedblockchainquery#ExceptionMessage", "traits": { "smithy.api#documentation": "The container for the exception message.
", "smithy.api#required": {} } }, "resourceId": { "target": "com.amazonaws.managedblockchainquery#ResourceId", "traits": { "smithy.api#documentation": "The resourceId of the resource that caused the exception.
The resourceType of the resource that caused the exception.
The container for the serviceCode.
The container for the quotaCode.
The service quota has been exceeded for this resource.
", "smithy.api#error": "client", "smithy.api#httpError": 402 } }, "com.amazonaws.managedblockchainquery#SortOrder": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "ASCENDING", "name": "ASCENDING", "documentation": "Result sorted in ascending order" }, { "value": "DESCENDING", "name": "DESCENDING", "documentation": "Result sorted in descending order" } ] } }, "com.amazonaws.managedblockchainquery#ThrottlingException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.managedblockchainquery#ExceptionMessage", "traits": { "smithy.api#documentation": "The container for the exception message.
", "smithy.api#required": {} } }, "serviceCode": { "target": "com.amazonaws.managedblockchainquery#ServiceCode", "traits": { "smithy.api#documentation": "The container for the serviceCode.
The container for the quotaCode.
The container of the retryAfterSeconds value.
The request or operation couldn't be performed because a service is throttling \n requests. The most common source of throttling errors is when you create resources \n that exceed your service limit for this resource type. Request a limit increase or \n delete unused resources, if possible.
", "smithy.api#error": "client", "smithy.api#httpError": 429, "smithy.api#retryable": { "throttling": true } } }, "com.amazonaws.managedblockchainquery#TietonChainQueryService": { "type": "service", "version": "2023-05-04", "operations": [ { "target": "com.amazonaws.managedblockchainquery#BatchGetTokenBalance" }, { "target": "com.amazonaws.managedblockchainquery#GetAssetContract" }, { "target": "com.amazonaws.managedblockchainquery#GetTokenBalance" }, { "target": "com.amazonaws.managedblockchainquery#GetTransaction" }, { "target": "com.amazonaws.managedblockchainquery#ListAssetContracts" }, { "target": "com.amazonaws.managedblockchainquery#ListFilteredTransactionEvents" }, { "target": "com.amazonaws.managedblockchainquery#ListTokenBalances" }, { "target": "com.amazonaws.managedblockchainquery#ListTransactionEvents" }, { "target": "com.amazonaws.managedblockchainquery#ListTransactions" } ], "traits": { "aws.api#service": { "sdkId": "ManagedBlockchain Query", "arnNamespace": "managedblockchain-query" }, "aws.auth#sigv4": { "name": "managedblockchain-query" }, "aws.protocols#restJson1": {}, "smithy.api#cors": { "additionalAllowedHeaders": [ "*", "Authorization", "Date", "X-Amz-Date", "X-Amz-Security-Token", "X-Amz-Target", "content-type", "x-amz-content-sha256", "x-amz-user-agent", "x-amzn-platform-id", "x-amzn-trace-id" ], "additionalExposedHeaders": [ "x-amzn-errortype", "x-amzn-requestid", "x-amzn-errormessage", "x-amzn-trace-id", "x-amz-apigw-id", "date" ], "maxAge": 86400 }, "smithy.api#documentation": "Amazon Managed Blockchain (AMB) Query provides you with convenient access to multi-blockchain network data, which makes \n it easier for you to extract contextual data related to blockchain activity. You can use AMB Query to \n read data from public blockchain networks, such as Bitcoin Mainnet and Ethereum Mainnet. You can \n also get information such as the current and historical balances of addresses, or you can get a \n list of blockchain transactions for a given time period. Additionally, you can get details of a \n given transaction, such as transaction events, which you can further analyze or use in business \n logic for your applications.
", "smithy.api#title": "Amazon Managed Blockchain Query", "smithy.rules#endpointBdd": { "version": "1.1", "parameters": { "Region": { "builtIn": "AWS::Region", "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "string" }, "UseDualStack": { "builtIn": "AWS::UseDualStack", "required": true, "default": false, "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", "type": "boolean" }, "UseFIPS": { "builtIn": "AWS::UseFIPS", "required": true, "default": false, "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", "type": "boolean" }, "Endpoint": { "builtIn": "SDK::Endpoint", "required": false, "documentation": "Override the endpoint used to send this request", "type": "string" } }, "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Endpoint" } ] }, { "fn": "isSet", "argv": [ { "ref": "Region" } ] }, { "fn": "aws.partition", "argv": [ { "ref": "Region" } ], "assign": "PartitionResult" }, { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] }, { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] }, { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] }, true ] }, { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] }, true ] } ], "results": [ { "conditions": [], "error": "Invalid Configuration: FIPS and custom endpoint are not supported", "type": "error" }, { "conditions": [], "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], "endpoint": { "url": { "ref": "Endpoint" }, "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://managedblockchain-query-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://managedblockchain-query-fips.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://managedblockchain-query.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://managedblockchain-query.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } ], "root": 2, "nodeCount": 13, "nodes": "/////wAAAAH/////AAAAAAAAAAwAAAADAAAAAQAAAAQF9eELAAAAAgAAAAUF9eELAAAAAwAAAAgAAAAGAAAABAAAAAcF9eEKAAAABQX14QgF9eEJAAAABAAAAAoAAAAJAAAABgX14QYF9eEHAAAABQAAAAsF9eEFAAAABgX14QQF9eEFAAAAAwX14QEAAAANAAAABAX14QIF9eED" }, "smithy.rules#endpointRuleSet": { "version": "1.0", "parameters": { "Region": { "builtIn": "AWS::Region", "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "string" }, "UseDualStack": { "builtIn": "AWS::UseDualStack", "required": true, "default": false, "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", "type": "boolean" }, "UseFIPS": { "builtIn": "AWS::UseFIPS", "required": true, "default": false, "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", "type": "boolean" }, "Endpoint": { "builtIn": "SDK::Endpoint", "required": false, "documentation": "Override the endpoint used to send this request", "type": "string" } }, "rules": [ { "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Endpoint" } ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] } ], "error": "Invalid Configuration: FIPS and custom endpoint are not supported", "type": "error" }, { "conditions": [], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], "endpoint": { "url": { "ref": "Endpoint" }, "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" } ], "type": "tree" }, { "conditions": [], "rules": [ { "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Region" } ] } ], "rules": [ { "conditions": [ { "fn": "aws.partition", "argv": [ { "ref": "Region" } ], "assign": "PartitionResult" } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] }, { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] } ] }, { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] } ] } ], "rules": [ { "conditions": [], "rules": [ { "conditions": [], "endpoint": { "url": "https://managedblockchain-query-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" } ], "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } ], "type": "tree" }, { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] }, true ] } ], "rules": [ { "conditions": [], "rules": [ { "conditions": [], "endpoint": { "url": "https://managedblockchain-query-fips.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" } ], "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } ], "type": "tree" }, { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] } ] } ], "rules": [ { "conditions": [], "rules": [ { "conditions": [], "endpoint": { "url": "https://managedblockchain-query.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" } ], "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } ], "type": "tree" }, { "conditions": [], "rules": [ { "conditions": [], "endpoint": { "url": "https://managedblockchain-query.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" } ], "type": "tree" } ], "type": "tree" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } ], "type": "tree" } ] }, "smithy.rules#endpointTests": { "testCases": [ { "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://managedblockchain-query-fips.us-east-1.api.aws" } }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://managedblockchain-query-fips.us-east-1.amazonaws.com" } }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://managedblockchain-query.us-east-1.api.aws" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://managedblockchain-query.us-east-1.amazonaws.com" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://managedblockchain-query-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://managedblockchain-query-fips.cn-north-1.amazonaws.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://managedblockchain-query.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://managedblockchain-query.cn-north-1.amazonaws.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://managedblockchain-query-fips.us-gov-east-1.api.aws" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://managedblockchain-query-fips.us-gov-east-1.amazonaws.com" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://managedblockchain-query.us-gov-east-1.api.aws" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://managedblockchain-query.us-gov-east-1.amazonaws.com" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://managedblockchain-query-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { "Region": "us-iso-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://managedblockchain-query.us-iso-east-1.c2s.ic.gov" } }, "params": { "Region": "us-iso-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://managedblockchain-query-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "Region": "us-isob-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://managedblockchain-query.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "Region": "us-isob-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { "UseFIPS": false, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with fips enabled and dualstack disabled", "expect": { "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with fips disabled and dualstack enabled", "expect": { "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true, "Endpoint": "https://example.com" } }, { "documentation": "Missing region", "expect": { "error": "Invalid Configuration: Missing Region" } } ], "version": "1.0" } } }, "com.amazonaws.managedblockchainquery#TimeFilter": { "type": "structure", "members": { "from": { "target": "com.amazonaws.managedblockchainquery#BlockchainInstant" }, "to": { "target": "com.amazonaws.managedblockchainquery#BlockchainInstant" } }, "traits": { "smithy.api#documentation": "This container is used to specify a time frame.
" } }, "com.amazonaws.managedblockchainquery#TokenBalance": { "type": "structure", "members": { "ownerIdentifier": { "target": "com.amazonaws.managedblockchainquery#OwnerIdentifier", "traits": { "smithy.api#documentation": "The container for the identifier of the owner.
" } }, "tokenIdentifier": { "target": "com.amazonaws.managedblockchainquery#TokenIdentifier", "traits": { "smithy.api#documentation": "The identifier for the token, including the unique token ID and its blockchain network.
" } }, "balance": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "The container of the token balance.
", "smithy.api#required": {} } }, "atBlockchainInstant": { "target": "com.amazonaws.managedblockchainquery#BlockchainInstant", "traits": { "smithy.api#documentation": "The time for when the TokenBalance is requested or \n the current time if a time is not provided in the request.
\nThis time will only be recorded up to the second.
\nThe Timestamp of the last transaction at which the balance for the token in the wallet was updated.
The balance of the token.
" } }, "com.amazonaws.managedblockchainquery#TokenBalanceList": { "type": "list", "member": { "target": "com.amazonaws.managedblockchainquery#TokenBalance" }, "traits": { "smithy.api#length": { "min": 0, "max": 250 } } }, "com.amazonaws.managedblockchainquery#TokenFilter": { "type": "structure", "members": { "network": { "target": "com.amazonaws.managedblockchainquery#QueryNetwork", "traits": { "smithy.api#documentation": "The blockchain network of the token.
", "smithy.api#required": {} } }, "contractAddress": { "target": "com.amazonaws.managedblockchainquery#ChainAddress", "traits": { "smithy.api#documentation": "This is the address of the contract.
" } }, "tokenId": { "target": "com.amazonaws.managedblockchainquery#QueryTokenId", "traits": { "smithy.api#documentation": "The unique identifier of the token.
" } } }, "traits": { "smithy.api#documentation": "The container of the token filter like the contract address \n on a given blockchain network or a unique token identifier on a given \n blockchain network.
\nYou must always specify the network property of this \n container when using this operation.
\nThe blockchain network of the token.
", "smithy.api#required": {} } }, "contractAddress": { "target": "com.amazonaws.managedblockchainquery#ChainAddress", "traits": { "smithy.api#documentation": "This is the token's contract address.
" } }, "tokenId": { "target": "com.amazonaws.managedblockchainquery#QueryTokenId", "traits": { "smithy.api#documentation": "The unique identifier of the token.
\nFor native tokens, use the 3 character abbreviation that best matches your token. \n For example, btc for Bitcoin, eth for Ether, etc. For all other token types you must \n specify the tokenId in the 64 character hexadecimal tokenid format.
The container for the identifier for the token including the unique token ID and its blockchain network.
\nOnly the native tokens BTC and ETH, and the ERC-20, \n ERC-721, and ERC 1155 token standards are supported.
\nThe blockchain network where the transaction occurred.
", "smithy.api#required": {} } }, "blockHash": { "target": "com.amazonaws.managedblockchainquery#BlockHash", "traits": { "smithy.api#documentation": "The block hash is a unique identifier for a block. It is a fixed-size \n string that is calculated by using the information in the block. The block \n hash is used to verify the integrity of the data in the block.
" } }, "transactionHash": { "target": "com.amazonaws.managedblockchainquery#QueryTransactionHash", "traits": { "smithy.api#documentation": "The hash of a transaction. It is generated when a transaction is created.
", "smithy.api#required": {} } }, "blockNumber": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "The block number in which the transaction is recorded.
" } }, "transactionTimestamp": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "The Timestamp of the transaction.
The index of the transaction within a blockchain.
", "smithy.api#required": {} } }, "numberOfTransactions": { "target": "smithy.api#Long", "traits": { "smithy.api#documentation": "The number of transactions in the block.
", "smithy.api#required": {} } }, "to": { "target": "com.amazonaws.managedblockchainquery#ChainAddress", "traits": { "smithy.api#documentation": "The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
", "smithy.api#required": {} } }, "from": { "target": "com.amazonaws.managedblockchainquery#ChainAddress", "traits": { "smithy.api#documentation": "The initiator of the transaction. It is either in the form a public key or a \n contract address.
" } }, "contractAddress": { "target": "com.amazonaws.managedblockchainquery#ChainAddress", "traits": { "smithy.api#documentation": "The blockchain address for the contract.
" } }, "gasUsed": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "The amount of gas used for the transaction.
" } }, "cumulativeGasUsed": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "The amount of gas used up to the specified point in the block.
" } }, "effectiveGasPrice": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "The effective gas price.
" } }, "signatureV": { "target": "smithy.api#Integer", "traits": { "smithy.api#documentation": "The signature of the transaction. The Z coordinate of a point V.
" } }, "signatureR": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "The signature of the transaction. The X coordinate of a point R.
" } }, "signatureS": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "The signature of the transaction. The Y coordinate of a point S.
" } }, "transactionFee": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "The transaction fee.
" } }, "transactionId": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "The identifier of a Bitcoin transaction. It is generated when a transaction is created.
" } }, "confirmationStatus": { "target": "com.amazonaws.managedblockchainquery#ConfirmationStatus", "traits": { "smithy.api#documentation": "Specifies whether the transaction has reached Finality.
" } }, "executionStatus": { "target": "com.amazonaws.managedblockchainquery#ExecutionStatus", "traits": { "smithy.api#documentation": "Identifies whether the transaction has succeeded or failed.
" } } }, "traits": { "smithy.api#documentation": "There are two possible types of transactions used for this data type:
\nA Bitcoin transaction is a movement of BTC from one address to \n another.
\nAn Ethereum transaction refers to an action initiated by an externally \n owned account, which is an account managed by a human, not a contract. \n For example, if Bob sends Alice 1 ETH, Bob's account must be debited and \n Alice's must be credited. This state-changing action occurs within a transaction.
\nThe blockchain network where the transaction occurred.
", "smithy.api#required": {} } }, "transactionHash": { "target": "com.amazonaws.managedblockchainquery#QueryTransactionHash", "traits": { "smithy.api#documentation": "The hash of a transaction. It is generated when a transaction is created.
", "smithy.api#required": {} } }, "eventType": { "target": "com.amazonaws.managedblockchainquery#QueryTransactionEventType", "traits": { "smithy.api#documentation": "The type of transaction event.
", "smithy.api#required": {} } }, "from": { "target": "com.amazonaws.managedblockchainquery#ChainAddress", "traits": { "smithy.api#documentation": "The wallet address initiating the transaction. It can either be a public key or a contract.
" } }, "to": { "target": "com.amazonaws.managedblockchainquery#ChainAddress", "traits": { "smithy.api#documentation": "The wallet address receiving the transaction. It can either be a public key or a contract.
" } }, "value": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "The value that was transacted.
" } }, "contractAddress": { "target": "com.amazonaws.managedblockchainquery#ChainAddress", "traits": { "smithy.api#documentation": "The blockchain address for the contract
" } }, "tokenId": { "target": "com.amazonaws.managedblockchainquery#QueryTokenId", "traits": { "smithy.api#documentation": "The unique identifier for the token involved in the transaction.
" } }, "transactionId": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "The identifier of a Bitcoin transaction. It is generated when a transaction is created.
" } }, "voutIndex": { "target": "smithy.api#Integer", "traits": { "smithy.api#documentation": "The position of the transaction output in the transaction output list.
" } }, "voutSpent": { "target": "smithy.api#Boolean", "traits": { "smithy.api#documentation": "Specifies if the transaction output is spent or unspent. This is only returned for BITCOIN_VOUT event types.
\nThis is only returned for BITCOIN_VOUT event types.
The transactionId that created the spent transaction output.
\nThis is only returned for BITCOIN_VIN event types.
The transactionHash that created the spent transaction output.
\nThis is only returned for BITCOIN_VIN event types.
The position of the spent transaction output in the output list of the creating transaction.
\nThis is only returned for BITCOIN_VIN event types.
This container specifies whether the transaction has reached Finality.
" } } }, "traits": { "smithy.api#documentation": "The container for the properties of a transaction event.
" } }, "com.amazonaws.managedblockchainquery#TransactionEventList": { "type": "list", "member": { "target": "com.amazonaws.managedblockchainquery#TransactionEvent" }, "traits": { "smithy.api#length": { "min": 0, "max": 250 } } }, "com.amazonaws.managedblockchainquery#TransactionOutputItem": { "type": "structure", "members": { "transactionHash": { "target": "com.amazonaws.managedblockchainquery#QueryTransactionHash", "traits": { "smithy.api#documentation": "The hash of a transaction. It is generated when a transaction is created.
", "smithy.api#required": {} } }, "transactionId": { "target": "com.amazonaws.managedblockchainquery#QueryTransactionId", "traits": { "smithy.api#documentation": "The identifier of a Bitcoin transaction. It is generated when a transaction is created.
" } }, "network": { "target": "com.amazonaws.managedblockchainquery#QueryNetwork", "traits": { "smithy.api#documentation": "The blockchain network where the transaction occurred.
", "smithy.api#required": {} } }, "transactionTimestamp": { "target": "smithy.api#Timestamp", "traits": { "smithy.api#documentation": "The time when the transaction occurred.
", "smithy.api#required": {} } }, "confirmationStatus": { "target": "com.amazonaws.managedblockchainquery#ConfirmationStatus", "traits": { "smithy.api#documentation": "Specifies whether to list transactions that have not reached Finality.
" } } }, "traits": { "smithy.api#documentation": "The container of the transaction output.
" } }, "com.amazonaws.managedblockchainquery#TransactionOutputList": { "type": "list", "member": { "target": "com.amazonaws.managedblockchainquery#TransactionOutputItem" }, "traits": { "smithy.api#length": { "min": 0, "max": 250 } } }, "com.amazonaws.managedblockchainquery#ValidationException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.managedblockchainquery#ExceptionMessage", "traits": { "smithy.api#documentation": "The container for the exception message.
", "smithy.api#required": {} } }, "reason": { "target": "com.amazonaws.managedblockchainquery#ValidationExceptionReason", "traits": { "smithy.api#documentation": "The container for the reason for the exception
", "smithy.api#required": {} } }, "fieldList": { "target": "com.amazonaws.managedblockchainquery#ValidationExceptionFieldList", "traits": { "smithy.api#documentation": "The container for the fieldList of the exception.
The resource passed is invalid.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.managedblockchainquery#ValidationExceptionField": { "type": "structure", "members": { "name": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "The name of the field that triggered the ValidationException.
The ValidationException message.
The resource passed is invalid.
" } }, "com.amazonaws.managedblockchainquery#ValidationExceptionFieldList": { "type": "list", "member": { "target": "com.amazonaws.managedblockchainquery#ValidationExceptionField" } }, "com.amazonaws.managedblockchainquery#ValidationExceptionReason": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "unknownOperation", "name": "UNKNOWN_OPERATION" }, { "value": "cannotParse", "name": "CANNOT_PARSE" }, { "value": "fieldValidationFailed", "name": "FIELD_VALIDATION_FAILED" }, { "value": "other", "name": "OTHER" } ] } }, "com.amazonaws.managedblockchainquery#VoutFilter": { "type": "structure", "members": { "voutSpent": { "target": "smithy.api#Boolean", "traits": { "smithy.api#documentation": "Specifies if the transaction output is spent or unspent.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "This container specifies filtering attributes related to BITCOIN_VOUT event types