Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetSmartnodeContext ¶
func SetSmartnodeContext(c *cli.Context, sn *SmartNodeContext)
Add the Smart Node context into a CLI context
Types ¶
type SmartNodeContext ¶
type SmartNodeContext struct {
// The path to the configuration file
ConfigPath string
// True if this CLI should be run in Native Mode
NativeMode bool
// The max fee for transactions
MaxFee float64
// The max priority fee for transactions
MaxPriorityFee float64
// The nonce for the first transaction, if set
Nonce *big.Int
// True if debug mode is enabled
DebugEnabled bool
// True if this is a secure session
SecureSession bool
// The address and URL of the API server
ApiUrl *url.URL
// The HTTP trace file if tracing is enabled
HttpTraceFile *os.File
}
Context for global settings
func GetSmartNodeContext ¶
func GetSmartNodeContext(c *cli.Context) *SmartNodeContext
Get the Smart Node context from a CLI context
Click to show internal directories.
Click to hide internal directories.