Package org.bitcoinj.params
Class Networks
- java.lang.Object
-
- org.bitcoinj.params.Networks
-
public class Networks extends java.lang.Object
Utility class that holds all the registeredNetworkParameters
types used for address auto discovery. By default onlyMainNetParams
andTestNet3Params
are used. If you want to useRegTestParams
orUnitTestParams
useregister
and thenunregister
theTestNet3Params
as they don't have their own Base58 version/type code (although forSegwitAddress
the human readable parts for RegTest and TestNet are different.)
-
-
Constructor Summary
Constructors Constructor Description Networks()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Set<NetworkParameters>
get()
static void
register(java.util.Collection<NetworkParameters> networks)
Register a collection of additional network types by adding them to theSet
.static void
register(NetworkParameters network)
Register a single network type by adding it to theSet
.static void
unregister(NetworkParameters network)
Unregister a network type.
-
-
-
Method Detail
-
get
public static java.util.Set<NetworkParameters> get()
-
register
public static void register(NetworkParameters network)
Register a single network type by adding it to theSet
.- Parameters:
network
- Network to register/add.
-
register
public static void register(java.util.Collection<NetworkParameters> networks)
Register a collection of additional network types by adding them to theSet
.- Parameters:
networks
- Networks to register/add.
-
unregister
public static void unregister(NetworkParameters network)
Unregister a network type.- Parameters:
network
- Network type to unregister/remove.
-
-