Smart Contract Code Explainer
Explains Solidity source in plain language — what each function does, who can call it, what state it mutates, and which patterns warrant scrutiny.
POST /v1/ai/contract-code-explain $0.10 per call
Specification
- Endpoint
POST /v1/ai/contract-code-explain- Price
- $0.10 per call · tier
security_audit - Payment
-
x402 on X Layer (chain 196) · settled in USDG or USDT0 · scheme
exact - Data source
- Local LLM inference on caller-supplied content
- Timeout
- 180 seconds
- Max request
- 4 MB
- Version
1.0.0
Calling it
The first call returns a 402 with the payment challenge. Retry with a
signed authorisation in the X-PAYMENT header — see
the payment guide for the exact shape.
curl -i -X POST "https://api.dana-edu.pp.ua/v1/ai/contract-code-explain" \
-H "content-type: application/json" \
-d '{ ... }' Response
Every response is wrapped in the same envelope: data plus
warnings, sources, confidence,
informational_only and a measured processing_ms.
See the envelope reference.
Related endpoints
Document Translation
Translates a multi-page document section by section, keeping structure, headings and tables aligned with the source.
Personalized Story
Generates a short original story from caller-supplied characters, setting, theme and reading level, in English, Arabic or Kurdish.
Brand Kit
Produces a brand kit — name shortlist, positioning, tone of voice, tagline options, colour palette with deterministic WCAG contrast checks, and typography pairings.
Logo Concept
Produces logo concept directions with symbolism rationale, layout guidance and a deterministically generated SVG wordmark that is sanitised before return.