Networks class
Utility class used to inject strong typing into the Address class' representation of network and address types.
NOTE: The network type and address type fields are overloaded in the way that wallet's interpret them. This is not consensus-level stuff. Used only in Address representations by wallets.
MAINNET
-------
Address Header = 0;
P2SH Header = 5;
TESTNET / REG_TESTNET / SCALING_TESTNET
----------------------------------------
Address Header = 111;
P2SH Header = 196;
Constructors
- Networks()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getAddressType(
int version) → AddressType - Retrieve the address type corresponding to a specific version.
-
getNetworkAddressType(
int versionByte) → NetworkAddressType - Given an address' version byte this method retrieves the corresponding network type.
-
getNetworkTypes(
int version) → List< NetworkType> - Retrieve the list of network types corresponding to the version byte
-
getNetworkVersion(
NetworkAddressType type) → int - This method retrieves the version byte corresponding to the NetworkAddressType