NameServiceProgram.delete constructor
NameServiceProgram.delete({
- SolAddress nameProgramId = NameServiceProgramConst.programId,
- required SolAddress nameAccountKey,
- required SolAddress nameOwnerKey,
- required SolAddress refundTargetKey,
Delete a name record.
Implementation
factory NameServiceProgram.delete({
SolAddress nameProgramId = NameServiceProgramConst.programId,
/// Name record to be deleted
required SolAddress nameAccountKey,
/// Account owner
required SolAddress nameOwnerKey,
/// Refund account
required SolAddress refundTargetKey,
}) {
return NameServiceProgram(
keys: [
nameAccountKey.toWritable(),
nameOwnerKey.toSigner(),
refundTargetKey.toWritable(),
],
programId: nameProgramId,
layout: const NameServiceDeleteLayout(),
);
}