$1000 Rewards

Polygon
polygonscandexguru
Code Snippets

balanceOf

view

Use this function in your app

const response = await fetch('https://api.thirdweb.com/v1/contracts/read', { method: 'POST', headers: { 'Content-Type': 'application/json', 'x-secret-key': '<YOUR_SECRET_KEY>' }, body: JSON.stringify({ calls: [ { contractAddress: "0x70901f5982FE1573CaE581a0b7F4e242a9FEE8b0", method: "function balanceOf(address _owner, uint256 _id) view returns (uint256)", params: [_owner, _id] } ], chainId: 137 }) }); const data = await response.json();