Fee Estimations
Calculating exact fee values for the different transactions
Last updated
Was this helpful?
Calculating exact fee values for the different transactions
Last updated
Was this helpful?
Calculate the relayer fee amount for the provided transaction configuration. A transaction request may produce several transactions, with the following method you have an ability to display fee details
transfersGwei
- a set of transfer amounts (ignored for all transactions except with txType == TxType.Transfer
)
txType
is transaction type (a member of enum)
withdrawSwap
is an optional amount of tokens to swap in the withdraw transaction. This may influence the typical withdraw transaction cost due to the extra fee component (ignored for other transaction types).
updateState
- update the state before fee estimation if true
(fee may depends on account and notes configuration)
Promise
returns object with fee estimation