UniV2 - Swap Tokens for Tokens

The UniV2 - Swap Tokens for Tokens node swaps two ERC20 tokens Uniswap V2.

Inputs

  • input_token:

    • Description: The address of the ERC20 token to be sold. It must be the token contract address, not its name.

    • Allowed types: EVMAddress

    • Default value: None

  • output_token:

    • Description: The address of the ERC20 token to be bought. It must be the token contract address, not its name.

    • Allowed types: EVMAddress

    • Default value: None

  • amount:

    • Description: The amount of the input token to be swapped.

    • Allowed types: decimal

    • Default value: 0

  • wallet:

    • Description: The wallet to be used for the swapping transaction.

    • Allowed types: EVMWallet

    • Default value: None

  • slippage:

    • Description: The slippage tolerance for the swapping transaction.

    • Allowed types: decimal

    • Default value: 0

  • blockchain:

    • Description: The name of the blockchain network where the swapping transaction will occur.

    • Allowed types: BlockchainName

    • Default value: None

Output

  • Description: The transaction object representing the token swap.

Tags

  • crypto

  • EVM

  • ERC20

  • uniswap

  • DEX

Last updated