api

package
v1.0.0-rc6dev Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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