BitcoinCashNetwork enum
Enum representing different Bitcoin Cash networks, implementing the BasedUtxoNetwork
abstract class.
- Inheritance
- Implemented types
- Available extensions
Values
- mainnet → const BitcoinCashNetwork
-
Mainnet configuration with associated
CoinConf
.const BitcoinCashNetwork(CoinsConf.bitcoinCashMainNet)
- testnet → const BitcoinCashNetwork
-
Testnet configuration with associated
CoinConf
.const BitcoinCashNetwork(CoinsConf.bitcoinCashTestNet)
Properties
- conf → CoinConf
-
Overrides the
conf
property fromBasedUtxoNetwork
with the associatedCoinConf
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isMainnet → bool
-
Checks if the current network is the mainnet.
no setter
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter -
p2pkhNetVer
→ List<
int> -
Retrieves the Pay-to-Public-Key-Hash (P2PKH) version bytes from the associated
CoinConf
.no setteroverride -
p2shNetVer
→ List<
int> -
Retrieves the Pay-to-Script-Hash (P2SH) version bytes from the associated
CoinConf
.no setteroverride - p2wpkhHrp → String
-
Retrieves the Human-Readable Part (HRP) for Pay-to-Witness-Public-Key-Hash (P2WPKH) addresses
from the associated
CoinConf
.no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supportedAddress
→ List<
BitcoinAddressType> -
final
-
wifNetVer
→ List<
int> -
Retrieves the Wallet Import Format (WIF) version bytes from the associated
CoinConf
.no setteroverride
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
Constants
-
values
→ const List<
BitcoinCashNetwork> - A constant List of the values in this enum, in order of their declaration.