sign method

RawEVMTransactionType0 sign({
  1. required Uint8List privateKey,
  2. required int chainId,
})

Implementation

RawEVMTransactionType0 sign({
  required Uint8List privateKey,
  required int chainId,
}) {
  final signature = Signature.createSignature(
    serializedUnsigned(chainId),
    privateKey,
    txType: TransactionType.Legacy,
    chainId: chainId,
  );

  return addSignature(signature);
}