0

I want to implement this feature in a token for fun. Is there a way to make it so that the only way a wallet can receive tokens is by buying them on a dex, or getting them using a smart contract; not by getting sent tokens from another wallet?

0

1 Answer 1

0

It is possible to control sender and recipient by overriding transfer and transferFrom and deny the operation by reverting.

A token that prevents user from transferring them would be pretty useless or a scam.

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.