Estimates the gas fee for an EVM transaction without running a full simulation. Returns fee data in
native units (wei), human-readable format (ETH), and optionally USD — but no asset diffs or
security validation.
Use this when you need a fee estimate only. Use
simulateEvmTransaction when you also want to
preview asset changes and security validation.
Installation
Usage
Estimate fees inside a button handler or useEffect. Re-estimate whenever the transaction or network changes:
Parameters
Returns
Promise<EvmTransactionFeeData>:
Examples
Simple ETH transfer
With USD conversion
Contract interaction
Error handling
Last modified on September 21, 2026