price

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Price

type Price struct {
	// contains filtered or unexported fields
}

Price represents the value/amount of (w)eth transferred in a transaction.

func NewPrice

func NewPrice(price *big.Int) *Price

func (*Price) Add

func (p *Price) Add(itemPrice *Price) *Price

func (*Price) Ether

func (p *Price) Ether() float64

func (*Price) Gwei

func (p *Price) Gwei() float64

func (*Price) Wei

func (p *Price) Wei() *big.Int

Jump to

Keyboard shortcuts

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