0.0.19 • Published 11 months ago
@farcaster/mini-app-solana v0.0.19
@farcaster/mini-app-solana
This package enables Mini Apps to interact with a user's Solana wallet through Wallet Standard.
Mini apps written in React can use Wallet Adapter's React hooks, which are sort of like Solana's equivalent of Wagmi.
Installation
pnpm add @farcaster/mini-app-solanaUsage
import * as React from 'react';
import { FarcasterSolanaProvider } from '@farcaster/mini-app-solana';
import { useWallet } from '@solana/wallet-adapter-react';
const solanaEndpoint = 'https://mainnet.helius-rpc.com/?api-key=YOUR_API_KEY';
function App() {
// FarcasterSolanaProvider internally renders ConnectionProvider
// and WalletProvider from @solana/wallet-adapter-react
return (
<FarcasterSolanaProvider endpoint={solanaEndpoint}>
<Content />
</FarcasterSolanaProvider>
)
}
function Content() {
const { publicKey } = useWallet();
const solanaAddress = publicKey?.toBase58() ?? '';
return <span>{solanaAddress}</span>;
}You can now interact with the user's connected wallet via Wallet Adapter.
0.0.19
11 months ago
0.0.0-canary-20250611151843
11 months ago
0.0.0-canary-20250611145932
11 months ago
0.0.0-canary-20250610142916
11 months ago
0.0.17
11 months ago
0.0.0-canary-20250605220746
11 months ago
0.0.16
11 months ago
0.0.0-canary-20250605194947
11 months ago
0.0.15
11 months ago
0.0.0-canary-20250604194009
11 months ago
0.0.14
11 months ago
0.0.0-canary-20250604181208
11 months ago
0.0.0-canary-20250604173458
11 months ago
0.0.0-canary-20250604165959
11 months ago
0.0.13
11 months ago
0.0.0-canary-20250603193719
11 months ago
0.0.12
11 months ago
0.0.0-canary-20250603021841
11 months ago
0.0.11
11 months ago
0.0.0-canary-20250527172418
11 months ago
0.0.10
11 months ago
0.0.0-canary-20250527060117
11 months ago
0.0.9
11 months ago
0.0.0-canary-20250523204431
11 months ago
0.0.8
11 months ago
0.0.0-canary-20250523140917
11 months ago
0.0.7
11 months ago
0.0.5
11 months ago
0.0.3
11 months ago
0.0.2
11 months ago