Skip to content
docs

kyberGasEstimate

kyberGasEstimate(routeGas): string | undefined

Defined in: protocol-swap2-kyberswap/src/provider.ts:129

A quote’s gasEstimate: KyberSwap’s routeSummary.gas from GET /routes (asked with gasInclude=true) as canonical digits, the same figure on a dry quote and on the execution quote built from that route. Undefined when the route states none, zero, or a figure past the contract’s ten digits: no figure is made up. See the README for how it compares with the gas the built call used.

unknown

string | undefined