eth2

package
v1.20.1-dev3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const MinipoolBalanceDetailsBatchSize = 20

Settings

Variables

This section is empty.

Functions

func EpochAt

func EpochAt(config beacon.Eth2Config, time uint64) uint64

Get an eth2 epoch number by time

Types

type MinipoolBalanceDetails added in v1.20.1

type MinipoolBalanceDetails struct {
	IsStaking    bool
	NodeDeposit  *big.Int
	NodeBalance  *big.Int
	TotalBalance *big.Int
}

Beacon chain balance info for a minipool

func GetBeaconBalances added in v1.2.2

func GetBeaconBalances(rp *rocketpool.RocketPool, bc beacon.Client, addresses []common.Address, beaconHead beacon.BeaconHead, opts *bind.CallOpts) ([]MinipoolBalanceDetails, error)

Get the balances of the minipools on the beacon chain

func GetBeaconBalancesFromState added in v1.9.0

func GetBeaconBalancesFromState(rp *rocketpool.RocketPool, mpds []*rpstate.NativeMinipoolDetails, state *state.NetworkState, beaconHead beacon.BeaconHead, opts *bind.CallOpts) ([]MinipoolBalanceDetails, error)

Get the balances of the minipools on the beacon chain

Jump to

Keyboard shortcuts

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