CRYPTYX Docs
x402 Pay-Per-Call

Pay per call. No account needed.

Access CRYPTYX intelligence with USDC micropayments on Base. Your agent hits an endpoint, signs a gasless USDC transfer, and receives institutional-grade data — no API key, no signup, no Stripe checkout. The x402 protocol turns HTTP 402 into a native payment rail for autonomous agents.

How it works

1
RequestAgent hits any x402-priced endpoint without auth headers.
2
402 ResponseServer returns HTTP 402 with price, USDC address, and payment requirements.
3
SignAgent signs a gasless ERC-3009 USDC transfer using its wallet.
4
RetryAgent retries the request with the signed payment in the X-PAYMENT header.
5
Verify + SettleServer verifies the payment via the Coinbase CDP facilitator and settles on-chain.
6
DataAgent receives the full API response. Settlement receipt in X-PAYMENT-RESPONSE header.

Pricing

49 endpoints across 4 tiers. All prices in USD, settled in USDC on Base. Full pricing manifest at /.well-known/x402-manifest.json

Standard$0.01

Signal catalog, market brief, factor scores, market pulse, macro regime, divergence alerts, asset data, agent bundles

Premium$0.05

Backtesting, signal forge, conviction rankings, composite analysis, thesis journal

Trade Ideas$0.10

Ranked trade setups with backtested hit rates, regime context, and derivatives overlay

Enterprise$0.25

Report generation, custom composites, intelligence query

Quick start

1. Install the x402 client

bash
npm install x402 viem

2. Pay and fetch in TypeScript

typescript
import { createWalletClient, http } from 'viem';
import { privateKeyToAccount } from 'viem/accounts';
import { base } from 'viem/chains';
import { createPaymentHeader } from 'x402/client';

const account = privateKeyToAccount(process.env.WALLET_KEY as `0x${string}`);
const wallet = createWalletClient({ account, chain: base, transport: http() });

// Step 1: Hit endpoint — get 402 with payment requirements
const res = await fetch('https://cryptyx.ai/api/signals/catalog');
const { accepts } = await res.json();

// Step 2: Sign payment
const payment = await createPaymentHeader(wallet, 1, accepts[0]);

// Step 3: Retry with payment — get data
const data = await fetch('https://cryptyx.ai/api/signals/catalog', {
  headers: { 'X-PAYMENT': payment },
}).then(r => r.json());

console.log(`${data.count} signals available`);

3. Or use curl to inspect the 402 response

bash
curl -s https://cryptyx.ai/api/signals/catalog | python3 -m json.tool

Requirements

USDC on Base — any amount. A wallet with $1 USDC can make 100 standard calls.

An Ethereum wallet — any EVM-compatible wallet with a private key. No account creation, no KYC, no approval flow.

Zero gas fees — payments use ERC-3009 (gasless USDC transfers). The Coinbase CDP facilitator handles settlement.

Resources