adjustments
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: "0x007F7A1cb838A872515c8ebd16bE4b14Ef43a222",
method: "function adjustments(uint256) view returns (uint256 change, uint48 lastAdjustment, uint48 timeToAdjusted, bool active)",
params: []
}
],
chainId: 1
})
});
const data = await response.json();