Home > @3rdweb/sdk > TokenModule > transfer
Transfer Tokens
Signature:
transfer(to: string, amount: BigNumberish): Promise<TransactionReceipt>;
Parameter | Type | Description |
---|---|---|
to | string | |
amount | BigNumberish |
Returns:
Promise<TransactionReceipt>
Transfer tokens from the connected wallet to another wallet.
// 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;
await module.transfer(toAddress, amount);