Documentation
¶
Index ¶
- Variables
- func GetGasPerBlock(blocks []rpctypes.PolyBlock) []float64
- func GetMeanBlockTime(blocks []rpctypes.PolyBlock) float64
- func GetMeanGasPricePerBlock(blocks []rpctypes.PolyBlock) []float64
- func GetSimpleBlockFields(block rpctypes.PolyBlock) []string
- func GetSimpleBlockRecords(blocks []rpctypes.PolyBlock) ([]string, string)
- func GetSimpleBlockTxFields(block rpctypes.PolyBlock, chainID *big.Int) []string
- func GetSimpleTxFields(tx rpctypes.PolyTransaction, chainID, baseFee *big.Int) []string
- func GetSizePerBlock(blocks []rpctypes.PolyBlock) []float64
- func GetTxsPerBlock(blocks []rpctypes.PolyBlock) []float64
- func GetUnclesPerBlock(blocks []rpctypes.PolyBlock) []float64
- func RawDataToASCII(data []byte) string
- type SortableBlocks
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UnitWei = big.NewInt(1) // | 1 | 1 | wei | Wei UnitBabbage = new(big.Int).Mul(UnitWei, big.NewInt(1000)) // | 1,000 | 10^3^ | Babbage | Kilowei or femtoether UnitLovelace = new(big.Int).Mul(UnitBabbage, big.NewInt(1000)) // | 1,000,000 | 10^6^ | Lovelace | Megawei or picoether UnitShannon = new(big.Int).Mul(UnitLovelace, big.NewInt(1000)) // | 1,000,000,000 | 10^9^ | Shannon | Gigawei or nanoether UnitSzabo = new(big.Int).Mul(UnitShannon, big.NewInt(1000)) // | 1,000,000,000,000 | 10^12^ | Szabo | Microether or micro UnitFinney = new(big.Int).Mul(UnitSzabo, big.NewInt(1000)) // | 1,000,000,000,000,000 | 10^15^ | Finney | Milliether or milli UnitEther = new(big.Int).Mul(UnitFinney, big.NewInt(1000)) // | 1,000,000,000,000,000,000 | 10^18^ | Ether | Ether UnitGrand = new(big.Int).Mul(UnitEther, big.NewInt(1000)) // | 1,000,000,000,000,000,000,000 | 10^21^ | Grand | Kiloether UnitMegaether = new(big.Int).Mul(UnitGrand, big.NewInt(1000)) // | 1,000,000,000,000,000,000,000,000 | 10^24^ | | Megaether )
Functions ¶
func GetGasPerBlock ¶
func GetMeanBlockTime ¶
func GetMeanGasPricePerBlock ¶
func GetSimpleBlockFields ¶ added in v0.1.1
func GetSimpleBlockRecords ¶
func GetSimpleBlockTxFields ¶ added in v0.1.1
func GetSimpleTxFields ¶ added in v0.1.1
func GetSimpleTxFields(tx rpctypes.PolyTransaction, chainID, baseFee *big.Int) []string
func GetSizePerBlock ¶
func GetTxsPerBlock ¶
func GetUnclesPerBlock ¶
func RawDataToASCII ¶ added in v0.1.1
Types ¶
type SortableBlocks ¶ added in v0.1.1
func (SortableBlocks) Len ¶ added in v0.1.1
func (a SortableBlocks) Len() int
func (SortableBlocks) Less ¶ added in v0.1.1
func (a SortableBlocks) Less(i, j int) bool
func (SortableBlocks) Swap ¶ added in v0.1.1
func (a SortableBlocks) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.