MessageSender

Send Message
(sendMessage)
nonpayable
Use this function in your app
import { prepareContractCall, sendTransaction } from "thirdweb";
const transaction = await prepareContractCall({ contract, method: "function sendMessage(string message, string phoneNumber)", params: [message, phoneNumber]});const { transactionHash } = await sendTransaction({ transaction, account});