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