Skip to content
Terra WalletDevelopers

Early access. The Terra API and SDKs may change before launch, and the SDK packages are not published yet.

View as Markdown

SDK and widgets

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.

What to use today#

You want toUse todayPlanned package
Connect Terra Wallet to a dAppEIP-6963, WalletConnect v2, wagmi (Terra Connect)connect, react
Take a paymentThe HTTP API from your server plus hosted checkout (Quick start)server, pay-js, elements
Verify webhooksThe verification code in Webhooksserver SDK helpers
Open Terra Wallet from a phoneThe terrawallet://wc deep link (Deep links)React Native SDK

Packages#

Package (planned name)What it doesGuide
@terrawallet/connectFinds Terra Wallet (EIP-6963, Wallet Standard), falls back to WalletConnect v2 with a QR code or deep link; sessions, chain switching, sign and sendconnect
@terrawallet/reactConnectButton, WalletModal and hooks; a wagmi/viem connector and a Solana wallet-adapterreact
@terrawallet/elementsWeb Components (terra-connect-button, terra-pay-button) for any site through one script tag with an SRI hashelements
@terrawallet/pay-jsCheckout as a modal or inline, and a subscribe buttonpay-js
@terrawallet/serverA typed Node and TypeScript client for /v1 with webhook helpers. Python and PHP clients too (Go later)server
React Native SDKDeep-link helpers for Android and iOS. Flutter laterDeep links

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.