Skip to main content

Installation

Quick Start

Evaluate Options

Using a Policy Template

Using Custom Gates

With Dynamic Pricing

TrustResult Fields

Error Handling

FastAPI Integration

The require_trust() dependency gates endpoints with a single line:

FastAPI Configuration

Wallet Extraction

The FastAPI dependency checks (in order):
  1. X-Wallet-Address request header
  2. ?wallet= query parameter
Override with a custom extractor:

Failure Responses

Using Without FastAPI

The core CredClient works with any async Python code: