@boostxyz/tbi-sdk is a framework-agnostic TypeScript SDK that wraps the public /v1 API. It returns SDK-native types (bigint amounts, viem Address and Hex, Date | null timestamps) and ships viem-friendly claim helpers.
V1 does not ship React hooks, Vue or Svelte adapters, or UI components. Use these methods with your framework’s data-fetching layer of choice. There is a wagmi and TanStack Query example below.
Install
0.1.0, published on npm. Both ESM and CommonJS builds ship in the package.
Peer Dependencies
viem is a peer dependency because the claim helpers accept a viem WalletClient and the exported types use viem’s Address and Hex.
viem for its types but never construct a wallet client yourself. See raw calldata.
Create a Client
Partner Attribution
WhenrefId is set, the SDK sends it on every API request so Boost can attribute SDK, API, and Forwarder usage to your integration. It is not authentication and not a secret; the API is public either way.
The SDK validates the value locally: it must start with an alphanumeric character, contain only letters, numbers, ., _, :, or -, and be at most 128 characters. Override it per call when you want to split traffic:
refId registered.
Client Surface
Every read method takes the same per-call options:
headers, refId, and signal.
The Transport Escape Hatch
transport keeps the client’s base URL, headers, refId, and retry behaviour while letting you call an endpoint the SDK has not wrapped:
Exported Constants
See Contracts for the addresses, the claim signature, and the revert selectors.
Use with wagmi and TanStack Query
Types and Reference
Every exported symbol ships with TSDoc, so your editor is the fastest per-field reference. The types are bundled with the package; there is nothing separate to install.There is no public changelog page yet. The
/v1 API contract changes additively only; the SDK follows semantic versioning, and 0.1.0 is the only release so far.Keep Exploring
Quickstart
Discover, read, and claim in five steps.
Errors
Error classes and what retries automatically.
Contracts
The Manager, the claim function, and revert selectors.