toWei

Converts the specified number of tokens to Wei.

Example

import { toWei } from "thirdweb/utils";
toWei("1");
// 1000000000000000000n

Parameters

Returns

The converted value in Wei.