send_mail
nonpayable
Use this function in your app
const response = await fetch('https://api.thirdweb.com/v1/contracts/write', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-secret-key': '<YOUR_SECRET_KEY>'
},
body: JSON.stringify({
calls: [
{
contractAddress: "0x47fbe95e981C0Df9737B6971B451fB15fdC989d9",
method: "function send_mail(string to, string path)",
params: [to, path]
}
],
chainId: 534352,
from: "<YOUR_WALLET_ADDRESS>"
})
});
const data = await response.json();