/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.managedblockchainquery; import javax.annotation.Generated; import com.amazonaws.services.managedblockchainquery.model.*; /** * Interface for accessing Amazon Managed Blockchain Query asynchronously. Each asynchronous method will return a Java * Future object representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to * receive notification when an asynchronous operation completes. *

* Note: Do not directly implement this interface, new methods are added to it regularly. Extend from * {@link com.amazonaws.services.managedblockchainquery.AbstractAmazonManagedBlockchainQueryAsync} instead. *

*

*

* 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. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public interface AmazonManagedBlockchainQueryAsync extends AmazonManagedBlockchainQuery { /** *

* Gets the token balance for a batch of tokens by using the GetTokenBalance action for every token in * the request. *

* *

* Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported. *

*
* * @param batchGetTokenBalanceRequest * @return A Java Future containing the result of the BatchGetTokenBalance operation returned by the service. * @sample AmazonManagedBlockchainQueryAsync.BatchGetTokenBalance * @see AWS API Documentation */ java.util.concurrent.Future batchGetTokenBalanceAsync(BatchGetTokenBalanceRequest batchGetTokenBalanceRequest); /** *

* Gets the token balance for a batch of tokens by using the GetTokenBalance action for every token in * the request. *

* *

* Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported. *

*
* * @param batchGetTokenBalanceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the BatchGetTokenBalance operation returned by the service. * @sample AmazonManagedBlockchainQueryAsyncHandler.BatchGetTokenBalance * @see AWS API Documentation */ java.util.concurrent.Future batchGetTokenBalanceAsync(BatchGetTokenBalanceRequest batchGetTokenBalanceRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* 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,ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported. *

*
* * @param getTokenBalanceRequest * @return A Java Future containing the result of the GetTokenBalance operation returned by the service. * @sample AmazonManagedBlockchainQueryAsync.GetTokenBalance * @see AWS API Documentation */ java.util.concurrent.Future getTokenBalanceAsync(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,ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported. *

*
* * @param getTokenBalanceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the GetTokenBalance operation returned by the service. * @sample AmazonManagedBlockchainQueryAsyncHandler.GetTokenBalance * @see AWS API Documentation */ java.util.concurrent.Future getTokenBalanceAsync(GetTokenBalanceRequest getTokenBalanceRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Get the details of a transaction. *

* * @param getTransactionRequest * @return A Java Future containing the result of the GetTransaction operation returned by the service. * @sample AmazonManagedBlockchainQueryAsync.GetTransaction * @see AWS API Documentation */ java.util.concurrent.Future getTransactionAsync(GetTransactionRequest getTransactionRequest); /** *

* Get the details of a transaction. *

* * @param getTransactionRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the GetTransaction operation returned by the service. * @sample AmazonManagedBlockchainQueryAsyncHandler.GetTransaction * @see AWS API Documentation */ java.util.concurrent.Future getTransactionAsync(GetTransactionRequest getTransactionRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* This action returns the following for a given a blockchain network: *

*
    *
  • *

    * Lists all token balances owned by an address (either a contact 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. *

*
* * @param listTokenBalancesRequest * @return A Java Future containing the result of the ListTokenBalances operation returned by the service. * @sample AmazonManagedBlockchainQueryAsync.ListTokenBalances * @see AWS API Documentation */ java.util.concurrent.Future listTokenBalancesAsync(ListTokenBalancesRequest listTokenBalancesRequest); /** *

* This action returns the following for a given a blockchain network: *

*
    *
  • *

    * Lists all token balances owned by an address (either a contact 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. *

*
* * @param listTokenBalancesRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListTokenBalances operation returned by the service. * @sample AmazonManagedBlockchainQueryAsyncHandler.ListTokenBalances * @see AWS API Documentation */ java.util.concurrent.Future listTokenBalancesAsync(ListTokenBalancesRequest listTokenBalancesRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* An array of TransactionEvent objects. Each object contains details about the transaction event. *

* * @param listTransactionEventsRequest * @return A Java Future containing the result of the ListTransactionEvents operation returned by the service. * @sample AmazonManagedBlockchainQueryAsync.ListTransactionEvents * @see AWS API Documentation */ java.util.concurrent.Future listTransactionEventsAsync(ListTransactionEventsRequest listTransactionEventsRequest); /** *

* An array of TransactionEvent objects. Each object contains details about the transaction event. *

* * @param listTransactionEventsRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListTransactionEvents operation returned by the service. * @sample AmazonManagedBlockchainQueryAsyncHandler.ListTransactionEvents * @see AWS API Documentation */ java.util.concurrent.Future listTransactionEventsAsync(ListTransactionEventsRequest listTransactionEventsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Lists all of the transactions on a given wallet address or to a specific contract. *

* * @param listTransactionsRequest * @return A Java Future containing the result of the ListTransactions operation returned by the service. * @sample AmazonManagedBlockchainQueryAsync.ListTransactions * @see AWS API Documentation */ java.util.concurrent.Future listTransactionsAsync(ListTransactionsRequest listTransactionsRequest); /** *

* Lists all of the transactions on a given wallet address or to a specific contract. *

* * @param listTransactionsRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListTransactions operation returned by the service. * @sample AmazonManagedBlockchainQueryAsyncHandler.ListTransactions * @see AWS API Documentation */ java.util.concurrent.Future listTransactionsAsync(ListTransactionsRequest listTransactionsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); }