Fooling_Around

Ethereum
etherscanblockscout
Code Snippets

Claim Rewards

(claimRewards)

nonpayable

Connect Wallet

Use this function in your app


import { prepareContractCall, sendTransaction } from "thirdweb"; const transaction = await prepareContractCall({ contract, method: "function claimRewards()", params: [] }); const { transactionHash } = await sendTransaction({ transaction, account });