Usage
Parameters
string
required
The amount to withdraw.
string
required
The tokenName name (e.g., ‘USDC’, ‘USDT’, ‘ETH’).
ChainId
required
The chain id to use for the withdrawal.
Returns
TransactionResult
The result of the withdrawal attempt.
SUCCESS: The withdrawal was successful.FAILED: The withdrawal failed.CANCELLED: The withdrawal was cancelled by the user.PENDING: The withdrawal is pending confirmation.
object
Contains the transaction hash of the withdrawal transaction. Only present when the result is
SUCCESS or PENDING.txHash: The transaction hash.
MiniAppError
Contains the error information when the withdrawal fails. Only present when the result is
FAILED.message: The error message.code: The error code.
Demo
Related Functions
Deposit
Deposit funds to your Mini App Wallet.
Call Smart Contract
Interact with smart contracts on the blockchain.