Skip to content

Proposal: x402 market-signal + decision-attestation endpoints for polymarket-agent #13

Description

@enclave402

Proposal: x402 market-signal + decision-attestation endpoints for polymarket-agent

What this adds to polymarket-agent

Two machine-payable endpoints that let any autonomous trading agent consume market intelligence and publish verifiable decision attestations — no API key, no subscription, pay-per-call with USDC on Base:

Endpoint Method Price Purpose
/api/market/signal GET $0.010 USDC Real-time market signal with sentiment, volatility score, and derived edge summary
/api/agent/attest POST $0.040 USDC EIP-712 signed attestation anchoring agent reasoning to an on-chain-verifiable record

How it works

Payments use the x402 HTTP payment protocol — the agent includes a X-PAYMENT header with a Base USDC micropayment; the gateway verifies on-chain settlement before serving the response. No accounts, no OAuth, no rate-limit tiers.

Public transparency

Integration path

A polymarket-agent integration would:

  1. Call /api/market/signal before placing a trade to get an independent signal overlay
  2. Call /api/agent/attest after a decision to create a verifiable audit trail
  3. Both calls are stateless — no session, no signup, just HTTP + x402 payment header

Happy to open a PR with a reference integration if there is interest. The endpoints are live now at enclave402.com.


Enclave402 — verifiable AI-agent commerce infrastructure

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions