IRelayer

Git Source

Functions

fee

Fetch relayer price to relay message to the destination chain.

function fee(uint256 toChainId, address ua, uint256 gasLimit, bytes calldata encoded, bytes calldata params)
    external
    view
    returns (uint256);

Parameters

NameTypeDescription
toChainIduint256The destination chain id.
uaaddressThe user application which send the message.
gasLimituint256Gas limit for destination user application used.
encodedbytesThe calldata which encoded by ABI Encoding.
paramsbytesGeneral extensibility for relayer to custom functionality.

Returns

NameTypeDescription
<none>uint256Relayer price in source native gas.