gill

getCloseAccountInstruction

function getCloseAccountInstruction<TAccountAccount, TAccountDestination, TAccountOwner, TProgramAddress>(input, config?): CloseAccountInstruction<TProgramAddress, TAccountAccount, TAccountDestination, Address<TAccountOwner> | TransactionSigner<TAccountOwner> extends TransactionSigner<TAccountOwner> ? IAccountMeta<TAccountOwner> & {
  role: READONLY_SIGNER;
} & IAccountSignerMeta<TAccountOwner, TransactionSigner<TAccountOwner>> : TAccountOwner>;

Type Parameters

Type ParameterDefault type
TAccountAccount extends string-
TAccountDestination extends string-
TAccountOwner extends string-
TProgramAddress extends AddressAddress<"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb">

Parameters

ParameterType
inputCloseAccountInput<TAccountAccount, TAccountDestination, TAccountOwner>
config?{ programAddress?: TProgramAddress; }
config.programAddress?TProgramAddress

Returns

CloseAccountInstruction<TProgramAddress, TAccountAccount, TAccountDestination, Address<TAccountOwner> | TransactionSigner<TAccountOwner> extends TransactionSigner<TAccountOwner> ? IAccountMeta<TAccountOwner> & { role: READONLY_SIGNER; } & IAccountSignerMeta<TAccountOwner, TransactionSigner<TAccountOwner>> : TAccountOwner>

On this page