Usage
Parameters
The amount to deposit.
The token name (e.g., ‘USDC’, ‘USDT’, ‘ETH’).
The chain id to use for the deposit.
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.PENDING: The deposit is pending confirmation.
Contains the transaction hash of the deposit transaction. Only present when the result is
SUCCESS or PENDING.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.