TransactionRaw constructor

TransactionRaw({
  1. required List<int> refBlockBytes,
  2. BigInt? refBlockNum,
  3. required List<int> refBlockHash,
  4. required BigInt expiration,
  5. List<Authority>? auths,
  6. List<int>? data,
  7. required List<TransactionContract> contract,
  8. List<int>? scripts,
  9. required BigInt timestamp,
  10. BigInt? feeLimit,
})

Create a new TransactionRaw instance with specified parameters.

Implementation

TransactionRaw(
    {required List<int> refBlockBytes,
    this.refBlockNum,
    required List<int> refBlockHash,
    required this.expiration,
    List<Authority>? auths,
    List<int>? data,
    required List<TransactionContract> contract,
    List<int>? scripts,
    required this.timestamp,
    this.feeLimit})
    : refBlockBytes = BytesUtils.toBytes(refBlockBytes, unmodifiable: true),
      refBlockHash = BytesUtils.toBytes(refBlockHash, unmodifiable: true),
      data = BytesUtils.tryToBytes(data, unmodifiable: true),
      scripts = BytesUtils.tryToBytes(scripts, unmodifiable: true),
      auths = auths == null ? null : List.unmodifiable(auths),
      contract = List<TransactionContract>.unmodifiable(contract);