serialized property

Uint8List get serialized
override

Used for Signing the transaction

Implementation

Uint8List get serialized {
  if (hasSignature == false) {
    throw Exception("Transaction is not signed, cannot serialize");
  }

  return encodeRLP(
    RLPList(
      [
        RLPBigInt(nonce),
        RLPBigInt(gasPrice),
        RLPBigInt(gasLimit),
        RLPString(to),
        RLPBigInt(value),
        RLPBytes(data),
        RLPInt(v),
        RLPBigInt(r),
        RLPBigInt(s),
      ],
    ),
  );
}