Every EOS wallet or blockchain browser needs to display token balances for user accounts. It’s not a trivial task, as new token names are appearing almost every day, and there’s no out-of-the-box way to know all token contracts and names, until now.

The new API is dedicated to providing actual token balances and authorization permissions for every account on EOS blockchain. It does not provide any history information, and therefore the Light name. As of today, it is open for public testing.

Currently there are servers in two regions: Europe (Germany and Netherlands), and Asia (Singapore). More servers will be added soon. The link “ https://api.light.xeos.me ” is served by geo-director, landing on the nearest server.

A full list of API endpoints is available from IPFS via the following links: 1, 2.

The API is intended for software clients, but adding ?pretty=1 to the URL will format the JSON output for human eye convenience.

Examples:

Get all token balances and public keys for b1 account: https://api.light.xeos.me/api/account/eos/b1?pretty=1

account: https://api.light.xeos.me/api/account/eos/b1?pretty=1 Get all accounts in all known networks for a public key: https://api.light.xeos.me/api/key/EOS5cujNHGMYZZ2tgByyNEUaoPLFhZVmGXbZc9BLJeQkKZFqGYEiQ?pretty=1

GitHub page of the API sources: https://github.com/cc32d9/eos_zmq_light_api

All comments or bug reports are welcome by email: cc32d9@gmail.com, or Telegram: @cc32d9