New answers tagged

0

If the account does not have enough balance, the transaction will fail. Prior to that, there will be no prevention.


3

In Ethereum, to execute operation in EVM costs you gas. One can change any state in the blockchain which is done through making transaction. In this case, you will be charged ether. To make transaction, we have some apis like SendTransaction inside internal/ethapi/api.go When you do send transaction, you can set gas limit and gas price. Your balance is ...


1

You could store data in a heap which would approximately double your storage requirements (or less if you're willing to do some extra computation for indirection) for balances but gives you O(log n) changes and you can get the top 5 holders in O(log n). You might also consider a sorted list for the entirety of the list (not just the top 5); insertions/...


2

Where did you get the 0x382117315856a533549ea621542ccce13e54ae82 address from? If you click BitBall token in your token list, you'll notice that it leads to https://etherscan.io/token/0x06e0feb0d74106c7ada8497754074d222ec6bcdf?a=0xb8fd65fc6919c5b97453eaba6b895144597985b2 So the real token address is 0x06e0feb0d74106c7ada8497754074d222ec6bcdf


Top 50 recent answers are included