LayerZeroBridge
The following describes relevant, public functions on the LayerZeroBridge smart contract.
View Methods
estimateSendFee
This function allows users to get the fee required to deliver a LayerZero message on a specified destination chain.
Parameter Name | Type | Description |
---|---|---|
|
| The LayerZero chain ID of the destination chain. Please refer to the Deployed Contracts page to see a list of chain IDs. |
|
| The abi-encoded recipient address on the destination chain: the account USX will get transferred to. |
|
| The amount of USX token to be transferred, in Wei units (18 decimals). |
Return Value | Type | Description |
---|---|---|
|
| The amount, in terms of source chain native, required to pay for destination chain gas fees.
The amount must be included as |
|
| At present, this value is not used by Ax Protocol. |
Last updated