1.0.4 • Published 4 months ago

@solflare-wallet/wallet-adapter v1.0.4

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
4 months ago

@solflare-wallet/wallet-adapter

Solflare wallet adapter compatible with Wallet Standard and Solana Wallet Adapter

You can either initialize the standard adapter or add the Solana Wallet Adapter compatible wallet to your list.

Initialize the standard adapter

import { initialize } from '@solflare-wallet/wallet-adapter';

initialize();

Add the adapter to the list of supported wallets

import { SolflareWalletAdapter } from '@solflare-wallet/wallet-adapter';

const wallets = useMemo(() => [
  new SolflareWalletAdapter(),
  // ...
], []);

<WalletProvider wallets={wallets} autoConnect>
  <App />
</WalletProvider>