VANITY

THE VANITY GUIDE.

Build with VANITY.

Signed wallet ownership, durable credits and public completion proofs.

Authenticate

POST /api/auth/challenge with your payer’s public owner address. Sign the returned message locally using Ed25519. POST /api/auth/verify with the challenge id, Base58 signature and client: agent.

The response contains a bearer token valid for 24 hours. Pass Authorization: Bearer <token> on owner-scoped requests. Keep it out of logs and URLs. POST /api/auth/logout revokes it. Browser sessions use an HttpOnly cookie.

POST /api/auth/challenge
{"owner":"<public-wallet-address>"}

POST /api/auth/verify
{"id":"<challenge-id>","signature":"<base58-signature>","client":"agent"}

Start and manage a batch

POST /api/panel with action: start, a unique runnerId and 1–10 patterns. Each pattern supplies prefix, suffix, ignoreCase and, for paid access, creditId. GET /api/panel lists only the authenticated owner’s latest 500 jobs.

Heartbeat or resume every 30 seconds while running. A lease expires after 120 seconds without renewal. Another active runner cannot take over a live lease; the owner can pause it first. Send no more than ten job updates per request.

POST /api/panel
{
  "action":"start",
  "runnerId":"<unique-local-runner-id>",
  "patterns":[{"prefix":"","suffix":"test","ignoreCase":true}]
}

POST /api/panel
{"action":"heartbeat","runnerId":"<same-runner-id>",
 "jobs":[{"id":"<job-id>","attempts":1000,"elapsedMs":2000}]}

Pay and confirm

POST /api/payments action: quote with length: 4, 5 or 6 and currency: SOL or USDC. Review and locally sign the returned unsigned transaction. Broadcast through your mainnet RPC, then POST action: confirm with quoteId and signature until finalized.

Save quote IDs and signatures before network calls. Reuse the original payment for recovery. POST /api/jobs/complete with jobId, address and the generated wallet’s signed completion proof only after saving the key securely. Managed completion is idempotent for the same valid address/proof. Raw keys never belong in these requests.

Errors and compatibility

400: invalid input; 403: missing authentication or access; 404: owner job not found; 409: reservation or proof conflict; 429: rate limit; 503: dependency unavailable. JSON requests are bounded to 4096 characters.

Exact-case completion uses VANITY public wallet proof v1. Flexible capitalization uses v2 with ignoreCase: true in the bound JSON. The local package constructs these messages. Existing single-wallet API endpoints remain available.

Download the OpenAPI document for exact request shapes. Hosted remote MCP and x402 are future integrations, not live endpoints.