I am developing an ETH game with a referral structure. Each account that exists in the game has a "Referral Count" associated with it that updates as people sign up using their referral link. I am able to call and view this number thru the contract for each individual address.
Here is where I got stuck however... How can I display the "ref count" and "address" of the current highest referrer in the website UI? Can I do this completely through JS?
This is my first somewhat complex dapp so any pointers in the right direction would be much appreciated!