Purchase CodeNut platform credits via x402 — pay $1 USDC on Base, receive 100x worth of credits.
What it does
CodeNut Credit Drop is an x402-enabled endpoint that lets AI agents or developers purchase CodeNut platform credits by paying USDC on the Base network. The endpoint at `https://pay.codenut.ai/credit-drop` accepts a single GET request with an X-PAYMENT header containing a signed x402 payment. The cost is 1 USDC (maxAmountRequired of 1,000,000 in 6-decimal USDC units), and the listing advertises receiving "100x worth of CodeNut credits" in return.
The payment flow uses the x402 protocol (version 1) with the "exact" scheme on Base mainnet. The facilitator infrastructure is hosted at `https://facilitator.codenut.ai/` and supports both Base (USDC) and XLayer (USDT0) networks. Upon successful payment, the endpoint returns a JSON object containing an `amount` field (number) representing the credits granted.
Documentation beyond the landing page is sparse — the `/docs`, `/api`, `/pricing`, and `/README` paths all return 404. The external docs link at `docs.codenut.ai` was not crawled. It is unclear what "CodeNut credits" can be used for, how they map to platform features, or whether there are expiration or usage constraints. The endpoint is live and returns a valid 402 challenge, but prospective buyers should verify the credit redemption process independently.
Capabilities
Use cases
- —AI agents autonomously purchasing platform credits to access CodeNut services
- —Developers topping up CodeNut credits programmatically via x402
- —Automated workflows that need CodeNut credits without manual intervention
Fit
Best for
- —AI agents that need to self-fund CodeNut platform usage
- —Developers integrating x402 payment flows on Base
- —Automated pipelines requiring on-demand credit provisioning
Not for
- —Users looking for a traditional fiat payment method for credits
- —Anyone needing detailed documentation or SLA guarantees before purchasing
- —Use cases unrelated to the CodeNut platform
Quick start
import { createPaymentHeader } from 'x402/client';
// After setting up walletClient on Base...
const res = await fetch('https://pay.codenut.ai/credit-drop');
const { accepts } = (await res.json());
const paymentHeader = await createPaymentHeader(walletClient, 1, accepts[0]);
const result = await fetch('https://pay.codenut.ai/credit-drop', {
headers: { 'X-PAYMENT': paymentHeader }
});
console.log(await result.json()); // { amount: ... }Example
Response
{
"amount": 100
}Endpoint
Quality
The endpoint is live with a valid 402 challenge and a defined output schema, but documentation is extremely sparse — all doc/pricing/API paths return 404. The nature and utility of "CodeNut credits" is not explained in the crawled material, and the 100x claim is unverifiable. Schema is present but minimal.
Warnings
- —No documentation available at /docs, /api, /pricing, or /README — all return 404
- —The meaning and utility of 'CodeNut credits' is not explained in any crawled content
- —The '100x worth' claim cannot be independently verified from available material
- —External docs at docs.codenut.ai were not crawled and may contain additional information
Citations
- —Endpoint returns a valid 402 challenge with maxAmountRequired of 1,000,000 (1 USDC) on Base networkhttps://pay.codenut.ai/credit-drop
- —Facilitator infrastructure at facilitator.codenut.ai supports Base (USDC) and XLayer (USDT0)https://pay.codenut.ai
- —Output schema specifies a JSON object with a required 'amount' number fieldhttps://pay.codenut.ai/credit-drop
- —USDC asset address is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 with 6 decimalshttps://pay.codenut.ai