EVM - Sending And Receiving Messages
Sending Messages
function sendMessage(
bytes3 _destination_chain,
bytes32 _destination,
bytes32[] calldata _contents
) external payable 
sendMessage function with the protocol-set message toll (denoted as $fee$ to highlight that the call also includes some value in ETH). A MessageSent is then generated, which the validators observe. After enough confirmations have passed, the validators generate signatures and post them on Nostr.Receiving Messages

receiveMessage function is then called, which will call the destination contract. Note that warp.green is used as an oracle by the destination contract, which trusts the provided values (nonce, source chain id, source, contents) given that the Portal contract calls it.Last updated