Tokens

如何獲取 ERC20 代幣持有者總數?

  • March 3, 2022

是否有任何簡單的 API 或數據饋送可以讓我獲得 ERC20 代幣的代幣持有者總數?

您可以從http://etherscan.io獲取此資訊。

這是 GET tokens?address=0x… 端點的範例:

{“地址”:“0x …”,“令牌”:

$$ { “address”: “0xd26114cd6ee289accf82350c8d8487fedb8a0c07”, “name”: “OMGToken”, “decimals”: 18, “symbol”: “OMG”, “totalSupply”: “140245398245132780789239631”, “owner”: “0x000000000000000000000000000000000000dead”, “balance”: 3412333140000000000, } $$ } 範例:https ://api.ethplorer.io/getAddressInfo/0x24cc2359bc42b2c855678c7fae8efbb3a7d3660c?apiKey=yourkey

引用自:https://ethereum.stackexchange.com/questions/46456