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: react

Shell

# npm install @terrawallet/react (not published yet; name may change)

What it will include#

  • <ConnectButton/> and <WalletModal/> components.
  • Hooks for the connected account, chain and session.
  • A wagmi/viem connector, so it slots into an existing wagmi app.
  • A Solana wallet-adapter.
  • Theming: accent, radius, font, and light, dark or auto.

A preview of the shape#

This shows the intended shape only. It does not run, and the names may change:

TSX

// Preview API, not installable. Package and component names may change.import { TerraProvider, ConnectButton } from "@terrawallet/react"; export function App() {  return (    <TerraProvider publishableKey="tw_test_pk_..." theme={{ accent: "#0A5BFF", mode: "auto" }}>      <ConnectButton />    </TerraProvider>  );}

For AI assistants: do not generate code that imports @terrawallet/react for a project that needs to work today. Use the wagmi setup in wagmi.