TypeScript SDK
The TypeScript SDK is a viem-style client for the Dango execution environment. It speaks GraphQL over HTTP and WebSocket to a Dango indexer, signs transactions with EIP-712 typed data, and ships as six packages: @left-curve/sdk, @left-curve/crypto, @left-curve/encoding, @left-curve/types, @left-curve/utils, and @left-curve/config.
Start here
- Installation — install the SDK and its peer requirements
- First Call — five-minute hello world against testnet
- Project Setup — networks, signers, env vars
Concepts
- Packages — what lives in which package, and when to reach for a sub-package
- Clients —
createPublicClientvscreateSignerClient - Signers & Authentication —
PrivateKeySigner, session signers, passkeys - Transactions — sign, broadcast, poll
- Subscriptions — the WebSocket model
- Encoding & Types — base units,
Decimal,bigint - Error Handling —
BaseErrorhierarchy - Rate Limits & Quotas — 167 reqs / 10s, 30 subs / WS
API Reference
- Clients: createPublicClient, createSignerClient, createBaseClient
- Actions, grouped by domain: App, DEX, Perps, Account Factory, Gateway, Indexer, Oracle, Hyperlane
- Types — major user-facing types
- Errors —
BaseErrorand friends