Consume PriceGuard evidence
External agents, treasuries, marketplaces, and business systems can read canonical contract state and decide their own actions. PriceGuard itself remains non-custodial.
Read an attestation
const raw = await client.readContract({
address: '0x7B939483E69ada6d2ca37acd3684182Ed141F35F',
functionName: 'get_attestation',
args: ['att_<48 lowercase hex>'],
})
const result = JSON.parse(String(raw))
if (result.found && result.outcome === 'SATISFIED') {
// Apply your own policy. Do not treat this as a payment receipt.
}Canonical evidence fields
Verify the attestation ID, covenant ID, evaluation sequence, outcome, symbol, condition, thresholds, evaluated price, source identities, confidence, spread, policy version, timestamp, and evaluator. Reject unknown schema versions or extra/missing fields.
Index retention
Exact attestation records grow monotonically and remain addressable by ID. The global discovery index retains the newest 256 IDs, while each covenant’s history index retains its newest 32 evaluation IDs. Store IDs you rely on rather than assuming they will remain discoverable through retained indexes.
Integration boundary
An attestation is evidence, not legal advice, a custody guarantee, a transfer, or an automatic external action. Your integration must define authorization, replay protection, error handling, policy-version acceptance, and consequences independently.