DEMO

Arbitrary messenger

3
4uint32 destChain = 5;
5string memory input = "Ethereum’s interoperability just got snarky 🪄";
6
7// Append ENS/address and balance to the end of the message
8// ex. "Hello world! - vitalik.eth (1.23 ETH)"
9string memory ens = ENS.reverseResolve(msg.sender);
10uint256 balance = msg.sender.balance;
11string memory message = string.concat(input, ens, balance);
12
13ITelepathyRouter(router).send(destChain, mailbox, bytes(message));
succinct-logo
developers
© 2023 Succinct Labs