Skip to main content

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.token.transfer(toAddress, amount);

Signature:

transfer(to: string, amount: Amount): Promise<TransactionResult>;

Parameters

ParameterTypeDescription
tostring
amountAmount

Returns:

Promise<TransactionResult>

Remarks

Transfer tokens from the connected wallet to another wallet.