ManagedBlockchainQuery / Client / list_transaction_events

list_transaction_events#

ManagedBlockchainQuery.Client.list_transaction_events(**kwargs)#

An array of TransactionEvent objects. Each object contains details about the transaction event.

See also: AWS API Documentation

Request Syntax

response = client.list_transaction_events(
    transactionHash='string',
    network='ETHEREUM_MAINNET'|'BITCOIN_MAINNET',
    nextToken='string',
    maxResults=123
)
Parameters:
  • transactionHash (string) –

    [REQUIRED]

    The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.

  • network (string) –

    [REQUIRED]

    The blockchain network where the transaction events occurred.

  • nextToken (string) – The pagination token that indicates the next set of results to retrieve.

  • maxResults (integer) –

    The maximum number of transaction events to list.

    Note

    Even if additional results can be retrieved, the request can return less results than maxResults or an empty array of results.

    To retrieve the next set of results, make another request with the returned nextToken value. The value of nextToken is null when there are no more results to return

Return type:

dict

Returns:

Response Syntax

{
    'events': [
        {
            'network': 'ETHEREUM_MAINNET'|'BITCOIN_MAINNET',
            'transactionHash': 'string',
            'eventType': 'ERC20_TRANSFER'|'ERC20_MINT'|'ERC20_BURN'|'ERC20_DEPOSIT'|'ERC20_WITHDRAWAL'|'ERC721_TRANSFER'|'ERC1155_TRANSFER'|'BITCOIN_VIN'|'BITCOIN_VOUT'|'INTERNAL_ETH_TRANSFER'|'ETH_TRANSFER',
            'from': 'string',
            'to': 'string',
            'value': 'string',
            'contractAddress': 'string',
            'tokenId': 'string',
            'transactionId': 'string',
            'voutIndex': 123
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • events (list) –

      An array of TransactionEvent objects. Each object contains details about the transaction events.

      • (dict) –

        The container for the properties of a transaction event.

        • network (string) –

          The blockchain network where the transaction occurred.

        • transactionHash (string) –

          The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.

        • eventType (string) –

          The type of transaction event.

        • from (string) –

          The wallet address initiating the transaction. It can either be a public key or a contract.

        • to (string) –

          The wallet address receiving the transaction. It can either be a public key or a contract.

        • value (string) –

          The value that was transacted.

        • contractAddress (string) –

          The blockchain address. for the contract

        • tokenId (string) –

          The unique identifier for the token involved in the transaction.

        • transactionId (string) –

          The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.

        • voutIndex (integer) –

          The position of the vout in the transaction output list.

    • nextToken (string) –

      The pagination token that indicates the next set of results to retrieve.

Exceptions

  • ManagedBlockchainQuery.Client.exceptions.ThrottlingException

  • ManagedBlockchainQuery.Client.exceptions.ValidationException

  • ManagedBlockchainQuery.Client.exceptions.AccessDeniedException

  • ManagedBlockchainQuery.Client.exceptions.InternalServerException

  • ManagedBlockchainQuery.Client.exceptions.ServiceQuotaExceededException