Installation
Quick Start
Evaluate Options
Using a Policy Template
Using Custom Gates
With Dynamic Pricing
TrustResult Fields
| Field | Type | Description |
|---|---|---|
wallet_address | str | The evaluated wallet |
trust_score | int | 0–100 composite score |
trust_tier | TrustTier | TRUSTED, VERIFIED, LIMITED, UNTRUSTED, BLOCKED |
confidence | float | 0.0–1.0 data confidence |
all_passed | bool | Whether all gates passed |
gate_results | list[GateScoreBreakdown] | Per-gate breakdown |
price_multiplier | float | None | Dynamic pricing multiplier |
suggested_price_usdc | float | None | Computed price |
reputation | WalletReputation | None | Behavioral history |
cached | bool | Whether this was a cache hit |
request_id | str | Unique request ID |
challenge | dict | None | 402 challenge body (if gates failed) |
Error Handling
FastAPI Integration
Therequire_trust() dependency gates endpoints with a single line:
FastAPI Configuration
Wallet Extraction
The FastAPI dependency checks (in order):X-Wallet-Addressrequest header?wallet=query parameter
Failure Responses
| Response | When |
|---|---|
400 | No wallet address found on the request |
402 | Gates failed, on_fail="challenge" |
403 | Gates failed with on_fail="deny", or wallet is blocked |
429 | Cred API rate limit exceeded |
502 | Upstream gate provider error |
Using Without FastAPI
The coreCredClient works with any async Python code: