isCoinbase property

bool get isCoinbase

Check if this is a coinbase transaction

Implementation

bool get isCoinbase {
  return txIn.length == 1 && txIn.first.isCoinbase;
}