LayerZeroBridge
The following describes relevant, public functions on the LayerZeroBridge smart contract.
Last updated
The following describes relevant, public functions on the LayerZeroBridge smart contract.
Last updated
This function allows users to get the fee required to deliver a LayerZero message on a specified destination chain.
_dstChainId
uint16
The LayerZero chain ID of the destination chain. Please refer to the page to see a list of chain IDs.
_toAddress
bytes
The abi-encoded recipient address on the destination chain: the account USX will get transferred to.
_amount
uint256
The amount of USX token to be transferred, in Wei units (18 decimals).
nativeFee
uint256
The amount, in terms of source chain native, required to pay for destination chain gas fees.
The amount must be included as msg.value
when calling on the source chain USX contract.
zroFee
uint256
At present, this value is not used by Ax Protocol.