UnspentTransaction constructor

UnspentTransaction({
  1. OutPoint? outPoint,
  2. List<int>? script,
  3. Int64? amount,
})

Implementation

factory UnspentTransaction({
  OutPoint? outPoint,
  $core.List<$core.int>? script,
  $fixnum.Int64? amount,
}) {
  final _result = create();
  if (outPoint != null) {
    _result.outPoint = outPoint;
  }
  if (script != null) {
    _result.script = script;
  }
  if (amount != null) {
    _result.amount = amount;
  }
  return _result;
}