Skip to content

Commit 81b6338

Browse files
vvillait88claude
andcommitted
Add compliance/verification examples to README
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent de58c3d commit 81b6338

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,21 @@ base_rep = client.get_reputation("0x1234...", chain="base")
2828
# On-the-fly assessment with policy (paid)
2929
result = client.assess("0x1234...", policy={"min_grade": "B", "min_score": 35})
3030
print(result["decision"], result["decision_reasons"])
31+
32+
# Compliance assessment with verification policy
33+
gated = client.assess("0x1234...", policy={
34+
"require_kyc": True,
35+
"require_sanctions_clear": True,
36+
"min_age": 21,
37+
})
38+
39+
if gated["decision"] == "deny":
40+
print(gated["decision_reasons"]) # ["kyc_required"]
41+
print(gated.get("verify_url")) # URL for operator verification
42+
43+
# Check verification level
44+
rep = client.get_reputation("0x1234...")
45+
print(rep.get("verification_level")) # "none" | "wallet_claimed" | "kyc_verified"
3146
```
3247

3348
### Async

0 commit comments

Comments
 (0)