Skip to content

Documentation / expo / UseFundWallet

Type alias: UseFundWallet

UseFundWallet: Object

Method to fund a user's wallet via Privy's funding feature by inputting a valid wallet address. You can access the fields and methods documented here via the useFundWallet hook.

Type declaration

fundWallet

fundWallet: (config) => Promise<void>

Prompt the user to go through the funding flow and for a specified wallet.

This will open the modal with a prompt for the user to select a funding method (if multiple are enabled).

Once the user continues to the funding flow, Privy will display the funding status screen, and wait for the transaction to complete.

Note: Even after a successful funding, funds can take a few minutes to arrive in the user's wallet.

Parameters

config: FundingConfig

FundingConfig Funding configuration to specify address, chain and asset

Returns

Promise<void>