Stellar Wallets Kit adapter
Register every Stellar Wallets Kit wallet (Freighter, Albedo, xBull, Lobstr…) as Pollar wallet adapters.
With @pollar/react, pass the same adapter array to walletAdapters on <PollarProvider>; the built-in login modal renders a button per wallet from each adapter's meta.
Notes
networkis required — the kit is a global singleton, so it must be toldNetworks.TESTNETorNetworks.PUBLICexplicitly.- One adapter is registered per wallet; kit wallets share a
meta.group, so they collapse behind a single “Wallet” gateway in the login UI. - Start a login for a specific wallet with
login({ provider: id }), whereidis the wallet'sadapter.type.
terminal
pnpm add @pollar/stellar-wallets-kit-adapter @creit.tech/stellar-wallets-kit
@pollar/react— hooks & components
import { PollarProvider } from '@pollar/react'; import { stellarWalletsKitAdapters } from '@pollar/stellar-wallets-kit-adapter'; import { Networks } from '@creit.tech/stellar-wallets-kit'; const walletAdapters = stellarWalletsKitAdapters({ network: Networks.TESTNET, }); export function Providers({ children }: { children: React.ReactNode }) { return ( <PollarProvider client={{ apiKey: 'pub_testnet_…', stellarNetwork: 'testnet', walletAdapters, }} > {children} </PollarProvider> ); } // The built-in LoginModal auto-renders one button per adapter (from its meta).