How to integrate OpenAPI into your site in 5 minutes?

DeBank Cloud
2 min readJun 2, 2021

DeBank OpenAPI is a suite of API built for DeFi developers. You can easily integrate it into your site for free in a permissionless way.

  • Real net worth of a specific on-chain address

DeFi users usually have multiple addresses for different purposes. (e.g., keep major assets in one commonly used account for trusted sites and the rest in other testing accounts)

Every time a user connects to a DeFi site, it’s never too cautious to double check on the exact address he’s using to prevent mistakenly bringing unknown risk exposure to his major account where his testing accounts should be used.

Showing the exact net worth might be the best way to help your user distinguish his connected addresses.

You can invoke below API to get this “real net worth” for a specific address (e.g. 0x5853ed4f26a3fcea565b3fbc698bb19cdf6deb85) in USD value on all chains /a specific chain: https://openapi.debank.com/v1/user/total_balance?id=0x5853ed4f26a3fcea565b3fbc698bb19cdf6deb85

Net worth on various chains in USD value

For DeFi protocol teams, it’s recommended to display the “‘net worth” for a connected address as below to improve user experience.

How it looks like on debank.com

You can also add a link next to the “net worth” field to link it back to the corresponding profile page on DeBank. (https://debank.com/profile/0x5853ed4f26a3fcea565b3fbc698bb19cdf6deb85)

https://openapi.debank.com/docs

Check our above doc section for more useful interfaces including:

  • Most complete token info including its price
  • List of user token balance
  • Realtime GVL and historical GVL data for a DeFi protocol

--

--