AddressLookupTableProgram.closeLookupTable constructor
AddressLookupTableProgram.closeLookupTable({
- required SolAddress authority,
- required SolAddress lookupTable,
- required SolAddress recipient,
Creates an instruction to close a lookup table.
Implementation
factory AddressLookupTableProgram.closeLookupTable({
/// Account which is the current authority.
required SolAddress authority,
/// Address lookup table account to close.
required SolAddress lookupTable,
/// Recipient of closed account lamports.
required SolAddress recipient,
}) {
return AddressLookupTableProgram(
layout: AddressLookupCloseLookupTableLayout(),
keys: [
lookupTable.toWritable(),
authority.toSigner(),
recipient.toWritable(),
],
programId: AddressLookupTableProgramConst.programId,
);
}