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