useTransfer()
Transfers tokens from the user’s wallet to another address. Uses Avnu’s paymaster to cover gas fees.Parameters
- encryptKey (string): PIN used to decrypt the private key
- wallet (WalletData): Object with
publicKey
andencryptedPrivateKey
- contractAddress (string): Token contract address
- recipient (string): Destination wallet address
- amount (string | number): Transfer amount
- decimals (number): Token decimals (default: 18)
Example Implementation
Related Actions
- Approve - Required before transferring new token types
- Call Any Contract - For custom transfer logic