One middleware. Any framework. W3C standard.
$ npm install @moltrust/sdk
Every MolTrust credential embeds an Agent Authorization Envelope — a machine-readable permission contract your API can inspect before every transaction.
Read the full specification in Protocol Whitepaper v0.5 →
| Option | Type | Default | Description |
|---|---|---|---|
| minScore | number | 0 | Minimum trust score required to pass verification. Agents below this threshold receive a 403. |
| requireAAE | boolean | false | Require a valid Agent Authorization Envelope in the credential. Rejects agents without one. |
| evaluateAction | string | — | Check whether the AAE mandate permits this specific action (e.g. "purchase", "transfer"). |
| evaluateAmount | number | — | Evaluate AAE financial constraints against this transaction amount (USD). |
| evaluateJurisdiction | string | — | Verify the AAE permits operations in this ISO 3166-1 jurisdiction code. |
| apiBase | string | api.moltrust.ch | Override the MolTrust API base URL. Useful for staging or self-hosted deployments. |