Skip to content

ManagedBlockchainQueryClient#

Index > ManagedBlockchainQuery > ManagedBlockchainQueryClient

Auto-generated documentation for ManagedBlockchainQuery type annotations stubs module mypy-boto3-managedblockchain-query.

ManagedBlockchainQueryClient#

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

# ManagedBlockchainQueryClient usage example

from boto3.session import Session
from mypy_boto3_managedblockchain_query.client import ManagedBlockchainQueryClient

def get_managedblockchain-query_client() -> ManagedBlockchainQueryClient:
    return Session().client("managedblockchain-query")

Exceptions#

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

# Exceptions.exceptions usage example

client = boto3.client("managedblockchain-query")

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)
# Exceptions.exceptions type checking example

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

# batch_get_token_balance method definition

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

# close method definition

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

generate_presigned_url#

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

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

# generate_presigned_url method definition

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

# get_asset_contract method definition

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

# get_token_balance method definition

def get_token_balance(
    self,
    *,
    tokenIdentifier: TokenIdentifierTypeDef,  # (1)
    ownerIdentifier: OwnerIdentifierTypeDef,  # (2)
    atBlockchainInstant: Union[BlockchainInstantTypeDef, BlockchainInstantExtraOutputTypeDef] = ...,  # (3)
) -> GetTokenBalanceOutputTypeDef:  # (4)
    ...
  1. See TokenIdentifierTypeDef
  2. See OwnerIdentifierTypeDef
  3. See BlockchainInstantTypeDef BlockchainInstantExtraOutputTypeDef
  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 boto3.client("managedblockchain-query").get_transaction method. boto3 documentation

# get_transaction method definition

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

kwargs: GetTransactionInputRequestTypeDef = {  # (1)
    "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 boto3.client("managedblockchain-query").list_asset_contracts method. boto3 documentation

# list_asset_contracts method definition

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

Lists all the transaction events for an address on the blockchain.

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

# list_filtered_transaction_events method definition

def list_filtered_transaction_events(
    self,
    *,
    network: str,
    addressIdentifierFilter: AddressIdentifierFilterTypeDef,  # (1)
    timeFilter: TimeFilterTypeDef = ...,  # (2)
    voutFilter: VoutFilterTypeDef = ...,  # (3)
    confirmationStatusFilter: ConfirmationStatusFilterTypeDef = ...,  # (4)
    sort: ListFilteredTransactionEventsSortTypeDef = ...,  # (5)
    nextToken: str = ...,
    maxResults: int = ...,
) -> ListFilteredTransactionEventsOutputTypeDef:  # (6)
    ...
  1. See AddressIdentifierFilterTypeDef
  2. See TimeFilterTypeDef
  3. See VoutFilterTypeDef
  4. See ConfirmationStatusFilterTypeDef
  5. See ListFilteredTransactionEventsSortTypeDef
  6. See ListFilteredTransactionEventsOutputTypeDef
# list_filtered_transaction_events method usage example with argument unpacking

kwargs: ListFilteredTransactionEventsInputRequestTypeDef = {  # (1)
    "network": ...,
    "addressIdentifierFilter": ...,
}

parent.list_filtered_transaction_events(**kwargs)
  1. See ListFilteredTransactionEventsInputRequestTypeDef

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

# list_token_balances method definition

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#

Lists all the transaction events for a transaction .

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

# list_transaction_events method definition

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

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

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

list_transactions#

Lists all the transaction events for a transaction.

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

# list_transactions method definition

def list_transactions(
    self,
    *,
    address: str,
    network: QueryNetworkType,  # (1)
    fromBlockchainInstant: Union[BlockchainInstantTypeDef, BlockchainInstantExtraOutputTypeDef] = ...,  # (2)
    toBlockchainInstant: Union[BlockchainInstantTypeDef, BlockchainInstantExtraOutputTypeDef] = ...,  # (2)
    sort: ListTransactionsSortTypeDef = ...,  # (4)
    nextToken: str = ...,
    maxResults: int = ...,
    confirmationStatusFilter: ConfirmationStatusFilterTypeDef = ...,  # (5)
) -> ListTransactionsOutputTypeDef:  # (6)
    ...
  1. See QueryNetworkType
  2. See BlockchainInstantTypeDef BlockchainInstantExtraOutputTypeDef
  3. See BlockchainInstantTypeDef BlockchainInstantExtraOutputTypeDef
  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

get_paginator#

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