conversions

package
v0.0.0-...-171e6b0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EtherToWei

func EtherToWei(eth *big.Float) *big.Int

EtherToWei converts an ETH float amount to wei

func PrivateKeyHexToAddress

func PrivateKeyHexToAddress(privateKeyStr string) (common.Address, error)

PrivateKeyHexToAddress is a handy converter for a string private key to a usable eth address

func PrivateKeyToAddress

func PrivateKeyToAddress(privateKey *ecdsa.PrivateKey) (common.Address, error)

PrivateKeyToAddress is a handy converter for an ecdsa private key to a usable eth address

func WeiToEther

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

WeiToEther converts a wei amount to eth float

Types

This section is empty.

Jump to

Keyboard shortcuts

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