IMessageBus

Methods

estimateFee

function estimateFee(uint256 _dstChainId, bytes _options) external nonpayable returns (uint256)

Returns srcGasToken fee to charge in wei for the cross-chain message based on the gas limit

Parameters

Returns

executeMessage

function executeMessage(uint256 _srcChainId, bytes _srcAddress, address _dstAddress, uint256 _gasLimit, uint256 _nonce, bytes _message, bytes32 _messageId) external nonpayable

Relayer executes messages through an authenticated method to the destination receiver based on the originating transaction on source chain

Parameters

sendMessage

function sendMessage(bytes32 _receiver, uint256 _dstChainId, bytes _message, bytes _options) external payable

Sends a message to a receiving contract address on another chain. Sender must make sure that the message is unique and not a duplicate message.

Parameters

withdrawFee

function withdrawFee(address _account) external nonpayable

Withdraws message fee in the form of native gas token.

Parameters

Last updated