RawTransaction.receive constructor

RawTransaction.receive({
  1. required Address address,
  2. required Hash sendBlockHash,
  3. BigInt? height,
  4. Hash? previousHash,
  5. Uint8List? data,
  6. Uint8List? nonce,
  7. BigInt? difficulty,
})

Implementation

factory RawTransaction.receive({
  required Address address,
  required Hash sendBlockHash,
  BigInt? height,
  Hash? previousHash,
  Uint8List? data,
  Uint8List? nonce,
  BigInt? difficulty,
}) {
  return RawTransaction(
    type: BlockType.reponse,
    address: address,
    height: height,
    previousHash: previousHash,
    sendBlockHash: sendBlockHash,
    data: data,
    nonce: nonce,
    difficulty: difficulty,
  );
}