Enhanced transaction pre-execution
Pre-execute a transaction to find out what kind of asset changes it will cause and whether it will be executed successfully
Units cost:
{
"balance_change": {
"success": true,
"error": null,
"send_token_list": [
{
"id": "op",
"chain": "op",
"name": "ETH",
"symbol": "ETH",
"display_symbol": null,
"optimized_symbol": "ETH",
"decimals": 18,
"logo_url": "https://static.debank.com/image/op_token/logo_url/op/d61441782d4a08a7479d54aea211679e.png",
"protocol_id": "",
"price": 1568.24,
"is_verified": true,
"is_core": true,
"is_wallet": true,
"time_at": null,
"amount": 0.001,
"usd_value": 1.56824
}
],
"receive_token_list": [
{
"id": "0x94b008aa00579c1307b0ef2c499ad98a8ce58e58",
"chain": "op",
"name": "Tether USD",
"symbol": "USDT",
"display_symbol": null,
"optimized_symbol": "USDT",
"decimals": 6,
"logo_url": "https://static.debank.com/image/op_token/logo_url/0x94b008aa00579c1307b0ef2c499ad98a8ce58e58/37c9c2ddceb0c83f0f4c07ea4fa53e9d.png",
"protocol_id": "",
"price": 1,
"is_verified": true,
"is_core": true,
"is_wallet": true,
"time_at": null,
"amount": 1.552832,
"usd_value": 1.552832
}
],
"send_nft_list": [],
"receive_nft_list": [],
"usd_value_change": -0.015408000000000088
},
"gas": {
"success": true,
"error": null,
"gas_used": 354856
},
"is_multisig": false,
"multisig": null,
"pre_exec": {
"success": true,
"error": null
}
}
Get a user's total balance
Get complete net worth of any web3 user on all supported chains, including tokens and protocols
Units cost:
{
"total_usd_value": 27654.142997146177,
"chain_list": [
{
"id": "eth",
"community_id": 1,
"name": "Ethereum",
"native_token_id": "eth",
"logo_url": "https://static.debank.com/image/chain/logo_url/eth/42ba589cd077e7bdd97db6480b0ff61d.png",
"wrapped_token_id": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"usd_value": 11937.702345945296
},
{
"id": "bsc",
"community_id": 56,
"name": "BSC",
"native_token_id": "bsc",
"logo_url": "https://static.debank.com/image/chain/logo_url/bsc/7c87af7b52853145f6aa790d893763f1.png",
"wrapped_token_id": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
"usd_value": 2279.5321187397594
},
{
"id": "xdai",
"community_id": 100,
"name": "xDai",
"native_token_id": "xdai",
"logo_url": "https://static.debank.com/image/chain/logo_url/xdai/8b5320523b30bd57a388d1bcc775acd5.png",
"wrapped_token_id": "0xe91d153e0b41518a2ce8dd3d7944fa863463a97d",
"usd_value": 305.39078328786195
},
{
"id": "matic",
"community_id": 137,
"name": "Polygon",
"native_token_id": "matic",
"logo_url": "https://static.debank.com/image/chain/logo_url/matic/d3d807aff1a13e9ba51a14ff153d6807.png",
"wrapped_token_id": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
"usd_value": 1241.1293776554253
},
{
"id": "ftm",
"community_id": 250,
"name": "Fantom",
"native_token_id": "ftm",
"logo_url": "https://static.debank.com/image/chain/logo_url/ftm/700fca32e0ee6811686d72b99cc67713.png",
"wrapped_token_id": "0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83",
"usd_value": 388.4508412244692
},
{
"id": "okt",
"community_id": 66,
"name": "OEC",
"native_token_id": "okt",
"logo_url": "https://static.debank.com/image/chain/logo_url/okt/1228cd92320b3d33769bd08eecfb5391.png",
"wrapped_token_id": "0x8f8526dbfd6e38e3d8307702ca8469bae6c56c15",
"usd_value": 1051.8493580839101
},
{
"id": "heco",
"community_id": 128,
"name": "HECO",
"native_token_id": "heco",
"logo_url": "https://static.debank.com/image/chain/logo_url/heco/db5152613c669e0cc8624d466d6c94ea.png",
"wrapped_token_id": "0x5545153ccfca01fbd7dd11c0b23ba694d9509a6f",
"usd_value": 85.54070337826396
},
{
"id": "avax",
"community_id": 43114,
"name": "Avalanche",
"native_token_id": "avax",
"logo_url": "https://static.debank.com/image/chain/logo_url/avax/4d1649e8a0c7dec9de3491b81807d402.png",
"wrapped_token_id": "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",
"usd_value": 3251.9556287016276
},
{
"id": "op",
"community_id": 10,
"name": "Optimism",
"native_token_id": "op",
"logo_url": "https://static.debank.com/image/chain/logo_url/op/01ae734fe781c9c2ae6a4cc7e9244056.png",
"wrapped_token_id": "0x4200000000000000000000000000000000000006",
"usd_value": 481.6603092427565
},
{
"id": "arb",
"community_id": 42161,
"name": "Arbitrum",
"native_token_id": "arb",
"logo_url": "https://static.debank.com/image/chain/logo_url/arb/f6d1b236259654d531a1459b2bccaf64.png",
"wrapped_token_id": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
"usd_value": 3394.648029286528
},
{
"id": "celo",
"community_id": 42220,
"name": "Celo",
"native_token_id": "0x471ece3750da237f93b8e339c536989b8978a438",
"logo_url": "https://static.debank.com/image/chain/logo_url/celo/41da5c1d3c0945ae822a1f85f02c76cf.png",
"wrapped_token_id": "",
"usd_value": 162.94112590980387
},
{
"id": "movr",
"community_id": 1285,
"name": "Moonriver",
"native_token_id": "movr",
"logo_url": "https://static.debank.com/image/chain/logo_url/movr/4b0de5a711b437f187c0d0f15cc0398b.png",
"wrapped_token_id": "0xe3c7487eb01c74b73b7184d198c7fbf46b34e5af",
"usd_value": 996.3205434639602
},
{
"id": "cro",
"community_id": 25,
"name": "Cronos",
"native_token_id": "cro",
"logo_url": "https://static.debank.com/image/chain/logo_url/cro/44f784a1f4c0ea7d26d00acabfdf0028.png",
"wrapped_token_id": "0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23",
"usd_value": 67.64405055936568
},
{
"id": "boba",
"community_id": 288,
"name": "Boba",
"native_token_id": "boba",
"logo_url": "https://static.debank.com/image/chain/logo_url/boba/e43d79cd8088ceb3ea3e4a240a75728f.png",
"wrapped_token_id": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000",
"usd_value": 2009.3777816671507
}
]
}
Get a user's portfolio details from any protocol
Get the asset details of any web3 user in a specific protocol
Units cost:
{
"id": "bsc_bdollar",
"chain": "bsc",
"name": "bDollar",
"site_url": "https://bdollar.fi",
"logo_url": "https://static.debank.com/image/project/logo_url/bsc_bdollar/1935d77ab964b7e65acfadb63080af24.png",
"has_supported_portfolio": true,
"tvl": 223306.13569669172,
"portfolio_item_list": [
{
"stats": {
"asset_usd_value": 0,
"debt_usd_value": 0,
"net_usd_value": 0
},
"update_at": 1639382999.514337,
"name": "Farming",
"detail_types": [
"common"
],
"detail": {
"supply_token_list": [
{
"id": "0x0d9319565be7f53cefe84ad201be3f40feae2740",
"chain": "bsc",
"name": "bDollar Share",
"symbol": "sBDO",
"display_symbol": null,
"optimized_symbol": "sBDO",
"decimals": 18,
"logo_url": "https://static.debank.com/image/bsc_token/logo_url/0x0d9319565be7f53cefe84ad201be3f40feae2740/2e79004660a090bcad21432037b16e89.png",
"protocol_id": "bsc_bdollar",
"price": 0,
"is_verified": true,
"is_core": null,
"is_wallet": false,
"time_at": 1609152424,
"amount": 0.01
}
],
"reward_token_list": [
{
"id": "0x190b589cf9fb8ddeabbfeae36a813ffb2a702454",
"chain": "bsc",
"name": "bDollar",
"symbol": "BDO",
"display_symbol": null,
"optimized_symbol": "BDO",
"decimals": 18,
"logo_url": "https://static.debank.com/image/bsc_token/logo_url/0x190b589cf9fb8ddeabbfeae36a813ffb2a702454/316bf18e540d27f269b2260931a5fcdc.png",
"protocol_id": "bsc_bdollar",
"price": 0,
"is_verified": true,
"is_core": true,
"is_wallet": true,
"time_at": 1608808146,
"amount": 4.023217983610902
}
]
},
"proxy_detail": {}
},
{
"stats": {
"asset_usd_value": 6.914216886417625,
"debt_usd_value": 0,
"net_usd_value": 6.914216886417625
},
"update_at": 1639382999.565123,
"name": "Farming",
"detail_types": [
"common"
],
"detail": {
"supply_token_list": [
{
"id": "0x190b589cf9fb8ddeabbfeae36a813ffb2a702454",
"chain": "bsc",
"name": "bDollar",
"symbol": "BDO",
"display_symbol": null,
"optimized_symbol": "BDO",
"decimals": 18,
"logo_url": "https://static.debank.com/image/bsc_token/logo_url/0x190b589cf9fb8ddeabbfeae36a813ffb2a702454/316bf18e540d27f269b2260931a5fcdc.png",
"protocol_id": "bsc_bdollar",
"price": 0,
"is_verified": true,
"is_core": true,
"is_wallet": true,
"time_at": 1608808146,
"amount": 438.1464937799965
},
{
"id": "0xe9e7cea3dedca5984780bafc599bd69add087d56",
"chain": "bsc",
"name": "BUSD Token",
"symbol": "BUSD",
"display_symbol": null,
"optimized_symbol": "BUSD",
"decimals": 18,
"logo_url": "https://static.debank.com/image/bsc_token/logo_url/0xe9e7cea3dedca5984780bafc599bd69add087d56/f0825e572298822e7689fe81150a195d.png",
"protocol_id": "",
"price": 1,
"is_verified": true,
"is_core": true,
"is_wallet": true,
"time_at": 1599044503,
"amount": 6.914216886417625
}
],
"reward_token_list": [
{
"id": "0x0d9319565be7f53cefe84ad201be3f40feae2740",
"chain": "bsc",
"name": "bDollar Share",
"symbol": "sBDO",
"display_symbol": null,
"optimized_symbol": "sBDO",
"decimals": 18,
"logo_url": "https://static.debank.com/image/bsc_token/logo_url/0x0d9319565be7f53cefe84ad201be3f40feae2740/2e79004660a090bcad21432037b16e89.png",
"protocol_id": "bsc_bdollar",
"price": 0,
"is_verified": true,
"is_core": null,
"is_wallet": false,
"time_at": 1609152424,
"amount": 0.025524980670816256
}
]
},
"proxy_detail": {}
}
]
}