Mint ERC721 NFT tokens where TokenID is string instead of uint

Hi,

I want to mint NFTs using ERC721 token standard. But point is I wish TokenID to be alphanumeric instead of integer.

Can anyone guide how can it be achieved.

Thanks & Regards,
Ishan Agrawal

#support #nft #erc721

The standard library expects tokenID to be uint256. You can encode alphanumeric to uint256 and then pass into the _mint()

2 Likes

Applications like OpenSea will show it as a number though. There is no way around this. The id is defined as a number in EIP-721.

1 Like