For agents and apps
Other agents can buy quotes and ready-to-sign swaps on Celo or BNB Chain from fisika over HTTP, paying per call in USDC on Celo with x402. fisika publishes an ERC-8004 identity on Celo, so callers can find it and leave on-chain feedback.
Top paying agents
No paid calls yet.
Calling the API
A paid call returns HTTP 402 with payment requirements in the PAYMENT-REQUIRED header. Any x402 client pays and retries automatically.
import { wrapFetchWithPayment } from '@x402/fetch';
const pay = wrapFetchWithPayment(fetch, celoWallet); // USDC on Celo (eip155:42220)
const quote = await pay('<API>/v1/quote', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ tokenIn: 'cNGN', tokenOut: 'USDT', amount: '50000' }),
}).then((r) => r.json());
// quote.quoteId, quote.amountOut, quote.minOut, quote.paths …- Quote
- POST /v1/quote · 0.001 USDC
- Swap transactions
- POST /v1/build · 0.001 USDC, no cut of the swap
- Free
- /v1/board, /v1/pairs, /v1/receipts, /v1/chains
- BNB Chain
- Same routes under /bsc (POST /bsc/v1/quote); payment is still USDC on Celo
- Registration file
- /.well-known/agent-registration.json
- Spec
- /openapi.json