Implement a cross-chain deposit flow using Universal Accounts.
Connect Wallet
Deposit Tokens into the Universal Account
Convert to BNB and Withdraw to EOA
Use BNB in the dApp
Install the SDK
Configure Your Environment
.env.local
:bnbAmount
is derived from the USD value the user wants to withdraw, and the to
address is set to the user’s connected EOA.components
→ DepositSection.tsx
→ generateTransactionPreview()
components
→ DepositSection.tsx
→ handleDeposit()