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

******************
get_asset_contract
******************



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

  

  Gets the information about a specific contract deployed on the blockchain.

   

  .. note::

    

    
    * The Bitcoin blockchain networks do not support this operation.
     
    * Metadata is currently only available for some ``ERC-20`` contracts. Metadata will be available for additional contracts in the future.
    

    

  

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


  **Request Syntax**
  ::

    response = client.get_asset_contract(
        contractIdentifier={
            'network': 'ETHEREUM_MAINNET'|'ETHEREUM_SEPOLIA_TESTNET'|'BITCOIN_MAINNET'|'BITCOIN_TESTNET',
            'contractAddress': 'string'
        }
    )
    
  :type contractIdentifier: dict
  :param contractIdentifier: **[REQUIRED]** 

    Contains the blockchain address and network information about the contract.

    

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

      The blockchain network of the contract.

      

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

      Container for the blockchain address about a contract.

      

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

    
    ::

      {
          'contractIdentifier': {
              'network': 'ETHEREUM_MAINNET'|'ETHEREUM_SEPOLIA_TESTNET'|'BITCOIN_MAINNET'|'BITCOIN_TESTNET',
              'contractAddress': 'string'
          },
          'tokenStandard': 'ERC20'|'ERC721'|'ERC1155',
          'deployerAddress': 'string',
          'metadata': {
              'name': 'string',
              'symbol': 'string',
              'decimals': 123
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        Contains the blockchain address and network information about the contract.

        
        

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

        
      

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

        The address of the deployer of contract.

        
      

      - **metadata** *(dict) --* 

        The metadata of the contract.

        
        

        - **name** *(string) --* 

          The name of the token contract.

          
        

        - **symbol** *(string) --* 

          The symbol of the token contract.

          
        

        - **decimals** *(integer) --* 

          The decimals used by the token contract.

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

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

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

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

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

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

  