Skip to content

Type definitions#

Index > ManagedBlockchainQuery > Type definitions

Auto-generated documentation for ManagedBlockchainQuery type annotations stubs module types-aiobotocore-managedblockchain-query.

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

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,
    HostId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,

GetTransactionInputRequestTypeDef#

# GetTransactionInputRequestTypeDef definition

class GetTransactionInputRequestTypeDef(TypedDict):
    transactionHash: str,
    network: QueryNetworkType,  # (1)
  1. See QueryNetworkType

TransactionTypeDef#

# TransactionTypeDef definition

class TransactionTypeDef(TypedDict):
    network: QueryNetworkType,  # (1)
    transactionHash: str,
    transactionTimestamp: datetime,
    transactionIndex: int,
    numberOfTransactions: int,
    status: QueryTransactionStatusType,  # (2)
    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],
  1. See QueryNetworkType
  2. See QueryTransactionStatusType

OwnerFilterTypeDef#

# OwnerFilterTypeDef definition

class OwnerFilterTypeDef(TypedDict):
    address: str,

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef definition

class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[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):
    transactionHash: str,
    network: QueryNetworkType,  # (1)
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See QueryNetworkType

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],
  1. See QueryNetworkType
  2. See QueryTransactionEventTypeType

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,
  1. See QueryNetworkType

BlockchainInstantTypeDef#

# BlockchainInstantTypeDef definition

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

GetTransactionOutputTypeDef#

# GetTransactionOutputTypeDef definition

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

ListTransactionEventsInputListTransactionEventsPaginateTypeDef#

# ListTransactionEventsInputListTransactionEventsPaginateTypeDef definition

class ListTransactionEventsInputListTransactionEventsPaginateTypeDef(TypedDict):
    transactionHash: str,
    network: QueryNetworkType,  # (1)
    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

ListTransactionEventsOutputTypeDef#

# ListTransactionEventsOutputTypeDef definition

class ListTransactionEventsOutputTypeDef(TypedDict):
    events: List[TransactionEventTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See TransactionEventTypeDef
  2. See ResponseMetadataTypeDef

ListTransactionsOutputTypeDef#

# ListTransactionsOutputTypeDef definition

class ListTransactionsOutputTypeDef(TypedDict):
    transactions: List[TransactionOutputItemTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See TransactionOutputItemTypeDef
  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)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (5)
  1. See QueryNetworkType
  2. See BlockchainInstantTypeDef
  3. See BlockchainInstantTypeDef
  4. See ListTransactionsSortTypeDef
  5. 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],
  1. See QueryNetworkType
  2. See BlockchainInstantTypeDef
  3. See BlockchainInstantTypeDef
  4. See ListTransactionsSortTypeDef

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

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

ListTokenBalancesOutputTypeDef#

# ListTokenBalancesOutputTypeDef definition

class ListTokenBalancesOutputTypeDef(TypedDict):
    tokenBalances: List[TokenBalanceTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See TokenBalanceTypeDef
  2. See ResponseMetadataTypeDef