@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonManagedBlockchainQueryAsyncClient extends AmazonManagedBlockchainQueryClient implements AmazonManagedBlockchainQueryAsync
AsyncHandler
can be used to
receive notification when an asynchronous operation completes.
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.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AmazonManagedBlockchainQueryAsyncClientBuilder |
asyncBuilder() |
Future<BatchGetTokenBalanceResult> |
batchGetTokenBalanceAsync(BatchGetTokenBalanceRequest request)
Gets the token balance for a batch of tokens by using the
BatchGetTokenBalance action for every
token in the request. |
Future<BatchGetTokenBalanceResult> |
batchGetTokenBalanceAsync(BatchGetTokenBalanceRequest request,
AsyncHandler<BatchGetTokenBalanceRequest,BatchGetTokenBalanceResult> asyncHandler)
Gets the token balance for a batch of tokens by using the
BatchGetTokenBalance action for every
token in the request. |
Future<GetAssetContractResult> |
getAssetContractAsync(GetAssetContractRequest request)
Gets the information about a specific contract deployed on the blockchain.
|
Future<GetAssetContractResult> |
getAssetContractAsync(GetAssetContractRequest request,
AsyncHandler<GetAssetContractRequest,GetAssetContractResult> asyncHandler)
Gets the information about a specific contract deployed on the blockchain.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<GetTokenBalanceResult> |
getTokenBalanceAsync(GetTokenBalanceRequest request)
Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the
blockchain.
|
Future<GetTokenBalanceResult> |
getTokenBalanceAsync(GetTokenBalanceRequest request,
AsyncHandler<GetTokenBalanceRequest,GetTokenBalanceResult> asyncHandler)
Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the
blockchain.
|
Future<GetTransactionResult> |
getTransactionAsync(GetTransactionRequest request)
Gets the details of a transaction.
|
Future<GetTransactionResult> |
getTransactionAsync(GetTransactionRequest request,
AsyncHandler<GetTransactionRequest,GetTransactionResult> asyncHandler)
Gets the details of a transaction.
|
Future<ListAssetContractsResult> |
listAssetContractsAsync(ListAssetContractsRequest request)
Lists all the contracts for a given contract type deployed by an address (either a contract address or a wallet
address).
|
Future<ListAssetContractsResult> |
listAssetContractsAsync(ListAssetContractsRequest request,
AsyncHandler<ListAssetContractsRequest,ListAssetContractsResult> asyncHandler)
Lists all the contracts for a given contract type deployed by an address (either a contract address or a wallet
address).
|
Future<ListTokenBalancesResult> |
listTokenBalancesAsync(ListTokenBalancesRequest request)
This action returns the following for a given blockchain network:
|
Future<ListTokenBalancesResult> |
listTokenBalancesAsync(ListTokenBalancesRequest request,
AsyncHandler<ListTokenBalancesRequest,ListTokenBalancesResult> asyncHandler)
This action returns the following for a given blockchain network:
|
Future<ListTransactionEventsResult> |
listTransactionEventsAsync(ListTransactionEventsRequest request)
An array of
TransactionEvent objects. |
Future<ListTransactionEventsResult> |
listTransactionEventsAsync(ListTransactionEventsRequest request,
AsyncHandler<ListTransactionEventsRequest,ListTransactionEventsResult> asyncHandler)
An array of
TransactionEvent objects. |
Future<ListTransactionsResult> |
listTransactionsAsync(ListTransactionsRequest request)
Lists all of the transactions on a given wallet address or to a specific contract.
|
Future<ListTransactionsResult> |
listTransactionsAsync(ListTransactionsRequest request,
AsyncHandler<ListTransactionsRequest,ListTransactionsResult> asyncHandler)
Lists all of the transactions on a given wallet address or to a specific contract.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
batchGetTokenBalance, builder, getAssetContract, getCachedResponseMetadata, getTokenBalance, getTransaction, listAssetContracts, listTokenBalances, listTransactionEvents, listTransactions
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
batchGetTokenBalance, getAssetContract, getCachedResponseMetadata, getTokenBalance, getTransaction, listAssetContracts, listTokenBalances, listTransactionEvents, listTransactions
public static AmazonManagedBlockchainQueryAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<BatchGetTokenBalanceResult> batchGetTokenBalanceAsync(BatchGetTokenBalanceRequest request)
AmazonManagedBlockchainQueryAsync
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.
batchGetTokenBalanceAsync
in interface AmazonManagedBlockchainQueryAsync
public Future<BatchGetTokenBalanceResult> batchGetTokenBalanceAsync(BatchGetTokenBalanceRequest request, AsyncHandler<BatchGetTokenBalanceRequest,BatchGetTokenBalanceResult> asyncHandler)
AmazonManagedBlockchainQueryAsync
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.
batchGetTokenBalanceAsync
in interface AmazonManagedBlockchainQueryAsync
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.public Future<GetAssetContractResult> getAssetContractAsync(GetAssetContractRequest request)
AmazonManagedBlockchainQueryAsync
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.
getAssetContractAsync
in interface AmazonManagedBlockchainQueryAsync
public Future<GetAssetContractResult> getAssetContractAsync(GetAssetContractRequest request, AsyncHandler<GetAssetContractRequest,GetAssetContractResult> asyncHandler)
AmazonManagedBlockchainQueryAsync
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.
getAssetContractAsync
in interface AmazonManagedBlockchainQueryAsync
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.public Future<GetTokenBalanceResult> getTokenBalanceAsync(GetTokenBalanceRequest request)
AmazonManagedBlockchainQueryAsync
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.
getTokenBalanceAsync
in interface AmazonManagedBlockchainQueryAsync
public Future<GetTokenBalanceResult> getTokenBalanceAsync(GetTokenBalanceRequest request, AsyncHandler<GetTokenBalanceRequest,GetTokenBalanceResult> asyncHandler)
AmazonManagedBlockchainQueryAsync
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.
getTokenBalanceAsync
in interface AmazonManagedBlockchainQueryAsync
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.public Future<GetTransactionResult> getTransactionAsync(GetTransactionRequest request)
AmazonManagedBlockchainQueryAsync
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.
getTransactionAsync
in interface AmazonManagedBlockchainQueryAsync
public Future<GetTransactionResult> getTransactionAsync(GetTransactionRequest request, AsyncHandler<GetTransactionRequest,GetTransactionResult> asyncHandler)
AmazonManagedBlockchainQueryAsync
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.
getTransactionAsync
in interface AmazonManagedBlockchainQueryAsync
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.public Future<ListAssetContractsResult> listAssetContractsAsync(ListAssetContractsRequest request)
AmazonManagedBlockchainQueryAsync
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.
listAssetContractsAsync
in interface AmazonManagedBlockchainQueryAsync
public Future<ListAssetContractsResult> listAssetContractsAsync(ListAssetContractsRequest request, AsyncHandler<ListAssetContractsRequest,ListAssetContractsResult> asyncHandler)
AmazonManagedBlockchainQueryAsync
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.
listAssetContractsAsync
in interface AmazonManagedBlockchainQueryAsync
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.public Future<ListTokenBalancesResult> listTokenBalancesAsync(ListTokenBalancesRequest request)
AmazonManagedBlockchainQueryAsync
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.
listTokenBalancesAsync
in interface AmazonManagedBlockchainQueryAsync
public Future<ListTokenBalancesResult> listTokenBalancesAsync(ListTokenBalancesRequest request, AsyncHandler<ListTokenBalancesRequest,ListTokenBalancesResult> asyncHandler)
AmazonManagedBlockchainQueryAsync
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.
listTokenBalancesAsync
in interface AmazonManagedBlockchainQueryAsync
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.public Future<ListTransactionEventsResult> listTransactionEventsAsync(ListTransactionEventsRequest request)
AmazonManagedBlockchainQueryAsync
An array of TransactionEvent
objects. Each object contains details about the transaction event.
This action will return transaction details for all transactions that are confirmed on the blockchain, even if they have not reached finality.
listTransactionEventsAsync
in interface AmazonManagedBlockchainQueryAsync
public Future<ListTransactionEventsResult> listTransactionEventsAsync(ListTransactionEventsRequest request, AsyncHandler<ListTransactionEventsRequest,ListTransactionEventsResult> asyncHandler)
AmazonManagedBlockchainQueryAsync
An array of TransactionEvent
objects. Each object contains details about the transaction event.
This action will return transaction details for all transactions that are confirmed on the blockchain, even if they have not reached finality.
listTransactionEventsAsync
in interface AmazonManagedBlockchainQueryAsync
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.public Future<ListTransactionsResult> listTransactionsAsync(ListTransactionsRequest request)
AmazonManagedBlockchainQueryAsync
Lists all of the transactions on a given wallet address or to a specific contract.
listTransactionsAsync
in interface AmazonManagedBlockchainQueryAsync
public Future<ListTransactionsResult> listTransactionsAsync(ListTransactionsRequest request, AsyncHandler<ListTransactionsRequest,ListTransactionsResult> asyncHandler)
AmazonManagedBlockchainQueryAsync
Lists all of the transactions on a given wallet address or to a specific contract.
listTransactionsAsync
in interface AmazonManagedBlockchainQueryAsync
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.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AmazonManagedBlockchainQuery
shutdown
in class AmazonManagedBlockchainQueryClient