Skip to content
Lattice

IERC7786Recipient

Git Source

Interface for the ERC-7786 client contract (receiver).

Functions

receiveMessage

Endpoint for receiving cross-chain message.

This function may be called directly by the gateway.

function receiveMessage(
        bytes32 receiveId,
        bytes calldata sender, // Binary Interoperable Address
        bytes calldata payload
    )
        external
        payable
        returns (bytes4);

Parameters

NameTypeDescription
receiveIdbytes32
senderbytes
payloadbytes

Returns

NameTypeDescription
<none>bytes4