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