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,
]

BlockchainInstantUnionTypeDef#

# BlockchainInstantUnionTypeDef definition

BlockchainInstantUnionTypeDef = Union[
    BlockchainInstantTypeDef,  # (1)
    BlockchainInstantExtraOutputTypeDef,  # (2)
]
  1. See BlockchainInstantTypeDef
  2. See BlockchainInstantExtraOutputTypeDef

AddressIdentifierFilterTypeDef#

# AddressIdentifierFilterTypeDef definition

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

ContractIdentifierTypeDef#

# ContractIdentifierTypeDef definition

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

BlockchainInstantOutputTypeDef#

# BlockchainInstantOutputTypeDef definition

class BlockchainInstantOutputTypeDef(TypedDict):
    time: NotRequired[datetime],

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],

BlockchainInstantExtraOutputTypeDef#

# BlockchainInstantExtraOutputTypeDef definition

class BlockchainInstantExtraOutputTypeDef(TypedDict):
    time: NotRequired[datetime],

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

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[BlockchainInstantOutputTypeDef],  # (3)
    confirmationStatus: NotRequired[ConfirmationStatusType],  # (4)
  1. See QueryNetworkType
  2. See QueryTransactionEventTypeType
  3. See BlockchainInstantOutputTypeDef
  4. See ConfirmationStatusType

BatchGetTokenBalanceErrorItemTypeDef#

# BatchGetTokenBalanceErrorItemTypeDef definition

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

BatchGetTokenBalanceOutputItemTypeDef#

# BatchGetTokenBalanceOutputItemTypeDef definition

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

TokenBalanceTypeDef#

# TokenBalanceTypeDef definition

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

GetTokenBalanceOutputTypeDef#

# GetTokenBalanceOutputTypeDef definition

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

BlockchainInstantTypeDef#

# BlockchainInstantTypeDef definition

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

ListAssetContractsInputRequestTypeDef#

# ListAssetContractsInputRequestTypeDef definition

class ListAssetContractsInputRequestTypeDef(TypedDict):
    contractFilter: ContractFilterType