Interface ManagedBlockchainQueryClient
- 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 TypeMethodDescriptiondefault BatchGetTokenBalanceResponsebatchGetTokenBalance(Consumer<BatchGetTokenBalanceRequest.Builder> batchGetTokenBalanceRequest) Gets the token balance for a batch of tokens by using theBatchGetTokenBalanceaction for every token in the request.default BatchGetTokenBalanceResponsebatchGetTokenBalance(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 aManagedBlockchainQueryClient.static ManagedBlockchainQueryClientcreate()Create aManagedBlockchainQueryClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default GetAssetContractResponsegetAssetContract(Consumer<GetAssetContractRequest.Builder> getAssetContractRequest) Gets the information about a specific contract deployed on the blockchain.default GetAssetContractResponsegetAssetContract(GetAssetContractRequest getAssetContractRequest) Gets the information about a specific contract deployed on the blockchain.default GetTokenBalanceResponsegetTokenBalance(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 GetTokenBalanceResponsegetTokenBalance(GetTokenBalanceRequest getTokenBalanceRequest) Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the blockchain.default GetTransactionResponsegetTransaction(Consumer<GetTransactionRequest.Builder> getTransactionRequest) Gets the details of a transaction.default GetTransactionResponsegetTransaction(GetTransactionRequest getTransactionRequest) Gets the details of a transaction.default ListAssetContractsResponselistAssetContracts(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 ListAssetContractsResponselistAssetContracts(ListAssetContractsRequest listAssetContractsRequest) Lists all the contracts for a given contract type deployed by an address (either a contract address or a wallet address).default ListAssetContractsIterablelistAssetContractsPaginator(Consumer<ListAssetContractsRequest.Builder> listAssetContractsRequest) This is a variant oflistAssetContracts(software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest)operation.default ListAssetContractsIterablelistAssetContractsPaginator(ListAssetContractsRequest listAssetContractsRequest) This is a variant oflistAssetContracts(software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest)operation.listFilteredTransactionEvents(Consumer<ListFilteredTransactionEventsRequest.Builder> listFilteredTransactionEventsRequest) Lists all the transaction events for an address on the blockchain.listFilteredTransactionEvents(ListFilteredTransactionEventsRequest listFilteredTransactionEventsRequest) Lists all the transaction events for an address on the blockchain.listFilteredTransactionEventsPaginator(Consumer<ListFilteredTransactionEventsRequest.Builder> listFilteredTransactionEventsRequest) This is a variant oflistFilteredTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest)operation.listFilteredTransactionEventsPaginator(ListFilteredTransactionEventsRequest listFilteredTransactionEventsRequest) This is a variant oflistFilteredTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest)operation.default ListTokenBalancesResponselistTokenBalances(Consumer<ListTokenBalancesRequest.Builder> listTokenBalancesRequest) This action returns the following for a given blockchain network:default ListTokenBalancesResponselistTokenBalances(ListTokenBalancesRequest listTokenBalancesRequest) This action returns the following for a given blockchain network:default ListTokenBalancesIterablelistTokenBalancesPaginator(Consumer<ListTokenBalancesRequest.Builder> listTokenBalancesRequest) This is a variant oflistTokenBalances(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest)operation.default ListTokenBalancesIterablelistTokenBalancesPaginator(ListTokenBalancesRequest listTokenBalancesRequest) This is a variant oflistTokenBalances(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest)operation.default ListTransactionEventsResponselistTransactionEvents(Consumer<ListTransactionEventsRequest.Builder> listTransactionEventsRequest) Lists all the transaction events for a transactiondefault ListTransactionEventsResponselistTransactionEvents(ListTransactionEventsRequest listTransactionEventsRequest) Lists all the transaction events for a transactiondefault ListTransactionEventsIterablelistTransactionEventsPaginator(Consumer<ListTransactionEventsRequest.Builder> listTransactionEventsRequest) This is a variant oflistTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsRequest)operation.default ListTransactionEventsIterablelistTransactionEventsPaginator(ListTransactionEventsRequest listTransactionEventsRequest) This is a variant oflistTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsRequest)operation.default ListTransactionsResponselistTransactions(Consumer<ListTransactionsRequest.Builder> listTransactionsRequest) Lists all the transaction events for a transaction.default ListTransactionsResponselistTransactions(ListTransactionsRequest listTransactionsRequest) Lists all the transaction events for a transaction.default ListTransactionsIterablelistTransactionsPaginator(Consumer<ListTransactionsRequest.Builder> listTransactionsRequest) This is a variant oflistTransactions(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsRequest)operation.default ListTransactionsIterablelistTransactionsPaginator(ListTransactionsRequest listTransactionsRequest) This is a variant oflistTransactions(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsRequest)operation.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadataMethods 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 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
BatchGetTokenBalanceaction for every token in the request.Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.
- Parameters:
batchGetTokenBalanceRequest-- Returns:
- Result of the BatchGetTokenBalance operation returned by the service.
- See Also:
-
batchGetTokenBalance
default 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
BatchGetTokenBalanceaction for every token in the request.Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.
This is a convenience which creates an instance of the
BatchGetTokenBalanceRequest.Builderavoiding the need to create one manually viaBatchGetTokenBalanceRequest.builder()- Parameters:
batchGetTokenBalanceRequest- AConsumerthat will call methods onBatchGetTokenBalanceRequest.Builderto create a request.- Returns:
- Result of the BatchGetTokenBalance operation returned by the service.
- See Also:
-
getAssetContract
default GetAssetContractResponse getAssetContract(GetAssetContractRequest getAssetContractRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException 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:
- Result of the GetAssetContract operation returned by the service.
- See Also:
-
-
getAssetContract
default GetAssetContractResponse getAssetContract(Consumer<GetAssetContractRequest.Builder> getAssetContractRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException 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:
- Result of the GetAssetContract operation returned by the service.
- See Also:
-
-
getTokenBalance
default 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 and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.
- Parameters:
getTokenBalanceRequest-- Returns:
- Result of the GetTokenBalance operation returned by the service.
- See Also:
-
getTokenBalance
default 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 and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.
This is a convenience which creates an instance of the
GetTokenBalanceRequest.Builderavoiding the need to create one manually viaGetTokenBalanceRequest.builder()- Parameters:
getTokenBalanceRequest- AConsumerthat will call methods onGetTokenBalanceRequest.Builderto create a request.- Returns:
- Result of the GetTokenBalance operation returned by the service.
- See Also:
-
getTransaction
default GetTransactionResponse getTransaction(GetTransactionRequest getTransactionRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException Gets the details of a transaction.
This action will return transaction details for all transactions that are confirmed on the blockchain, even if they have not reached finality.
- Parameters:
getTransactionRequest-- Returns:
- Result of the GetTransaction operation returned by the service.
- See Also:
-
getTransaction
default GetTransactionResponse getTransaction(Consumer<GetTransactionRequest.Builder> getTransactionRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException Gets the details of a transaction.
This action will return transaction details for all transactions that are confirmed on the blockchain, even if they have not reached finality.
This is a convenience which creates an instance of the
GetTransactionRequest.Builderavoiding the need to create one manually viaGetTransactionRequest.builder()- Parameters:
getTransactionRequest- AConsumerthat will call methods onGetTransactionRequest.Builderto create a request.- Returns:
- Result of the GetTransaction operation returned by the service.
- See Also:
-
listAssetContracts
default ListAssetContractsResponse listAssetContracts(ListAssetContractsRequest listAssetContractsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException 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:
- Result of the ListAssetContracts operation returned by the service.
- See Also:
-
listAssetContracts
default ListAssetContractsResponse listAssetContracts(Consumer<ListAssetContractsRequest.Builder> listAssetContractsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException 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:
- Result of the ListAssetContracts operation returned by the service.
- See Also:
-
listAssetContractsPaginator
default ListAssetContractsIterable listAssetContractsPaginator(ListAssetContractsRequest listAssetContractsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException This is a variant of
listAssetContracts(software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable responses = client.listAssetContractsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable responses = client .listAssetContractsPaginator(request); for (software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable responses = client.listAssetContractsPaginator(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
listAssetContracts(software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest)operation.- Parameters:
listAssetContractsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listAssetContractsPaginator
default ListAssetContractsIterable listAssetContractsPaginator(Consumer<ListAssetContractsRequest.Builder> listAssetContractsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException This is a variant of
listAssetContracts(software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable responses = client.listAssetContractsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable responses = client .listAssetContractsPaginator(request); for (software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable responses = client.listAssetContractsPaginator(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
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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listFilteredTransactionEvents
default ListFilteredTransactionEventsResponse listFilteredTransactionEvents(ListFilteredTransactionEventsRequest listFilteredTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException Lists all the transaction events for an address on the blockchain.
This operation is only supported on the Bitcoin networks.
- Parameters:
listFilteredTransactionEventsRequest-- Returns:
- Result of the ListFilteredTransactionEvents operation returned by the service.
- See Also:
-
listFilteredTransactionEvents
default ListFilteredTransactionEventsResponse listFilteredTransactionEvents(Consumer<ListFilteredTransactionEventsRequest.Builder> listFilteredTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException Lists all the transaction events for an address on the blockchain.
This operation is only supported on the Bitcoin networks.
This is a convenience which creates an instance of the
ListFilteredTransactionEventsRequest.Builderavoiding the need to create one manually viaListFilteredTransactionEventsRequest.builder()- Parameters:
listFilteredTransactionEventsRequest- AConsumerthat will call methods onListFilteredTransactionEventsRequest.Builderto create a request.- Returns:
- Result of the ListFilteredTransactionEvents operation returned by the service.
- See Also:
-
listFilteredTransactionEventsPaginator
default ListFilteredTransactionEventsIterable listFilteredTransactionEventsPaginator(ListFilteredTransactionEventsRequest listFilteredTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException This is a variant of
listFilteredTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable responses = client.listFilteredTransactionEventsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable responses = client .listFilteredTransactionEventsPaginator(request); for (software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable responses = client.listFilteredTransactionEventsPaginator(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
listFilteredTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest)operation.- Parameters:
listFilteredTransactionEventsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFilteredTransactionEventsPaginator
default ListFilteredTransactionEventsIterable listFilteredTransactionEventsPaginator(Consumer<ListFilteredTransactionEventsRequest.Builder> listFilteredTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException This is a variant of
listFilteredTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable responses = client.listFilteredTransactionEventsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable responses = client .listFilteredTransactionEventsPaginator(request); for (software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable responses = client.listFilteredTransactionEventsPaginator(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
listFilteredTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest)operation.
This is a convenience which creates an instance of the
ListFilteredTransactionEventsRequest.Builderavoiding the need to create one manually viaListFilteredTransactionEventsRequest.builder()- Parameters:
listFilteredTransactionEventsRequest- AConsumerthat will call methods onListFilteredTransactionEventsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTokenBalances
default ListTokenBalancesResponse listTokenBalances(ListTokenBalancesRequest listTokenBalancesRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException 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:
- Result of the ListTokenBalances operation returned by the service.
- See Also:
-
-
listTokenBalances
default ListTokenBalancesResponse listTokenBalances(Consumer<ListTokenBalancesRequest.Builder> listTokenBalancesRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException 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:
- Result of the ListTokenBalances operation returned by the service.
- See Also:
-
-
listTokenBalancesPaginator
default ListTokenBalancesIterable listTokenBalancesPaginator(ListTokenBalancesRequest listTokenBalancesRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException 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
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client.listTokenBalancesPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Parameters:
listTokenBalancesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTokenBalancesPaginator
default ListTokenBalancesIterable listTokenBalancesPaginator(Consumer<ListTokenBalancesRequest.Builder> listTokenBalancesRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException 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
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client.listTokenBalancesPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.Builderavoiding the need to create one manually viaListTokenBalancesRequest.builder()- Parameters:
listTokenBalancesRequest- AConsumerthat will call methods onListTokenBalancesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTransactionEvents
default ListTransactionEventsResponse listTransactionEvents(ListTransactionEventsRequest listTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException Lists all the transaction events for a transaction
This action will return transaction details for all transactions that are confirmed on the blockchain, even if they have not reached finality.
- Parameters:
listTransactionEventsRequest-- Returns:
- Result of the ListTransactionEvents operation returned by the service.
- See Also:
-
listTransactionEvents
default ListTransactionEventsResponse listTransactionEvents(Consumer<ListTransactionEventsRequest.Builder> listTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException Lists all the transaction events for a transaction
This action will return transaction details for all transactions that are confirmed on the blockchain, even if they have not reached finality.
This is a convenience which creates an instance of the
ListTransactionEventsRequest.Builderavoiding the need to create one manually viaListTransactionEventsRequest.builder()- Parameters:
listTransactionEventsRequest- AConsumerthat will call methods onListTransactionEventsRequest.Builderto create a request.- Returns:
- Result of the ListTransactionEvents operation returned by the service.
- See Also:
-
listTransactionEventsPaginator
default ListTransactionEventsIterable listTransactionEventsPaginator(ListTransactionEventsRequest listTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException 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
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client.listTransactionEventsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Parameters:
listTransactionEventsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTransactionEventsPaginator
default ListTransactionEventsIterable listTransactionEventsPaginator(Consumer<ListTransactionEventsRequest.Builder> listTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException 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
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client.listTransactionEventsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.Builderavoiding the need to create one manually viaListTransactionEventsRequest.builder()- Parameters:
listTransactionEventsRequest- AConsumerthat will call methods onListTransactionEventsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTransactions
default ListTransactionsResponse listTransactions(ListTransactionsRequest listTransactionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException Lists all the transaction events for a transaction.
- Parameters:
listTransactionsRequest-- Returns:
- Result of the ListTransactions operation returned by the service.
- See Also:
-
listTransactions
default ListTransactionsResponse listTransactions(Consumer<ListTransactionsRequest.Builder> listTransactionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException Lists all the transaction events for a transaction.
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:
- Result of the ListTransactions operation returned by the service.
- See Also:
-
listTransactionsPaginator
default ListTransactionsIterable listTransactionsPaginator(ListTransactionsRequest listTransactionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException 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
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client.listTransactionsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Parameters:
listTransactionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTransactionsPaginator
default ListTransactionsIterable listTransactionsPaginator(Consumer<ListTransactionsRequest.Builder> listTransactionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException 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
2) Using For loopsoftware.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client.listTransactionsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.Builderavoiding the need to create one manually viaListTransactionsRequest.builder()- Parameters:
listTransactionsRequest- AConsumerthat will call methods onListTransactionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
create
Create aManagedBlockchainQueryClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aManagedBlockchainQueryClient. -
serviceMetadata
-
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
-