isCoinbase property

bool get isCoinbase

Check if this is a coinbase input

Implementation

bool get isCoinbase {
  return previousOutPointIndex == 0xffffffff &&
         previousOutPointHash == Hash.zero();
}