> Source: https://developers.terrawallet.us/docs/sdk . Terra Wallet developer docs (early access).

# SDK and widgets

The Terra SDK will let you add Terra Wallet and Terra Pay to any app in minutes, with widgets as light and
polished as the Terra Wallet extension.

> **Not published.** No Terra SDK package is on npm or any other registry yet, and the package names may change
> after an availability check. Install lines in these docs are commented out on purpose. **Do not install a
> package with these names from a registry today:** it would not be ours.

## What to use today

| You want to | Use today | Planned package |
|---|---|---|
| Connect Terra Wallet to a dApp | EIP-6963, WalletConnect v2, wagmi ([Terra Connect](https://developers.terrawallet.us/docs/connect.md)) | `connect`, `react` |
| Take a payment | The HTTP API from your server plus hosted checkout ([Quick start](https://developers.terrawallet.us/docs/quickstart.md)) | `server`, `pay-js`, `elements` |
| Verify webhooks | The verification code in [Webhooks](https://developers.terrawallet.us/docs/webhooks.md) | server SDK helpers |
| Open Terra Wallet from a phone | The `terrawallet://wc` deep link ([Deep links](https://developers.terrawallet.us/docs/connect/deep-links.md)) | React Native SDK |

## Packages

| Package (planned name) | What it does | Guide |
|---|---|---|
| `@terrawallet/connect` | Finds Terra Wallet (EIP-6963, Wallet Standard), falls back to WalletConnect v2 with a QR code or deep link; sessions, chain switching, sign and send | [connect](https://developers.terrawallet.us/docs/sdk/connect.md) |
| `@terrawallet/react` | `ConnectButton`, `WalletModal` and hooks; a wagmi/viem connector and a Solana wallet-adapter | [react](https://developers.terrawallet.us/docs/sdk/react.md) |
| `@terrawallet/elements` | Web Components (`terra-connect-button`, `terra-pay-button`) for any site through one script tag with an SRI hash | [elements](https://developers.terrawallet.us/docs/sdk/elements.md) |
| `@terrawallet/pay-js` | Checkout as a modal or inline, and a subscribe button | [pay-js](https://developers.terrawallet.us/docs/sdk/pay-js.md) |
| `@terrawallet/server` | A typed Node and TypeScript client for `/v1` with webhook helpers. Python and PHP clients too (Go later) | [server](https://developers.terrawallet.us/docs/sdk/server.md) |
| React Native SDK | Deep-link helpers for Android and iOS. Flutter later | [Deep links](https://developers.terrawallet.us/docs/connect/deep-links.md) |

## Widget design principles

- The extension's visual language: compact, clean, automatic dark and light, official network logos.
- Theming tokens for accent, radius, font and light, dark or auto. Terra's security prompts cannot be hidden or
  restyled.
- Rendered in Shadow DOM, so the host page's CSS cannot break or spoof it.
- WCAG AA, keyboard and screen-reader support, and right-to-left languages.
- Mobile-first: on a phone, Connect opens the Terra Wallet app directly and returns automatically.

## Supply chain

- 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 a strict CSP and Trusted Types.
- Front-end code uses publishable keys only. Secret keys never go in a browser or app.

The MCP tool `get_sdk_info` returns the current status of every package.
