TransferDeployItem.transfer constructor

TransferDeployItem.transfer(
  1. BigInt amount,
  2. AccountHashKey targetAccount, [
  3. int? id
])

Implementation

TransferDeployItem.transfer(BigInt amount, AccountHashKey targetAccount, [int? id]) : super() {
  args = [
    NamedArg(
      'amount',
      ClValue.u512(amount),
    ),
    NamedArg(
      'target',
      ClValue.byteArray(targetAccount.headlessBytes),
    ),
    NamedArg(
      'id',
      id == null ? ClValue.optionNone(ClTypeDescriptor(ClType.u64)) : ClValue.option(ClValue.u64(id)),
    ),
  ];
}