/// <summary> /// Initializes a new instance of <see cref="TxOut"/> using given parameters. /// </summary> /// <exception cref="ArgumentOutOfRangeException"/> /// <param name="amount">Payment amount in coin's smallest unit (eg. Satoshi).</param> /// <param name="pkScript">Public key script</param> public TxOut(ulong amount, IPubkeyScript pkScript) { Amount = amount; PubScript = pkScript; }
/// <summary> /// Initializes a new instance of <see cref="Utxo"/> using the given parameters. /// </summary> /// <param name="index">Index of the output</param> /// <param name="amount">Amount value of the output</param> /// <param name="pubScr">Locking script of the output</param> public Utxo(uint index, ulong amount, IPubkeyScript pubScr) { Index = index; Amount = amount; PubScript = pubScr; }