Skip to content

ManagedBlockchainQueryClient#

Index > ManagedBlockchainQuery > ManagedBlockchainQueryClient

Auto-generated documentation for ManagedBlockchainQuery type annotations stubs module types-aiobotocore-managedblockchain-query.

ManagedBlockchainQueryClient#

Type annotations and code completion for session.create_client("managedblockchain-query") boto3 documentation

ManagedBlockchainQueryClient usage example

from aiobotocore.session import get_session
from types_aiobotocore_managedblockchain_query.client import ManagedBlockchainQueryClient

session = get_session()
async with session.create_client("managedblockchain-query") as client:
    client: ManagedBlockchainQueryClient

Exceptions#

aiobotocore client exceptions are generated in runtime. This class provides code completion for session.create_client("managedblockchain-query").exceptions structure.

ManagedBlockchainQueryClient.exceptions usage example

async with session.create_client("managedblockchain-query") as client:
    try:
        do_something(client)
    except (
            client.AccessDeniedException,
        client.ClientError,
        client.InternalServerException,
        client.ResourceNotFoundException,
        client.ServiceQuotaExceededException,
        client.ThrottlingException,
        client.ValidationException,
    ) as e:
        print(e)
ManagedBlockchainQueryClient usage type checking example

from types_aiobotocore_managedblockchain_query.client import Exceptions

def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...

Methods#

batch_get_token_balance#

Gets the token balance for a batch of tokens by using the GetTokenBalance action for every token in the request.

Type annotations and code completion for session.create_client("managedblockchain-query").batch_get_token_balance method. boto3 documentation

# batch_get_token_balance method definition

await def batch_get_token_balance(
    self,
    *,
    getTokenBalanceInputs: Sequence[BatchGetTokenBalanceInputItemTypeDef] = ...,  # (1)
) -> BatchGetTokenBalanceOutputTypeDef:  # (2)
    ...
  1. See BatchGetTokenBalanceInputItemTypeDef
  2. See BatchGetTokenBalanceOutputTypeDef
# batch_get_token_balance method usage example with argument unpacking

kwargs: BatchGetTokenBalanceInputRequestTypeDef = {  # (1)
    "getTokenBalanceInputs": ...,
}

parent.batch_get_token_balance(**kwargs)
  1. See BatchGetTokenBalanceInputRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for session.create_client("managedblockchain-query").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close#

Closes underlying endpoint connections.

Type annotations and code completion for session.create_client("managedblockchain-query").close method. boto3 documentation

# close method definition

await def close(
    self,
) -> None:
    ...

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for session.create_client("managedblockchain-query").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

await def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_token_balance#

Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the blockchain.

Type annotations and code completion for session.create_client("managedblockchain-query").get_token_balance method. boto3 documentation

# get_token_balance method definition

await def get_token_balance(
    self,
    *,
    tokenIdentifier: TokenIdentifierTypeDef,  # (1)
    ownerIdentifier: OwnerIdentifierTypeDef,  # (2)
    atBlockchainInstant: BlockchainInstantTypeDef = ...,  # (3)
) -> GetTokenBalanceOutputTypeDef:  # (4)
    ...
  1. See TokenIdentifierTypeDef
  2. See OwnerIdentifierTypeDef
  3. See BlockchainInstantTypeDef
  4. See GetTokenBalanceOutputTypeDef
# get_token_balance method usage example with argument unpacking

kwargs: GetTokenBalanceInputRequestTypeDef = {  # (1)
    "tokenIdentifier": ...,
    "ownerIdentifier": ...,
}

parent.get_token_balance(**kwargs)
  1. See GetTokenBalanceInputRequestTypeDef

get_transaction#

Get the details of a transaction.

Type annotations and code completion for session.create_client("managedblockchain-query").get_transaction method. boto3 documentation

# get_transaction method definition

