Introduction
Welcome to the TUWA SDK documentation — the official server-side SDK for the Quasar Cloud, featuring built-in React authentication bridges.
What is Quasar SDK?
@tuwaio/quasar-sdk is a type-safe Node.js & Edge SDK for interacting with the TUWA Quasar Cloud API. It provides two main ways to interact with the platform:
- Quasar Client: A stateful, server-side client for high-level operations like Pulsar transaction syncing.
- Utils: A set of stateless, functional utilities for signature verification and security (ideal for both server and browser).
Key Features
- 🔐 Iron Dome Protocol — every request is authenticated via secret key headers
- 🛡️ QuasarAuthBridge — built-in React component for unified EVM & Solana authentication
- 📦 Dual module format — ships as ESM and CJS
- 🧩 Modular architecture — isolated modules for Pulsar (Transactions) and Utils (Security)
- 🔒 Server-side only — your secret keys never leak to the browser
- 📖 Auto-generated API reference — TypeDoc annotations powering this docs site
Quick Start (Core & Utils)
import { Quasar, utils } from '@tuwaio/quasar-sdk';
// Initialize the client
const quasar = new Quasar({ secretKey: 'sk_live_...' });
// Use domain modules
await quasar.pulsar.syncCreate(transaction);
// Or use stateless utilities directly
const isValid = await utils.verifyMiniSession(params);Quick Start (React)
import { QuasarAuthBridge } from '@tuwaio/quasar-sdk/react';
// Mount within your SatelliteConnectProvider tree to handle signatures
<QuasarAuthBridge
activeConnection={activeConnection}
store={store}
wagmiConfig={config}
session={miniSession}
setSession={setMiniSession}
/>Installation
pnpm add @tuwaio/quasar-sdkNext Steps
- Browse the API Reference for full type documentation
- View the Scalar API Viewer for endpoint exploration
- Check the GitHub Repository for source code
Built with ❤️ by the TUWA Team
Last updated on