# rewards

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

# Index

# func CalculateLifetimeNodeRewards (opens new window)

func CalculateLifetimeNodeRewards(rp *rocketpool.RocketPool, claimerAddress common.Address, intervalSize *big.Int) (*big.Int, error)

Filters through token claim events and sums the total amount claimed by claimerAddress

# func CalculateLifetimeTrustedNodeRewards (opens new window)

func CalculateLifetimeTrustedNodeRewards(rp *rocketpool.RocketPool, claimerAddress common.Address, intervalSize *big.Int) (*big.Int, error)

Filters through token claim events and sums the total amount claimed by claimerAddress

# func ClaimNodeRewards (opens new window)

func ClaimNodeRewards(rp *rocketpool.RocketPool, opts *bind.TransactOpts) (common.Hash, error)

Claim node rewards

# func ClaimTrustedNodeRewards (opens new window)

func ClaimTrustedNodeRewards(rp *rocketpool.RocketPool, opts *bind.TransactOpts) (common.Hash, error)

Claim trusted node rewards

# func EstimateClaimNodeRewardsGas (opens new window)

func EstimateClaimNodeRewardsGas(rp *rocketpool.RocketPool, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of ClaimNodeRewards

# func EstimateClaimTrustedNodeRewardsGas (opens new window)

func EstimateClaimTrustedNodeRewardsGas(rp *rocketpool.RocketPool, opts *bind.TransactOpts) (rocketpool.GasInfo, error)

Estimate the gas of ClaimTrustedNodeRewards

# func GetClaimIntervalTime (opens new window)

func GetClaimIntervalTime(rp *rocketpool.RocketPool, opts *bind.CallOpts) (time.Duration, error)

Get the number of seconds in a claim interval

# func GetClaimIntervalTimeStart (opens new window)

func GetClaimIntervalTimeStart(rp *rocketpool.RocketPool, opts *bind.CallOpts) (time.Time, error)

Get the timestamp that the current rewards interval started

# func GetNodeClaimPossible (opens new window)

func GetNodeClaimPossible(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts) (bool, error)

Get whether a node rewards claimer can claim

# func GetNodeClaimRewardsAmount (opens new window)

func GetNodeClaimRewardsAmount(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts) (*big.Int, error)

Get the total amount of rewards available for a node rewards claimer

# func GetNodeClaimRewardsPerc (opens new window)

func GetNodeClaimRewardsPerc(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts) (float64, error)

Get the percentage of rewards available for a node rewards claimer

# func GetNodeClaimsEnabled (opens new window)

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

Get whether node reward claims are enabled

# func GetNodeOperatorRewardsPercent (opens new window)

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

Get the percent of checkpoint rewards that goes to node operators

# func GetNodeRegistrationTime (opens new window)

func GetNodeRegistrationTime(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts) (time.Time, error)

Get the time that the user registered as a claimer

# func GetTrustedNodeClaimPossible (opens new window)

func GetTrustedNodeClaimPossible(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts) (bool, error)

Get whether a trusted node rewards claimer can claim

# func GetTrustedNodeClaimRewardsAmount (opens new window)

func GetTrustedNodeClaimRewardsAmount(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts) (*big.Int, error)

Get the total amount of rewards available for a trusted node rewards claimer

# func GetTrustedNodeClaimRewardsPerc (opens new window)

func GetTrustedNodeClaimRewardsPerc(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts) (float64, error)

Get the percentage of rewards available for a trusted node rewards claimer

# func GetTrustedNodeClaimsEnabled (opens new window)

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

Get whether trusted node reward claims are enabled

# func GetTrustedNodeOperatorRewardsPercent (opens new window)

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

Get the percent of checkpoint rewards that goes to ODAO members

# func GetTrustedNodeRegistrationTime (opens new window)

func GetTrustedNodeRegistrationTime(rp *rocketpool.RocketPool, claimerAddress common.Address, opts *bind.CallOpts) (time.Time, error)

Get the time that the user registered as a claimer