UserEngagementRegistry
PolygonGet Game Id By Name
(getGameIdByName)
view
Use this function in your app
import { readContract } from "thirdweb";
const data = await readContract({ contract, method: "function getGameIdByName(string _gameName) view returns (uint256)", params: [_gameName]})