Wallet instance or as a shortcut from a Solana secret key:
Chain Adapters
Solana Chain Adapter
You can either create a Solana chain adapter from an Anchor
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Wallet instance or as a shortcut from a Solana secret key:
import { getSolanaChainAdapterFromWallet } from '@rhino.fi/sdk/adapters/solana'
// You can initialize the wallet yourself or depending on the specific browser
// wallet find it in th global window object
const chainAdapter = getSolanaChainAdapterFromWallet(
wallet,
chainConfig,
rpcUrl,
)
import { getSolanaChainAdapterFromSecretKey } from '@rhino.fi/sdk/adapters/solana'
const chainAdapter = getSolanaChainAdapterFromSecretKey(
'YOUR_SECRET_KEY',
chainConfig
rpcUrl,
)