1

Hey is it possible to create a token2022, and burn x% of tokens on every transfer? Something like transfer tax, but burning the tokens. Also i got second question, how can i deploy token on-chain, cannot find any good guide for developing and publishing such program (token2022). Thank you.

(I would like to use JS)

2 Answers 2

1

Either build you own token extension, of just use transfer tax, and manually collect the transfer tax from user accounts at some interval of time and perform burn operation.

1
  • i can't even find any token sample code, could you give me any source? Also i read about transfer hook, functionality or smth - i could just burn tokens in it.
    – youwish
    Commented May 5 at 1:36
1

Yes, you can create a token with a burning mechanism in JavaScript:

Develop a token contract with a burn function that deducts a percentage of tokens from the sender's balance and reduces the total supply.

Modify the transfer function to include the burning mechanism.

Test your contract thoroughly.

Deploy your contract using tools like Anchor for Solana.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.