/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the managedblockchain-query-2023-05-04.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.ManagedBlockchainQuery.Model;
namespace Amazon.ManagedBlockchainQuery
{
///
/// Interface for accessing ManagedBlockchainQuery
///
/// 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.
///
public partial interface IAmazonManagedBlockchainQuery : IAmazonService, IDisposable
{
///
/// Paginators for the service
///
IManagedBlockchainQueryPaginatorFactory Paginators { get; }
#region BatchGetTokenBalance
///
/// 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.
///
///
///
/// Container for the necessary parameters to execute the BatchGetTokenBalance service method.
///
/// The response from the BatchGetTokenBalance service method, as returned by ManagedBlockchainQuery.
///
/// The Amazon Web Services account doesn’t have access to this resource.
///
///
/// The request processing has failed because of an internal error in the service.
///
///
/// The resource was not found.
///
///
/// The service quota has been exceeded for this resource.
///
///
/// 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.
///
///
/// The resource passed is invalid.
///
/// REST API Reference for BatchGetTokenBalance Operation
BatchGetTokenBalanceResponse 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.
///
///
///
/// Container for the necessary parameters to execute the BatchGetTokenBalance service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the BatchGetTokenBalance service method, as returned by ManagedBlockchainQuery.
///
/// The Amazon Web Services account doesn’t have access to this resource.
///
///
/// The request processing has failed because of an internal error in the service.
///
///
/// The resource was not found.
///
///
/// The service quota has been exceeded for this resource.
///
///
/// 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.
///
///
/// The resource passed is invalid.
///
/// REST API Reference for BatchGetTokenBalance Operation
Task BatchGetTokenBalanceAsync(BatchGetTokenBalanceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetTokenBalance
///
/// 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.
///
///
///
/// Container for the necessary parameters to execute the GetTokenBalance service method.
///
/// The response from the GetTokenBalance service method, as returned by ManagedBlockchainQuery.
///
/// The Amazon Web Services account doesn’t have access to this resource.
///
///
/// The request processing has failed because of an internal error in the service.
///
///
/// The resource was not found.
///
///
/// The service quota has been exceeded for this resource.
///
///
/// 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.
///
///
/// The resource passed is invalid.
///
/// REST API Reference for GetTokenBalance Operation
GetTokenBalanceResponse 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.
///
///
///
/// Container for the necessary parameters to execute the GetTokenBalance service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetTokenBalance service method, as returned by ManagedBlockchainQuery.
///
/// The Amazon Web Services account doesn’t have access to this resource.
///
///
/// The request processing has failed because of an internal error in the service.
///
///
/// The resource was not found.
///
///
/// The service quota has been exceeded for this resource.
///
///
/// 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.
///
///
/// The resource passed is invalid.
///
/// REST API Reference for GetTokenBalance Operation
Task GetTokenBalanceAsync(GetTokenBalanceRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetTransaction
///
/// Get the details of a transaction.
///
/// Container for the necessary parameters to execute the GetTransaction service method.
///
/// The response from the GetTransaction service method, as returned by ManagedBlockchainQuery.
///
/// The Amazon Web Services account doesn’t have access to this resource.
///
///
/// The request processing has failed because of an internal error in the service.
///
///
/// The resource was not found.
///
///
/// The service quota has been exceeded for this resource.
///
///
/// 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.
///
///
/// The resource passed is invalid.
///
/// REST API Reference for GetTransaction Operation
GetTransactionResponse GetTransaction(GetTransactionRequest request);
///
/// Get the details of a transaction.
///
/// Container for the necessary parameters to execute the GetTransaction service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetTransaction service method, as returned by ManagedBlockchainQuery.
///
/// The Amazon Web Services account doesn’t have access to this resource.
///
///
/// The request processing has failed because of an internal error in the service.
///
///
/// The resource was not found.
///
///
/// The service quota has been exceeded for this resource.
///
///
/// 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.
///
///
/// The resource passed is invalid.
///
/// REST API Reference for GetTransaction Operation
Task GetTransactionAsync(GetTransactionRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListTokenBalances
///
/// 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.
///
///
///
/// Container for the necessary parameters to execute the ListTokenBalances service method.
///
/// The response from the ListTokenBalances service method, as returned by ManagedBlockchainQuery.
///
/// The Amazon Web Services account doesn’t have access to this resource.
///
///
/// The request processing has failed because of an internal error in the service.
///
///
/// The service quota has been exceeded for this resource.
///
///
/// 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.
///
///
/// The resource passed is invalid.
///
/// REST API Reference for ListTokenBalances Operation
ListTokenBalancesResponse 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.
///
///
///
/// Container for the necessary parameters to execute the ListTokenBalances service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTokenBalances service method, as returned by ManagedBlockchainQuery.
///
/// The Amazon Web Services account doesn’t have access to this resource.
///
///
/// The request processing has failed because of an internal error in the service.
///
///
/// The service quota has been exceeded for this resource.
///
///
/// 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.
///
///
/// The resource passed is invalid.
///
/// REST API Reference for ListTokenBalances Operation
Task ListTokenBalancesAsync(ListTokenBalancesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListTransactionEvents
///
/// An array of TransactionEvent
objects. Each object contains details about
/// the transaction event.
///
/// Container for the necessary parameters to execute the ListTransactionEvents service method.
///
/// The response from the ListTransactionEvents service method, as returned by ManagedBlockchainQuery.
///
/// The Amazon Web Services account doesn’t have access to this resource.
///
///
/// The request processing has failed because of an internal error in the service.
///
///
/// The service quota has been exceeded for this resource.
///
///
/// 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.
///
///
/// The resource passed is invalid.
///
/// REST API Reference for ListTransactionEvents Operation
ListTransactionEventsResponse ListTransactionEvents(ListTransactionEventsRequest request);
///
/// An array of TransactionEvent
objects. Each object contains details about
/// the transaction event.
///
/// Container for the necessary parameters to execute the ListTransactionEvents service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTransactionEvents service method, as returned by ManagedBlockchainQuery.
///
/// The Amazon Web Services account doesn’t have access to this resource.
///
///
/// The request processing has failed because of an internal error in the service.
///
///
/// The service quota has been exceeded for this resource.
///
///
/// 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.
///
///
/// The resource passed is invalid.
///
/// REST API Reference for ListTransactionEvents Operation
Task ListTransactionEventsAsync(ListTransactionEventsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListTransactions
///
/// Lists all of the transactions on a given wallet address or to a specific contract.
///
/// Container for the necessary parameters to execute the ListTransactions service method.
///
/// The response from the ListTransactions service method, as returned by ManagedBlockchainQuery.
///
/// The Amazon Web Services account doesn’t have access to this resource.
///
///
/// The request processing has failed because of an internal error in the service.
///
///
/// The service quota has been exceeded for this resource.
///
///
/// 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.
///
///
/// The resource passed is invalid.
///
/// REST API Reference for ListTransactions Operation
ListTransactionsResponse ListTransactions(ListTransactionsRequest request);
///
/// Lists all of the transactions on a given wallet address or to a specific contract.
///
/// Container for the necessary parameters to execute the ListTransactions service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTransactions service method, as returned by ManagedBlockchainQuery.
///
/// The Amazon Web Services account doesn’t have access to this resource.
///
///
/// The request processing has failed because of an internal error in the service.
///
///
/// The service quota has been exceeded for this resource.
///
///
/// 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.
///
///
/// The resource passed is invalid.
///
/// REST API Reference for ListTransactions Operation
Task ListTransactionsAsync(ListTransactionsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
}