TransactionRaw.deserialize constructor

TransactionRaw.deserialize(
  1. List<int> bytes
)

Implementation

factory TransactionRaw.deserialize(List<int> bytes) {
  final decode = TronProtocolBufferImpl.decode(bytes);
  return TransactionRaw(
      refBlockBytes: decode.getField(1),
      refBlockNum: decode.getField(3),
      refBlockHash: decode.getField(4),
      expiration: decode.getField(8),
      auths: decode
          .getFields<List<int>>(9)
          .map((e) => Authority.deserialize(e))
          .toList(),
      data: decode.getField(10),
      contract: decode
          .getFields<List<int>>(11)
          .map((e) => TransactionContract.deserialize(e))
          .toList(),
      scripts: decode.getField(12),
      timestamp: decode.getField(14),
      feeLimit: decode.getField(18));
}