Let`s assume that I deployed eosio.token to my own account, created some tokens there. I would like to know if it is possible for tokens on that account to be displayed in Account info on EOS Mainnet Monitor.
2 Answers
This should happen automatically as long as you follow the format of the eosio.token contract. The two most important things are that you have the tables from the eosio.token contract:
accounts
stats
Which must have at least the following fields:
accounts
{
"name": "account",
"base": "",
"fields": [
{
"name": "balance",
"type": "asset"
}
]
}
stats
{
"name": "currency_stats",
"base": "",
"fields": [
{
"name": "supply",
"type": "asset"
},
{
"name": "max_supply",
"type": "asset"
},
{
"name": "issuer",
"type": "name"
}
]
}
Open your command line and paste this: curl -X GET 'https://api.eospark.com/api?module=account&action=get_token_list&apikey=a9564ebc3289b7a14551baf8ad5ec60a&account= mainnet account name' Just add your account name at the last, instead of mainnet account name.