tokfetch/cli/main.py
def token_scan(config: BoardCommmadConfiguration, token_address, start_block, end_block):
    """Update token holder balances from a blockchain to a local database.

    Reads the Ethereum blockchain for a certain token and builds a local database of token holders and transfers.

    If start block and end block information are omitted, continue the scan where we were left last time.
    Scan operations may take a while.
    """

    assert is_ethereum_network(config.network)

    logger = config.logger

    from tokfetch.ethereum.tokenscan import token_scan

    dbsession = config.dbsession
    updated_addresses = token_scan(
        logger,
        dbsession,
        config.network,
        ethereum_node_url=config.node_url,
        token_address=token_address,
        start_block=start_block,
        end_block=end_block
    )

    logger.info("Updated %d token holder balances", len(updated_addresses))
Update token holder balances from a blockchain to a local database.

    Reads the Ethereum blockchain for a certain token and builds a local database of token holders and transfers.

    If start block and end block information are omitted, continue the scan where we were left last time.
    Scan operations may take a while.
    
Update token holder balances from a blockchain to a local database.
Reads the Ethereum blockchain for a certain token and builds a local database of token holders and transfers.

If start block and end block information are omitted, continue the scan where we were left last time.
Scan operations may take a while.
Update token holder balances from a blockchain to a local database . Reads the Ethereum blockchain for a certain token and builds a local database of token holders and transfers . If start block and end block information are omitted continue the scan where we were left last time . Scan operations may take a while .
def token_scan(config: BoardCommmadConfiguration, token_address, start_block, end_block):
    assert is_ethereum_network(config.network)
    logger = config.logger
    from tokfetch.ethereum.tokenscan import token_scan
    dbsession = config.dbsession
    updated_addresses = token_scan(
        logger,
        dbsession,
        config.network,
        ethereum_node_url=config.node_url,
        token_address=token_address,
        start_block=start_block,
        end_block=end_block
    )
    logger.info("Updated %d token holder balances", len(updated_addresses))
def token_scan ( config : BoardCommmadConfiguration , token_address , start_block , end_block ) : assert is_ethereum_network ( config . network ) logger = config . logger from tokfetch . ethereum . tokenscan import token_scan dbsession = config . dbsession updated_addresses = token_scan ( logger , dbsession , config . network , ethereum_node_url = config . node_url , token_address = token_address , start_block = start_block , end_block = end_block ) logger . info ( "Updated %d token holder balances" , len ( updated_addresses ) )
Update token holder balances from a blockchain to a local database.
Update token holder balances from a blockchain to a local database .
"""Update token holder balances from a blockchain to a local database.

    Reads the Ethereum blockchain for a certain token and builds a local database of token holders and transfers.

    If start block and end block information are omitted, continue the scan where we were left last time.
    Scan operations may take a while.
    """
config
BoardCommmadConfiguration
token_address
start_block
end_block