axelarnetwork / support

Your source for support with the Axelar Network
3 stars 1 forks source link

Gas Fee Refund and On-chain quoting #73

Closed Olanetsoft closed 7 months ago

Olanetsoft commented 7 months ago

hey guys. I am working on a dapp on axelar and have some questions: 1\ if paying native gas not enough to execute on destination chain, does the executor do the execution? or just refund on source chain? 2\ what is the best way to quote fee on-chain for app composing?

Olanetsoft commented 7 months ago
  1. If the native gas is insufficient, the execution will not proceed. However, you can programmatically add more gas in Solidity as referenced here, or use the Axelar SDK as mentioned here . Alternatively, you can manually pay gas on the Axelarscan UI by connecting your wallet and clicking the 'Pay Gas' button.

  2. The optimal method for estimating the fee for a cross-chain transaction is to use our SDK, which provides an accurate estimate of the necessary fee for the transaction to be processed, as detailed here. However, it's important to note that this process is not conducted on-chain. While we currently do not support on-chain estimations, we are open to understanding and accommodating specific needs in this area. Please feel free to share any such requirements you may have.