# network

import "github.com/rocket-pool/rocketpool-go/network"

# Index

# func EstimateSubmitBalancesGas (opens new window)

func EstimateSubmitBalancesGas(rp *rocketpool.RocketPool, block uint64, totalEth, stakingEth, rethSupply *big.Int, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of SubmitBalances

# func EstimateSubmitPricesGas (opens new window)

func EstimateSubmitPricesGas(rp *rocketpool.RocketPool, block uint64, rplPrice *big.Int, effectiveRplStake *big.Int, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of SubmitPrices

# func GetBalancesBlock (opens new window)

func GetBalancesBlock(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)

Get the block number which network balances are current for

# func GetETHUtilizationRate (opens new window)

func GetETHUtilizationRate(rp *rocketpool.RocketPool, opts *bind.CallOpts) (float64, error)

Get the current network ETH utilization rate

# func GetLatestReportableBalancesBlock (opens new window)

func GetLatestReportableBalancesBlock(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)

Returns the latest block number that oracles should be reporting balances for

# func GetLatestReportablePricesBlock (opens new window)

func GetLatestReportablePricesBlock(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)

Returns the latest block number that oracles should be reporting prices for

# func GetNodeDemand (opens new window)

func GetNodeDemand(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)

Get the current network node demand in ETH

# func GetNodeFee (opens new window)

func GetNodeFee(rp *rocketpool.RocketPool, opts *bind.CallOpts) (float64, error)

Get the current network node commission rate

# func GetNodeFeeByDemand (opens new window)

func GetNodeFeeByDemand(rp *rocketpool.RocketPool, nodeDemand *big.Int, opts *bind.CallOpts) (float64, error)

Get the network node fee for a node demand value

# func GetPricesBlock (opens new window)

func GetPricesBlock(rp *rocketpool.RocketPool, opts *bind.CallOpts) (uint64, error)

Get the block number which network prices are current for

# func GetRPLPrice (opens new window)

func GetRPLPrice(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)

Get the current network RPL price in ETH

# func GetStakingETHBalance (opens new window)

func GetStakingETHBalance(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)

Get the current network staking ETH balance

# func GetTotalETHBalance (opens new window)

func GetTotalETHBalance(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)

Get the current network total ETH balance

# func GetTotalRETHSupply (opens new window)

func GetTotalRETHSupply(rp *rocketpool.RocketPool, opts *bind.CallOpts) (*big.Int, error)

Get the current network total rETH supply

# func InConsensus (opens new window)

func InConsensus(rp *rocketpool.RocketPool, opts *bind.CallOpts) (bool, error)

Check if the network is currently in consensus about the RPL price, or if it is still reaching consensus

# func SubmitBalances (opens new window)

func SubmitBalances(rp *rocketpool.RocketPool, block uint64, totalEth, stakingEth, rethSupply *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Submit network balances for an epoch

# func SubmitPrices (opens new window)

func SubmitPrices(rp *rocketpool.RocketPool, block uint64, rplPrice, effectiveRplStake *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Submit network prices and total effective RPL stake for an epoch