Get ethereum wallet info

how would i make any of these commands
(these are for discord)

!ethstats @NAME – brings up their wallet (how much they have, wallet id) (if they have set one), gives an oh noes response if no wallet.
!ethstats (no query) – brings up wallet with id 0x39FAAF52C1068079AE2E852b6E721F20Fc44C675
!ethmine – brings up wallet with id 0x39FAAF52C1068079AE2E852b6E721F20Fc44C675 and if possible, gets miner status from https://eth.nanopool.org/account/0x39FAAF52C1068079AE2E852b6E721F20Fc44C675 and tells the user if the miner rig1 is mining or not

Do you want Nanopool’s internal balance or the actual balance for each address?

How will users set their person address?

1 Like

actually ignore the first one and 2nd one, but yeah i would like nanopools internal balance, and if you can add that together with the wallet balance.

Here’s the eval part of the command:

$(eval const m = $(urlfetch json https://api.nanopool.org/v1/eth/user/0x39FAAF52C1068079AE2E852b6E721F20Fc44C675).data; `Balance: ${m.balance} - Current Hashrate: ${m.hashrate} Mh/s`)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.