Optionaldestination?: AddressOptionalkeys?: ConfidentialKeypairsThe owner's keys from deriveConfidentialKeys; skips the message signature.
Owner of the token account: signs the close, and the key-derivation message unless keys is given.
Pays the transaction fee.
OptionalprogramAddress?: AddressToken program. Default: Token-2022.
RPC client, e.g. createSolanaRpc(url).
Used to confirm the transaction.
Optionaltoken?: AddressToken account to close (defaults to the owner's ATA).
Where the rent deposit goes (defaults to the owner).