Get TokenId From Name

given a name, how do I get the TokenId?

 function nameToId(string calldata name) public pure returns (uint256)

This will not revert. This call converts the name to lower case and generates a numeric representation by returning:

(uint256(keccak256(abi.encodePacked(_lowerName))));

Last updated