:doc:`ManagedBlockchain <../../managedblockchain>` / Client / list_accessors

**************
list_accessors
**************



.. py:method:: ManagedBlockchain.Client.list_accessors(**kwargs)

  

  Returns a list of the accessors and their properties. Accessor objects are containers that have the information required for token based access to your Ethereum nodes.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/ListAccessors>`_  


  **Request Syntax**
  ::

    response = client.list_accessors(
        MaxResults=123,
        NextToken='string',
        NetworkType='ETHEREUM_GOERLI'|'ETHEREUM_MAINNET'|'ETHEREUM_MAINNET_AND_GOERLI'|'POLYGON_MAINNET'|'POLYGON_MUMBAI'
    )
    
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of accessors to list.

    

  
  :type NextToken: string
  :param NextToken: 

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

    

  
  :type NetworkType: string
  :param NetworkType: 

    The blockchain network that the ``Accessor`` token is created for.

     

    .. note::

      

      Use the value ``ETHEREUM_MAINNET_AND_GOERLI`` for all existing ``Accessors`` tokens that were created before the ``networkType`` property was introduced.

      

    

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

    
    ::

      {
          'Accessors': [
              {
                  'Id': 'string',
                  'Type': 'BILLING_TOKEN',
                  'Status': 'AVAILABLE'|'PENDING_DELETION'|'DELETED',
                  'CreationDate': datetime(2015, 1, 1),
                  'Arn': 'string',
                  'NetworkType': 'ETHEREUM_GOERLI'|'ETHEREUM_MAINNET'|'ETHEREUM_MAINNET_AND_GOERLI'|'POLYGON_MAINNET'|'POLYGON_MUMBAI'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Accessors** *(list) --* 

        An array of AccessorSummary objects that contain configuration properties for each accessor.

        
        

        - *(dict) --* 

          A summary of accessor properties.

          
          

          - **Id** *(string) --* 

            The unique identifier of the accessor.

            
          

          - **Type** *(string) --* 

            The type of the accessor.

             

            .. note::

              

              Currently accessor type is restricted to ``BILLING_TOKEN``.

              

            
          

          - **Status** *(string) --* 

            The current status of the accessor.

            
          

          - **CreationDate** *(datetime) --* 

            The creation date and time of the accessor.

            
          

          - **Arn** *(string) --* 

            The Amazon Resource Name (ARN) of the accessor. For more information about ARNs and their format, see `Amazon Resource Names (ARNs) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference*.

            
          

          - **NetworkType** *(string) --* 

            The blockchain network that the Accessor token is created for.

            
      
    
      

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

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

        
  
  **Exceptions**
  
  *   :py:class:`ManagedBlockchain.Client.exceptions.InvalidRequestException`

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

  
  *   :py:class:`ManagedBlockchain.Client.exceptions.ThrottlingException`

  
  *   :py:class:`ManagedBlockchain.Client.exceptions.InternalServiceErrorException`

  