toEther

Converts a value from wei to ether.

Example

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

Parameters

Returns

The converted value in ether.