calculate Fees
Calculate the fee for a transaction.
The network is determined automatically from the transaction's asset.
For EVM legacy transactions:
Native transfers use fixed 21000 gas limit
Token transfers use estimateGas with a 30% buffer
Return
Result containing Fee on success (EvmLegacyFee or EvmEip1559Fee)
Parameters
tx
The transaction to calculate fees for
from
The sender's address