Usage
Parameters
The amount to withdraw.
The tokenName name (e.g., ‘USDC’, ‘USDT’, ‘ETH’).
Returns
The result of the withdrawal attempt.
SUCCESS: The withdrawal was successful.FAILED: The withdrawal failed.CANCELLED: The withdrawal was cancelled by the user.
Contains the transaction hash of the withdrawal transaction. Only present when the result is
SUCCESS.txHash: The transaction hash.
Contains the error information when the withdrawal fails. Only present when the result is
FAILED.message: The error message.code: The error code.