← Back to Documentation

DAP Protocol

Disclosure Attestation Protocol - Cryptographic proof of data delivery

What DAP Is

✓ Cryptographic hash of delivered data

✓ Timestamp anchoring (block-level precision)

✓ Proof that specific data was delivered at specific time

✓ Immutable on-chain record

What DAP Is NOT

✗ NOT a compliance certification

✗ NOT a regulatory approval

✗ NOT a guarantee of data accuracy

✗ NOT legal advice or validation

API Endpoints

EndpointMethodDescription
/api/nft/gasGETCurrent gas price + mint cost
/api/nft/queueGETPending attestation queue
/api/nft/dap/attestPOSTCreate attestation
/api/nft/worker/statusGETBackground worker status

Example: Create Attestation

POST /api/nft/dap/attest
Content-Type: application/json

{
  "network": "ethereum",
  "period": "2026-Q1",
  "carbon_kg": 2847,
  "energy_mwh": 5.2
}

Response:
{
  "action": "pending",  // or "minted" if gas low
  "gas": 580.3,
  "id": 2
}

Gas Optimization

Attestations are queued when Polygon gas exceeds 50 Gwei. A background worker checks every 5 minutes and auto-mints when gas is optimal.

DAP attestations provide proof of data delivery only. They do not constitute compliance certification or regulatory approval. Users are responsible for their own compliance decisions.