SDK Reference
The KEA Wallet SDK is split into four packages, each building on the previous one:
Packages
| Package | Description |
|---|---|
@kea-wallet/embedded-provider | Low-level iframe lifecycle and postMessage protocol |
@kea-wallet/browser-sdk | High-level browser SDK with RPC client and metadata resolution |
@kea-wallet/react-sdk | React provider, hooks, and context |
@kea-wallet/react-ui | Pre-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-sdkhooks directly - Vanilla JS / non-React — use
browser-sdk - Custom iframe integration — use
embedded-provider