@solflare-wallet/wallet-adapter
v1.0.3
Published
Solflare wallet adapter compatible with [Wallet Standard](https://github.com/wallet-standard/wallet-standard) and [Solana Wallet Adapter](https://github.com/solana-labs/wallet-adapter)
Downloads
6,609
Keywords
Readme
@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>