typescript-sdk

Home > @3rdweb/sdk > TokenModule > mintTo

TokenModule.mintTo() method

Mint Tokens

Signature:

mintTo(to: string, amount: BigNumberish): Promise<void>;

Parameters

Parameter Type Description
to string  
amount BigNumberish  

Returns:

Promise<void>

Remarks

Mint tokens to a specified address

Example

// Address of the wallet you want to mint the tokens to
const toAddress = "";

// The amount of this token you want to mint
const amount = ethers.utils.parseEther("1.5");

await module.mintTo(toAddress, amount);