public IotaApi(IriApi iriApi, INonceSeeker nonceSeeker) { if (iriApi == null) { throw new ArgumentNullException(nameof(iriApi)); } if (nonceSeeker == null) { throw new ArgumentNullException(nameof(nonceSeeker)); } this.iriApi = iriApi; this.MaxAddressIndex = 500; this.Depth = 9; this.RebroadcastMaximumPowTime = 20000; this.NonceSeeker = nonceSeeker; }
public IotaApi(string url, INonceSeeker nonceSeeker, int minWeightMagnitude = 14) : this(new IriApi(url) { MinWeightMagnitude = minWeightMagnitude }, nonceSeeker) { }