@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonManagedBlockchainQueryClient extends AmazonWebServiceClient implements AmazonManagedBlockchainQuery
Amazon Managed Blockchain (AMB) Query provides you with convenient access to multi-blockchain network data, which makes it easier for you to extract contextual data related to blockchain activity. You can use AMB Query to read data from public blockchain networks, such as Bitcoin Mainnet and Ethereum Mainnet. You can also get information such as the current and historical balances of addresses, or you can get a list of blockchain transactions for a given time period. Additionally, you can get details of a given transaction, such as transaction events, which you can further analyze or use in business logic for your applications.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
BatchGetTokenBalanceResult |
batchGetTokenBalance(BatchGetTokenBalanceRequest request)
Gets the token balance for a batch of tokens by using the
GetTokenBalance action for every token in
the request. |
static AmazonManagedBlockchainQueryClientBuilder |
builder() |
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
GetTokenBalanceResult |
getTokenBalance(GetTokenBalanceRequest request)
Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the
blockchain.
|
GetTransactionResult |
getTransaction(GetTransactionRequest request)
Get the details of a transaction.
|
ListTokenBalancesResult |
listTokenBalances(ListTokenBalancesRequest request)
This action returns the following for a given a blockchain network:
|
ListTransactionEventsResult |
listTransactionEvents(ListTransactionEventsRequest request)
An array of
TransactionEvent objects. |
ListTransactionsResult |
listTransactions(ListTransactionsRequest request)
Lists all of the transactions on a given wallet address or to a specific contract.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
public static AmazonManagedBlockchainQueryClientBuilder builder()
public BatchGetTokenBalanceResult batchGetTokenBalance(BatchGetTokenBalanceRequest request)
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.
batchGetTokenBalance
in interface AmazonManagedBlockchainQuery
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.public GetTokenBalanceResult getTokenBalance(GetTokenBalanceRequest request)
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.
getTokenBalance
in interface AmazonManagedBlockchainQuery
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.public GetTransactionResult getTransaction(GetTransactionRequest request)
Get the details of a transaction.
getTransaction
in interface AmazonManagedBlockchainQuery
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.public ListTokenBalancesResult listTokenBalances(ListTokenBalancesRequest request)
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.
listTokenBalances
in interface AmazonManagedBlockchainQuery
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.public ListTransactionEventsResult listTransactionEvents(ListTransactionEventsRequest request)
An array of TransactionEvent
objects. Each object contains details about the transaction event.
listTransactionEvents
in interface AmazonManagedBlockchainQuery
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.public ListTransactionsResult listTransactions(ListTransactionsRequest request)
Lists all of the transactions on a given wallet address or to a specific contract.
listTransactions
in interface AmazonManagedBlockchainQuery
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.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AmazonManagedBlockchainQuery
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AmazonManagedBlockchainQuery
shutdown
in class AmazonWebServiceClient