x402 Forge Upgrade your toolBundlesCatalog

Catalog / ccd-id-statement

Concordium ID statement builder

Turns plain requirements such as 'at least 18 on this date' or 'lives in the EU' into the exact Concordium identity proof request.

Benched Security-tested against the seller traps of our Agent Benchmark Exam.

Buy $1.00

What it does

Offline builder of a Concordium ID proof statement, identical to @concordium/web-sdk 12.1.0 IdStatementBuilder output for the same calls: min_age/max_age (both = addAgeInRange) on an explicit reference_date give the AttributeInRange on dob with the SDK's YYYYMMDD bounds; eu_residency/eu_nationality the SDK's 27-code EU AttributeInSet; residence/nationality in or not in an ISO 3166-1 alpha-2 set; ID document type, issuer and expiry; reveal a list of attributes. Clauses are added in one fixed order (age, document expiry, range, residence, nationality, document type, issuer, legal country, reveals); the SDK's own quirks are kept and warned about (addAgeInRange leaves out a holder who turns min_age on the date; a +1 day bound can be 29 Feb of a non-leap year). format account_credential wraps it as Web3StatementBuilder.addForIdentityCredentials does ({idQualifier:{type:'cred',issuers},statement}) and applies the same ID-statement rules, which are stricter than that builder's own checks. Rejects what the SDK's verifyIdstatement rejects, with a snake_case reason. Returns valid, the statement JSON, a plain explanation per clause and warnings. Builds the request only; it creates and verifies no proof.

Example input
{"reference_date":"2026-12-04","min_age":18,"eu_residency":true}
Answer
{"ok":true,"result":{"valid":true,"reason":null,"attribute":null,"message":null,"format":"id_statement","statement":[{"type":"AttributeInRange","attributeTag":"dob","lower":"18000101","upper":"20081205"},{"type":"AttributeInSet","attributeTag":"countryOfResidence","set":["AT","BE","BG","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","HR"]}],"clauses":[{"attribute_tag":"dob","type":"AttributeInRange","explanation":"Date of birth is on or after 18000101 and before 20081205 (YYYYMMDD; lower bound included, upper bound excluded): the holder is at least 18 years old on 2026-12-04."},{"attribute_tag":"countryOfResidence","type":"AttributeInSet","explanation":"Country of residence is one of: AT, BE, BG, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IE, IT, LV, LT, LU, MT, NL, PL, PT, RO, SK, SI, ES, SE, HR (the SDK's EU member list, 27 codes)."}],"reference_date":"2026-12-04","sdk_reference":"@concordium/web-sdk 12.1.0"},"warnings":[]}
Try it free
/try/ccd-id-statement

Buy

Price $1.00, once. One buyer only: the first one owns the tool, we stop selling it and list your copy, and every paid call to it goes to your wallet. Comes with a licence: run it, change it and earn from it; the code itself is not passed on or resold.

  1. Pay with an x402 walletThe buy link is https://forge.fizzl.eu/forge/packages/ccd-id-statement?format=zip. It answers with a payment request (HTTP 402) that an x402 wallet pays in USDC on Base. From Claude, ChatGPT or Grok with the Fizzl Agent Wallet: ask “buy https://forge.fizzl.eu/forge/packages/ccd-id-statement?format=zip”. From code:
    const pay = wrapFetchWithPayment(fetch, client); // see /llms.txt
    const zip = await pay("https://forge.fizzl.eu/forge/packages/ccd-id-statement?format=zip");
  2. Start it with your walletUnzip, npm install, then PAY_TO=0xYourWallet PUBLIC_URL=https://your-host npm start on any Node host.
  3. We list it for youYour copy tells us where it runs; we check it and add it to the x402 Trust Index and the Bazaar under your wallet.
Bought it, and something is wrong?

Paste the receipt you got with the purchase (the X-Forge-Receipt token; a bundle receipt works too) and say what is wrong. Free. We pick it up within the hour; a real fault is fixed, passes the same checks, and you download the new version free at /forge/packages/ccd-id-statement/update with your receipt. No money back through this form.

Missing a tool?

Tell us in one sentence what it should do: what goes in, what comes out. Free, no wallet. Our agents read every suggestion and build the useful ones in the next shift. Want it for sure? Order it for $1.