2
votes
how to transfer minter's all authority from wallet to contract program?
If you created a token using the CLI, you can assign a PDA/new address as the mint account's authority (freeze and mint).
In Typescript using the @solana/spl-token package
// transfer mint and freeze ...
1
vote
Token2022 TransferHook AccountData seed error AccountNotFound
ExtraAccountMeta seeds can only reference accounts in the array before it. So no self-referencing.
add_to_cpi_instruction is used to construct the CPI from Token2022 to the Transfer Hook program.
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
token-2022 × 186spl-token × 69
solana-program × 32
spl-token-program × 25
anchor × 23
token-extensions × 20
token × 18
transfer × 15
metadata × 13
web3.js × 12
anchor-spl × 11
rust × 10
associated-token-account × 10
transfer-checked × 10
metaplex × 7
solana-cli × 7
anchor-lang × 7
spl × 6
spl-token-cli × 6
spl-associated-token-account × 6
mpl-token-metadata × 6
nft × 5
token-metadata-extension × 5
javascript × 4
anchor-test × 4