await def get_transaction(
    self,
    *,
    transactionHash: str,
    network: QueryNetworkType,  # (1)
) -> GetTransactionOutputTypeDef:  # (2)
    ...
  1. See QueryNetworkType
  2. See GetTransactionOutputTypeDef
# get_transaction method usage example with argument unpacking

kwargs: GetTransactionInputRequestTypeDef = {  # (1)
    "transactionHash": ...,
    "network": ...,
}

parent.get_transaction(**kwargs)
  1. See GetTransactionInputRequestTypeDef

list_token_balances#

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).

Type annotations and code completion for session.create_client("managedblockchain-query").list_token_balances method. boto3 documentation

# list_token_balances method definition

await def list_token_balances(
    self,
    *,
    tokenFilter: TokenFilterTypeDef,  # (1)
    ownerFilter: OwnerFilterTypeDef = ...,  # (2)
    nextToken: str = ...,
    maxResults: int = ...,
) -> ListTokenBalancesOutputTypeDef:  # (3)
    ...
  1. See TokenFilterTypeDef
  2. See OwnerFilterTypeDef
  3. See ListTokenBalancesOutputTypeDef
# list_token_balances method usage example with argument unpacking

kwargs: ListTokenBalancesInputRequestTypeDef = {  # (1)
    "tokenFilter": ...,
}

parent.list_token_balances(**kwargs)
  1. See ListTokenBalancesInputRequestTypeDef

list_transaction_events#

An array of TransactionEvent objects.

Type annotations and code completion for session.create_client("managedblockchain-query").list_transaction_events method. boto3 documentation

# list_transaction_events method definition

await def list_transaction_events(
    self,
    *,
    transactionHash: str,
    network: QueryNetworkType,  # (1)
    nextToken: str = ...,
    maxResults: int = ...,
) -> ListTransactionEventsOutputTypeDef:  # (2)
    ...
  1. See QueryNetworkType
  2. See ListTransactionEventsOutputTypeDef
# list_transaction_events method usage example with argument unpacking

kwargs: ListTransactionEventsInputRequestTypeDef = {  # (1)
    "transactionHash": ...,
    "network": ...,
}

parent.list_transaction_events(**kwargs)
  1. See ListTransactionEventsInputRequestTypeDef

list_transactions#

Lists all of the transactions on a given wallet address or to a specific contract.

Type annotations and code completion for session.create_client("managedblockchain-query").list_transactions method. boto3 documentation

# list_transactions method definition

await def list_transactions(
    self,
    *,
    address: str,
    network: QueryNetworkType,  # (1)
    fromBlockchainInstant: BlockchainInstantTypeDef = ...,  # (2)
    toBlockchainInstant: BlockchainInstantTypeDef = ...,  # (2)
    sort: ListTransactionsSortTypeDef = ...,  # (4)
    nextToken: str = ...,
    maxResults: int = ...,
) -> ListTransactionsOutputTypeDef:  # (5)
    ...
  1. See QueryNetworkType
  2. See BlockchainInstantTypeDef
  3. See BlockchainInstantTypeDef
  4. See ListTransactionsSortTypeDef
  5. See ListTransactionsOutputTypeDef
# list_transactions method usage example with argument unpacking

kwargs: ListTransactionsInputRequestTypeDef = {  # (1)
    "address": ...,
    "network": ...,
}

parent.list_transactions(**kwargs)
  1. See ListTransactionsInputRequestTypeDef

__aenter__#

Type annotations and code completion for session.create_client("managedblockchain-query").__aenter__ method. boto3 documentation

# __aenter__ method definition

await def __aenter__(
    self,
) -> ManagedBlockchainQueryClient:
    ...

__aexit__#

Type annotations and code completion for session.create_client("managedblockchain-query").__aexit__ method. boto3 documentation

# __aexit__ method definition

await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...

get_paginator#

Type annotations and code completion for session.create_client("managedblockchain-query").get_paginator method with overloads.