serializedUnsigned method

Uint8List serializedUnsigned([
  1. int? chainId
])

Implementation

Uint8List serializedUnsigned([int? chainId]) {
  return encodeRLP(
    RLPList(
      [
        RLPBigInt(nonce),
        RLPBigInt(gasPrice),
        RLPBigInt(gasLimit),
        RLPString(to),
        RLPBigInt(value),
        RLPBytes(data),
        if (chainId != null) ...[
          RLPInt(chainId),
          RLPNull(),
          RLPNull(),
        ]
      ],
    ),
  );
}