authorizeMint
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: "0xBc5FbB45A2bbB64d9B2EeBFa327284a35d5C5865",
method: "function authorizeMint(address minter, address to, bytes signedAuthorization) view returns (bool)",
params: [minter, to, signedAuthorization]
}
],
chainId: 1
})
});
const data = await response.json();