thirdweb

ERC721Staking

Polygon
polygonscandexguru
Code Snippets

Available Rewards

(availableRewards)

view

_staker


Use this function in your app


import { readContract } from "thirdweb"; const data = await readContract({ contract, method: "function availableRewards(address _staker) view returns (uint256)", params: [_staker] })