Router deployer

[blockchain/ethereum/Uniswap/v2/Router deployer]

Deployes UniswapV2Router02 contract to the chain

Input ports

  • factory address: string

    Address of the deployed UniswapV2Factory contract

  • WETH address: string

    Address of the WETH token on the targetet network

  • config: {"providerUrl": string, "privateKey": string}

  • router contract:

      "contract": {"abi": {string: any}[], "evm": {"bytecode": {"object": string}}},
      "contractParams": string[],
      "settings": {
        "providerUrl": string,
        "privateKey": string,
        "gas": number,
        optional "gasPrice": string
      "estimateGas": boolean

    Receives the compiled UniswapV2Router02 contract

Output ports

  • events:

      "field": (
        "transaction hash"
        or "receipt"
        or "confirmation"
        or "contract"
        or "error"
      "data": any

    Muliplexed events. Use a Demultiplexer to separate them if needed.

  • error: {"error": string}

  • confirmation: {"confirmationNumber": number}

Last updated