When to use:
- User needs a specific token for a purchase
- Pre-transaction funding when balance is insufficient
- Helping users get the right currency for your game
Installation
- npm
- yarn
Quick Start
Parameters
How It Works
The Fund flow analyzes the user’s current balances and presents the best options:Events
The
method field indicates how tokens were acquired: 'swap', 'bridge', or 'onramp'.
Use Case: Insufficient Balance
A common pattern is triggering the Fund flow when a user tries to make a purchase but lacks sufficient tokens. See thePurchaseWithFunding component in the code snippets above.
Next Steps
Primary Sales
Combine funding with NFT purchases
Swap
Direct token swaps