IRelayer
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
Name | Type | Description |
---|---|---|
toChainId | uint256 | The destination chain id. |
ua | address | The user application which send the message. |
gasLimit | uint256 | Gas limit for destination user application used. |
encoded | bytes | The calldata which encoded by ABI Encoding. |
params | bytes | General extensibility for relayer to custom functionality. |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | Relayer price in source native gas. |