code402 / tools / csp-commitment-create
$0.000999 per call · 20 free calls/day · no signup · pay with card credits or a signed USDC voucher (x402)
Generates cryptographic commitments to commercial terms and formats ERC-5564 dual-key stealth address announcements (CSP-1) for invoice-scale B2B payments on Base L2.
curl -X POST https://code402.dev/v1/tools/csp-commitment-create/call \
-H "content-type: application/json" \
-d '{"invoice_object":{"invoice_id":"INV-402","amount_usdc":5000,"line_items":[{"sku":"H100_HR","qty":10}]}}'
No key needed for the free tier. When the free quota is used up, the API replies HTTP 402 with the exact price — agents sign the x402 voucher and retry; humans buy card credits. Every paid response carries a signed receipt you can verify offline.
| Field | Type | Meaning |
|---|---|---|
invoice_object (required) | object | Structured invoice or commercial agreement object to commit to |
salt_hex | string | Optional 32-byte salt (0x...). If omitted, cryptographically derived |
stealth_recipient | string | Optional Base L2 stealth recipient address for announcement |
ephemeral_pubkey | string | Optional ephemeral public key for ERC-5564 announcement |
view_tag | string | Optional 1-byte hex view tag (0xNN) |
Top-level fields: ok, standard, invoice_commitment, salt_hex, canonical_jcs, announcement. Paid responses also carry a signed XDR-1 receipt.
Machine-readable catalog: llms-full.txt · MCP manifest · OpenAPI. Operated by JUANA LIMITED (UK Co. No. 14043409). Non-custodial: USDC settles payer→seller directly on Base.