Skip to content

astachain/veloran

Repository files navigation

Veloran

The payment and access layer for the agent economy.

Sell APIs, datasets, and premium content that humans and AI agents unlock with USDC on Solana. Sellers receive 95% directly, settled on-chain by an Anchor program. Veloran never custodies buyer funds.

Live demo: https://veloran.app/ GitHub: https://github.com/astachain/veloran

Hackathon status

Built for the Solana Frontier Hackathon, May 2026.

  • ✅ Live on Solana devnet
  • ✅ Human checkout via Privy email or Phantom wallet
  • ✅ AI-agent unlock flow via HTTP 402 + X-PAYMENT
  • ✅ Anchor settlement program deployed on devnet
  • ✅ 95/5 seller/platform split enforced atomically on-chain
  • ✅ Per-call unlocks and seller subscriptions
  • ✅ Mainnet Anchor program deployed and smoke-tested; live app remains on devnet for hackathon recording

How it works

  1. A seller signs in and publishes a paid resource: API-style JSON, dataset-shaped text, or premium analysis.
  2. Human buyers open the public URL and unlock with Privy checkout.
  3. AI agents call /api/x402/<slug>, receive HTTP 402 payment instructions, sign a Solana transaction, then re-request with X-PAYMENT.
  4. The Anchor program transfers 95% to the seller and 5% to Veloran treasury in one atomic SPL-token settlement.
  5. The app verifies the transaction and reveals the gated response. Each paid request creates a server-bound PaymentIntent with a 15-minute TTL and a memo of the form veloran:intent:<nonce>. The buyer's transaction must include that memo as a Memo program instruction. The server consumes the intent on the first successful unlock; replays return 409.

Closing line:

Publish once. Humans pay with checkout. Agents pay with HTTP 402. Sellers get paid directly on-chain.

Reference links

Stack

  • Next.js 16 App Router
  • React 19
  • Tailwind CSS 4
  • Privy embedded wallets and Phantom sign-in
  • Prisma + Vercel Postgres / Neon
  • Anchor / Rust on Solana
  • @solana/web3.js and @solana/spl-token

Deployed programs

Devnet Anchor program (used by the live app for hackathon recording):

2CtnLfdePpjitQQLtHrQAsa74RXLiubKfSdJmjy2pGcS

Devnet Solscan:

https://solscan.io/account/2CtnLfdePpjitQQLtHrQAsa74RXLiubKfSdJmjy2pGcS?cluster=devnet

Mainnet Anchor program (deployed and audit-ready; not yet wired to the live app):

89ZFuq1beQHRHRHWY6yezePsdWvTxtMGrLVDXu8DLa1j

Mainnet Solscan:

https://solscan.io/account/89ZFuq1beQHRHRHWY6yezePsdWvTxtMGrLVDXu8DLa1j

Mainnet smoke test transaction:

2J5G1ttrLH8EVGSfAwPCfR6QhbZV2kgcwBVYaV7uQ9apR5iKrDnzmkmWwHB3Y5RHA1sEwWCpUEZaH5w1uapr81nM

Run locally

Prerequisites: Node.js, npm, a Postgres database, and Solana devnet RPC access.

cp .env.example .env.local
# Fill in PRIVY_APP_ID, PRIVY_APP_SECRET, ANTHROPIC_API_KEY,
# NEXT_PUBLIC_HELIUS_RPC_URL, SESSION_SECRET, DATABASE_URL

npm install --legacy-peer-deps
npx prisma db push
npm run dev

Open http://localhost:3000.

Useful scripts

npm run dev
npm run build
npm run lint
VELORAN_BASE_URL=https://veloran.app \
  AGENT_KEYPAIR_PATH=~/.config/solana/agent.json \
  npm run ai-reader -- <slug>

Notes for judges

Veloran uses a custom exact-veloran HTTP 402 payment scheme for the hackathon demo. The app is x402-inspired and agent-readable, but the settlement path is intentionally Solana-native: a custom Anchor instruction verifies the price and executes the 95/5 split directly on-chain.

About

Veloran is the payment and access layer for the agent economy: sellers publish paid APIs, dataset-shaped payloads, and premium content that humans unlock with checkout and AI agents unlock through HTTP 402 + USDC on Solana.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages