APPLIEDFORRANDOMNUMBERGENERATION

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: "0xFaBF45b94110514798bC5a803CA28b2042598C2e", method: "function APPLIEDFORRANDOMNUMBERGENERATION() view returns (bool)", params: [] } ], chainId: 1891 }) }); const data = await response.json();