Activate the plugin and visit the BSC token stats admin page.
- Enter your bscscan API key
- Provide the token contract address
- Provide the token burn address
- Default: "0x000000000000000000000000000000000000dead"
This plugin requires ACF PRO in order to work.
ACF is used to bootstrap the admin page and meta field data.
The plugin will automatically update the following stats every hour.
- 💰 Total supply
- 🔥 Total burned
- 🪙 Circulating supply
Return values in your template using ACF get_field() syntax.
get_field('total_supply', 'options')
get_field('total_burned', 'options')
get_field('circ_supply', 'options')
To manually fetch token stats, disable & enable the plugin providing API key, contract & burn address have been provided.
in bsc-api-fetch.php on line 44 you can modify the scheduled event. See wordpress docs on wp_schedule_event.
// Setup schedule
if (! wp_next_scheduled ( 'bsc_fetch_event' )) {
wp_schedule_event(time(), 'hourly', 'bsc_fetch_event');
}
Jack Callow - @jvckcallow - Linkedin - sjmc11@gmail.com
Project Link: https://github.com/sjmc11/firebase-auth-go-kit