Skip to main content

SDK Reference

The KEA Wallet SDK is split into four packages, each building on the previous one:

Packages

PackageDescription
@kea-wallet/embedded-providerLow-level iframe lifecycle and postMessage protocol
@kea-wallet/browser-sdkHigh-level browser SDK with RPC client and metadata resolution
@kea-wallet/react-sdkReact provider, hooks, and context
@kea-wallet/react-uiPre-built UI components (connect button, account switcher)

Quick Start

Most apps only need react-sdk and react-ui:

import { KeaProvider } from '@kea-wallet/react-sdk';
import { KeaConnectButton } from '@kea-wallet/react-ui';

function App() {
return (
<KeaProvider config={{ rpcUrl: 'https://grpc-web.alphanet.thruput.org' }}>
<KeaConnectButton />
</KeaProvider>
);
}

Which Package Do I Need?

  • React app with pre-built UI — use react-ui + react-sdk
  • React app with custom UI — use react-sdk hooks directly
  • Vanilla JS / non-React — use browser-sdk
  • Custom iframe integration — use embedded-provider