Erc20.transfer() method
Transfer Tokens
Example
// Address of the wallet you want to send the tokens to
const toAddress = "0x...";
// The amount of tokens you want to send
const amount = 0.1;
await contract.erc20.transfer(toAddress, amount);
Signature:
transfer(to: string, amount: Amount): Promise<TransactionResult>;
Parameters
Parameter | Type | Description |
---|---|---|
to | string | |
amount | Amount |
Returns:
Promise<TransactionResult>
Remarks
Transfer tokens from the connected wallet to another wallet.