AccountBlockTemplate constructor

AccountBlockTemplate({
  1. required int blockType,
  2. dynamic toAddress,
  3. dynamic amount,
  4. dynamic tokenStandard,
  5. dynamic fromBlockHash,
  6. dynamic data,
})

Implementation

AccountBlockTemplate(
    {required this.blockType,
    toAddress,
    amount,
    tokenStandard,
    fromBlockHash,
    data})
    : version = 1,
      chainIdentifier = netId,
      hash = emptyHash,
      previousHash = emptyHash,
      height = 0,
      momentumAcknowledged = emptyHashHeight,
      address = emptyAddress,
      toAddress = toAddress ?? emptyAddress,
      amount = amount ?? 0,
      tokenStandard =
          tokenStandard ?? TokenStandard.parse(emptyTokenStandard),
      fromBlockHash = fromBlockHash ?? emptyHash,
      data = data ?? [],
      fusedPlasma = 0,
      difficulty = 0,
      nonce = '',
      publicKey = [],
      signature = [];