fromGwei

Converts the specified number from gwei to wei.

Example

import { fromGwei } from "thirdweb/utils";
fromGwei("1");
// 1000000000n
function fromGwei(gwei: string): bigint;

Parameters

The number of gwei to convert.

Type

let gwei: string;

Returns

let returnType: bigint;

The converted value in wei.