Onyx Protocol
Search…
⌃K

GovernanceService

Note: This service is experimental (alpha) and subject to change.
The Governance Service includes three endpoints to retrieve information about XCN accounts, governance proposals, and proposal vote receipts. You can use the APIs below to pull data about the Onyx governance system:
// Retreives a list of governance proposals
fetch("https://api.onyx.org/api/governance/proposals");
// Retreives a list of governance proposal vote receipts
fetch("https://api.onyx.org/api/governance/proposal_vote_receipts");
// Retreives a list of XCN accounts
fetch("https://api.onyx.org/api/governance/accounts");