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