Galactic SDK
Build on Galactic accounts: passkey sign-in, smart accounts that only the user can sign for, tokenized stock trades, deposits, and borrowing, from TypeScript.
The SDK (@dattex/sdk) wraps the Galactic REST API and handles the parts that are hard to get right: creating passkey signers, creating smart accounts, building and signing each step of a trade, and submitting it. Keys stay with the user. Your code never touches a private key.
QuickstartInstall, create an account and make a first trade in about 20 lines. Core conceptsSigners, accounts, chains, namespaces and quotes. TradingQuote and execute buys and sells. API referenceEvery service and method in the typed client.
What you can do today
| Area | What the SDK does | Guide |
|---|---|---|
| Sign-in | Create passkey (WebAuthn P-256) signers, load them, authenticate with a challenge | Passkeys and sign-in |
| Accounts | Create a smart account for a signer, read its address on a chain | Accounts |
| Trading | Quote and execute buys and sells of tokenized stocks against credits | Trading |
| Deposits | Sign a Permit2-style transfer and submit it | Deposits |
| Credit | Quote and execute borrows, execute repayments | Borrowing and repaying |
| Everything else | A generated, fully typed client for the REST API | API reference |