NetworkConfiguration class sealed

Network configuration for MultiversX blockchain. Contains gas limits, gas prices, chain ID, and transaction version. Use factory constructors for mainnet/testnet/devnet. Sealed class ensures all configurations inherit from this base.

Example

// Mainnet
final mainnet = NetworkConfiguration.mainnet();
print(mainnet.chainId.value); // '1'

// Testnet
final testnet = NetworkConfiguration.testnet();
print(testnet.chainId.value); // 'T'

// Devnet
final devnet = NetworkConfiguration.devnet();
print(devnet.chainId.value); // 'D'

// From chain ID
final config = NetworkConfiguration.fromChainId(ChainId('1'));
Implementers

Constructors

NetworkConfiguration.devnet()
Creates NetworkConfiguration for devnet.
factory
NetworkConfiguration.fromChainId(ChainId chainId)
Creates NetworkConfiguration from chain ID.
factory
NetworkConfiguration.mainnet()
Creates NetworkConfiguration for mainnet.
factory
NetworkConfiguration.testnet()
Creates NetworkConfiguration for testnet.
factory

Properties

chainId ChainId
Chain ID.
final
gasPerDataByte int
Gas cost per data byte.
final
gasPriceModifier GasPriceModifier
Gas price modifier
final
hashCode int
The hash code for this object.
no setterinherited
minGasLimit GasLimit
Minimum gas limit.
final
minGasPrice GasPrice
Minimum gas price.
final
minTransactionVersion TransactionVersion
Minimum transaction version.
final
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