Skip to main content

Installation

Quick Start

Configuration

Wallet Address Extraction

By default the middleware checks:
  1. X-Wallet-Address request header
  2. ?wallet= query parameter
Override with extractWallet:

Accessing Trust Data

The middleware attaches the result to req.credTrust:

Response Headers

When headers: true (default), every response includes:

Error Handling

The middleware catches errors and passes them to Express error handling: