network

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestnetAPIEndpoint = "https://api.lux-test.network"
	MainnetAPIEndpoint = "https://api.lux.network"
)

Variables

View Source
var UndefinedNetwork = Network{}

Functions

This section is empty.

Types

type Network

type Network struct {
	Kind     NetworkKind
	ID       uint32
	Endpoint string
}

func MainnetNetwork

func MainnetNetwork() Network

func NetworkFromNetworkID

func NetworkFromNetworkID(networkID uint32) Network

func NewNetwork

func NewNetwork(kind NetworkKind, id uint32, endpoint string) Network

func TestnetNetwork

func TestnetNetwork() Network

type NetworkKind

type NetworkKind int64
const (
	Undefined NetworkKind = iota
	Mainnet
	Testnet
	Devnet
)

Jump to

Keyboard shortcuts

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