price

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 3 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) MarshalJSON added in v0.11.0

func (p *Price) MarshalJSON() ([]byte, error)

func (*Price) String added in v0.11.0

func (p *Price) String() string

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