ICX delegation script
If you're an ICON validator, learn how to use this script to track the votes you receive through Omm.
Some validators offer voting incentives to ICX stakers. bOMM has more voting power than staked ICX – and it's cheaper – so validators can use the ICX delegation script to offer incentives to bOMM holders.
First, make sure you have Python 3 and PIP installed on your device. Then:
- 1.Install the required libraries:
pip3 install -r requirements.txt
2. Run the script to fetch a list of wallet addresses and their voting power for a specific validator (also known as a P-Rep):
python3 prep-icx-delegations.py -prep PREP_ADDRESS
python3 prep-icx-delegations.py -prep hx0000000000000000000000000000000000000000
3. Open the
timestamp_prepaddress_delegations.jsonfile the script created, then divide the number beside each wallet address by 1,000,000,000,000,000,000 (10^18) to get the ICX amount.
Community trackers don't pick up the votes cast via Omm, because the votes are routed through the Balanced staking contract before they're assigned to a validator.
getAddressDelegations, then query Omm's lending pool contract address:
- 3.Locate your validator address, then copy the value beside it.