Transfers an amount of fungible tokens to a given account. Make sure that your recipient is registered with the FT contract, and that you get the decimals of the transfer right.
As with all new SDK api methods, this call should be wrapped in execute and passed a signing method
ftTransfer takes a single argument of type FtTransferArgs
typeFtTransferArgs= {// The FT contract whose tokens should be transferred. ftContractAddress:string;// The recipient of the FT transfer. receiverId:string;// The amount of FT to transfer in atomic units. Make sure to check the `decimals` field of this FT smart contracts metadata to avoid errors. amount:string;// An optional memo that you wish to send along with the transfer. memo?:string;};
Example usage of FT transfer method in a hypothetical React component: