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

Function swapTokensForExactTokens

  • swapTokensForExactTokens(args, info, options): UnsignedTransaction
  • Swap asset path[0] for asset path[1] to get exactly amountOut.

    If an amountInMax is specified, it will return an error if acquiring amountOut would be too costly.

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

    Parameters

    • args: SwapTokensArgs

      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/swapTokensForExactTokens.ts:46

Settings

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