Skip to main content

Router

swapCallParameters

Returns the parameters for the swap.

  swapCallParameters(
trade: Trade!,
tradeOptions: TradeOptions!
): SwapParameters!

estimateGas

Estimates the gas being used in the swap.

  estimateGas(
parameters: SwapParameters!
chainId: ChainId
): String!

execCallStatic

Returns empty string if call would be successful, otherwise returns solidity contract error.

  execCallStatic(
parameters: SwapParameters!
chainId: ChainId!
txOverrides: TxOverrides
): String!