:doc:`ManagedBlockchainQuery <../../managedblockchain-query>` / Paginator / ListTransactionEvents

*********************
ListTransactionEvents
*********************



.. py:class:: ManagedBlockchainQuery.Paginator.ListTransactionEvents

  ::

    
    paginator = client.get_paginator('list_transaction_events')

  
  

  .. py:method:: paginate(**kwargs)

    Creates an iterator that will paginate through responses from :py:meth:`ManagedBlockchainQuery.Client.list_transaction_events`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-query-2023-05-04/ListTransactionEvents>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          transactionHash='string',
          transactionId='string',
          network='ETHEREUM_MAINNET'|'ETHEREUM_SEPOLIA_TESTNET'|'BITCOIN_MAINNET'|'BITCOIN_TESTNET',
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type transactionHash: string
    :param transactionHash: 

      The hash of a transaction. It is generated when a transaction is created.

      

    
    :type transactionId: string
    :param transactionId: 

      The identifier of a Bitcoin transaction. It is generated when a transaction is created.

       

      .. note::

        

        ``transactionId`` is only supported on the Bitcoin networks.

        

      

    
    :type network: string
    :param network: **[REQUIRED]** 

      The blockchain network where the transaction events occurred.

      

    
    :type PaginationConfig: dict
    :param PaginationConfig: 

      A dictionary that provides parameters to control pagination.

      

    
      - **MaxItems** *(integer) --* 

        The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination.

        

      
      - **PageSize** *(integer) --* 

        The size of each page.

        

      
      - **StartingToken** *(string) --* 

        A token to specify where to start paginating. This is the ``NextToken`` from a previous response.

        

      
    
    
    :rtype: dict
    :returns: 
      
      **Response Syntax**

      
      ::

        {
            'events': [
                {
                    'network': 'ETHEREUM_MAINNET'|'ETHEREUM_SEPOLIA_TESTNET'|'BITCOIN_MAINNET'|'BITCOIN_TESTNET',
                    '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,
                    'voutSpent': True|False,
                    'spentVoutTransactionId': 'string',
                    'spentVoutTransactionHash': 'string',
                    'spentVoutIndex': 123,
                    'blockchainInstant': {
                        'time': datetime(2015, 1, 1)
                    },
                    'confirmationStatus': 'FINAL'|'NONFINAL'
                },
            ],
            '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 a transaction. It is generated when a transaction is created.

              
            

            - **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 identifier of a Bitcoin transaction. It is generated when a transaction is created.

              
            

            - **voutIndex** *(integer) --* 

              The position of the transaction output in the transaction output list.

              
            

            - **voutSpent** *(boolean) --* 

              Specifies if the transaction output is spent or unspent. This is only returned for BITCOIN_VOUT event types.

               

              .. note::

                

                This is only returned for ``BITCOIN_VOUT`` event types.

                

              
            

            - **spentVoutTransactionId** *(string) --* 

              The transactionId that *created* the spent transaction output.

               

              .. note::

                

                This is only returned for ``BITCOIN_VIN`` event types.

                

              
            

            - **spentVoutTransactionHash** *(string) --* 

              The transactionHash that *created* the spent transaction output.

               

              .. note::

                

                This is only returned for ``BITCOIN_VIN`` event types.

                

              
            

            - **spentVoutIndex** *(integer) --* 

              The position of the spent transaction output in the output list of the *creating transaction*.

               

              .. note::

                

                This is only returned for ``BITCOIN_VIN`` event types.

                

              
            

            - **blockchainInstant** *(dict) --* 

              The container for time.

              
              

              - **time** *(datetime) --* 

                The container of the ``Timestamp`` of the blockchain instant.

                 

                .. note::

                  

                  This ``timestamp`` will only be recorded up to the second.

                  

                
          
            

            - **confirmationStatus** *(string) --* 

              This container specifies whether the transaction has reached Finality.

              
        
      
        

        - **NextToken** *(string) --* 

          A token to resume pagination.

          
    