Skip to main content

Getting Started

Everything runs against two environments. Start on sandbox — it is a complete, real-chain replica of production using test networks and test funds.

Environments

SandboxProduction
Base URLhttps://rwa-api-sandbox.tbook.comhttps://rwa-api.tbook.com
Suitestnetmainnet
API keystbk_test_*tbk_pub_* / tbk_secret_*
Fundstest USDC (faucets)real
Settlementoperator-run cycles, plus on-demand via /v1/sandbox/settleper published vault schedule

The API surface is identical in both environments. Promotion to production is a key swap.

:::note Legacy Solana rail (frozen) A legacy Solana gateway rail (rcusdp-sol, devnet/mainnet-beta) still exists but is paused: deposit and redeem builds return 409 vault_paused, while claim and cancel-deposit stay open so existing balances can exit. New integrations should target the Sui rail. :::

Integration in five steps

  1. Get keys — your TBook contact issues sandbox keys; see Authentication.
  2. Pick your account modelindividual, omnibus, treasury, or business. This decides who signs transactions and who keeps user-level books.
  3. Run the Quickstart — full deposit → settle → webhook → positions loop in ~30 minutes.
  4. Wire webhooksverify signatures and handle events; they are the primary integration surface.
  5. Complete the onboarding checklist — then request production keys.

Integration paths

PathBest forWhat you need
REST APIAny backend or mobile app; WaaS signingHTTP + any language
Server SDKWebhook verification & typed API client@tbookdev/vault-node
Client SDKApps building transactions client-side@tbookdev/vault-sdk-sui
React HooksReact apps on Sui@tbookdev/vault-react-sui

REST-only integration is fully supported — the SDKs are optional conveniences. The @tbookdev packages are published on the public npm registry and install like any other dependency (e.g. npm install @tbookdev/vault-node).

Read before you build

  • Conventions — errors, idempotency, pagination, amounts, rate limits. Five minutes that prevent most integration bugs.
  • Custody & WaaS Signing — how to sign with your own keys, Turnkey, or Privy (both verified end-to-end on Sui testnet).
  • Core Flows — what "settlement cycle" means for your UX, and what happens on rollback.