AccountBlockTemplate constructor
AccountBlockTemplate({
- required int blockType,
- dynamic toAddress,
- dynamic amount,
- dynamic tokenStandard,
- dynamic fromBlockHash,
- 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 = [];