Interface ManagedBlockchainQueryAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
Amazon Managed Blockchain (AMB) Query provides you with convenient access to multi-blockchain network data, which makes it easier for you to extract contextual data related to blockchain activity. You can use AMB Query to read data from public blockchain networks, such as Bitcoin Mainnet and Ethereum Mainnet. You can also get information such as the current and historical balances of addresses, or you can get a list of blockchain transactions for a given time period. Additionally, you can get details of a given transaction, such as transaction events, which you can further analyze or use in business logic for your applications.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionbatchGetTokenBalance(Consumer<BatchGetTokenBalanceRequest.Builder> batchGetTokenBalanceRequest) Gets the token balance for a batch of tokens by using theBatchGetTokenBalanceaction for every token in the request.batchGetTokenBalance(BatchGetTokenBalanceRequest batchGetTokenBalanceRequest) Gets the token balance for a batch of tokens by using theBatchGetTokenBalanceaction for every token in the request.builder()Create a builder that can be used to configure and create aManagedBlockchainQueryAsyncClient.create()Create aManagedBlockchainQueryAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.getAssetContract(Consumer<GetAssetContractRequest.Builder> getAssetContractRequest) Gets the information about a specific contract deployed on the blockchain.getAssetContract(GetAssetContractRequest getAssetContractRequest) Gets the information about a specific contract deployed on the blockchain.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.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.default CompletableFuture<GetTransactionResponse> getTransaction(Consumer<GetTransactionRequest.Builder> getTransactionRequest) Get the details of a transaction.default CompletableFuture<GetTransactionResponse> getTransaction(GetTransactionRequest getTransactionRequest) Get the details of a transaction.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).listAssetContracts(ListAssetContractsRequest listAssetContractsRequest) Lists all the contracts for a given contract type deployed by an address (either a contract address or a wallet address).default ListAssetContractsPublisherlistAssetContractsPaginator(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).default ListAssetContractsPublisherlistAssetContractsPaginator(ListAssetContractsRequest listAssetContractsRequest) Lists all the contracts for a given contract type deployed by an address (either a contract address or a wallet address).listTokenBalances(Consumer<ListTokenBalancesRequest.Builder> listTokenBalancesRequest) This action returns the following for a given blockchain network:listTokenBalances(ListTokenBalancesRequest listTokenBalancesRequest) This action returns the following for a given blockchain network:default ListTokenBalancesPublisherlistTokenBalancesPaginator(Consumer<ListTokenBalancesRequest.Builder> listTokenBalancesRequest) This action returns the following for a given blockchain network:default ListTokenBalancesPublisherlistTokenBalancesPaginator(ListTokenBalancesRequest listTokenBalancesRequest) This action returns the following for a given blockchain network:listTransactionEvents(Consumer<ListTransactionEventsRequest.Builder> listTransactionEventsRequest) An array ofTransactionEventobjects.listTransactionEvents(ListTransactionEventsRequest listTransactionEventsRequest) An array ofTransactionEventobjects.default ListTransactionEventsPublisherlistTransactionEventsPaginator(Consumer<ListTransactionEventsRequest.Builder> listTransactionEventsRequest) An array ofTransactionEventobjects.default ListTransactionEventsPublisherlistTransactionEventsPaginator(ListTransactionEventsRequest listTransactionEventsRequest) An array ofTransactionEventobjects.listTransactions(Consumer<ListTransactionsRequest.Builder> listTransactionsRequest) Lists all of the transactions on a given wallet address or to a specific contract.listTransactions(ListTransactionsRequest listTransactionsRequest) Lists all of the transactions on a given wallet address or to a specific contract.default ListTransactionsPublisherlistTransactionsPaginator(Consumer<ListTransactionsRequest.Builder> listTransactionsRequest) Lists all of the transactions on a given wallet address or to a specific contract.default ListTransactionsPublisherlistTransactionsPaginator(ListTransactionsRequest listTransactionsRequest) Lists all of the transactions on a given wallet address or to a specific contract.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
batchGetTokenBalance
default CompletableFuture<BatchGetTokenBalanceResponse> batchGetTokenBalance(BatchGetTokenBalanceRequest batchGetTokenBalanceRequest) Gets the token balance for a batch of tokens by using the
BatchGetTokenBalanceaction 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.
- 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.- 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:
-
batchGetTokenBalance
default CompletableFuture<BatchGetTokenBalanceResponse> batchGetTokenBalance(Consumer<BatchGetTokenBalanceRequest.Builder> batchGetTokenBalanceRequest) Gets the token balance for a batch of tokens by using the
BatchGetTokenBalanceaction 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.
This is a convenience which creates an instance of the
BatchGetTokenBalanceRequest.Builderavoiding the need to create one manually viaBatchGetTokenBalanceRequest.builder()- Parameters:
batchGetTokenBalanceRequest- AConsumerthat will call methods onBatchGetTokenBalanceRequest.Builderto create a request.- Returns:
- 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.- 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:
-
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-20contracts. 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.- 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:
-
-
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-20contracts. Metadata will be available for additional contracts in the future.
This is a convenience which creates an instance of the
GetAssetContractRequest.Builderavoiding the need to create one manually viaGetAssetContractRequest.builder()- Parameters:
getAssetContractRequest- AConsumerthat will call methods onGetAssetContractRequest.Builderto create a request.- Returns:
- 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.- 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:
-
-
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,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.- 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:
-
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,ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.
This is a convenience which creates an instance of the
GetTokenBalanceRequest.Builderavoiding the need to create one manually viaGetTokenBalanceRequest.builder()- Parameters:
getTokenBalanceRequest- AConsumerthat will call methods onGetTokenBalanceRequest.Builderto create a request.- Returns:
- 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.- 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:
-
getTransaction
default CompletableFuture<GetTransactionResponse> getTransaction(GetTransactionRequest getTransactionRequest) Get the details of a transaction.
- 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.- 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:
-
getTransaction
default CompletableFuture<GetTransactionResponse> getTransaction(Consumer<GetTransactionRequest.Builder> getTransactionRequest) Get the details of a transaction.
This is a convenience which creates an instance of the
GetTransactionRequest.Builderavoiding the need to create one manually viaGetTransactionRequest.builder()- Parameters:
getTransactionRequest- AConsumerthat will call methods onGetTransactionRequest.Builderto create a request.- Returns:
- 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.- 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:
-
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.- 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:
-
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.Builderavoiding the need to create one manually viaListAssetContractsRequest.builder()- Parameters:
listAssetContractsRequest- AConsumerthat will call methods onListAssetContractsRequest.Builderto 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.- 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:
-
listAssetContractsPaginator
default ListAssetContractsPublisher listAssetContractsPaginator(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.
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsPublisher publisher = client.listAssetContractsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.- 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:
-
listAssetContractsPaginator
default ListAssetContractsPublisher listAssetContractsPaginator(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 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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsPublisher publisher = client.listAssetContractsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listAssetContracts(software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest)operation.This is a convenience which creates an instance of the
ListAssetContractsRequest.Builderavoiding the need to create one manually viaListAssetContractsRequest.builder()- Parameters:
listAssetContractsRequest- AConsumerthat will call methods onListAssetContractsRequest.Builderto create a request.- Returns:
- A custom 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.- 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:
-
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
tokenFilterwhen 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.- 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:
-
-
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
tokenFilterwhen using this operation.
This is a convenience which creates an instance of the
ListTokenBalancesRequest.Builderavoiding the need to create one manually viaListTokenBalancesRequest.builder()- Parameters:
listTokenBalancesRequest- AConsumerthat will call methods onListTokenBalancesRequest.Builderto create a request.- Returns:
- 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.- 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:
-
-
listTokenBalancesPaginator
default ListTokenBalancesPublisher listTokenBalancesPaginator(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
tokenFilterwhen using this operation.
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesPublisher publisher = client.listTokenBalancesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.- 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:
-
-
listTokenBalancesPaginator
default ListTokenBalancesPublisher listTokenBalancesPaginator(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
tokenFilterwhen using this operation.
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesPublisher publisher = client.listTokenBalancesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTokenBalances(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest)operation.This is a convenience which creates an instance of the
ListTokenBalancesRequest.Builderavoiding the need to create one manually viaListTokenBalancesRequest.builder()- Parameters:
listTokenBalancesRequest- AConsumerthat will call methods onListTokenBalancesRequest.Builderto create a request.- Returns:
- A custom 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.- 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:
-
-
listTransactionEvents
default CompletableFuture<ListTransactionEventsResponse> listTransactionEvents(ListTransactionEventsRequest listTransactionEventsRequest) An array of
TransactionEventobjects. Each object contains details about the transaction event.- 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.- 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:
-
listTransactionEvents
default CompletableFuture<ListTransactionEventsResponse> listTransactionEvents(Consumer<ListTransactionEventsRequest.Builder> listTransactionEventsRequest) An array of
TransactionEventobjects. Each object contains details about the transaction event.
This is a convenience which creates an instance of the
ListTransactionEventsRequest.Builderavoiding the need to create one manually viaListTransactionEventsRequest.builder()- Parameters:
listTransactionEventsRequest- AConsumerthat will call methods onListTransactionEventsRequest.Builderto create a request.- Returns:
- A 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.- 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:
-
listTransactionEventsPaginator
default ListTransactionEventsPublisher listTransactionEventsPaginator(ListTransactionEventsRequest listTransactionEventsRequest) An array of
TransactionEventobjects. Each object contains details about the transaction event.
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsPublisher publisher = client.listTransactionEventsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.- 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:
-
listTransactionEventsPaginator
default ListTransactionEventsPublisher listTransactionEventsPaginator(Consumer<ListTransactionEventsRequest.Builder> listTransactionEventsRequest) An array of
TransactionEventobjects. Each object contains details about the transaction event.
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsPublisher publisher = client.listTransactionEventsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsRequest)operation.This is a convenience which creates an instance of the
ListTransactionEventsRequest.Builderavoiding the need to create one manually viaListTransactionEventsRequest.builder()- Parameters:
listTransactionEventsRequest- AConsumerthat will call methods onListTransactionEventsRequest.Builderto create a request.- Returns:
- A custom 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.- 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:
-
listTransactions
default CompletableFuture<ListTransactionsResponse> listTransactions(ListTransactionsRequest listTransactionsRequest) Lists all of the transactions on a given wallet address or to a specific contract.
- 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.- 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:
-
listTransactions
default CompletableFuture<ListTransactionsResponse> listTransactions(Consumer<ListTransactionsRequest.Builder> listTransactionsRequest) Lists all of the transactions on a given wallet address or to a specific contract.
This is a convenience which creates an instance of the
ListTransactionsRequest.Builderavoiding the need to create one manually viaListTransactionsRequest.builder()- Parameters:
listTransactionsRequest- AConsumerthat will call methods onListTransactionsRequest.Builderto create a request.- Returns:
- A 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.- 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:
-
listTransactionsPaginator
default ListTransactionsPublisher listTransactionsPaginator(ListTransactionsRequest listTransactionsRequest) Lists all of the transactions on a given wallet address or to a specific contract.
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsPublisher publisher = client.listTransactionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.- 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:
-
listTransactionsPaginator
default ListTransactionsPublisher listTransactionsPaginator(Consumer<ListTransactionsRequest.Builder> listTransactionsRequest) Lists all of the transactions on a given wallet address or to a specific contract.
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsPublisher publisher = client.listTransactionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTransactions(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsRequest)operation.This is a convenience which creates an instance of the
ListTransactionsRequest.Builderavoiding the need to create one manually viaListTransactionsRequest.builder()- Parameters:
listTransactionsRequest- AConsumerthat will call methods onListTransactionsRequest.Builderto create a request.- Returns:
- A custom 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.- 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:
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-
create
Create aManagedBlockchainQueryAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aManagedBlockchainQueryAsyncClient.
-