Documentation Index
Fetch the complete documentation index at: https://docs.privy.io/llms.txt
Use this file to discover all available pages before exploring further.
Privy supports connecting wallets on both EVM networks and Solana to your application. To configure your app for the wallet types you need, follow the steps below.
Configuring EVM/Solana external connectors
EVM and Solana
EVM
Solana
If you are connecting to Solana wallets, you must also initialize Solana connectors using Privy’s toSolanaWalletConnectors method and pass them to the config.externalWallets.solana.connectors field.
In your PrivyProvider, set the config.appearance.walletChainType to 'ethereum-and-solana'.import {PrivyProvider} from '@privy-io/react-auth';
import {toSolanaWalletConnectors} from "@privy-io/react-auth/solana";
<PrivyProvider
config={{
appearance: {walletChainType: 'ethereum-and-solana'},
externalWallets: {solana: {connectors: toSolanaWalletConnectors()}}
}}
>
{children}
</PrivyProvider>
In your PrivyProvider, set the config.appearance.walletChainType to 'ethereum-only'.import {PrivyProvider} from '@privy-io/react-auth';
<PrivyProvider
config={{
appearance: {walletChainType: 'ethereum-only'}
}}
>
{children}
</PrivyProvider>
If you are connecting to Solana wallets, you must also initialize Solana connectors using Privy’s toSolanaWalletConnectors method and pass them to the config.externalWallets.solana.connectors field.
In your PrivyProvider, set the config.appearance.walletChainType to 'solana-only'.import {PrivyProvider} from '@privy-io/react-auth';
import {toSolanaWalletConnectors} from "@privy-io/react-auth/solana";
<PrivyProvider
config={{
appearance: {walletChainType: 'solana-only'},
externalWallets: {
solana: {connectors: toSolanaWalletConnectors()}
}
}}
>
{children}
</PrivyProvider>