Skip to main content
This page walks through a client-side funding integration for Solana wallets. If you are looking to integrate server-side for funding via bank transfer, see the Funding via bank transfer page.

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: