public BlockchainNetworkConnection(BlockchainNetworkType networkType, string apiHost = "localhost", int apiPort = 3000, HttpProtocol apiProtocol = HttpProtocol.Http) { CheckParameter(apiHost != null, "apiHost is required"); CheckParameter(apiPort > 0, "apiPort must be non-negative int"); NetworkType = networkType.GetNetworkType(); ApiHost = apiHost; ApiPort = apiPort; HttpProtocol = apiProtocol; RestApiUrl = new UriBuilder(HttpProtocol.GetProtocol(), apiHost, apiPort).Uri.AbsoluteUri.TrimEnd('/'); FeeCalculationStrategy = FeeCalculationStrategyType.ZERO; }
public FeeCalculationStrategy(FeeCalculationStrategyType type = FeeCalculationStrategyType.ZERO) { FeeCalculationStrategyType = type; }
public BlockchainNetworkConnection SetFeeCalculationStrategyType(FeeCalculationStrategyType feeCalculationStrategyType) { FeeCalculationStrategy = feeCalculationStrategyType; return(this); }
public TransactionBuilder(EntityType entityType, int version) { EntityType = entityType; Version = version; FeeCalculationStrategyType = FeeCalculationStrategyType.LOW; }
public B SetFeeCalculationStrategy(FeeCalculationStrategyType feeCalculationStrategyType) { FeeCalculationStrategyType = feeCalculationStrategyType; return(Self()); }