SDK
SDK
Stable public SDK entrypoints for OpenPermit integrations.
Use stable SDK entrypoints in application code. Generated Kubb files are internal implementation details and should not be imported by consumers.
Core client
Create a typed OpenPermit API client with fetch, headers, timeout, and organization defaults.
Buyer
Wrap outbound fetch calls and pay HTTP 402 challenges under an active mandate.
Seller
Protect paid resources with Fetch or Hono middleware.
Onchain
Execute onchain seller challenges with caller-provided viem clients.
Primitives and errors
Use receipt verification, mandate hashing, redaction, and typed errors.