Estimating Message Fees
Get the quantity of native gas token to pay to send a message
If you want to know how much AptosCoin
to pay for the message, you can call the Endpoint's quote_fee()
to get the fee tuple (native_fee
(in coin), layerzero_fee
(in coin)).
public fun quote_fee(
ua_address: address,
dst_chain_id: u64,
payload_size: u64,
pay_in_zro: bool,
adapter_params: vector<u8>,
msglib_params: vector<u8>
): (u64, u64)