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