TransferDeployItem.transfer constructor
TransferDeployItem.transfer(
- BigInt amount,
- AccountHashKey targetAccount, [
- 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)),
),
];
}