Purchase CodeNut platform credits via x402 micropayment on Base (USDC) — 100x value at $0.01.
What it does
CodeNut Credit Drop (XS) is an x402-enabled endpoint that lets AI agents or developers purchase CodeNut platform credits by making a USDC micropayment on the Base network. For a cost of 10,000 units (0.01 USDC given 6 decimals), the endpoint advertises delivering 100× the value in CodeNut credits. The endpoint is live and returns a standard x402 challenge requiring an `X-PAYMENT` header.
The payment flow uses the x402 "exact" scheme on Base mainnet, settling in USDC (contract `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`). CodeNut also operates its own x402 facilitator at `https://facilitator.codenut.ai/` which handles verification and settlement. The response schema is a simple JSON object containing an `amount` field (number), presumably indicating the quantity of credits granted.
Note that the listing explicitly states "NOT A TOKEN" — the credits are platform-internal, not a blockchain token. Documentation beyond the landing page is sparse; the `/docs`, `/api`, and `/pricing` paths all return 404. External docs are referenced at `docs.codenut.ai` but were not crawled, so the exact nature of CodeNut credits and what they can be used for remains unclear from the available material.
Capabilities
Use cases
- —AI agents autonomously purchasing platform credits via micropayment
- —Developers acquiring CodeNut credits programmatically without manual checkout
- —Testing x402 payment flows on Base mainnet with a low-cost endpoint
- —Bootstrapping CodeNut usage with a small USDC spend
Fit
Best for
- —AI agents that need to self-provision CodeNut platform credits
- —Developers experimenting with x402 micropayments on Base
- —Low-cost onboarding to the CodeNut platform
Not for
- —Purchasing blockchain tokens or NFTs (these are platform credits, not tokens)
- —Users who need detailed API documentation before purchasing (docs are sparse)
- —Non-Base-network USDC holders (only Base mainnet USDC is accepted)
Quick start
# 1. GET the endpoint to receive the 402 challenge
curl -i https://pay.codenut.ai/credit-drop/xs
# 2. Use x402 client to create payment header and retry
import { createPaymentHeader } from 'x402/client';
const header = await createPaymentHeader(walletClient, 1, requirements);
const res = await fetch('https://pay.codenut.ai/credit-drop/xs', {
headers: { 'X-PAYMENT': header }
});
const data = await res.json(); // { amount: <credits> }Example
Response
{
"amount": 100
}Endpoint
Quality
The endpoint is live with a valid 402 challenge and output schema, but documentation is very sparse — /docs, /api, /pricing all 404. The exact utility of CodeNut credits, what they unlock, and detailed usage instructions are not available from crawled material. The response schema is minimal (single 'amount' field). No OpenAPI spec exists.
Warnings
- —No documentation pages found (/docs, /api, /pricing all return 404)
- —The exact purpose and redemption mechanism of CodeNut credits is unclear from available material
- —The advertised '100x worth' claim cannot be independently verified
- —External docs at docs.codenut.ai were referenced but not crawled
Citations
- —Endpoint returns 402 with x402 challenge requiring X-PAYMENT header on Base network using USDChttps://pay.codenut.ai/credit-drop/xs
- —maxAmountRequired is 10000 (0.01 USDC with 6 decimals)https://pay.codenut.ai/credit-drop/xs
- —CodeNut operates an x402 facilitator at https://facilitator.codenut.ai/ supporting Base and xLayerhttps://pay.codenut.ai
- —USDC asset address is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Basehttps://pay.codenut.ai
- —Documentation link referenced at docs.codenut.ai/guides/x402-facilitatorhttps://pay.codenut.ai