Replica Snapshot Agreement
Find shards with an expected-generation quorum of replicas reporting the same snapshot identifier, and flag stale or conflicting replicas.
Custom requests cost 0.04 USDC on Base.
Download example JSON · OpenAPI · Source and usage
Pay with a browser wallet · Open example in checkout
POST a JSON request to /replica-snapshot-agreement/v1/check with an x402 V2 client.
Worked example
Request
{
"required_replicas": 2,
"expected_generation": 7,
"shards": [
{
"id": "a",
"replicas": [
{
"id": "1",
"generation": 7,
"snapshot": "x"
},
{
"id": "2",
"generation": 7,
"snapshot": "x"
},
{
"id": "3",
"generation": 6,
"snapshot": "z"
},
{
"id": "4",
"generation": 7,
"snapshot": "y"
}
]
},
{
"id": "b",
"replicas": []
}
]
}Result
{
"ready": false,
"shards": [
{
"id": "a",
"status": "quorum",
"agreed_snapshot": "x",
"in_sync": [
"1",
"2"
],
"conflicting": [
"4"
],
"other_generation": [
"3"
]
},
{
"id": "b",
"status": "insufficient",
"agreed_snapshot": null,
"in_sync": [],
"conflicting": [],
"other_generation": []
}
]
}Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter