Sell only 1 time NFT

Is it possible to make sell only 1 time NFT.

The owner can mint the NFT and sell it from Opensea.
But once buyers buy the NFT, the buyers cannot resell it. The NFT can be transferred from owner to buyer only one time.

Is it possible to make such NFT by Solidity?

it is possible to do that if you write your custom code in solidity for that nft contract

1 Like

Hi Thanks for the reply.

Yeah I guess so. Are there any sample codes?

I don’t have a sample code.

I’m using ERC1155. So maybe I need to overwrite _beforeTokenTransfer

Should it overwrite?

it may work, you can try it and test it

1 Like