int addOutput(Uint8List scriptPubKey, int value) { outs.add(new Output(script: scriptPubKey, value: value)); return outs.length - 1; }