{
 "x402Version": 2,
 "kind": "resource-server",
 "name": "AOTrust",
 "description": "Cryptographic proof that a digital artifact existed at a specific time. Ed25519-signed PDR (239 bytes), leaves in a cumulative Merkle log anchored HOURLY to NEAR Mainnet (RFC 9162 inclusion/consistency proofs). $0.01 USDC per notarization on Base via x402.",
 "resources": [
  {
   "resource": "https://api.aotrust.link/notarize",
   "url": "https://api.aotrust.link/notarize",
   "attestation": {
    "type": "none"
   },
   "type": "http",
   "method": "POST",
   "x402Version": 2,
   "serviceName": "AOTrust Notary",
   "tags": [
    "notarization",
    "ai-agents",
    "provenance"
   ],
   "accepts": [
    {
     "scheme": "exact",
     "network": "eip155:8453",
     "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
     "amount": "10000",
     "payTo": "0x97E9af6B4d8a49f509DA99afaB954429Ab8Cc800",
     "maxTimeoutSeconds": 300,
     "extra": {
      "name": "USD Coin",
      "version": "2"
     }
    }
   ],
   "extensions": {
    "bazaar": {
     "info": {
      "input": {
       "type": "http",
       "method": "POST",
       "bodyType": "json",
       "body": {
        "work_hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "work_size": 0,
        "metadata": "my-agent"
       }
      },
      "output": {
       "type": "json",
       "example": {
        "status": "notarized",
        "job_id": "<uuid>",
        "pdr_b64": "<base64, 239 bytes>",
        "tx_hash": "<64 hex>",
        "payment_hash": "<64 hex>"
       }
      }
     },
     "schema": {
      "type": "object",
      "properties": {
       "input": {
        "type": "object",
        "properties": {
         "type": {
          "type": "string",
          "const": "http"
         },
         "method": {
          "type": "string",
          "enum": [
           "POST"
          ]
         },
         "bodyType": {
          "type": "string",
          "enum": [
           "json"
          ]
         },
         "body": {
          "type": "object",
          "properties": {
           "work_hash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
           },
           "work_size": {
            "type": "integer",
            "minimum": 0,
            "description": "Accepted for compatibility; not used by /notarize."
           },
           "metadata": {
            "type": "string",
            "maxLength": 512,
            "description": "Accepted for compatibility; not used by /notarize."
           }
          },
          "required": [
           "work_hash"
          ]
         }
        },
        "required": [
         "type",
         "method",
         "bodyType",
         "body"
        ]
       },
       "output": {
        "type": "object",
        "properties": {
         "type": {
          "type": "string"
         },
         "example": {
          "type": "object"
         }
        },
        "required": [
         "type"
        ]
       }
      },
      "required": [
       "input"
      ]
     }
    }
   }
  },
  {
   "resource": "https://shield.aotrust.link/shield",
   "url": "https://shield.aotrust.link/shield",
   "attestation": {
    "type": "none"
   },
   "type": "http",
   "method": "POST",
   "x402Version": 2,
   "serviceName": "FreelanceShield",
   "tags": [
    "shield",
    "freelance",
    "escrow"
   ],
   "accepts": [
    {
     "scheme": "exact",
     "network": "eip155:8453",
     "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
     "amount": "100000",
     "payTo": "0x97E9af6B4d8a49f509DA99afaB954429Ab8Cc800",
     "maxTimeoutSeconds": 300,
     "extra": {
      "name": "USD Coin",
      "version": "2"
     }
    }
   ],
   "extensions": {
    "bazaar": {
     "info": {
      "input": {
       "type": "http",
       "method": "POST",
       "bodyType": "json",
       "body": {
        "work_hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "work_size": 0,
        "email": "client@example.com"
       }
      },
      "output": {
       "type": "json",
       "example": {
        "shield_id": "ab12cd34",
        "pdr_b64": "base64-pdr",
        "pdf_url": "https://shield.aotrust.link/api/pdf"
       }
      }
     },
     "schema": {
      "type": "object",
      "properties": {
       "input": {
        "type": "object",
        "properties": {
         "type": {
          "type": "string",
          "const": "http"
         },
         "method": {
          "type": "string",
          "enum": [
           "POST"
          ]
         },
         "bodyType": {
          "type": "string",
          "enum": [
           "json"
          ]
         },
         "body": {
          "type": "object",
          "properties": {
           "work_hash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
           },
           "work_size": {
            "type": "integer",
            "minimum": 0
           },
           "email": {
            "type": "string"
           }
          },
          "required": [
           "work_hash"
          ]
         }
        },
        "required": [
         "type",
         "method",
         "bodyType",
         "body"
        ]
       },
       "output": {
        "type": "object",
        "properties": {
         "type": {
          "type": "string"
         },
         "example": {
          "type": "object"
         }
        },
        "required": [
         "type"
        ]
       }
      },
      "required": [
       "input"
      ]
     }
    }
   }
  },
  {
   "resource": "https://api.aotrust.link/v1/attestation/bundle",
   "url": "https://api.aotrust.link/v1/attestation/bundle",
   "attestation": {
    "type": "none"
   },
   "type": "http",
   "method": "POST",
   "x402Version": 2,
   "serviceName": "AOTrust Evidence Bundle",
   "tags": [
    "evidence",
    "notarization",
    "anchor",
    "merkle-proof"
   ],
   "accepts": [
    {
     "scheme": "exact",
     "network": "eip155:8453",
     "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
     "amount": "20000",
     "payTo": "0x97E9af6B4d8a49f509DA99afaB954429Ab8Cc800",
     "maxTimeoutSeconds": 300,
     "extra": {
      "name": "USD Coin",
      "version": "2"
     }
    }
   ],
   "extensions": {
    "bazaar": {
     "info": {
      "input": {
       "type": "http",
       "method": "POST",
       "bodyType": "json",
       "body": {
        "work_hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
       }
      },
      "output": {
       "type": "json",
       "example": {
        "work_hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "seq": 186,
        "shield_id": "c693ca08",
        "pdr_b64": "base64-pdr",
        "pdr_version": "0x04",
        "anchor": {
         "mode": "cumulative",
         "anchor_seq": 63,
         "size": 189,
         "root": "0000000000000000000000000000000000000000000000000000000000000000",
         "near_tx": "near-tx",
         "index": 17,
         "path": [
          "hex"
         ]
        },
        "verify": {
         "jwks": "https://api.aotrust.link/.well-known/jwks.json",
         "server_url": "https://api.aotrust.link/v1/pdr/verify/<base64url PDR>",
         "offline": "leaf=SHA256(0x00||work_hash); RFC 9162 §2.1.3; root on NEAR"
        }
       }
      }
     },
     "schema": {
      "type": "object",
      "properties": {
       "input": {
        "type": "object",
        "properties": {
         "type": {
          "type": "string",
          "const": "http"
         },
         "method": {
          "type": "string",
          "enum": [
           "POST"
          ]
         },
         "bodyType": {
          "type": "string",
          "enum": [
           "json"
          ]
         },
         "body": {
          "type": "object",
          "properties": {
           "work_hash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
           }
          },
          "required": [
           "work_hash"
          ]
         }
        },
        "required": [
         "type",
         "method",
         "bodyType",
         "body"
        ]
       },
       "output": {
        "type": "object",
        "properties": {
         "type": {
          "type": "string"
         },
         "example": {
          "type": "object"
         }
        },
        "required": [
         "type"
        ]
       }
      },
      "required": [
       "input"
      ]
     }
    }
   }
  },
  {
   "resource": "https://api.aotrust.link/v1/attest/time",
   "url": "https://api.aotrust.link/v1/attest/time",
   "attestation": {
    "type": "none"
   },
   "type": "http",
   "method": "POST",
   "x402Version": 2,
   "serviceName": "AOTrust Time Attestation",
   "tags": [
    "timestamp",
    "attestation",
    "notarization",
    "merkle-proof"
   ],
   "accepts": [
    {
     "scheme": "exact",
     "network": "eip155:8453",
     "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
     "amount": "2000",
     "payTo": "0x97E9af6B4d8a49f509DA99afaB954429Ab8Cc800",
     "maxTimeoutSeconds": 300,
     "extra": {
      "name": "USD Coin",
      "version": "2"
     }
    }
   ],
   "extensions": {
    "bazaar": {
     "info": {
      "input": {
       "type": "http",
       "method": "POST",
       "bodyType": "json",
       "body": {
        "payload_hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
       }
      },
      "output": {
       "type": "json",
       "example": {
        "id": 1,
        "ts": 1792707000123456789,
        "payload_hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "kid": "thumbprint",
        "sig_b64": "base64",
        "leaf": "hex",
        "log_index": 191
       }
      }
     },
     "schema": {
      "type": "object",
      "properties": {
       "input": {
        "type": "object",
        "properties": {
         "type": {
          "type": "string",
          "const": "http"
         },
         "method": {
          "type": "string",
          "enum": [
           "POST"
          ]
         },
         "bodyType": {
          "type": "string",
          "enum": [
           "json"
          ]
         },
         "body": {
          "type": "object",
          "properties": {
           "payload_hash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
           }
          },
          "required": [
           "payload_hash"
          ]
         }
        },
        "required": [
         "type",
         "method",
         "bodyType",
         "body"
        ]
       },
       "output": {
        "type": "object",
        "properties": {
         "type": {
          "type": "string"
         },
         "example": {
          "type": "object"
         }
        },
        "required": [
         "type"
        ]
       }
      },
      "required": [
       "input"
      ]
     }
    }
   }
  }
 ],
 "endpoints": {
  "mcp": "https://api.aotrust.link/mcp",
  "notarize": "https://api.aotrust.link/notarize",
  "shield": "https://shield.aotrust.link/shield",
  "verify": "https://verify.aotrust.link",
  "menu": "https://api.aotrust.link/menu",
  "tools": "https://api.aotrust.link/tools",
  "bundle": "https://api.aotrust.link/v1/attestation/bundle",
  "attest_time": "https://api.aotrust.link/v1/attest/time"
 },
 "pricing": {
  "notarization": {
   "amount": "0.01",
   "currency": "USDC",
   "network": "eip155:8453",
   "networks": [
    "eip155:8453",
    "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"
   ]
  },
  "shield": {
   "amount": "0.10",
   "currency": "USDC",
   "network": "eip155:8453"
  },
  "bundle": {
   "amount": "0.02",
   "currency": "USDC",
   "network": "eip155:8453"
  },
  "time_attestation": {
   "amount": "0.002",
   "currency": "USDC",
   "network": "eip155:8453"
  }
 },
 "capabilities": {
  "protocols": [
   "x402",
   "MCP/A2A",
   "AOTrust signed message (NEP-413-style prefix)"
  ],
  "pdr_version": "2.4",
  "payment_anchor_types": [
   "NEAR_DIRECT",
   "X402_BASE",
   "X402_SOLANA",
   "NEAR_ESCROW_LOCK",
   "NEAR_ESCROW_SETTLED"
  ],
  "pdr_versions": [
   "2.3 (0x03)",
   "2.4 bilateral (0x04)"
  ]
 },
 "docs": "https://docs.aotrust.link",
 "contact": "mailto:legal@aotrust.link",
 "verification": {
  "jwks_uri": "https://api.aotrust.link/.well-known/jwks.json",
  "did": "did:web:api.aotrust.link",
  "did_document": "https://api.aotrust.link/.well-known/did.json",
  "pdr_signature": "Ed25519 over AOTrust signed message (NEP-413-style prefix) buffer (u32 tag 2147484061 || u32 len || payload)",
  "pubkey_endpoint": "https://api.aotrust.link/v1/notary/pubkey",
  "offline_verify": "https://docs.aotrust.link/bilateral.html",
  "server_side_verify": "https://api.aotrust.link/v1/pdr/verify/<base64url PDR>"
 },
 "updated": "2026-10-29T09:15:00Z",
 "facilitator_url": "https://api.aotrust.link",
 "extensions": {
  "bazaar": true,
  "signed_receipts": true
 }
}
