← Back to blog

Uniswap V2 DApp — Environment & Data Prep

C#/Nethereum setup, ABI files, RPC config, and BSC testnet parameters.

Following the Uniswap overview, this post covers dev environment, third-party libraries, ABI/chain/DEX configuration, and basic project setup.

Cross-platform

The DApp uses C# for Mac and Windows. On-chain interaction uses Nethereum (.NET Ethereum library).

Nethereum modules

Nethereum_Module

Key Nethereum packages

Supported chains

All EVM chains are supported. Example BSC testnet config:

RPC URL: `https://data-seed-prebsc-1-s2.binance.org:8545/`

Network ID: `97`

Router: `0xD99D1c33F9fC3444f8101754aBC46c52416550D1`

Factory: `0x6725F303b657a9451d8BA641348b6761A6CC7a17`

ui_RpcInfo

IDE project

ABI preparation

ABIs define how the DApp calls Router, Factory, and Pair contracts. ABI JSON files ship in the project and load at startup.

ui_ABIFile

ABI storage

How to obtain ABI

Remix — copy from the compiler ABI tab after build.

Remix_ABI

Remix

Block explorer — for verified contracts, copy ABI from the Code tab.

Explorer_ABI

Explorer

API — some chains expose ABI endpoints (e.g. BscScan `getabi`).

C# environment

Visual Studio 2022 + WPF on Windows (Mac source also on GitHub). Install Nethereum.Web3 from NuGet.

vs_CreateProject

Create project

import_Nethereum

Install Nethereum