Core API Endpoints

Core API Endpoints

Fetch Governance Proposals

Retrieve a list of active and past governance proposals.

GET /proposals
Response:
[
  {
    "proposalId": 1,
    "title": "Update Risk Parameters",
    "state": "Active",
    "createdAt": "2024-02-05T12:00:00Z",
    "votesFor": 150000000,
    "votesAgainst": 50000000
  }
]

Get Proposal Details

Retrieve details of a specific proposal by proposalId.

Cast a Vote

Submit a vote for a proposal.

Fetch Voter Receipts

Retrieve voting receipt details for a given proposalId and voter address.

Get Proposal State

Retrieve the current state of a proposal.

Security Considerations

  • Rate limits apply to prevent abuse of the API.

  • Authentication may be required for certain endpoints, such as submitting votes.

  • All API interactions should be performed using secure HTTPS connections.

Last updated