Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.privy.io/llms.txt

Use this file to discover all available pages before exploring further.

This page documents the useFundWallet hook for Solana wallets. For newer funding integrations, see Fiat-to-crypto onramps or Bank deposits.

Prompting users to fund wallets

With funding methods enabled for your app, Privy will prompt users to fund their wallets at two points in their experience:
  1. Manually, when you call Privy’s fundWallet method documented below
  2. Automatically, when the user attempts to send a transaction but has insufficient funds
You can also configure the chain, asset, and amount that users should fund their wallets with directly in code.

Manually invoking funding

Once you’ve enabled a set of funding methods for your app, to invoke the funding flow, use the useFundWallet hook from the Privy SDK as follows: