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)
]
AddressIdentifierFilterTypeDef#
# AddressIdentifierFilterTypeDef definition
class AddressIdentifierFilterTypeDef(TypedDict):
transactionEventToAddress: Sequence[str],
ContractIdentifierTypeDef#
# ContractIdentifierTypeDef definition
class ContractIdentifierTypeDef(TypedDict):
network: QueryNetworkType, # (1)
contractAddress: str,
- 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],
- 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)
ContractFilterTypeDef#
# ContractFilterTypeDef definition
class ContractFilterTypeDef(TypedDict):
network: QueryNetworkType, # (1)
tokenStandard: QueryTokenStandardType, # (2)
deployerAddress: str,
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],
- 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)
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)
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],
- See QueryNetworkType
ListTransactionEventsInputRequestTypeDef#
# ListTransactionEventsInputRequestTypeDef definition
class ListTransactionEventsInputRequestTypeDef(TypedDict):
network: QueryNetworkType, # (1)
transactionHash: NotRequired[str],
transactionId: NotRequired[str],
nextToken: NotRequired[str],
maxResults: NotRequired[int],
- See QueryNetworkType
ListTransactionsSortTypeDef#
# ListTransactionsSortTypeDef definition
class ListTransactionsSortTypeDef(TypedDict):
sortBy: NotRequired[ListTransactionsSortByType], # (1)
sortOrder: NotRequired[SortOrderType], # (2)
TransactionOutputItemTypeDef#
# TransactionOutputItemTypeDef definition
class TransactionOutputItemTypeDef(TypedDict):
transactionHash: str,
network: QueryNetworkType, # (1)
transactionTimestamp: datetime,
transactionId: NotRequired[str],
confirmationStatus: NotRequired[ConfirmationStatusType], # (2)
AssetContractTypeDef#
# AssetContractTypeDef definition
class AssetContractTypeDef(TypedDict):
contractIdentifier: ContractIdentifierTypeDef, # (1)
tokenStandard: QueryTokenStandardType, # (2)
deployerAddress: str,
GetAssetContractInputRequestTypeDef#
# GetAssetContractInputRequestTypeDef definition
class GetAssetContractInputRequestTypeDef(TypedDict):
contractIdentifier: ContractIdentifierTypeDef, # (1)
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)
- See QueryNetworkType
- See QueryTransactionEventTypeType
- See BlockchainInstantOutputTypeDef
- 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)
- See TokenIdentifierTypeDef
- See OwnerIdentifierTypeDef
- See BlockchainInstantOutputTypeDef
- 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)
- See OwnerIdentifierTypeDef
- See TokenIdentifierTypeDef
- See BlockchainInstantOutputTypeDef
- 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)
- See OwnerIdentifierTypeDef
- See TokenIdentifierTypeDef
- See BlockchainInstantOutputTypeDef
- 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)
- See OwnerIdentifierTypeDef
- See TokenIdentifierTypeDef
- See BlockchainInstantOutputTypeDef
- See BlockchainInstantOutputTypeDef
- See ResponseMetadataTypeDef
BlockchainInstantTypeDef#
# BlockchainInstantTypeDef definition
class BlockchainInstantTypeDef(TypedDict):
time: NotRequired[Union[datetime, str]],
ListAssetContractsInputRequestTypeDef#
# ListAssetContractsInputRequestTypeDef definition
class ListAssetContractsInputRequestTypeDef(TypedDict):
contractFilter: ContractFilterType