api

package
v1.0.0-pre5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEventLogInterval added in v1.0.0

func GetEventLogInterval(cfg config.RocketPoolConfig) (*big.Int, error)

Gets the event log interval supported by the selected eth1 client

func PrintAndCheckGasInfo added in v1.0.0

func PrintAndCheckGasInfo(gasInfo rocketpool.GasInfo, checkThreshold bool, gasThreshold float64, logger log.ColorLogger) bool

Print the gas price and cost of a TX

func PrintAndWaitForTransaction added in v1.0.0

func PrintAndWaitForTransaction(config config.RocketPoolConfig, hash common.Hash, ec *ethclient.Client, logger log.ColorLogger) error

Print a TX's details to the logger and waits for it to be mined.

func PrintErrorResponse

func PrintErrorResponse(err error)

Print an API error response

func PrintResponse

func PrintResponse(response interface{}, responseError error)

Print an API response response must be a pointer to a struct type with Error and Status string fields

Types

This section is empty.

Jump to

Keyboard shortcuts

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