Returns the token program that owns mint: legacy SPL Token or Token-2022.
Genesis V2 launches may use a Token-2022 base mint. Pass the result as
baseTokenProgram to the generated instruction builders; their associated
token account defaults are derived with that program, so Token-2022 ATAs
resolve automatically. Quote mints are always legacy SPL Token.
Throws if the account does not exist or is not owned by either token
program. Only the owner is checked, so the account is assumed to be a mint.
Returns the token program that owns
mint: legacy SPL Token or Token-2022.Genesis V2 launches may use a Token-2022 base mint. Pass the result as
baseTokenProgramto the generated instruction builders; their associated token account defaults are derived with that program, so Token-2022 ATAs resolve automatically. Quote mints are always legacy SPL Token.Throws if the account does not exist or is not owned by either token program. Only the owner is checked, so the account is assumed to be a mint.