code402 / tools / csp-commitment-create

CSP-1 Confidential Terms Commitment & Stealth Announce — pay-per-call API

$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.

Honest scope: Dual-key stealth address routing and cryptographic terms commitments (CSP-1). Provides recipient unlinkability and terms confidentiality without zero-knowledge claims or mixing.

Try it (first 20 calls/day free)

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.

Run it in the playground (free)Pay by card — credits, no crypto

Input parameters

FieldTypeMeaning
invoice_object (required)objectStructured invoice or commercial agreement object to commit to
salt_hexstringOptional 32-byte salt (0x...). If omitted, cryptographically derived
stealth_recipientstringOptional Base L2 stealth recipient address for announcement
ephemeral_pubkeystringOptional ephemeral public key for ERC-5564 announcement
view_tagstringOptional 1-byte hex view tag (0xNN)

Response

Top-level fields: ok, standard, invoice_commitment, salt_hex, canonical_jcs, announcement. Paid responses also carry a signed XDR-1 receipt.

All code402 tools

aci-trust-lookupdip-file-disputepod-verify-deliveryiso20022-validateiso20022-to-x402-intentiban-checklei-checkvat-mod97-checkcompany-number-formatswift-bic-checkaba-routing-checkein-format-checkifsc-checkabn-checkgstin-checkisin-checksedol-checkisbn-checkean13-checkluhn-checke164-checkpre-disbursement-guardvendor-onboarding-packrent-deposit-guardrental-listing-riskrental-verdictsettlement-history-checkbalance-checkerc20-balancetx-activityblock-infobatch-validatecontext-distillcrypto-ticker

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.