kardiachain / go-kardia

Golang implementation of KardiaChain Decentralize Network
https://kardiachain.io
GNU Lesser General Public License v3.0
33 stars 18 forks source link

Check if an address is KRC20 token #140

Open ngdlong91 opened 3 years ago

ngdlong91 commented 3 years ago

As explorer need to detect if a new created contract is krc20/krc721 token.

Current explorer using a dummy way to detect as call KRC20 interface such as name, symbol, decimals, totalSuppy and ownerBalance, and assume the contract is KRC20.

Could you please provide a better and accurate way to check if an address is KRC20 token?