The Terra SDK and widgets are in early access. Package names may change before launch.
View as MarkdownTerra SDK and widgets
Early accessA crypto wallet SDK and widgets for any app
Add Terra Wallet and Terra Pay to any app in minutes. A web3 wallet SDK with drop-in widgets as light and polished as the Terra Wallet extension, typed server clients and mobile helpers. Try the widgets and theme them live.
Packages
One web3 wallet SDK family for every stack
connect (@terrawallet/connect)
The core. Finds Terra Wallet (EIP-6963, Wallet Standard), falls back to WalletConnect v2 with a QR or deep link. Sessions, chain switching, sign and send. Target under 15 KB gzipped.
react (@terrawallet/react)
<ConnectButton/>,<WalletModal/>and hooks, plus a wagmi/viem connector and a Solana wallet-adapter, so it slots into existing dApps.pay-js (@terrawallet/pay-js)
<TerraCheckout/>as a modal or inline,TerraPay.open({ paymentId }), and a subscribe button.elements (@terrawallet/elements)
Web Components (
<terra-connect-button>,<terra-pay-button>) for any site, WordPress, Webflow or plain HTML, through one script tag with an SRI hash.Server SDKs (Node, Python, PHP)
Typed clients for the
/v1API with webhook-verification helpers. Go later.Mobile (React Native, Android, iOS)
A React Native SDK and Android and iOS deep-link helpers. Flutter later.
- Later
Embedded Wallet (Later phase)
A non-custodial wallet inside your app, with white-label UI. See Embedded Wallet.
Package names are illustrative and subject to an npm availability check, for example @terrawallet/*.
Widget design
Compact, clean, and impossible to spoof
- The extension's visual language: compact, clean, automatic dark and light, subtle motion, official network logos.
- Theming tokens for accent, radius, font and light, dark or auto. Terra's security prompts can't be hidden or restyled.
- Rendered in Shadow DOM, so the host page's CSS can't break or spoof it.
- WCAG AA, keyboard and screen-reader support, and translations including right-to-left languages.
- Mobile-first: on a phone, Connect opens the Terra app directly and returns automatically.
Code
What integrating will look like
Preview code for the planned API. It shows the shape of the SDK, not a final contract.
// Preview API, subject to change. Package names may change.import { TerraProvider, ConnectButton, useAccount } from "@terrawallet/react"; export function App() { return ( <TerraProvider publishableKey="tw_test_pk_..." // safe in the browser theme={{ accent: "#0A5BFF", mode: "auto" }} > <ConnectButton /> <Balance /> </TerraProvider> );} function Balance() { const { address, chain } = useAccount(); return address ? <p>{chain.name}: {address}</p> : null;}Developer experience
Built for a five-minute first payment
Quick start
A five-minute quick start and copy-paste snippets.
Playground
An interactive playground on this site, starting with the widget preview above.
Instant sandbox keys
Test keys from the dashboard the moment you sign up.
Webhook CLI
A CLI that forwards webhooks to localhost while you build.
OpenAPI
An OpenAPI 3.1 spec with typed clients and examples.
Example apps
A Next.js store, a subscription SaaS and a Telegram bot.
Supply chain
An SDK you can safely depend on
- npm provenance, two-factor publishing, a lockfile, minimal dependencies, an SBOM and audits in CI.
- CDN scripts pinned per version with Subresource Integrity hashes.
- No remote code loading and no
eval. Compatible with strict CSP and Trusted Types. - Front-end code uses publishable keys (
tw_test_pk_,tw_live_pk_) locked to the origins you allow. Secret keys never go in a browser or app.
FAQ
Frequently asked questions
Is the Terra SDK available now?
Not yet. The SDK and widgets are in early access, and the code on this page is a Preview API, subject to change.
What will the packages be called?
Names are illustrative and subject to an npm availability check, for example @terrawallet/connect and @terrawallet/react.
Does it work with wagmi and viem?
The planned react package includes a wagmi/viem connector and a Solana wallet-adapter, so it slots into existing dApps.
Can I use it without React?
Yes. The elements package provides Web Components for any site, through one script tag pinned with an SRI hash.
Can I restyle the widgets?
Yes: accent, radius, font and light, dark or auto. Terra's security prompts can't be hidden or restyled.
Which server languages are planned?
Node and TypeScript, Python and PHP first, with Go later. See the developer quick start.
Early access
Early accessRequest early access
Tell us what you're building. Early partners get sandbox access first and help shape what ships.
- Early partners get sandbox access first and help shape the product.
- We email you when the product you picked opens. No newsletters you didn't ask for.
- Pricing will be shared at launch. Talk to us through this form.