Registry /
type-stubs / mypy-boto3-managedblockchain-query
Install & Compatibility
Where this runs
tested against v1.43.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.616s · 51.9MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.9s · import 0.554s · 52MB
50MB installed
● package 50MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ManagedBlockchainQueryClient
✓ from mypy_boto3_managedblockchain_query.client import ManagedBlockchainQueryClient
Imports the type for the ManagedBlockchainQuery boto3 client.
ListTransactionsOutputTypeDef
✓ from mypy_boto3_managedblockchain_query.type_defs import ListTransactionsOutputTypeDef
Imports a specific TypedDict for API response structures.
ManagedBlockchainQueryServiceName
✓ from mypy_boto3_managedblockchain_query.literals import ManagedBlockchainQueryServiceName
Imports a Literal type for the service name, useful for strict type checking of boto3.client calls.
This quickstart demonstrates how to initialize a type-hinted ManagedBlockchainQuery client and make a sample API call using the `list_transactions` method. It shows the expected type annotations for the client object and the response structure, enabling better static analysis and autocompletion.
import boto3
from mypy_boto3_managedblockchain_query.client import ManagedBlockchainQueryClient
from mypy_boto3_managedblockchain_query.type_defs import ListTransactionsOutputTypeDef
# Ensure AWS credentials (e.g., via ~/.aws/credentials or environment variables)
# and region are configured for boto3 to function.
client: ManagedBlockchainQueryClient = boto3.client("managedblockchain-query")
try:
# Example: List transactions for a specific network and address
# Replace 'ETHEREUM_MAINNET' and '0x...' with actual values for your use case.
# 'fromBlock' and 'toBlock' are placeholders; use appropriate values or remove if not needed.
response: ListTransactionsOutputTypeDef = client.list_transactions(
network="ETHEREUM_MAINNET",
address="0x...", # Placeholder: Replace with a valid blockchain address
fromBlock='0',
toBlock='latest'
)
print("Transactions found:")
for transaction in response.get("transactions", []):
print(f" Transaction ID: {transaction['transactionId']}")
next_token = response.get("nextToken")
if next_token:
print(f" Next Token: {next_token}")
except client.exceptions.ResourceNotFoundException as e:
print(f"Error: Resource not found - {e}")
except Exception as e:
print(f"An unexpected error occurred: {e}")
Debug
Known issues
breakingSupport for Python 3.8 was removed in `mypy-boto3-builder` version 8.12.0, affecting all generated stub packages including `mypy-boto3-managedblockchain-query`. Users on Python 3.8 will need to upgrade to Python 3.9 or newer.fixUpgrade your Python environment to 3.9 or later.
affects: >=1.42.0 (generated by builder 8.12.0)
breakingThe `mypy-boto3-builder` (from version 8.12.0) migrated all generated packages to PEP 561-compliant stub packages. While generally beneficial, it changes how `mypy` discovers type information. If you were relying on custom `MYPYPATH` configurations for older `mypy-boto3` packages, you might need to adjust your setup as stub-only packages must be installed in the environment `mypy` checks.fixEnsure the `mypy-boto3-managedblockchain-query` package is installed directly into the Python environment that your `mypy` checker uses. Review `mypy` documentation on PEP 561 stub discovery.
affects: >=1.42.0 (generated by builder 8.12.0)
breakingStarting with `mypy-boto3-builder` 8.9.0, TypeDef names for packed method arguments may use shorter names (e.g., `CreateDistributionRequestRequestTypeDef` -> `CreateDistributionRequestTypeDef`), and conflicting TypeDef `Extra` postfixes were moved (e.g., `CreateDistributionExtraRequestTypeDef` -> `CreateDistributionRequestExtraTypeDef`). If your code explicitly imported or referenced the older, longer TypeDef names from this package, it might break type checking.fixUpdate your import statements and TypeDef references to use the potentially shorter or re-ordered names. Refer to the specific service's documentation for the correct TypeDef names.
affects: >=1.40.0 (generated by builder 8.9.0)
gotchaThis package provides *only* type annotations. You must also install `boto3` (e.g., `pip install boto3`) for your code to function at runtime. Without `boto3` installed, your application will raise `ModuleNotFoundError` or similar runtime errors.fixAlways install `boto3` alongside `mypy-boto3-managedblockchain-query`.
affects: All
Upgrade
Version history
1.43.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
boto3requiredThis package provides type stubs for boto3; boto3 itself is required for runtime execution.
pythonrequiredRequired due to removal of Python 3.8 support in mypy-boto3-builder 8.12.0, affecting all generated packages.