Skip to content
Alchemy Logo

SolanaConnection | @account-kit/core

type SolanaConnection = object;

Defined in: account-kit/core/src/types.ts:76

PropertyTypeDescription

adapters?

WalletAdapter[] | "detect"

Array of Solana wallet adapters to be used for connecting to wallets. Set to "detect" to auto-detect installed wallets, or provide explicit adapters. These adapters will be made available in the React context for wallet selection.

Example

import { PhantomWalletAdapter, SolflareWalletAdapter } from "@solana/wallet-adapter-wallets";
 
// Auto-detect installed wallets
const config = createConfig({
  // ... other config
  solana: {
    connection: solanaConnection,
    adapters: "detect"
  }
});
 
// Explicit wallet configuration
const config = createConfig({
  // ... other config
  solana: {
    connection: solanaConnection,
    adapters: [
      new PhantomWalletAdapter(),
      new SolflareWalletAdapter(),
    ]
  }
});

connection

SolanaWeb3Connection

policyId?

string

Was this page helpful?