toEther

Converts a value from wei to ether.

Example

import { toEther } from "thirdweb/utils";
toEther(1000000000000000000n);
// '1'
function toEther(wei: bigint): string;

Parameters

The value in wei to be converted.

Type

let wei: bigint;

Returns

let returnType: string;

The converted value in ether.