Dexter
Dexter
Docs

Verification and Publishing

After deployment, Lab runs four tests automatically. Resources that pass go live in the marketplace with no manual publish step.

Post-Deploy Tests

TestWhat it checksPass condition
HealthGET /health returns 200Responds within 30 seconds (retries every 2s)
x402 ResponsePaid endpoints return 402Response includes PAYMENT-REQUIRED header with valid x402 JSON
Header ValidationPayment requirements are correctpayTo, amount, network, and asset all match the resource config
Paid SettlementReal payment works end-to-endwrapFetch pays, calls the endpoint, and AI scores the response >= 50/100

The paid settlement test is the most important. It:

  1. Generates realistic test input using AI (or uses the endpoint's exampleBody)
  2. Ensures the resource's payTo wallet has a USDC ATA
  3. Makes a real x402 payment using wrapFetch from @dexterai/x402
  4. AI evaluates the response on a 0-100 scale

A score of 50 or above passes. The AI provides notes and fix instructions if it fails.

What Happens on Pass

When all four tests pass:

  1. Resource status is set to running
  2. public_url is set to https://{resourceId}.dexter.cash
  3. An ERC-8004 on-chain identity is minted (Solana or Base) with services listed: x402, A2A, MCP
  4. A cover image is generated using AI
  5. The resource appears in the public feed

No "publish" button — passing verification is publishing.

What Happens on Fail

If any test fails, the resource stays in a non-public state. The chat shows which test failed and why. Common failures:

FailureCauseFix
Health timeoutContainer didn't start or crashedCheck your code for startup errors
No 402 responsex402 middleware not applied to the routeThe base image handles this — check if you overrode the default route setup
Header mismatchpayTo or amount doesn't match configVerify your endpoint pricing config
Low AI scoreResponse was empty, generic, or brokenImprove the actual response quality

You can redeploy after fixing issues. The chat preserves your conversation history.

Marketplace Discovery

Once live, your resource is discoverable through:

  • OpenDexter marketplace at dexter.cash/opendexter
  • Agent search via x402_search MCP tool
  • A2A discovery at {resourceId}.dexter.cash/agent.json (Google Agent-to-Agent v0.2.1 Agent Card)
  • Public API at api.dexter.cash/api/dexter-lab/resources/public

Resources are sorted by recency (default) or popularity (by request_count).

Revenue

  • 70% goes to the creator wallet
  • 30% goes to the platform
  • Payouts run automatically at noon and midnight ET
  • Check balance: GET /api/dexter-lab/wallets/{resourceId}/balance
  • View payout history: GET /api/dexter-lab/resources/{id}/payouts
  • View revenue over time: GET /api/dexter-lab/resources/{id}/revenue-series

On this page