碳链价值APP讯,DeFi协议Compound已发布治理应用程序接口(API),不过本次发布的是Alpha版本,意味着该API尚未正式发布,随时可能更改。碳链价值了解到,治理服务应用程序接口包含三个端点,用于检索有关COMP帐户、治理提案和提案投票收据的信息,用户可以通过下面三个API提取有关Compound治理系统数据:
// Retreives a list of governance proposals
fetch("API_BASE_URL/api/v2/governance/proposals");
// Retreives a list of governance proposal vote receipts
fetch("API_BASE_URL/api/v2/governance/proposal_vote_receipts");
// Retreives a list of COMP accounts
fetch("API_BASE_URL/api/v2/governance/accounts");