BALLOT_TYPEHASH
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: "0xE6e8031c11e8ED9f054BeAEE9a7Ddc98233e4b96",
method: "function BALLOT_TYPEHASH() view returns (bytes32)",
params: []
}
],
chainId: 1
})
});
const data = await response.json();