UniV2 - Buy Tokens for ETH

The UniV2 - Buy Tokens for ETH node buys specified ERC20 tokens with ETH on Uniswap V2.

Inputs

  • token:

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

    • allowed types: EVMAddress

    • default value: None

  • amount:

    • description: The amount of ETH used to buy the tokens.

    • allowed types: decimal

    • default value: 0

  • wallet:

    • description: The wallet to be used for the transaction.

    • allowed types: EVMWallet

    • default value: None

  • slippage:

    • description: The slippage tolerance for the transaction.

    • allowed types: decimal

    • default value: 0

  • blockchain:

    • description: The name of the blockchain where the transaction will occur.

    • allowed types: BlockchainName

    • default value: None

Output

  • description: The transaction object representing the token purchase.

Tags

  • crypto

  • EVM

  • ERC20

  • uniswap

  • DEX

Last updated