Create a Block Explorer in your website for any ERC20 token for free
Are you a fan of Binance Coin, ChainLink or Gemini Dollar?
Do you have a website related to any ERC-20 Ethereum token project?
The good news is that if you have a WordPress site you can easily create a bock explorer for any ERC20 token you like.
Requirements
- A running WordPress site.
- WPSmartContracts plugin set.
- Metamask extension installed (no need to have any funds on it, is free).
- Etherscan API key.
First, make sure that your WP Smart Contracts plugin (WPSC) is properly configured. It is recommended that you set your own Etherscan API key and set a cache for your API queries, a few seconds, up to 1 minute will be ok in this case.
Then, find the contract address of the token you want to use. For instance, let’s go to coinmarketcap.com and look for the Binance Coin.
Go to the official block explorer, and copy the contract address.
Return to your website and create a “New Coin” in your Coins option menu. Write down the name of the coin “Binance Coin” in the example:
Now check any ERC20 standard token flavor, in this step, you will provide the WPSC plugin with an ABI interface for the contract, you are not really creating a contract, so any standard flavor is ok, you can choose “Vanilla”
Now fill the Contract definition parameters, the contract is already created to these parameters will be just a reference to show in your own Block Explorer.
Now click on the “Load Button”:
Paste the contract address and click “Load”:
After a few minutes click on the permalink of your new coin and you will see your brand new Block Explorer:
From there, any user connected to your website with Metamask will be able able to transfer funds, check balance, approve funds and query allowance in the token of your choice.
Have fun!
Download the WPSmartContracts plugin from the official source in WordPress:
Or on the official website: