filecoin

package
v0.0.0-...-8ed7984 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FilecoinMainnetResetTimestamp       = 1602773040
	FilecoinMainnetStartBlock           = 148888
	FilecoinMainnetEpochDurationSeconds = 30
)

Variables

This section is empty.

Functions

func GetReadablyBalance

func GetReadablyBalance(balance *big.Int) float64

func GetTimestampByHeight

func GetTimestampByHeight(height int64) int64

func StateLookupID

func StateLookupID(url string, minerId string) (string, error)

func StateMinerInfo

func StateMinerInfo(url string, minerId string) (*minerInfo, error)

func StateMinerPower

func StateMinerPower(url string, minerId string) (*minerPower, error)

func WalletBalance

func WalletBalance(url string, minerId string) (string, error)

func WalletVerify

func WalletVerify(url string, addr string, message []byte, signType byte, singData []byte) (bool, error)

Types

type TipSet

type TipSet struct {
	Height int64
}

TipSet lotus struct

func ChainHead

func ChainHead(url string) (*TipSet, error)

Jump to

Keyboard shortcuts

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