x402에 AI 에이전트용 기록당 결제 데이터 마켓플레이스 구축 – CDP 바자
출처: Dev.to
문제: 에이전트는 인용 가능한 사실이 필요합니다; 공개 데이터는 수백 개의 API에 흩어져 있습니다.
OSF가 하는 일: 수집 → 출처‑스탬프 → MCP + x402를 통해 제공.
실행 가능한 예시:
curl -s https://api.osf-master-server.com/.well-known/x402
curl -s https://api.osf-master-server.com/x402/bazaar_health
에이전트 ↔ OSF · x402 교환:
# 1 · discover (free) — list records + prices
call get_catalog { source: "SEC_EDGAR" }
→ [ { record_id, data_type, price_usd,
provenance_url }, … ]
# 2 · request a record (MCP get_record or HTTP buy)
GET /x402/buy/standard/497140
← 402 Payment Required
accepts: { scheme: "exact",
network: "eip155:8453",
asset: "USDC", amount: "50000",
payTo: "0x051A0Ba…cAf85" }
# 3 · x402 client pays + retries (automatic)
GET /x402/buy/standard/497140
x-payment: ""
# 4 · settled on-chain → record released
← 200 OK
{
"status": "success",
"data_type": "Federal Funding Opportunity",
"source": "GRANTS_GOV",
"data": { /* the verified record */ },
"provenance": {
"source_url": "https://api.grants.gov/…",
"retrieved_at_utc": "2026-06-09T…Z",
"license": "U.S. Government Public Domain"
}
}
웹사이트는 https://osf-master-server.com 입니다.
소스를 요청합니다.
