A React hook that enables withdrawing USDC tokens from the VESU protocol. This hook handles the withdrawal transaction to transfer tokens from the VESU contract to a specified recipient.
withdraw
or withdrawAsync
:
encryptKey
(string): User’s decryption PINwallet
(WalletData): Wallet public/private key pairamount
(string | number): Amount of USDC to withdrawrecipient
(string): Address to receive the withdrawn tokensbearerToken
(string): Authentication token for the APIwithdraw
: Function to trigger withdrawal (mutate)withdrawAsync
: Async function to trigger withdrawal (mutateAsync)withdrawData
: Transaction hash of the withdrawal operationisLoading
: Boolean indicating if the operation is in progressisError
: Boolean indicating if an error occurred0x017f19582c61479f2fe0b6606300e975c0a8f439102f43eeecc1d0e9b3d84350
withdraw