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