TxInput constructor

TxInput({
  1. OutPoint? outPoint,
  2. String? address,
  3. Int64? amount,
  4. Iterable<TokenAmount>? tokenAmount,
})

Implementation

factory TxInput({
  OutPoint? outPoint,
  $core.String? address,
  $fixnum.Int64? amount,
  $core.Iterable<TokenAmount>? tokenAmount,
}) {
  final _result = create();
  if (outPoint != null) {
    _result.outPoint = outPoint;
  }
  if (address != null) {
    _result.address = address;
  }
  if (amount != null) {
    _result.amount = amount;
  }
  if (tokenAmount != null) {
    _result.tokenAmount.addAll(tokenAmount);
  }
  return _result;
}