thirdweb

MessageSender

Ethereum
etherscanblockscout

Send Message

(sendMessage)

nonpayable

message

phoneNumber


Sign in

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 });