0.0.19 • Published 8 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
8 months ago
0.0.0-canary-20250611151843
8 months ago
0.0.0-canary-20250611145932
8 months ago
0.0.0-canary-20250610142916
8 months ago
0.0.17
8 months ago
0.0.0-canary-20250605220746
8 months ago
0.0.16
8 months ago
0.0.0-canary-20250605194947
8 months ago
0.0.15
8 months ago
0.0.0-canary-20250604194009
8 months ago
0.0.14
8 months ago
0.0.0-canary-20250604181208
8 months ago
0.0.0-canary-20250604173458
8 months ago
0.0.0-canary-20250604165959
8 months ago
0.0.13
8 months ago
0.0.0-canary-20250603193719
8 months ago
0.0.12
8 months ago
0.0.0-canary-20250603021841
8 months ago
0.0.11
8 months ago
0.0.0-canary-20250527172418
8 months ago
0.0.10
8 months ago
0.0.0-canary-20250527060117
8 months ago
0.0.9
9 months ago
0.0.0-canary-20250523204431
9 months ago
0.0.8
9 months ago
0.0.0-canary-20250523140917
9 months ago
0.0.7
9 months ago
0.0.5
9 months ago
0.0.3
9 months ago
0.0.2
9 months ago