Unlocking the Mystery: The Effortless Method to Validate Token Addresses

Trong Dinh Thai Hoang
1 min readJul 28, 2023

--

Background

  • With the advancement of web3 technology, numerous projects now encounter a multitude of security-related risks. Concurrently, the blockchain and crypto markets remain vulnerable to various fraudulent schemes. As a response to this situation, I have developed a token-checker tool that aims to validate token addresses using reliable and trustworthy sources.

Objectives

  • This article explains how to use the token-checker tool to validate the token address. It consists three parts:
  • Setup the tool
  • Run `sync` command
  • Run `check` command

Getting Started

1. Setup:

  • Clone the repos
git clone https://github.com/trongdth/token-checker
cd token-checker
  • Copy config.yml
cp config/conf.yaml.default config/conf.yaml
  • Open config/conf.yaml and change mongo_db_url, mongo_db_name with your configuration.
nano config/conf.yaml
  • Update submodule
git submodule update --remote --merge

2. Sync data:

  • Run application with sync command
go run main.go sync
  • Notes:
  • Update submodule whenever you want to sync a newest data from trust wallet source.

3. Verify token address:

  • Run application with check command
go run main.go check --address=0x84d7aeef42d38a5ffc3ccef853e1b82e4958659d16a7de736a29c55fbbeb0114::staked_aptos_coin::StakedAptosCoin
  • Notes:
  • To see data from `check` command, you need to run `sync` command before.

Conclusion

  • Some improvements are still needed, but I hope you guys love it. If you need any help or have any questions, don’t hesitate to contact me at trongdth@gmail.com. Pull requests are welcome too.

--

--

Trong Dinh Thai Hoang

I’m a peaceful person who wants to make friend with people around the world.