network

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type int

Type is a type used for networks enumeration.

const (
	Unknown Type = iota
	Mainnet
	Testnet
	Developer
)

Network types enumeration.

func (Type) Bitcoin

func (n Type) Bitcoin() bitcoin.Network

Bitcoin returns Bitcoin network corresponding to the given client network.

func (Type) Ethereum

func (n Type) Ethereum() ethereum.Network

Ethereum returns Ethereum network corresponding to the given client network.

func (Type) String

func (n Type) String() string

Jump to

Keyboard shortcuts

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