Enum Class BlockchainNetwork
- All Implemented Interfaces:
Serializable
,Comparable<BlockchainNetwork>
,Constable
Enumerates the systems supported blockchains.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBinance Smart Chain Network.Binance Smart Chain Test Network.The Ethereum Main Net.The Ethereum Test Net.The Flow blockchain network.The Flow blockchain test network.The NEAR Network.The NEAR Test Network.Neo Blockchain Network.Neo Blockchain Test Network.The Polygon Main Net.The Polygon Test Net.The Solana Network.The Solana Test Network. -
Method Summary
Modifier and TypeMethodDescriptionapi()
Gets the network's protocol.iocName()
The IoC Name for anything related to the blockchain network.urlsName()
The name of the URLs configured for the network.static BlockchainNetwork
Returns the enum constant of this class with the specified name.static BlockchainNetwork[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEO
Neo Blockchain Network. Uses theBlockchainApi.NEO
API. -
NEO_TEST
Neo Blockchain Test Network. Uses theBlockchainApi.NEO
API. -
ETHEREUM
The Ethereum Main Net. Uses theBlockchainApi.ETHEREUM
API. -
ETHEREUM_TEST
The Ethereum Test Net. Uses theBlockchainApi.ETHEREUM
API. -
BSC
Binance Smart Chain Network. Uses theBlockchainApi.ETHEREUM
API. -
BSC_TEST
Binance Smart Chain Test Network. Uses theBlockchainApi.ETHEREUM
API. -
POLYGON
The Polygon Main Net. Uses theBlockchainApi.ETHEREUM
API. -
POLYGON_TEST
The Polygon Test Net. Uses theBlockchainApi.ETHEREUM
API. -
SOLANA
The Solana Network. Uses theBlockchainApi.SOLANA
API. -
SOLANA_TEST
The Solana Test Network. Uses theBlockchainApi.SOLANA
API. -
FLOW
The Flow blockchain network. -
FLOW_TEST
The Flow blockchain test network. -
NEAR
The NEAR Network. Uses theBlockchainApi.NEAR
API. -
NEAR_TEST
The NEAR Test Network. Uses theBlockchainApi.NEAR
API.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
iocName
The IoC Name for anything related to the blockchain network. Used to dynamically resolve components in the system for anything. This also serves as the base IoC name for external configuration. It always carries the same format.- Returns:
- the urls
-
urlsName
The name of the URLs configured for the network.- Returns:
- the urls
-
api
Gets the network's protocol.- Returns:
- the network's protocol.
-