Usage
Parameters
The amount to deposit.
The token name (e.g., ‘USDC’, ‘USDT’, ‘ETH’).
If your Mini App supports multiple chains, you can specify the chain id to use.
Returns
Returns
The result of the deposit attempt.
SUCCESS: The deposit was successful.FAILED: The deposit failed.CANCELLED: The deposit was cancelled by the user.
Contains the transaction hash of the deposit transaction. Only present when the result is
SUCCESS.txHash: The transaction hash.
Contains the error information when the deposit fails. Only present when the result is
FAILED.message: The error message.code: The error code.
Demo
Important: Deposits are blocked if your Mini App is connected to a testnet.
Otherwise, deposits would discount real money from the Lemon App and credit test tokens in your Mini App wallet.Instead, send testnet tokens from a Faucet to your Mini App wallet address.