finding Gas Limit using Abi file in swift #850
-
I am building crypto wallet iOS application . I am facing an issue regarding estimateGas Fee in swift . in this library document we give limit manually and static but when I need to transfer native and custom token then we need to known the gas limit using erc20Abi file and contract . I tried lots of method from which some give less gas fee error while transfer token some give execution reverted . I need a proper solution of this problem . |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We had a similar question on Discord. Maybe it was from you: https://discord.com/channels/852230666292559882/855076147985776661/1217652210331025529 But to put it simple there's only one function to estimate gas that you'll need to execute a transaction and that is Example:
|
Beta Was this translation helpful? Give feedback.
We had a similar question on Discord. Maybe it was from you: https://discord.com/channels/852230666292559882/855076147985776661/1217652210331025529
But to put it simple there's only one function to estimate gas that you'll need to execute a transaction and that is
web3.eth.estimateGas
.Example: