typescript-sdk

Home > @3rdweb/sdk > TokenModule > transfer

TokenModule.transfer() method

Transfer Tokens

Signature:

transfer(to: string, amount: BigNumberish): Promise<TransactionReceipt>;

Parameters

Parameter Type Description
to string  
amount BigNumberish  

Returns:

Promise<TransactionReceipt>

Remarks

Transfer tokens from the connected wallet to another wallet.

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;

await module.transfer(toAddress, amount);