最后更新于1年前
获取一个钱包地址指定的ERC20、TRC20代币余额。
address [必须] 钱包地址,可以是一个0x开头的ERC20地址,或者以T开头的TRC20地址。
address
contractAddress [必须] 代币合约地址,可以是ERC20或TRC20的合约地址。
contractAddress
请将 YOUR-API-KEY 替换您的 API-KEY。
YOUR-API-KEY
API-KEY
curl -X GET https://eth-mainnet.solarpath.io/v1/YOUR-API-KEY/token/balance?address=0x645558371fF5d0b7F08069850864318c61f30066&contractAddress=0xdAC17F958D2ee523a2206206994597C13D831ec7
{ "code": 200, "msg": "Successful", "status": "success", "result": { "balance": "210.569382", "walletAddress": "0x645558371fF5d0b7F08069850864318c61f30066", "contractAddress": "0xdAC17F958D2ee523a2206206994597C13D831ec7" } }