UserEngagementRegistry

Polygon
polygonscandexguru

Get Game Id By Name

(getGameIdByName)

view


_gameName


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]
})