PollarPollarDemo

Products

WalletTransactionsSessionsDistribution

Integrations

KYCSoonRampNewSwapNew

Wallet Adapters

Stellar Wallets KitPrivyNewAcceslySoon

Built with Pollar

Trustless WorkNiriumNewLumenWipeNew
WalletTransactionsSessionsDistributionKYCSoonRampNewSwapNewStellar Wallets KitPrivyNewAcceslySoonTrustless WorkNiriumNewLumenWipeNew
OverviewSetup

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

  • network is required — the kit is a global singleton, so it must be told Networks.TESTNET or Networks.PUBLIC explicitly.
  • 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 }), where id is the wallet's adapter.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).