useApprove()
Grants permission to a smart contract to spend tokens from the user’s wallet. Required before staking or other delegated actions.Parameters
- encryptKey (string): User’s decryption PIN
- wallet (WalletData): Wallet public/private key pair
- contractAddress (string): Token contract to approve
- spender (string): Contract address to authorize
- amount (string | number): Maximum spend allowance
- decimals (number): Token decimals (default: 18)