ManagedBlockchainQuery / Paginator / ListAssetContracts

ListAssetContracts#

class ManagedBlockchainQuery.Paginator.ListAssetContracts#
paginator = client.get_paginator('list_asset_contracts')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from ManagedBlockchainQuery.Client.list_asset_contracts().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    contractFilter={
        'network': 'ETHEREUM_MAINNET'|'ETHEREUM_SEPOLIA_TESTNET'|'BITCOIN_MAINNET'|'BITCOIN_TESTNET',
        'tokenStandard': 'ERC20'|'ERC721'|'ERC1155',
        'deployerAddress': 'string'
    },
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • contractFilter (dict) –

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

  • PaginationConfig (dict) –

    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.

Return type:

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) –

      A token to resume pagination.