logoAcademy

Send a Roundtrip Message

Send roundtrip message

Alright, now let's send the message:

Send the Message:

cast send --rpc-url local-c --private-key $PK $SENDER_ADDRESS "sendMessage(address)" $RECEIVER_ADDRESS

Verify Message Receipt

To check whether the message has been received, we can call the roundtripMessage() function on the sender contract.

cast call --rpc-url local-c $SENDER_ADDRESS "roundtripMessage()(string)"

If successful, you should see the following output:

"Hello World!"

Check the Relayer Logs

To understand in more detail what happened, check out the relayer logs:

avalanche teleporter relayer logs

On this page