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