Grants permission to a smart contract to spend tokens from the user wallet. Required before staking or other delegated actions.
encryptKey
(string): User’s decryption PINwallet
(WalletData): Wallet public/private key paircontractAddress
(string): Token contract to approvespender
(string): Contract address to authorizeamount
(string | number): Maximum spend allowancedecimals
(number): Token decimals (default: 18)bearerToken
(string): Bearer token for authenticationapproveAsync
: Function to trigger token approvalapproveData
: Transaction hash of the approvalisLoading
: Boolean indicating if the operation is in progresserror
: Any error that occurred during the process