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#
can_paginate#
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:
...
generate_presigned_url#
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:
...
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)
...
# batch_get_token_balance method usage example with argument unpacking
kwargs: BatchGetTokenBalanceInputRequestTypeDef = { # (1)
"getTokenBalanceInputs": ...,
}
parent.batch_get_token_balance(**kwargs)
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)
...
# get_asset_contract method usage example with argument unpacking
kwargs: GetAssetContractInputRequestTypeDef = { # (1)
"contractIdentifier": ...,
}
parent.get_asset_contract(**kwargs)
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: BlockchainInstantTypeDef = ..., # (3)
) -> GetTokenBalanceOutputTypeDef: # (4)
...
- See TokenIdentifierTypeDef
- See OwnerIdentifierTypeDef
- See BlockchainInstantTypeDef
- See GetTokenBalanceOutputTypeDef
# get_token_balance method usage example with argument unpacking
kwargs: GetTokenBalanceInputRequestTypeDef = { # (1)
"tokenIdentifier": ...,
"ownerIdentifier": ...,
}
parent.get_token_balance(**kwargs)
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)
...
# get_transaction method usage example with argument unpacking
kwargs: GetTransactionInputRequestTypeDef = { # (1)
"network": ...,
}
parent.get_transaction(**kwargs)
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)
...
# list_asset_contracts method usage example with argument unpacking
kwargs: ListAssetContractsInputRequestTypeDef = { # (1)
"contractFilter": ...,
}
parent.list_asset_contracts(**kwargs)
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)
...
- See AddressIdentifierFilterTypeDef
- See TimeFilterTypeDef
- See VoutFilterTypeDef
- See ConfirmationStatusFilterTypeDef
- See ListFilteredTransactionEventsSortTypeDef
- See ListFilteredTransactionEventsOutputTypeDef
# list_filtered_transaction_events method usage example with argument unpacking
kwargs: ListFilteredTransactionEventsInputRequestTypeDef = { # (1)
"network": ...,
"addressIdentifierFilter": ...,
}
parent.list_filtered_transaction_events(**kwargs)
list_token_balances#
This action returns the following for a given blockchain network:.
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)
...
# list_token_balances method usage example with argument unpacking
kwargs: ListTokenBalancesInputRequestTypeDef = { # (1)
"tokenFilter": ...,
}
parent.list_token_balances(**kwargs)
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)
...
# list_transaction_events method usage example with argument unpacking
kwargs: ListTransactionEventsInputRequestTypeDef = { # (1)
"network": ...,
}
parent.list_transaction_events(**kwargs)
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: BlockchainInstantTypeDef = ..., # (2)
toBlockchainInstant: BlockchainInstantTypeDef = ..., # (2)
sort: ListTransactionsSortTypeDef = ..., # (4)
nextToken: str = ...,
maxResults: int = ...,
confirmationStatusFilter: ConfirmationStatusFilterTypeDef = ..., # (5)
) -> ListTransactionsOutputTypeDef: # (6)
...
- See QueryNetworkType
- See BlockchainInstantTypeDef
- See BlockchainInstantTypeDef
- See ListTransactionsSortTypeDef
- See ConfirmationStatusFilterTypeDef
- See ListTransactionsOutputTypeDef
# list_transactions method usage example with argument unpacking
kwargs: ListTransactionsInputRequestTypeDef = { # (1)
"address": ...,
"network": ...,
}
parent.list_transactions(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("managedblockchain-query").get_paginator
method with overloads.
client.get_paginator("list_asset_contracts")
-> ListAssetContractsPaginatorclient.get_paginator("list_filtered_transaction_events")
-> ListFilteredTransactionEventsPaginatorclient.get_paginator("list_token_balances")
-> ListTokenBalancesPaginatorclient.get_paginator("list_transaction_events")
-> ListTransactionEventsPaginatorclient.get_paginator("list_transactions")
-> ListTransactionsPaginator