A change to the XRP Ledger's rules is called an amendment. It turns on only after the validators vote for it, and any server shows how that vote stands. Below are the rule, three calls that read the live status, and what happens to servers that fall behind. You need curl and jq.
The rule
An amendment needs 80% of the validators on the trusted list, and it has to keep that support for two weeks. The XRPL docs: "If support drops below 80%, the amendment is temporarily rejected, and the two week period restarts." Both numbers are constants in the server code: 80% (kAmendmentMajorityCalcThreshold) and two weeks (kDefaultAmendmentMajorityTime).
When the two weeks pass, the ledger records an EnableAmendment and, in the docs' words, "the change applies permanently to all subsequent ledger versions."
1. List every open vote
feature returns every amendment the server knows, with the vote count for those not yet enabled.
Request
curl -s https://api.xrpl.to/v1/rpc \
Discussion
Jump in and comment!
Get the ball rolling with your comment!