/torn-detector

Detect if a contract has been deployed in the latest (or predefined) block from an address that was previously funded through Tornado.Cash.

Primary LanguageTypeScriptDo What The F*ck You Want To Public LicenseWTFPL

🕵️‍♂️ TORN Detector

🕵️‍♂️ Test TORN detector License: WTFPL

Detect if a contract has been deployed in the latest (or predefined) block from an address that was previously funded through Tornado.Cash.

Installation

It is recommended to install pnpm through the npm package manager, which comes bundled with Node.js when you install it on your system. It is recommended to use a Node.js version >= 20.0.0.

Once you have npm installed, you can run the following both to install and upgrade pnpm:

npm install -g pnpm

After having installed pnpm, simply run:

pnpm install

.env File

You must specify the RPC URL of your mainnet node as well as your Etherscan API key in the .env file:

ETH_MAINNET_URL=https://eth-mainnet.alchemyapi.io/v2/<your_api_key>
ETHERSCAN_API_KEY=6FECCD7C9B8C24...

Testing

Simply run

pnpm test