Open an experimental session channel (Phase 2.1 — flag-gated)
session-openVerify a buyer-signed EIP-712 SessionPermit once and open a prepaid session: subsequent calls carry cumulative CallVouchers verified off-chain, so the whole session settles with one final voucher instead of one transfer per call. EXPERIMENTAL: disabled unless SESSION_CHANNELS=true on the deployment (fails closed with SESSION_CHANNELS_DISABLED otherwise). Session state lives in a per-session Durable Object; the permit's capTotal is additionally clamped by the deployment's per-channel budget limit. No funds move at open — funding proof is the rail adapter's job.
Quickstart & Execution
curl -X POST https://rail.akrivis.in/v1/tools/session-open/call \
-H "content-type: application/json" \
-d '{"permit":{"buyer":"0x…","seller":"0x…","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","capTotal":"1000000","capPerCall":"100000","expiry":"2000000000","salt":"0x…"},"signature":{"r":"0x…","s":"0x…","v":27}}'
No API key needed for the free daily tier. When daily quota exhausts, the endpoint replies with HTTP 402 Payment Required specifying the exact USDC amount. Machines sign an EIP-3009 transfer on Base L2; human engineers buy card credits. Every paid execution returns a cryptographically signed XDR-1 receipt for zero-knowledge audit trails.
Input Parameters
| Field | Type | Meaning & Constraints |
|---|---|---|
permit (REQUIRED) | object | SessionPermit { buyer, seller, asset, capTotal, capPerCall, expiry, salt } — integers as decimal strings, addresses/hashes 0x-hex |
signature (REQUIRED) | object | { r, s, v } over the permit's EIP-712 digest (domain: code402-session v1, verifyingContract = the asset) |
Response Format
Deterministic JSON payload fields: accepted, session_id, remaining, reason, scope. Paid responses also carry an offline-verifiable receipt object (XDR-1, secp256k1 signature recoverable to the authorized signer).
Related Conformance Tools
aci-trust-lookup dip-file-dispute pod-verify-delivery csp-commitment-create iso20022-validate iso20022-to-x402-intent iban-check lei-check vat-mod97-check company-number-format swift-bic-check aba-routing-check ein-format-check ifsc-check abn-check gstin-check cnpj-check uscc-check japan-corp-check kra-pin-check rfc-check iso4217-currency-check upi-vpa-check pan-format-check uae-trn-check isin-check sedol-check isbn-check ean13-check luhn-check e164-check pre-disbursement-guard vendor-onboarding-pack rent-deposit-guard rental-listing-risk rental-verdict india-supplier-check china-supplier-check japan-supplier-check latam-supplier-check gulf-supplier-check africa-supplier-check settlement-history-check balance-check erc20-balance tx-activity block-info ofac-sdn-check simulate-spend-sentinel create-ap2-pilot create-b2b-invoice get-b2b-invoice calculate-fx-savings fx-spot-price-oracle quote-3rd-party-insurance bind-insurance-policy list-approved-insurers batch-validate context-distill crypto-ticker instant-json-schema-verifier clean-markdown-scraper