Interface ManagedBlockchainQueryAsyncClient

  • All Superinterfaces:
    AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

    @Generated("software.amazon.awssdk:codegen")
    @ThreadSafe
    public interface ManagedBlockchainQueryAsyncClient
    extends AwsClient
    Service client for accessing Amazon Managed Blockchain Query asynchronously. This can be created using the static builder() method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API call.

    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.

    • Method Detail

      • batchGetTokenBalance

        default CompletableFuture<BatchGetTokenBalanceResponse> batchGetTokenBalance​(BatchGetTokenBalanceRequest batchGetTokenBalanceRequest)

        Gets the token balance for a batch of tokens by using the BatchGetTokenBalance action 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:
        A Java Future containing the result of the BatchGetTokenBalance operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • batchGetTokenBalance

        default CompletableFuture<BatchGetTokenBalanceResponse> batchGetTokenBalance​(Consumer<BatchGetTokenBalanceRequest.Builder> batchGetTokenBalanceRequest)

        Gets the token balance for a batch of tokens by using the BatchGetTokenBalance action 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.Builder avoiding the need to create one manually via BatchGetTokenBalanceRequest.builder()

        Parameters:
        batchGetTokenBalanceRequest - A Consumer that will call methods on BatchGetTokenBalanceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the BatchGetTokenBalance operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • getAssetContract

        default CompletableFuture<GetAssetContractResponse> getAssetContract​(GetAssetContractRequest getAssetContractRequest)

        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-20 contracts. Metadata will be available for additional contracts in the future.

        Parameters:
        getAssetContractRequest -
        Returns:
        A Java Future containing the result of the GetAssetContract operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • getAssetContract

        default CompletableFuture<GetAssetContractResponse> getAssetContract​(Consumer<GetAssetContractRequest.Builder> getAssetContractRequest)

        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-20 contracts. Metadata will be available for additional contracts in the future.


        This is a convenience which creates an instance of the GetAssetContractRequest.Builder avoiding the need to create one manually via GetAssetContractRequest.builder()

        Parameters:
        getAssetContractRequest - A Consumer that will call methods on GetAssetContractRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetAssetContract operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • getTokenBalance

        default CompletableFuture<GetTokenBalanceResponse> getTokenBalance​(GetTokenBalanceRequest getTokenBalanceRequest)

        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:
        A Java Future containing the result of the GetTokenBalance operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • getTokenBalance

        default CompletableFuture<GetTokenBalanceResponse> getTokenBalance​(Consumer<GetTokenBalanceRequest.Builder> getTokenBalanceRequest)

        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.Builder avoiding the need to create one manually via GetTokenBalanceRequest.builder()

        Parameters:
        getTokenBalanceRequest - A Consumer that will call methods on GetTokenBalanceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetTokenBalance operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • getTransaction

        default CompletableFuture<GetTransactionResponse> getTransaction​(GetTransactionRequest getTransactionRequest)

        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:
        A Java Future containing the result of the GetTransaction operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • getTransaction

        default CompletableFuture<GetTransactionResponse> getTransaction​(Consumer<GetTransactionRequest.Builder> getTransactionRequest)

        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.Builder avoiding the need to create one manually via GetTransactionRequest.builder()

        Parameters:
        getTransactionRequest - A Consumer that will call methods on GetTransactionRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetTransaction operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listAssetContracts

        default CompletableFuture<ListAssetContractsResponse> listAssetContracts​(ListAssetContractsRequest listAssetContractsRequest)

        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:
        A Java Future containing the result of the ListAssetContracts operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listAssetContracts

        default CompletableFuture<ListAssetContractsResponse> listAssetContracts​(Consumer<ListAssetContractsRequest.Builder> listAssetContractsRequest)

        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.Builder avoiding the need to create one manually via ListAssetContractsRequest.builder()

        Parameters:
        listAssetContractsRequest - A Consumer that will call methods on ListAssetContractsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListAssetContracts operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listAssetContractsPaginator

        default ListAssetContractsPublisher listAssetContractsPaginator​(ListAssetContractsRequest listAssetContractsRequest)

        This is a variant of listAssetContracts(software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsPublisher publisher = client.listAssetContractsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsPublisher publisher = client.listAssetContractsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listAssetContractsPaginator

        default ListAssetContractsPublisher listAssetContractsPaginator​(Consumer<ListAssetContractsRequest.Builder> listAssetContractsRequest)

        This is a variant of listAssetContracts(software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsPublisher publisher = client.listAssetContractsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsPublisher publisher = client.listAssetContractsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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.Builder avoiding the need to create one manually via ListAssetContractsRequest.builder()

        Parameters:
        listAssetContractsRequest - A Consumer that will call methods on ListAssetContractsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listFilteredTransactionEvents

        default CompletableFuture<ListFilteredTransactionEventsResponse> listFilteredTransactionEvents​(ListFilteredTransactionEventsRequest listFilteredTransactionEventsRequest)

        Lists all the transaction events for an address on the blockchain.

        This operation is only supported on the Bitcoin networks.

        Parameters:
        listFilteredTransactionEventsRequest -
        Returns:
        A Java Future containing the result of the ListFilteredTransactionEvents operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listFilteredTransactionEvents

        default CompletableFuture<ListFilteredTransactionEventsResponse> listFilteredTransactionEvents​(Consumer<ListFilteredTransactionEventsRequest.Builder> listFilteredTransactionEventsRequest)

        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.Builder avoiding the need to create one manually via ListFilteredTransactionEventsRequest.builder()

        Parameters:
        listFilteredTransactionEventsRequest - A Consumer that will call methods on ListFilteredTransactionEventsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListFilteredTransactionEvents operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listFilteredTransactionEventsPaginator

        default ListFilteredTransactionEventsPublisher listFilteredTransactionEventsPaginator​(ListFilteredTransactionEventsRequest listFilteredTransactionEventsRequest)

        This is a variant of listFilteredTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsPublisher publisher = client.listFilteredTransactionEventsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsPublisher publisher = client.listFilteredTransactionEventsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listFilteredTransactionEventsPaginator

        default ListFilteredTransactionEventsPublisher listFilteredTransactionEventsPaginator​(Consumer<ListFilteredTransactionEventsRequest.Builder> listFilteredTransactionEventsRequest)

        This is a variant of listFilteredTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsPublisher publisher = client.listFilteredTransactionEventsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsPublisher publisher = client.listFilteredTransactionEventsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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.Builder avoiding the need to create one manually via ListFilteredTransactionEventsRequest.builder()

        Parameters:
        listFilteredTransactionEventsRequest - A Consumer that will call methods on ListFilteredTransactionEventsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listTokenBalances

        default CompletableFuture<ListTokenBalancesResponse> listTokenBalances​(ListTokenBalancesRequest listTokenBalancesRequest)

        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 tokenFilter when using this operation.

        Parameters:
        listTokenBalancesRequest -
        Returns:
        A Java Future containing the result of the ListTokenBalances operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listTokenBalances

        default CompletableFuture<ListTokenBalancesResponse> listTokenBalances​(Consumer<ListTokenBalancesRequest.Builder> listTokenBalancesRequest)

        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 tokenFilter when using this operation.


        This is a convenience which creates an instance of the ListTokenBalancesRequest.Builder avoiding the need to create one manually via ListTokenBalancesRequest.builder()

        Parameters:
        listTokenBalancesRequest - A Consumer that will call methods on ListTokenBalancesRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListTokenBalances operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listTokenBalancesPaginator

        default ListTokenBalancesPublisher listTokenBalancesPaginator​(ListTokenBalancesRequest listTokenBalancesRequest)

        This is a variant of listTokenBalances(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesPublisher publisher = client.listTokenBalancesPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesPublisher publisher = client.listTokenBalancesPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listTokenBalancesPaginator

        default ListTokenBalancesPublisher listTokenBalancesPaginator​(Consumer<ListTokenBalancesRequest.Builder> listTokenBalancesRequest)

        This is a variant of listTokenBalances(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesPublisher publisher = client.listTokenBalancesPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesPublisher publisher = client.listTokenBalancesPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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.Builder avoiding the need to create one manually via ListTokenBalancesRequest.builder()

        Parameters:
        listTokenBalancesRequest - A Consumer that will call methods on ListTokenBalancesRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listTransactionEvents

        default CompletableFuture<ListTransactionEventsResponse> listTransactionEvents​(ListTransactionEventsRequest listTransactionEventsRequest)

        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:
        A Java Future containing the result of the ListTransactionEvents operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listTransactionEvents

        default CompletableFuture<ListTransactionEventsResponse> listTransactionEvents​(Consumer<ListTransactionEventsRequest.Builder> listTransactionEventsRequest)

        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.Builder avoiding the need to create one manually via ListTransactionEventsRequest.builder()

        Parameters:
        listTransactionEventsRequest - A Consumer that will call methods on ListTransactionEventsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListTransactionEvents operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listTransactionEventsPaginator

        default ListTransactionEventsPublisher listTransactionEventsPaginator​(ListTransactionEventsRequest listTransactionEventsRequest)

        This is a variant of listTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsPublisher publisher = client.listTransactionEventsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsPublisher publisher = client.listTransactionEventsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listTransactionEventsPaginator

        default ListTransactionEventsPublisher listTransactionEventsPaginator​(Consumer<ListTransactionEventsRequest.Builder> listTransactionEventsRequest)

        This is a variant of listTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsPublisher publisher = client.listTransactionEventsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsPublisher publisher = client.listTransactionEventsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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.Builder avoiding the need to create one manually via ListTransactionEventsRequest.builder()

        Parameters:
        listTransactionEventsRequest - A Consumer that will call methods on ListTransactionEventsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listTransactions

        default CompletableFuture<ListTransactionsResponse> listTransactions​(ListTransactionsRequest listTransactionsRequest)

        Lists all the transaction events for a transaction.

        Parameters:
        listTransactionsRequest -
        Returns:
        A Java Future containing the result of the ListTransactions operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listTransactions

        default CompletableFuture<ListTransactionsResponse> listTransactions​(Consumer<ListTransactionsRequest.Builder> listTransactionsRequest)

        Lists all the transaction events for a transaction.


        This is a convenience which creates an instance of the ListTransactionsRequest.Builder avoiding the need to create one manually via ListTransactionsRequest.builder()

        Parameters:
        listTransactionsRequest - A Consumer that will call methods on ListTransactionsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListTransactions operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listTransactionsPaginator

        default ListTransactionsPublisher listTransactionsPaginator​(ListTransactionsRequest listTransactionsRequest)

        This is a variant of listTransactions(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsPublisher publisher = client.listTransactionsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsPublisher publisher = client.listTransactionsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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 publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation
      • listTransactionsPaginator

        default ListTransactionsPublisher listTransactionsPaginator​(Consumer<ListTransactionsRequest.Builder> listTransactionsRequest)

        This is a variant of listTransactions(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsPublisher publisher = client.listTransactionsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsPublisher publisher = client.listTransactionsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        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.Builder avoiding the need to create one manually via ListTransactionsRequest.builder()

        Parameters:
        listTransactionsRequest - A Consumer that will call methods on ListTransactionsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • 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.
        See Also:
        AWS API Documentation