Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.27 KB

README.md

File metadata and controls

44 lines (35 loc) · 1.27 KB

TurtleNetwork Node Payout

Automated payout script for TurtleNetwork node operators. This may work for Waves nodes as well but it has not been tested yet

Based partly on iammortimer's script - https://github.com/iammortimer/TN_LPoS_Payout

Configuration and Usage

Requirements

  • Python 3.8 (for pywaves)
  • requests==2.28.2
  • PyWaves==1.0.4

Config File:

  • Rename config_example.json to config.json and modify as needed.
{
    "node": "<insert your node address and port>",
    "address" : "<insert the address if your node>",
    "alias" : "<insert node alias (optional)>",
    "excludeListTN" : "<insert addresses that lease but you want to exclude>",
    "firstBlock" : 2000000,
    "startBlock" : 0,
    "endBlock" : 0,
    "apikey" : "<insert api key for your node>",
    "percentageOfFeesToDistribute" : 90,
    "minAmounttoPay" : 0,
    "blockStorage": "blocks.json",
    "paymentStorage": "payments.json",
    "doPayment" : 0,
    "privatekey" : "<insert private key for your wallet>",
    "telegramKey" : "<insert telegram bot API key>"
}

TODO List:

  • check for existance of start_block.txt and create if needed
  • create config file (or add to existing) to store token information
  • clean up of existing config file
  • clean up code that grabs blocks