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.

Overview
Privy provides auseDepositAddress hook in @privy-io/react-auth that opens a deposit address flow in the Privy modal.
Your app can use this hook to let authenticated users fund a wallet by sending crypto from any supported source chain. Privy generates a unique deposit address, and when the user sends tokens to it, the funds are automatically bridged or swapped and delivered to the destination wallet.
This is useful when users already hold crypto on a different chain than the one your app uses, or in a different wallet, app, or exchange.
Access the hook
Import and initializeuseDepositAddress:
Start a deposit address flow
CallcreateDepositAddress with a destination chain, currency, and wallet address:
createDepositAddress returns a Promise<void> that resolves when the deposit completes successfully, and rejects if an error occurs or the user exits the flow.
destinationChain accepts a CAIP-2 identifier (for example, eip155:8453 for Base or
solana:mainnet for Solana).Parameters
createDepositAddress accepts an object with the following fields:
CAIP-2 chain identifier for the destination (e.g.
eip155:8453, solana:mainnet).Token contract address on the destination chain. Use the zero address for native tokens.
Wallet address to receive the deposited funds.
Returns
createDepositAddress returns a Promise<void> that resolves when the deposit completes successfully. The promise rejects if an error occurs or the user exits the flow.
Supported chains
Destination chains
Your app specifies the destination chain when callingcreateDepositAddress. The following destination chains are supported:
| Chain | CAIP-2 identifier |
|---|---|
| Base | eip155:8453 |
| Ethereum | eip155:1 |
| Arbitrum | eip155:42161 |
| Optimism | eip155:10 |
| Polygon | eip155:137 |
| Solana | solana:mainnet |
| Tron | tron:20191129 |
Source chains
Users can deposit from a wide range of chains and assets, including Bitcoin, Solana, and other tokens. The Privy modal automatically presents available source options based on the destination configuration.Example
Related
Funding overview
All available methods for funding wallets.
Fiat onramp
Fund wallets with fiat via card, Apple Pay, or Google Pay.

