Build with T3tris
The public @t3tris-labs/sdk connects your application to vault data and contract actions. Keep your own UI, backend and wallet connector.
SDK 0.8.2 uses API /v0. Request fields, responses and behavior may still change, including breaking changes, before API /v1 and SDK 1.0.0. Pin your SDK version and review the changelog before upgrading. Pinning the SDK does not freeze the API server; server changes can also require updates to your integration.
One client, resource-oriented calls
| Client | Runs in | Configuration | Use it for |
|---|---|---|---|
| API | Your backend | Customer API key (sk_…) | Indexed vaults, portfolios, history, metadata and events |
| Wallet | Your wallet-connected application | viem/wagmi clients or an EIP-1193 provider and account | Contract reads, deposits, redemptions, deployment and administration |
Use createT3trisClient from @t3tris-labs/sdk in both cases. Configuration selects each instance's capabilities, while resource names such as vaults describe what you interact with. Create separate instances for your backend and wallet-connected application. Never pass an API key to a wallet client or expose it in a browser bundle.
Import optional protocol constants, deployment types, Permit2 utilities and provider helpers from @t3tris-labs/sdk/onchain. Keep wallet connection and transaction confirmation in your application.
API data comes from the indexer. A successful transaction receipt can arrive before the corresponding API record changes. Use contract reads for the transaction's immediate postconditions, then refresh indexed data as events arrive.
Start an integration
Begin with the quick start. It covers installation, a server-side API call and a wallet read without submitting a transaction.
Then follow the guide for your product:
- A vault explorer or portfolio: backend integration, events and the API reference.
- A deposit UI: wallet integration, funding and Permit2 and deposits and redemptions.
- An operator dashboard: authentication, vault creation, settlement examples and administration examples.
See errors and production checks before connecting a real wallet.
Try the calls
Curate's getting started includes API and on-chain playgrounds with editable inputs and copyable TypeScript examples. API calls use the customer key you enter. On-chain calls use your connected wallet and do not need that key.
To run the same examples locally, clone the standalone playground. Use only a server you trust with your credentials.
The playground can spend real gas, move funds and change permissions. Its example addresses are placeholders. Review the target chain, addresses and amounts before signing.
Version and runtime
These guides cover @t3tris-labs/sdk@0.8.2, published on npm. The package ships ESM JavaScript and TypeScript declarations. Install it with npm install @t3tris-labs/sdk@0.8.2 or the equivalent command for your package manager.
Requires Node.js 22+ or Bun, including live subscriptions. Browser wallet integrations require an ESM-compatible bundler. The SDK itself does not require wagmi or RainbowKit.
The SDK repository owns the public types and changelog. Organization membership and billing administration stay in Curate, outside the public SDK.