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