Interface ManagedBlockchainQueryClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface ManagedBlockchainQueryClient extends AwsClient
Service client for accessing Amazon Managed Blockchain Query. This can be created using the staticbuilder()method.Amazon Managed Blockchain (AMB) Query provides you with convenient access to multi-blockchain network data, which makes it easier for you to extract contextual data related to blockchain activity. You can use AMB Query to read data from public blockchain networks, such as Bitcoin Mainnet and Ethereum Mainnet. You can also get information such as the current and historical balances of addresses, or you can get a list of blockchain transactions for a given time period. Additionally, you can get details of a given transaction, such as transaction events, which you can further analyze or use in business logic for your applications.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
batchGetTokenBalance
default BatchGetTokenBalanceResponse batchGetTokenBalance(BatchGetTokenBalanceRequest batchGetTokenBalanceRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Gets the token balance for a batch of tokens by using the
BatchGetTokenBalanceaction for every token in the request.Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.
- Parameters:
batchGetTokenBalanceRequest-- Returns:
- Result of the BatchGetTokenBalance operation returned by the service.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.ResourceNotFoundException- The resource was not found.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
batchGetTokenBalance
default BatchGetTokenBalanceResponse batchGetTokenBalance(Consumer<BatchGetTokenBalanceRequest.Builder> batchGetTokenBalanceRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Gets the token balance for a batch of tokens by using the
BatchGetTokenBalanceaction for every token in the request.Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.
This is a convenience which creates an instance of the
BatchGetTokenBalanceRequest.Builderavoiding the need to create one manually viaBatchGetTokenBalanceRequest.builder()- Parameters:
batchGetTokenBalanceRequest- AConsumerthat will call methods onBatchGetTokenBalanceRequest.Builderto create a request.- Returns:
- Result of the BatchGetTokenBalance operation returned by the service.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.ResourceNotFoundException- The resource was not found.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getAssetContract
default GetAssetContractResponse getAssetContract(GetAssetContractRequest getAssetContractRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Gets the information about a specific contract deployed on the blockchain.
-
The Bitcoin blockchain networks do not support this operation.
-
Metadata is currently only available for some
ERC-20contracts. Metadata will be available for additional contracts in the future.
- Parameters:
getAssetContractRequest-- Returns:
- Result of the GetAssetContract operation returned by the service.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.ResourceNotFoundException- The resource was not found.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
-
getAssetContract
default GetAssetContractResponse getAssetContract(Consumer<GetAssetContractRequest.Builder> getAssetContractRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Gets the information about a specific contract deployed on the blockchain.
-
The Bitcoin blockchain networks do not support this operation.
-
Metadata is currently only available for some
ERC-20contracts. Metadata will be available for additional contracts in the future.
This is a convenience which creates an instance of the
GetAssetContractRequest.Builderavoiding the need to create one manually viaGetAssetContractRequest.builder()- Parameters:
getAssetContractRequest- AConsumerthat will call methods onGetAssetContractRequest.Builderto create a request.- Returns:
- Result of the GetAssetContract operation returned by the service.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.ResourceNotFoundException- The resource was not found.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
-
getTokenBalance
default GetTokenBalanceResponse getTokenBalance(GetTokenBalanceRequest getTokenBalanceRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the blockchain.
Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.
- Parameters:
getTokenBalanceRequest-- Returns:
- Result of the GetTokenBalance operation returned by the service.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.ResourceNotFoundException- The resource was not found.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getTokenBalance
default GetTokenBalanceResponse getTokenBalance(Consumer<GetTokenBalanceRequest.Builder> getTokenBalanceRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the blockchain.
Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.
This is a convenience which creates an instance of the
GetTokenBalanceRequest.Builderavoiding the need to create one manually viaGetTokenBalanceRequest.builder()- Parameters:
getTokenBalanceRequest- AConsumerthat will call methods onGetTokenBalanceRequest.Builderto create a request.- Returns:
- Result of the GetTokenBalance operation returned by the service.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.ResourceNotFoundException- The resource was not found.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getTransaction
default GetTransactionResponse getTransaction(GetTransactionRequest getTransactionRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Gets the details of a transaction.
This action will return transaction details for all transactions that are confirmed on the blockchain, even if they have not reached finality.
- Parameters:
getTransactionRequest-- Returns:
- Result of the GetTransaction operation returned by the service.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.ResourceNotFoundException- The resource was not found.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getTransaction
default GetTransactionResponse getTransaction(Consumer<GetTransactionRequest.Builder> getTransactionRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Gets the details of a transaction.
This action will return transaction details for all transactions that are confirmed on the blockchain, even if they have not reached finality.
This is a convenience which creates an instance of the
GetTransactionRequest.Builderavoiding the need to create one manually viaGetTransactionRequest.builder()- Parameters:
getTransactionRequest- AConsumerthat will call methods onGetTransactionRequest.Builderto create a request.- Returns:
- Result of the GetTransaction operation returned by the service.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.ResourceNotFoundException- The resource was not found.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssetContracts
default ListAssetContractsResponse listAssetContracts(ListAssetContractsRequest listAssetContractsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Lists all the contracts for a given contract type deployed by an address (either a contract address or a wallet address).
The Bitcoin blockchain networks do not support this operation.
- Parameters:
listAssetContractsRequest-- Returns:
- Result of the ListAssetContracts operation returned by the service.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssetContracts
default ListAssetContractsResponse listAssetContracts(Consumer<ListAssetContractsRequest.Builder> listAssetContractsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Lists all the contracts for a given contract type deployed by an address (either a contract address or a wallet address).
The Bitcoin blockchain networks do not support this operation.
This is a convenience which creates an instance of the
ListAssetContractsRequest.Builderavoiding the need to create one manually viaListAssetContractsRequest.builder()- Parameters:
listAssetContractsRequest- AConsumerthat will call methods onListAssetContractsRequest.Builderto create a request.- Returns:
- Result of the ListAssetContracts operation returned by the service.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssetContractsPaginator
default ListAssetContractsIterable listAssetContractsPaginator(ListAssetContractsRequest listAssetContractsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
This is a variant of
listAssetContracts(software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable responses = client.listAssetContractsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable responses = client .listAssetContractsPaginator(request); for (software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable responses = client.listAssetContractsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAssetContracts(software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest)operation.- Parameters:
listAssetContractsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAssetContractsPaginator
default ListAssetContractsIterable listAssetContractsPaginator(Consumer<ListAssetContractsRequest.Builder> listAssetContractsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
This is a variant of
listAssetContracts(software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable responses = client.listAssetContractsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable responses = client .listAssetContractsPaginator(request); for (software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable responses = client.listAssetContractsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAssetContracts(software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest)operation.
This is a convenience which creates an instance of the
ListAssetContractsRequest.Builderavoiding the need to create one manually viaListAssetContractsRequest.builder()- Parameters:
listAssetContractsRequest- AConsumerthat will call methods onListAssetContractsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFilteredTransactionEvents
default ListFilteredTransactionEventsResponse listFilteredTransactionEvents(ListFilteredTransactionEventsRequest listFilteredTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Lists all the transaction events for an address on the blockchain.
This operation is only supported on the Bitcoin networks.
- Parameters:
listFilteredTransactionEventsRequest-- Returns:
- Result of the ListFilteredTransactionEvents operation returned by the service.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFilteredTransactionEvents
default ListFilteredTransactionEventsResponse listFilteredTransactionEvents(Consumer<ListFilteredTransactionEventsRequest.Builder> listFilteredTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Lists all the transaction events for an address on the blockchain.
This operation is only supported on the Bitcoin networks.
This is a convenience which creates an instance of the
ListFilteredTransactionEventsRequest.Builderavoiding the need to create one manually viaListFilteredTransactionEventsRequest.builder()- Parameters:
listFilteredTransactionEventsRequest- AConsumerthat will call methods onListFilteredTransactionEventsRequest.Builderto create a request.- Returns:
- Result of the ListFilteredTransactionEvents operation returned by the service.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFilteredTransactionEventsPaginator
default ListFilteredTransactionEventsIterable listFilteredTransactionEventsPaginator(ListFilteredTransactionEventsRequest listFilteredTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
This is a variant of
listFilteredTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable responses = client.listFilteredTransactionEventsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable responses = client .listFilteredTransactionEventsPaginator(request); for (software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable responses = client.listFilteredTransactionEventsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFilteredTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest)operation.- Parameters:
listFilteredTransactionEventsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFilteredTransactionEventsPaginator
default ListFilteredTransactionEventsIterable listFilteredTransactionEventsPaginator(Consumer<ListFilteredTransactionEventsRequest.Builder> listFilteredTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
This is a variant of
listFilteredTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable responses = client.listFilteredTransactionEventsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable responses = client .listFilteredTransactionEventsPaginator(request); for (software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable responses = client.listFilteredTransactionEventsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFilteredTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest)operation.
This is a convenience which creates an instance of the
ListFilteredTransactionEventsRequest.Builderavoiding the need to create one manually viaListFilteredTransactionEventsRequest.builder()- Parameters:
listFilteredTransactionEventsRequest- AConsumerthat will call methods onListFilteredTransactionEventsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTokenBalances
default ListTokenBalancesResponse listTokenBalances(ListTokenBalancesRequest listTokenBalancesRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
This action returns the following for a given blockchain network:
-
Lists all token balances owned by an address (either a contract address or a wallet address).
-
Lists all token balances for all tokens created by a contract.
-
Lists all token balances for a given token.
You must always specify the network property of the
tokenFilterwhen using this operation.- Parameters:
listTokenBalancesRequest-- Returns:
- Result of the ListTokenBalances operation returned by the service.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
-
listTokenBalances
default ListTokenBalancesResponse listTokenBalances(Consumer<ListTokenBalancesRequest.Builder> listTokenBalancesRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
This action returns the following for a given blockchain network:
-
Lists all token balances owned by an address (either a contract address or a wallet address).
-
Lists all token balances for all tokens created by a contract.
-
Lists all token balances for a given token.
You must always specify the network property of the
tokenFilterwhen using this operation.
This is a convenience which creates an instance of the
ListTokenBalancesRequest.Builderavoiding the need to create one manually viaListTokenBalancesRequest.builder()- Parameters:
listTokenBalancesRequest- AConsumerthat will call methods onListTokenBalancesRequest.Builderto create a request.- Returns:
- Result of the ListTokenBalances operation returned by the service.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
-
listTokenBalancesPaginator
default ListTokenBalancesIterable listTokenBalancesPaginator(ListTokenBalancesRequest listTokenBalancesRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
This is a variant of
listTokenBalances(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client.listTokenBalancesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client .listTokenBalancesPaginator(request); for (software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client.listTokenBalancesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTokenBalances(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest)operation.- Parameters:
listTokenBalancesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTokenBalancesPaginator
default ListTokenBalancesIterable listTokenBalancesPaginator(Consumer<ListTokenBalancesRequest.Builder> listTokenBalancesRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
This is a variant of
listTokenBalances(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client.listTokenBalancesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client .listTokenBalancesPaginator(request); for (software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client.listTokenBalancesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTokenBalances(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest)operation.
This is a convenience which creates an instance of the
ListTokenBalancesRequest.Builderavoiding the need to create one manually viaListTokenBalancesRequest.builder()- Parameters:
listTokenBalancesRequest- AConsumerthat will call methods onListTokenBalancesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTransactionEvents
default ListTransactionEventsResponse listTransactionEvents(ListTransactionEventsRequest listTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Lists all the transaction events for a transaction
This action will return transaction details for all transactions that are confirmed on the blockchain, even if they have not reached finality.
- Parameters:
listTransactionEventsRequest-- Returns:
- Result of the ListTransactionEvents operation returned by the service.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTransactionEvents
default ListTransactionEventsResponse listTransactionEvents(Consumer<ListTransactionEventsRequest.Builder> listTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Lists all the transaction events for a transaction
This action will return transaction details for all transactions that are confirmed on the blockchain, even if they have not reached finality.
This is a convenience which creates an instance of the
ListTransactionEventsRequest.Builderavoiding the need to create one manually viaListTransactionEventsRequest.builder()- Parameters:
listTransactionEventsRequest- AConsumerthat will call methods onListTransactionEventsRequest.Builderto create a request.- Returns:
- Result of the ListTransactionEvents operation returned by the service.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTransactionEventsPaginator
default ListTransactionEventsIterable listTransactionEventsPaginator(ListTransactionEventsRequest listTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
This is a variant of
listTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client.listTransactionEventsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client .listTransactionEventsPaginator(request); for (software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client.listTransactionEventsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsRequest)operation.- Parameters:
listTransactionEventsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTransactionEventsPaginator
default ListTransactionEventsIterable listTransactionEventsPaginator(Consumer<ListTransactionEventsRequest.Builder> listTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
This is a variant of
listTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client.listTransactionEventsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client .listTransactionEventsPaginator(request); for (software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client.listTransactionEventsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsRequest)operation.
This is a convenience which creates an instance of the
ListTransactionEventsRequest.Builderavoiding the need to create one manually viaListTransactionEventsRequest.builder()- Parameters:
listTransactionEventsRequest- AConsumerthat will call methods onListTransactionEventsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTransactions
default ListTransactionsResponse listTransactions(ListTransactionsRequest listTransactionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Lists all the transaction events for a transaction.
- Parameters:
listTransactionsRequest-- Returns:
- Result of the ListTransactions operation returned by the service.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTransactions
default ListTransactionsResponse listTransactions(Consumer<ListTransactionsRequest.Builder> listTransactionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Lists all the transaction events for a transaction.
This is a convenience which creates an instance of the
ListTransactionsRequest.Builderavoiding the need to create one manually viaListTransactionsRequest.builder()- Parameters:
listTransactionsRequest- AConsumerthat will call methods onListTransactionsRequest.Builderto create a request.- Returns:
- Result of the ListTransactions operation returned by the service.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTransactionsPaginator
default ListTransactionsIterable listTransactionsPaginator(ListTransactionsRequest listTransactionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
This is a variant of
listTransactions(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client.listTransactionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client .listTransactionsPaginator(request); for (software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client.listTransactionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTransactions(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsRequest)operation.- Parameters:
listTransactionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTransactionsPaginator
default ListTransactionsIterable listTransactionsPaginator(Consumer<ListTransactionsRequest.Builder> listTransactionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
This is a variant of
listTransactions(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client.listTransactionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client .listTransactionsPaginator(request); for (software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client.listTransactionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTransactions(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsRequest)operation.
This is a convenience which creates an instance of the
ListTransactionsRequest.Builderavoiding the need to create one manually viaListTransactionsRequest.builder()- Parameters:
listTransactionsRequest- AConsumerthat will call methods onListTransactionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ThrottlingException- The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.ValidationException- The resource passed is invalid.AccessDeniedException- The Amazon Web Services account doesn’t have access to this resource.InternalServerException- The request processing has failed because of an internal error in the service.ServiceQuotaExceededException- The service quota has been exceeded for this resource.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ManagedBlockchainQueryException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
create
static ManagedBlockchainQueryClient create()
Create aManagedBlockchainQueryClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static ManagedBlockchainQueryClientBuilder builder()
Create a builder that can be used to configure and create aManagedBlockchainQueryClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default ManagedBlockchainQueryServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-