@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface ManagedBlockchainQueryClient extends AwsClient
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.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
default BatchGetTokenBalanceResponse |
batchGetTokenBalance(BatchGetTokenBalanceRequest batchGetTokenBalanceRequest)
Gets the token balance for a batch of tokens by using the
GetTokenBalance action for every token in
the request. |
default BatchGetTokenBalanceResponse |
batchGetTokenBalance(Consumer<BatchGetTokenBalanceRequest.Builder> batchGetTokenBalanceRequest)
Gets the token balance for a batch of tokens by using the
GetTokenBalance action for every token in
the request. |
static ManagedBlockchainQueryClientBuilder |
builder()
Create a builder that can be used to configure and create a
ManagedBlockchainQueryClient. |
static ManagedBlockchainQueryClient |
create()
Create a
ManagedBlockchainQueryClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default 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 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 GetTransactionResponse |
getTransaction(Consumer<GetTransactionRequest.Builder> getTransactionRequest)
Get the details of a transaction.
|
default GetTransactionResponse |
getTransaction(GetTransactionRequest getTransactionRequest)
Get the details of a transaction.
|
default ListTokenBalancesResponse |
listTokenBalances(Consumer<ListTokenBalancesRequest.Builder> listTokenBalancesRequest)
This action returns the following for a given a blockchain network:
|
default ListTokenBalancesResponse |
listTokenBalances(ListTokenBalancesRequest listTokenBalancesRequest)
This action returns the following for a given a blockchain network:
|
default ListTokenBalancesIterable |
listTokenBalancesPaginator(Consumer<ListTokenBalancesRequest.Builder> listTokenBalancesRequest)
This action returns the following for a given a blockchain network:
|
default ListTokenBalancesIterable |
listTokenBalancesPaginator(ListTokenBalancesRequest listTokenBalancesRequest)
This action returns the following for a given a blockchain network:
|
default ListTransactionEventsResponse |
listTransactionEvents(Consumer<ListTransactionEventsRequest.Builder> listTransactionEventsRequest)
An array of
TransactionEvent objects. |
default ListTransactionEventsResponse |
listTransactionEvents(ListTransactionEventsRequest listTransactionEventsRequest)
An array of
TransactionEvent objects. |
default ListTransactionEventsIterable |
listTransactionEventsPaginator(Consumer<ListTransactionEventsRequest.Builder> listTransactionEventsRequest)
An array of
TransactionEvent objects. |
default ListTransactionEventsIterable |
listTransactionEventsPaginator(ListTransactionEventsRequest listTransactionEventsRequest)
An array of
TransactionEvent objects. |
default ListTransactionsResponse |
listTransactions(Consumer<ListTransactionsRequest.Builder> listTransactionsRequest)
Lists all of the transactions on a given wallet address or to a specific contract.
|
default ListTransactionsResponse |
listTransactions(ListTransactionsRequest listTransactionsRequest)
Lists all of the transactions on a given wallet address or to a specific contract.
|
default ListTransactionsIterable |
listTransactionsPaginator(Consumer<ListTransactionsRequest.Builder> listTransactionsRequest)
Lists all of the transactions on a given wallet address or to a specific contract.
|
default ListTransactionsIterable |
listTransactionsPaginator(ListTransactionsRequest listTransactionsRequest)
Lists all of the transactions on a given wallet address or to a specific contract.
|
default ManagedBlockchainQueryServiceClientConfiguration |
serviceClientConfiguration() |
static ServiceMetadata |
serviceMetadata() |
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.default BatchGetTokenBalanceResponse batchGetTokenBalance(BatchGetTokenBalanceRequest batchGetTokenBalanceRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Gets the token balance for a batch of tokens by using the 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.
batchGetTokenBalanceRequest - 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.AwsServiceExceptiondefault BatchGetTokenBalanceResponse batchGetTokenBalance(Consumer<BatchGetTokenBalanceRequest.Builder> batchGetTokenBalanceRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Gets the token balance for a batch of tokens by using the 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.
This is a convenience which creates an instance of the BatchGetTokenBalanceRequest.Builder avoiding the
need to create one manually via BatchGetTokenBalanceRequest.builder()
batchGetTokenBalanceRequest - A Consumer that will call methods on
BatchGetTokenBalanceRequest.Builder
to create a request.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.AwsServiceExceptiondefault GetTokenBalanceResponse getTokenBalance(GetTokenBalanceRequest getTokenBalanceRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the blockchain.
Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.
getTokenBalanceRequest - 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.AwsServiceExceptiondefault GetTokenBalanceResponse getTokenBalance(Consumer<GetTokenBalanceRequest.Builder> getTokenBalanceRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the blockchain.
Only the native tokens BTC,ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.
This is a convenience which creates an instance of the GetTokenBalanceRequest.Builder avoiding the need
to create one manually via GetTokenBalanceRequest.builder()
getTokenBalanceRequest - A Consumer that will call methods on
GetTokenBalanceRequest.Builder to
create a request.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.AwsServiceExceptiondefault GetTransactionResponse getTransaction(GetTransactionRequest getTransactionRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Get the details of a transaction.
getTransactionRequest - 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.AwsServiceExceptiondefault GetTransactionResponse getTransaction(Consumer<GetTransactionRequest.Builder> getTransactionRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Get the details of a transaction.
This is a convenience which creates an instance of the GetTransactionRequest.Builder avoiding the need to
create one manually via GetTransactionRequest.builder()
getTransactionRequest - A Consumer that will call methods on
GetTransactionRequest.Builder to
create a request.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.AwsServiceExceptiondefault ListTokenBalancesResponse listTokenBalances(ListTokenBalancesRequest listTokenBalancesRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
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.
listTokenBalancesRequest - 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.AwsServiceExceptiondefault ListTokenBalancesResponse listTokenBalances(Consumer<ListTokenBalancesRequest.Builder> listTokenBalancesRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
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.
This is a convenience which creates an instance of the ListTokenBalancesRequest.Builder avoiding the need
to create one manually via ListTokenBalancesRequest.builder()
listTokenBalancesRequest - A Consumer that will call methods on
ListTokenBalancesRequest.Builder to
create a request.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.AwsServiceExceptiondefault ListTokenBalancesIterable listTokenBalancesPaginator(ListTokenBalancesRequest listTokenBalancesRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
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.
This is a variant of
listTokenBalances(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client.listTokenBalancesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client
.listTokenBalancesPaginator(request);
for (software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client.listTokenBalancesPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTokenBalances(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest)
operation.
listTokenBalancesRequest - 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.AwsServiceExceptiondefault ListTokenBalancesIterable listTokenBalancesPaginator(Consumer<ListTokenBalancesRequest.Builder> listTokenBalancesRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
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.
This is a variant of
listTokenBalances(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client.listTokenBalancesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client
.listTokenBalancesPaginator(request);
for (software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client.listTokenBalancesPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTokenBalances(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest)
operation.
This is a convenience which creates an instance of the ListTokenBalancesRequest.Builder avoiding the need
to create one manually via ListTokenBalancesRequest.builder()
listTokenBalancesRequest - A Consumer that will call methods on
ListTokenBalancesRequest.Builder to
create a request.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.AwsServiceExceptiondefault ListTransactionEventsResponse listTransactionEvents(ListTransactionEventsRequest listTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
An array of TransactionEvent objects. Each object contains details about the transaction event.
listTransactionEventsRequest - 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.AwsServiceExceptiondefault ListTransactionEventsResponse listTransactionEvents(Consumer<ListTransactionEventsRequest.Builder> listTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
An array of TransactionEvent objects. Each object contains details about the transaction event.
This is a convenience which creates an instance of the ListTransactionEventsRequest.Builder avoiding the
need to create one manually via ListTransactionEventsRequest.builder()
listTransactionEventsRequest - A Consumer that will call methods on
ListTransactionEventsRequest.Builder
to create a request.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.AwsServiceExceptiondefault ListTransactionEventsIterable listTransactionEventsPaginator(ListTransactionEventsRequest listTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
An array of TransactionEvent objects. 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 iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client.listTransactionEventsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client
.listTransactionEventsPaginator(request);
for (software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client.listTransactionEventsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsRequest)
operation.
listTransactionEventsRequest - 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.AwsServiceExceptiondefault ListTransactionEventsIterable listTransactionEventsPaginator(Consumer<ListTransactionEventsRequest.Builder> listTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
An array of TransactionEvent objects. 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 iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client.listTransactionEventsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client
.listTransactionEventsPaginator(request);
for (software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client.listTransactionEventsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsRequest)
operation.
This is a convenience which creates an instance of the ListTransactionEventsRequest.Builder avoiding the
need to create one manually via ListTransactionEventsRequest.builder()
listTransactionEventsRequest - A Consumer that will call methods on
ListTransactionEventsRequest.Builder
to create a request.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.AwsServiceExceptiondefault ListTransactionsResponse listTransactions(ListTransactionsRequest listTransactionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
Lists all of the transactions on a given wallet address or to a specific contract.
listTransactionsRequest - 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.AwsServiceExceptiondefault ListTransactionsResponse listTransactions(Consumer<ListTransactionsRequest.Builder> listTransactionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
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.Builder avoiding the need
to create one manually via ListTransactionsRequest.builder()
listTransactionsRequest - A Consumer that will call methods on
ListTransactionsRequest.Builder to
create a request.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.AwsServiceExceptiondefault ListTransactionsIterable listTransactionsPaginator(ListTransactionsRequest listTransactionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
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 iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client.listTransactionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client
.listTransactionsPaginator(request);
for (software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client.listTransactionsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTransactions(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsRequest)
operation.
listTransactionsRequest - 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.AwsServiceExceptiondefault ListTransactionsIterable listTransactionsPaginator(Consumer<ListTransactionsRequest.Builder> listTransactionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException
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 iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client.listTransactionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client
.listTransactionsPaginator(request);
for (software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client.listTransactionsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTransactions(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsRequest)
operation.
This is a convenience which creates an instance of the ListTransactionsRequest.Builder avoiding the need
to create one manually via ListTransactionsRequest.builder()
listTransactionsRequest - A Consumer that will call methods on
ListTransactionsRequest.Builder to
create a request.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.AwsServiceExceptionstatic ManagedBlockchainQueryClient create()
ManagedBlockchainQueryClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static ManagedBlockchainQueryClientBuilder builder()
ManagedBlockchainQueryClient.static ServiceMetadata serviceMetadata()
default ManagedBlockchainQueryServiceClientConfiguration serviceClientConfiguration()
serviceClientConfiguration in interface AwsClientserviceClientConfiguration in interface SdkClientCopyright © 2023. All rights reserved.