Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
LogLevel string
DataDir string
Network *NetworkConfig
}
Config represents the SDK configuration
type NetworkConfig ¶
type NetworkConfig struct {
NetrunnerEndpoint string
NodeEndpoint string
NetworkID uint32
APIEndpoint string
P2PPort int
HTTPPort int
StakingPort int
LogLevel string
DataDir string
DBType string
GenesisFile string
StakeAmount uint64
}
NetworkConfig represents network configuration
func DefaultNetworkConfig ¶
func DefaultNetworkConfig() *NetworkConfig
DefaultNetworkConfig returns default network configuration
func (*NetworkConfig) ChainID ¶
func (nc *NetworkConfig) ChainID() *big.Int
ChainID returns a big.Int representation of the NetworkID
Click to show internal directories.
Click to hide internal directories.