Answer the question
In order to leave comments, you need to log in
Is it possible to display the balance of a smart contract on the site?
Freelance layout designers claim that this is impossible, but I do not believe that open information on etherscan for a specific contract - the balance of a smart contract, cannot be displayed on a third-party site. Is it true?
Answer the question
In order to leave comments, you need to log in
You can take this API: https://github.com/EverexIO/Ethplorer/wiki/Ethplor...
Example:
api.ethplorer.io/getAddressInfo/0x32Be343B94f86012...
{
"address": "0x32be343b94f860124dc4fee278fdcbd38c102d88",
"ETH": {
"balance": 2.0542680760545484
},
"countTxs": 2446019,
"tokens": [
{
"tokenInfo": {
"address": "0x2bdc0d42996017fce214b21607a515da41a9e0c5",
"name": "SkinCoin",
"decimals": "6",
"symbol": "SKIN",
"totalSupply": "388183000000000",
"owner": "0x6f2010d0fbaf8b7dbc13ee7252ff8594a2be3c51",
"lastUpdated": 1566777665,
"issuancesCount": 0,
"holdersCount": 4167,
"image": "https://ethplorer.io/images/skincoin.png",
"description": "First Universal Cryptocurrency based on Ethereum for instant trading CS:GO, Dota 2 skins, and making bets on eSports events\n\nhttps://skincoin.org\nhttps://www.facebook.com/skincoin/\nhttps://twitter.com/skincoin_org",
"ethTransfersCount": 29,
"price": {
"rate": 0.000476030266457,
"diff": -11.51,
"diff7d": -0.26,
"ts": 1566827043,
"marketCapUsd": 41978.00690959633,
"availableSupply": 88183483,
"volume24h": 1571.26022094368,
"diff30d": -33.46333000860204,
"currency": "USD"
}
},
"balance": 186088535060,
"totalIn": 11474050000,
"totalOut": 0
},
{
"tokenInfo": {
"address": "0xa4ec83c8907888d006a37debf755ee39766f38ae",
"name": "Global Currency Unit",
"decimals": "18",
"symbol": "GCU",
"totalSupply": "88888888000000000000000000000",
"owner": "0x5d01bad722f5b6856c34851f16a22f7d967c39c5",
"lastUpdated": 1566825626,
"issuancesCount": 0,
"holdersCount": 27547,
"price": false
},
"balance": 2.5e+22,
"totalIn": 0,
"totalOut": 0
}
]
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question