addNewStakerAddressMapping
nonpayable
Use this function in your app
const response = await fetch('https://api.thirdweb.com/v1/contracts/write', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-secret-key': '<YOUR_SECRET_KEY>'
},
body: JSON.stringify({
calls: [
{
contractAddress: "0x7D89FF9987E32aF7825261Be1e820f6a07330e0C",
method: "function addNewStakerAddressMapping(uint256 _tokenId, address _walletAddress)",
params: [_tokenId, _walletAddress]
}
],
chainId: 1,
from: "<YOUR_WALLET_ADDRESS>"
})
});
const data = await response.json();