:doc:`ManagedBlockchainQuery <../../managedblockchain-query>` / Client / list_asset_contracts

********************
list_asset_contracts
********************



.. py:method:: ManagedBlockchainQuery.Client.list_asset_contracts(**kwargs)

  

  Lists all the contracts for a given contract type deployed by an address (either a contract address or a wallet address).

   

  The Bitcoin blockchain networks do not support this operation.

  

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


  **Request Syntax**
  ::

    response = client.list_asset_contracts(
        contractFilter={
            'network': 'ETHEREUM_MAINNET'|'ETHEREUM_SEPOLIA_TESTNET'|'BITCOIN_MAINNET'|'BITCOIN_TESTNET',
            'tokenStandard': 'ERC20'|'ERC721'|'ERC1155',
            'deployerAddress': 'string'
        },
        nextToken='string',
        maxResults=123
    )
    
  :type contractFilter: dict
  :param contractFilter: **[REQUIRED]** 

    Contains the filter parameter for the request.

    

  
    - **network** *(string) --* **[REQUIRED]** 

      The blockchain network of the contract.

      

    
    - **tokenStandard** *(string) --* **[REQUIRED]** 

      The container for the token standard.

      

    
    - **deployerAddress** *(string) --* **[REQUIRED]** 

      The network address of the deployer.

      

    
  
  :type nextToken: string
  :param nextToken: 

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

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of contracts to list.

     

    Default: ``100``

     

    .. 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

      

    

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

    
    ::

      {
          'contracts': [
              {
                  'contractIdentifier': {
                      'network': 'ETHEREUM_MAINNET'|'ETHEREUM_SEPOLIA_TESTNET'|'BITCOIN_MAINNET'|'BITCOIN_TESTNET',
                      'contractAddress': 'string'
                  },
                  'tokenStandard': 'ERC20'|'ERC721'|'ERC1155',
                  'deployerAddress': 'string'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **contracts** *(list) --* 

        An array of contract objects that contain the properties for each contract.

        
        

        - *(dict) --* 

          This container contains information about an contract.

          
          

          - **contractIdentifier** *(dict) --* 

            The container for the contract identifier containing its blockchain network and address.

            
            

            - **network** *(string) --* 

              The blockchain network of the contract.

              
            

            - **contractAddress** *(string) --* 

              Container for the blockchain address about a contract.

              
        
          

          - **tokenStandard** *(string) --* 

            The token standard of the contract.

            
          

          - **deployerAddress** *(string) --* 

            The address of the contract deployer.

            
      
    
      

      - **nextToken** *(string) --* 

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

        
  
  **Exceptions**
  
  *   :py:class:`ManagedBlockchainQuery.Client.exceptions.ThrottlingException`

  
  *   :py:class:`ManagedBlockchainQuery.Client.exceptions.ValidationException`

  
  *   :py:class:`ManagedBlockchainQuery.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`ManagedBlockchainQuery.Client.exceptions.InternalServerException`

  
  *   :py:class:`ManagedBlockchainQuery.Client.exceptions.ServiceQuotaExceededException`

  