Rewards2/Dhanny_reward2/run.py
def write_csv(all_data, wallet, type):
    """
    Writes to a csv file the data received with a filename of the walletaddress and the scantype (algoexplorer or algoscan)

    `Required`
    :param list all_data:   A list of data containing `from`,`to` and `amount`
    :param str wallet:      The wallet address
    :param str type:        Scan type (algoexplorer/algoscan)
    """
    log("Writing to csv file", "info")
    header = ["from", "to","amount"]
    filename = f"{wallet}_{type}.csv"
    with open(filename, "w", encoding="UTF-8") as f:
        writer = csv.DictWriter(f, fieldnames=header)
        writer.writeheader()
        writer.writerows(all_data)
    log(f"Saved csv file to {filename}", "info")

    Writes to a csv file the data received with a filename of the walletaddress and the scantype (algoexplorer or algoscan)

    `Required`
    :param list all_data:   A list of data containing `from`,`to` and `amount`
    :param str wallet:      The wallet address
    :param str type:        Scan type (algoexplorer/algoscan)
    
Writes to a csv file the data received with a filename of the walletaddress and the scantype (algoexplorer or algoscan)
`Required`
Writes to a csv file the data received with a filename of the walletaddress and the scantype ( algoexplorer or algoscan ) ` Required `
def write_csv(all_data, wallet, type):
    log("Writing to csv file", "info")
    header = ["from", "to","amount"]
    filename = f"{wallet}_{type}.csv"
    with open(filename, "w", encoding="UTF-8") as f:
        writer = csv.DictWriter(f, fieldnames=header)
        writer.writeheader()
        writer.writerows(all_data)
    log(f"Saved csv file to {filename}", "info")
def write_csv ( all_data , wallet , type ) : log ( "Writing to csv file" , "info" ) header = [ "from" , "to" , "amount" ] filename = f"{wallet}_{type}.csv" with open ( filename , "w" , encoding = "UTF-8" ) as f : writer = csv . DictWriter ( f , fieldnames = header ) writer . writeheader ( ) writer . writerows ( all_data ) log ( f"Saved csv file to {filename}" , "info" )
Writes to a csv file the data received with a filename of the walletaddress and the scantype (algoexplorer or algoscan)
`Required`
Writes to a csv file the data received with a filename of the walletaddress and the scantype ( algoexplorer or algoscan ) ` Required `
"""
    Writes to a csv file the data received with a filename of the walletaddress and the scantype (algoexplorer or algoscan)

    `Required`
    :param list all_data:   A list of data containing `from`,`to` and `amount`
    :param str wallet:      The wallet address
    :param str type:        Scan type (algoexplorer/algoscan)
    """
all_data
A list of data containing `from`,`to` and `amount`
A list of data containing ` from ` ` to ` and ` amount `
wallet
The wallet address
The wallet address
type
Scan type (algoexplorer/algoscan)
Scan type ( algoexplorer / algoscan )