openapi: 3.2.0 info: title: x402 Anchor API description: 18 pay-per-call x402 services for AI agents — on-chain anchoring & attestation, wallet/address security screening, Web3 data (tx & calldata decode, ENS, token prices), x402 spend accounting, content analysis, and verifiable randomness. No API keys or accounts; settle per request in USDC on Base or Solana. $0.001–$1.77 per call. version: 0.3.0 x-guidance: Pay-per-call x402 services for AI agents — no API keys or accounts. Each paid route returns HTTP 402 with x402 payment requirements; pay in USDC on Base or Solana (select routes also settle JPYC on Polygon) and retry with the payment header. Prices are $0.001–$1.77 per call. POST routes take a JSON body per each operation's requestBody schema. contact: email: hypeprinter007@gmail.com x-logo: url: https://api.anchor-x402.com/icon.png altText: anchor-x402 tags: - name: Anchor paths: /v1/anchor: post: summary: Create a dual-chain proof anchoring a 32-byte hash operationId: anchor_v1_anchor_post requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AnchorRequest' responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/AnchorResponse' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' '402': description: Payment Required x-payment-info: price: mode: fixed currency: USD amount: '0.005000' protocols: - x402: {} tags: - Anchor components: schemas: ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array title: Location msg: type: string title: Message type: type: string title: Error Type input: title: Input ctx: type: object title: Context type: object required: - loc - msg - type title: ValidationError AnchorResponse: properties: merkle_root: type: string title: Merkle Root description: The 64-char hex hash that was anchored. base: $ref: '#/components/schemas/ChainAnchor' solana: anyOf: - $ref: '#/components/schemas/ChainAnchor' - type: 'null' description: None if the Solana side failed; Base anchor still proves the hash existed. anchored_at: type: integer title: Anchored At description: Unix epoch seconds when the anchor txs were broadcast. note: anyOf: - type: string - type: 'null' title: Note type: object required: - merkle_root - base - anchored_at title: AnchorResponse ChainAnchor: properties: tx: type: string title: Tx explorer_url: type: string title: Explorer Url type: object required: - tx - explorer_url title: ChainAnchor AnchorRequest: properties: hash: anyOf: - type: string - type: 'null' title: Hash description: Pre-computed 32-byte hex hash (64 chars, no 0x prefix). Mutually exclusive with `data`. data: anyOf: - {} - type: 'null' title: Data description: Arbitrary JSON to be canonicalized + SHA-256'd by the server. Mutually exclusive with `hash`. note: anyOf: - type: string maxLength: 200 - type: 'null' title: Note description: Optional 200-char note included in the response (not on-chain). type: object title: AnchorRequest HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError