Skip to content

Type definitions#

Index > ManagedBlockchainQuery > Type definitions

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

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

AddressIdentifierFilterTypeDef#

# AddressIdentifierFilterTypeDef definition

class AddressIdentifierFilterTypeDef(TypedDict):
    transactionEventToAddress: Sequence[str],

ContractIdentifierTypeDef#

# ContractIdentifierTypeDef definition

class ContractIdentifierTypeDef(TypedDict):
    network: QueryNetworkType,  # (1)
    contractAddress: str,
  1. See QueryNetworkType

OwnerIdentifierTypeDef#

# OwnerIdentifierTypeDef definition

class OwnerIdentifierTypeDef(TypedDict):
    address: str,

TokenIdentifierTypeDef#

# TokenIdentifierTypeDef definition

class TokenIdentifierTypeDef(TypedDict):
    network: QueryNetworkType,  # (1)
    contractAddress: NotRequired[str],
    tokenId: NotRequired[str],
  1. See QueryNetworkType

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

ConfirmationStatusFilterTypeDef#

# ConfirmationStatusFilterTypeDef definition

class ConfirmationStatusFilterTypeDef(TypedDict):
    include: Sequence[ConfirmationStatusType],  # (1)
  1. See ConfirmationStatusType

ContractFilterTypeDef#

# ContractFilterTypeDef definition

class ContractFilterTypeDef(TypedDict):
    network: QueryNetworkType,  # (1)
    tokenStandard: QueryTokenStandardType,  # (2)
    deployerAddress: str,
  1. See QueryNetworkType
  2. See QueryTokenStandardType

ContractMetadataTypeDef#

# ContractMetadataTypeDef definition

class ContractMetadataTypeDef(TypedDict):
    name: NotRequired[str],
    symbol: NotRequired[str],
    decimals: NotRequired[int],

GetTransactionInputRequestTypeDef#

# GetTransactionInputRequestTypeDef definition

class GetTransactionInputRequestTypeDef(TypedDict):
    network: QueryNetworkType,  # (1)
    transactionHash: NotRequired[str],
    transactionId: NotRequired[str],
  1. See QueryNetworkType

TransactionTypeDef#

# TransactionTypeDef definition

class TransactionTypeDef(TypedDict):
    network: QueryNetworkType,  # (1)
    transactionHash: str,
    transactionTimestamp: datetime,
    transactionIndex: int,
    numberOfTransactions: int,
    to: str,
    blockHash: NotRequired[str],
    blockNumber: NotRequired[str],
    from: NotRequired[str],
    contractAddress: NotRequired[str],
    gasUsed: NotRequired[str],
    cumulativeGasUsed: NotRequired[str],
    effectiveGasPrice: NotRequired[str],
    signatureV: NotRequired[int],
    signatureR: NotRequired[str],
    signatureS: NotRequired[str],
    transactionFee: NotRequired[str],
    transactionId: NotRequired[str],
    confirmationStatus: NotRequired[ConfirmationStatusType],  # (2)
    executionStatus: NotRequired[ExecutionStatusType],  # (3)
  1. See QueryNetworkType
  2. See ConfirmationStatusType
  3. See ExecutionStatusType

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef definition

class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

ListFilteredTransactionEventsSortTypeDef#

# ListFilteredTransactionEventsSortTypeDef definition

class ListFilteredTransactionEventsSortTypeDef(TypedDict):
    sortBy: NotRequired[ListFilteredTransactionEventsSortByType],  # (1)
    sortOrder: NotRequired[SortOrderType],  # (2)
  1. See ListFilteredTransactionEventsSortByType
  2. See SortOrderType

VoutFilterTypeDef#

# VoutFilterTypeDef definition

class VoutFilterTypeDef(TypedDict):
    voutSpent: bool,

OwnerFilterTypeDef#

# OwnerFilterTypeDef definition

class OwnerFilterTypeDef(TypedDict):
    address: str,

TokenFilterTypeDef#

