wei

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package wei provides functions for wei unit conversions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToEther

func ToEther(wei *big.Int) *big.Float

ToEther converts wei to ether

func ToEtherFrom

func ToEtherFrom[T convert.NumericType](wei T) *big.Float

ToEtherFrom converts numeric wei values to ether

func ToGwei

func ToGwei(wei *big.Int) *big.Float

ToGwei converts wei to gwei

func ToGweiFrom

func ToGweiFrom[T convert.NumericType](wei T) *big.Float

ToGweiFrom converts numeric wei values to gwei

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL