transfer (AR)
Interact with the contract to transfer AR tokens from one wallet to another.
Parameters
qty <number> - Amount of tokens to transfer
target <string> - Receiver's wallet address
token <string> - The token to be transferred (AR in this case)
(optional) reward: string Custom reward for smartweave transaction
The same function can be used to transfer KOII tokens from one wallet to another, we just need to change the token type in the third parameter.
Example Code
In the below code example, change the qty
& receiverAddress
as per your transfer requirements.
Example Code Output
Returns
Promise <string> - Transaction ID of the transfer transaction.
Last updated