# TokenFilterTypeDef definition

class TokenFilterTypeDef(TypedDict):
    network: QueryNetworkType,  # (1)
    contractAddress: NotRequired[str],
    tokenId: NotRequired[str],
  1. See QueryNetworkType

ListTransactionEventsInputRequestTypeDef#

# ListTransactionEventsInputRequestTypeDef definition

class ListTransactionEventsInputRequestTypeDef(TypedDict):
    network: QueryNetworkType,  # (1)
    transactionHash: NotRequired[str],
    transactionId: NotRequired[str],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See QueryNetworkType

ListTransactionsSortTypeDef#

# ListTransactionsSortTypeDef definition

class ListTransactionsSortTypeDef(TypedDict):
    sortBy: NotRequired[ListTransactionsSortByType],  # (1)
    sortOrder: NotRequired[SortOrderType],  # (2)
  1. See ListTransactionsSortByType
  2. See SortOrderType

TransactionOutputItemTypeDef#

# TransactionOutputItemTypeDef definition

class TransactionOutputItemTypeDef(TypedDict):
    transactionHash: str,
    network: QueryNetworkType,  # (1)
    transactionTimestamp: datetime,
    transactionId: NotRequired[str],
    confirmationStatus: NotRequired[ConfirmationStatusType],  # (2)
  1. See QueryNetworkType
  2. See ConfirmationStatusType

AssetContractTypeDef#

# AssetContractTypeDef definition

class AssetContractTypeDef(TypedDict):
    contractIdentifier: ContractIdentifierTypeDef,  # (1)
    tokenStandard: QueryTokenStandardType,  # (2)
    deployerAddress: str,
  1. See ContractIdentifierTypeDef
  2. See QueryTokenStandardType

GetAssetContractInputRequestTypeDef#

# GetAssetContractInputRequestTypeDef definition

class GetAssetContractInputRequestTypeDef(TypedDict):
    contractIdentifier: ContractIdentifierTypeDef,  # (1)
  1. See ContractIdentifierTypeDef

BlockchainInstantTypeDef#

# BlockchainInstantTypeDef definition

class BlockchainInstantTypeDef(TypedDict):
    time: NotRequired[Union[datetime, str]],

ListAssetContractsInputRequestTypeDef#

# ListAssetContractsInputRequestTypeDef definition

class ListAssetContractsInputRequestTypeDef(TypedDict):
    contractFilter: ContractFilterTypeDef,  # (1)
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See ContractFilterTypeDef

GetAssetContractOutputTypeDef#

# GetAssetContractOutputTypeDef definition

class GetAssetContractOutputTypeDef(TypedDict):
    contractIdentifier: ContractIdentifierTypeDef,  # (1)
    tokenStandard: QueryTokenStandardType,  # (2)
    deployerAddress: str,
    metadata: ContractMetadataTypeDef,  # (3)
    ResponseMetadata: ResponseMetadataTypeDef,  # (4)
  1. See ContractIdentifierTypeDef
  2. See QueryTokenStandardType
  3. See ContractMetadataTypeDef
  4. See ResponseMetadataTypeDef

GetTransactionOutputTypeDef#

# GetTransactionOutputTypeDef definition

class GetTransactionOutputTypeDef(TypedDict):
    transaction: TransactionTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See TransactionTypeDef
  2. See ResponseMetadataTypeDef

ListAssetContractsInputListAssetContractsPaginateTypeDef#

# ListAssetContractsInputListAssetContractsPaginateTypeDef definition

class ListAssetContractsInputListAssetContractsPaginateTypeDef(TypedDict):
    contractFilter: ContractFilterTypeDef,  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See ContractFilterTypeDef
  2. See PaginatorConfigTypeDef

ListTransactionEventsInputListTransactionEventsPaginateTypeDef#

# ListTransactionEventsInputListTransactionEventsPaginateTypeDef definition

