RepositoryParity.io
  • Preparing search index...
  • The search index is not available
txwrapper-core
  • txwrapper-core
  • txwrapper-substrate/src/methods/assetConversion/swapExactTokensForTokens
  • swapExactTokensForTokens

Function swapExactTokensForTokens

  • swapExactTokensForTokens(args, info, options): UnsignedTransaction
  • Swap exactly amountIn of asset path[0] for asset path[1].

    If an amountOutMin is specified, it will return an error if it is unable to acquire the amount desired.

    Withdraws the path[0] asset from sender, deposits the path[1] asset to sendTo, respecting keepAlive.

    Parameters

    • args: SwapExactTokensArgs

      Arguments specific to this method.

    • info: BaseTxInfo

      Information required to construct the transaction.

    • options: OptionsWithMeta

      Registry and metadata used for constructing the method.

    Returns UnsignedTransaction

    • Defined in txwrapper-substrate/src/methods/assetConversion/swapExactTokensForTokens.ts:46

Settings

Member Visibility
RepositoryParity.io
txwrapper-core
  • Loading...