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.client("managedblockchain-query") boto3 documentation

# ManagedBlockchainQueryClient usage example

from aioboto3.session import Session
from types_aiobotocore_managedblockchain_query.client import ManagedBlockchainQueryClient

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

Exceptions#

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

# ManagedBlockchainQueryClient.exceptions usage example

async with session.client("managedblockchain-query") as client:
    try:
        do_something(client)
    except (
            client.exceptions.AccessDeniedException,
        client.exceptions.ClientError,
        client.exceptions.InternalServerException,
        client.exceptions.ResourceNotFoundException,
        client.exceptions.ServiceQuotaExceededException,
        client.exceptions.ThrottlingException,
        client.exceptions.ValidationException,
    ) as e:
        print(e)
# ManagedBlockchainQueryClient.exceptions 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 BatchGetTokenBalance action for every token in the request.

Type annotations and code completion for session.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.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.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.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_asset_contract#

Gets the information about a specific contract deployed on the blockchain.

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

# get_asset_contract method definition

await def get_asset_contract(
    self,
    *,
    contractIdentifier: ContractIdentifierTypeDef,  # (1)
) -> GetAssetContractOutputTypeDef:  # (2)
    ...
  1. See ContractIdentifierTypeDef
  2. See GetAssetContractOutputTypeDef
# get_asset_contract method usage example with argument unpacking

kwargs: GetAssetContractInputRequestTypeDef = {  # (1)
    "contractIdentifier": ...,
}

parent.get_asset_contract(**kwargs)
  1. See GetAssetContractInputRequestTypeDef

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

Gets the details of a transaction.

Type annotations and code completion for session.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_asset_contracts#

Lists all the contracts for a given contract type deployed by an address (either a contract address or a wallet address).

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

# list_asset_contracts method definition

await def list_asset_contracts(
    self,
    *,
    contractFilter: ContractFilterTypeDef,  # (1)
    nextToken: str = ...,
    maxResults: int = ...,
) -> ListAssetContractsOutputTypeDef:  # (2)
    ...
  1. See ContractFilterTypeDef
  2. See ListAssetContractsOutputTypeDef
# list_asset_contracts method usage example with argument unpacking

kwargs: ListAssetContractsInputRequestTypeDef = {  # (1)
    "contractFilter": ...,
}

parent.list_asset_contracts(**kwargs)
  1. See ListAssetContractsInputRequestTypeDef

list_token_balances#

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

Type annotations and code completion for session.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.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.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 = ...,
    confirmationStatusFilter: ConfirmationStatusFilterTypeDef = ...,  # (5)
) -> ListTransactionsOutputTypeDef:  # (6)
    ...
  1. See QueryNetworkType
  2. See BlockchainInstantTypeDef
  3. See BlockchainInstantTypeDef
  4. See ListTransactionsSortTypeDef
  5. See ConfirmationStatusFilterTypeDef
  6. 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.client("managedblockchain-query").__aenter__ method. boto3 documentation

# __aenter__ method definition

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

__aexit__#

Type annotations and code completion for session.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.client("managedblockchain-query").get_paginator method with overloads.