class ListTransactionEventsInputListTransactionEventsPaginateTypeDef(TypedDict):
    network: QueryNetworkType,  # (1)
    transactionHash: NotRequired[str],
    transactionId: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See QueryNetworkType
  2. See PaginatorConfigTypeDef

ListTokenBalancesInputListTokenBalancesPaginateTypeDef#

# ListTokenBalancesInputListTokenBalancesPaginateTypeDef definition

class ListTokenBalancesInputListTokenBalancesPaginateTypeDef(TypedDict):
    tokenFilter: TokenFilterTypeDef,  # (1)
    ownerFilter: NotRequired[OwnerFilterTypeDef],  # (2)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See TokenFilterTypeDef
  2. See OwnerFilterTypeDef
  3. See PaginatorConfigTypeDef

ListTokenBalancesInputRequestTypeDef#

# ListTokenBalancesInputRequestTypeDef definition

class ListTokenBalancesInputRequestTypeDef(TypedDict):
    tokenFilter: TokenFilterTypeDef,  # (1)
    ownerFilter: NotRequired[OwnerFilterTypeDef],  # (2)
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See TokenFilterTypeDef
  2. See OwnerFilterTypeDef

ListTransactionsOutputTypeDef#

# ListTransactionsOutputTypeDef definition

class ListTransactionsOutputTypeDef(TypedDict):
    transactions: List[TransactionOutputItemTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See TransactionOutputItemTypeDef
  2. See ResponseMetadataTypeDef

ListAssetContractsOutputTypeDef#

# ListAssetContractsOutputTypeDef definition

class ListAssetContractsOutputTypeDef(TypedDict):
    contracts: List[AssetContractTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See AssetContractTypeDef
  2. See ResponseMetadataTypeDef

BatchGetTokenBalanceErrorItemTypeDef#

# BatchGetTokenBalanceErrorItemTypeDef definition

class BatchGetTokenBalanceErrorItemTypeDef(TypedDict):
    errorCode: str,
    errorMessage: str,
    errorType: ErrorTypeType,  # (4)
    tokenIdentifier: NotRequired[TokenIdentifierTypeDef],  # (1)
    ownerIdentifier: NotRequired[OwnerIdentifierTypeDef],  # (2)
    atBlockchainInstant: NotRequired[BlockchainInstantTypeDef],  # (3)
  1. See TokenIdentifierTypeDef
  2. See OwnerIdentifierTypeDef
  3. See BlockchainInstantTypeDef
  4. See ErrorTypeType

BatchGetTokenBalanceInputItemTypeDef#

# BatchGetTokenBalanceInputItemTypeDef definition

class BatchGetTokenBalanceInputItemTypeDef(TypedDict):
    tokenIdentifier: TokenIdentifierTypeDef,  # (1)
    ownerIdentifier: OwnerIdentifierTypeDef,  # (2)
    atBlockchainInstant: NotRequired[BlockchainInstantTypeDef],  # (3)
  1. See TokenIdentifierTypeDef
  2. See OwnerIdentifierTypeDef
  3. See BlockchainInstantTypeDef

BatchGetTokenBalanceOutputItemTypeDef#

# BatchGetTokenBalanceOutputItemTypeDef definition

class BatchGetTokenBalanceOutputItemTypeDef(TypedDict):
    balance: str,
    atBlockchainInstant: BlockchainInstantTypeDef,  # (3)
    ownerIdentifier: NotRequired[OwnerIdentifierTypeDef],  # (1)
    tokenIdentifier: NotRequired[TokenIdentifierTypeDef],  # (2)
    lastUpdatedTime: NotRequired[BlockchainInstantTypeDef],  # (3)
  1. See OwnerIdentifierTypeDef
  2. See TokenIdentifierTypeDef
  3. See BlockchainInstantTypeDef
  4. See BlockchainInstantTypeDef

GetTokenBalanceInputRequestTypeDef#

# GetTokenBalanceInputRequestTypeDef definition

class GetTokenBalanceInputRequestTypeDef(TypedDict):
    tokenIdentifier: TokenIdentifierTypeDef,  # (1)
    ownerIdentifier: OwnerIdentifierTypeDef,  # (2)
    atBlockchainInstant: NotRequired[BlockchainInstantTypeDef],  # (3)
  1. See TokenIdentifierTypeDef
  2. See OwnerIdentifierTypeDef
  3. See BlockchainInstantTypeDef

GetTokenBalanceOutputTypeDef#

# GetTokenBalanceOutputTypeDef definition

class GetTokenBalanceOutputTypeDef(TypedDict):
    ownerIdentifier: OwnerIdentifierTypeDef,  # (1)
    tokenIdentifier: TokenIdentifierTypeDef,  # (2)
    balance: str,
    atBlockchainInstant: BlockchainInstantTypeDef,  # (3)
    lastUpdatedTime: BlockchainInstantTypeDef,  # (3)
    ResponseMetadata: ResponseMetadataTypeDef,  # (5)
  1. See OwnerIdentifierTypeDef
  2. See TokenIdentifierTypeDef
  3. See BlockchainInstantTypeDef
  4. See BlockchainInstantTypeDef
  5. See ResponseMetadataTypeDef

ListTransactionsInputListTransactionsPaginateTypeDef#

# ListTransactionsInputListTransactionsPaginateTypeDef definition

class ListTransactionsInputListTransactionsPaginateTypeDef(TypedDict):
    address: str,
    network: QueryNetworkType,  # (1)
    fromBlockchainInstant: NotRequired[BlockchainInstantTypeDef],  # (2)
    toBlockchainInstant: NotRequired[BlockchainInstantTypeDef],  # (2)
    sort: NotRequired[ListTransactionsSortTypeDef],  # (4)
    confirmationStatusFilter: NotRequired[ConfirmationStatusFilterTypeDef],  # (5)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (6)
  1. See QueryNetworkType
  2. See BlockchainInstantTypeDef
  3. See BlockchainInstantTypeDef
  4. See ListTransactionsSortTypeDef
  5. See ConfirmationStatusFilterTypeDef
  6. See PaginatorConfigTypeDef

ListTransactionsInputRequestTypeDef#

# ListTransactionsInputRequestTypeDef definition

class ListTransactionsInputRequestTypeDef(TypedDict):
    address: str,
    network: QueryNetworkType,  # (1)
    fromBlockchainInstant: NotRequired[BlockchainInstantTypeDef],  # (2)
    toBlockchainInstant: NotRequired[BlockchainInstantTypeDef],  # (2)
    sort: NotRequired[ListTransactionsSortTypeDef],  # (4)
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    confirmationStatusFilter: NotRequired[ConfirmationStatusFilterTypeDef],  # (5)
  1. See QueryNetworkType
  2. See BlockchainInstantTypeDef
  3. See BlockchainInstantTypeDef
  4. See ListTransactionsSortTypeDef
  5. See ConfirmationStatusFilterTypeDef

TimeFilterTypeDef#

# TimeFilterTypeDef definition

class TimeFilterTypeDef(TypedDict):
    from: NotRequired[BlockchainInstantTypeDef],  # (1)
    to: NotRequired[BlockchainInstantTypeDef],  # (1)
  1. See BlockchainInstantTypeDef
  2. See BlockchainInstantTypeDef

TokenBalanceTypeDef#

# TokenBalanceTypeDef definition

class TokenBalanceTypeDef(TypedDict):
    balance: str,
    atBlockchainInstant: BlockchainInstantTypeDef,  # (3)
    ownerIdentifier: NotRequired[OwnerIdentifierTypeDef],  # (1)
    tokenIdentifier: NotRequired[TokenIdentifierTypeDef],  # (2)
    lastUpdatedTime: NotRequired[BlockchainInstantTypeDef],  # (3)
  1. See OwnerIdentifierTypeDef
  2. See TokenIdentifierTypeDef
  3. See BlockchainInstantTypeDef
  4. See BlockchainInstantTypeDef

TransactionEventTypeDef#

# TransactionEventTypeDef definition

class TransactionEventTypeDef(TypedDict):
    network: QueryNetworkType,  # (1)
    transactionHash: str,
    eventType: QueryTransactionEventTypeType,  # (2)
    from: NotRequired[str],
    to: NotRequired[str],
    value: NotRequired[str],
    contractAddress: NotRequired[str],
    tokenId: NotRequired[str],
    transactionId: NotRequired[str],
    voutIndex: NotRequired[int],
    voutSpent: NotRequired[bool],
    spentVoutTransactionId: NotRequired[str],
    spentVoutTransactionHash: NotRequired[str],
    spentVoutIndex: NotRequired[int],
    blockchainInstant: NotRequired[BlockchainInstantTypeDef],  # (3)
    confirmationStatus: NotRequired[ConfirmationStatusType],  # (4)
  1. See QueryNetworkType
  2. See QueryTransactionEventTypeType
  3. See BlockchainInstantTypeDef
  4. See ConfirmationStatusType

BatchGetTokenBalanceInputRequestTypeDef#

# BatchGetTokenBalanceInputRequestTypeDef definition

class BatchGetTokenBalanceInputRequestTypeDef(TypedDict):
    getTokenBalanceInputs: NotRequired[Sequence[BatchGetTokenBalanceInputItemTypeDef]],  # (1)
  1. See BatchGetTokenBalanceInputItemTypeDef

BatchGetTokenBalanceOutputTypeDef#

# BatchGetTokenBalanceOutputTypeDef definition

class BatchGetTokenBalanceOutputTypeDef(TypedDict):
    tokenBalances: List[BatchGetTokenBalanceOutputItemTypeDef],  # (1)
    errors: List[BatchGetTokenBalanceErrorItemTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See BatchGetTokenBalanceOutputItemTypeDef
  2. See BatchGetTokenBalanceErrorItemTypeDef
  3. See ResponseMetadataTypeDef

ListFilteredTransactionEventsInputListFilteredTransactionEventsPaginateTypeDef#

# ListFilteredTransactionEventsInputListFilteredTransactionEventsPaginateTypeDef definition

class ListFilteredTransactionEventsInputListFilteredTransactionEventsPaginateTypeDef(TypedDict):
    network: str,
    addressIdentifierFilter: AddressIdentifierFilterTypeDef,  # (1)
    timeFilter: NotRequired[TimeFilterTypeDef],  # (2)
    voutFilter: NotRequired[VoutFilterTypeDef],  # (3)
    confirmationStatusFilter: NotRequired[ConfirmationStatusFilterTypeDef],  # (4)
    sort: NotRequired[ListFilteredTransactionEventsSortTypeDef],  # (5)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (6)
  1. See AddressIdentifierFilterTypeDef
  2. See TimeFilterTypeDef
  3. See VoutFilterTypeDef
  4. See ConfirmationStatusFilterTypeDef
  5. See ListFilteredTransactionEventsSortTypeDef
  6. See PaginatorConfigTypeDef

ListFilteredTransactionEventsInputRequestTypeDef#

# ListFilteredTransactionEventsInputRequestTypeDef definition

class ListFilteredTransactionEventsInputRequestTypeDef(TypedDict):
    network: str,
    addressIdentifierFilter: AddressIdentifierFilterTypeDef,  # (1)
    timeFilter: NotRequired[TimeFilterTypeDef],  # (2)
    voutFilter: NotRequired[VoutFilterTypeDef],  # (3)
    confirmationStatusFilter: NotRequired[ConfirmationStatusFilterTypeDef],  # (4)
    sort: NotRequired[ListFilteredTransactionEventsSortTypeDef],  # (5)
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See AddressIdentifierFilterTypeDef
  2. See TimeFilterTypeDef
  3. See VoutFilterTypeDef
  4. See