| Module | Status | Description |
|---|---|---|
customers | Available | Customer management, on-chain identity verification, KYC links, database sync |
tokenization | Planned | Token deployment, issuance, redemption, management |
trading | Planned | Order book creation, order submission, settlement |
lending | Planned | Market deployment, liquidity, borrowing, liquidations |
Design principles
Zero dependencies. The SDK uses nativefetch and ships no runtime dependencies. It works in Node.js 18+ and any runtime with a standard fetch implementation.
Fail early. Inputs are validated before requests are sent. Invalid addresses, missing fields, and out-of-range values throw a ValidationError immediately rather than producing a 400 from the server.
Retry by default. Transient failures (5xx, 408, 429, network errors) are retried with exponential backoff. Non-retryable errors (4xx auth/validation) throw immediately. Both behaviors are configurable.
Instance-scoped. Each TrussetClient is bound to one API key, which is scoped to one instance. If you operate multiple instances, create one client per instance.
Installation
Install the SDK and initialize a client
Customers
Customer management, verification, and database sync
