Command line tool to interact with Tornado Cash.
Current cli version doesn't support Anonymity Mining
Download and install node.js.
You also need to install C++ build tools in order to do 'npm install', for more information please checkout https://github.com/nodejs/node-gyp#on-unix.
-
For Windows: https://stackoverflow.com/a/64224475
-
For MacOS: Install XCode Command Line Tools
-
For Linux: Install make & gcc, for ubuntu
$ sudo apt-get install -y build-essentials
If you have git installed on your system, clone the master branch.
$ git clone https://github.com/tornadocash/tornado-cli
Or, download the archive file from github
https://github.com/tornadocash/tornado-cli/archive/refs/heads/master.zip
After downloading or cloning the repository, you must install necessary libraries using the following command.
$ cd tornado-cli
$ npm install
If you want to use Tor connection to conceal ip address, install Tor Browser and add --tor 9150
for cli.js
if you connect tor with browser. (For non tor-browser tor service you can use the default 9050 port).
Note that you should reset your tor connection by restarting the browser every time when you deposit & withdraw otherwise you will have the same exit node used for connection.
- Add
PRIVATE_KEY
to.env
file node cli.js --help
- If you want to use secure, anonymous tor connection add
--tor <torPort>
behind the command.
$ node cli.js deposit <currency> <amount> --rpc <rpc url> --tor <torPort>
Note that --tor <torPort>
is optional.
For RPC nodes please refer to the list of public RPC nodes below.
$ node cli.js deposit ETH 0.1 --rpc https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161 --tor 9150
Your note: tornado-eth-0.1-5-0xf73dd6833ccbcc046c44228c8e2aa312bf49e08389dadc7c65e6a73239867b7ef49c705c4db227e2fadd8489a494b6880bdcb6016047e019d1abec1c7652
Tornado ETH balance is 8.9
Sender account ETH balance is 1004873.470619891361352542
Submitting deposit transaction
Tornado ETH balance is 9
Sender account ETH balance is 1004873.361652048361352542
$ node cli.js withdraw <note> <recipient> --rpc <rpc url> --relayer <relayer url> --tor <torPort>
Note that --relayer <relayer url>
, --tor <torPort>
is optional.
If you want to use Tornado Cash relayer for your first withdrawal to your new ethereum account, please refer to the list of relayers below.
If you don't need relayer while doing withdrawals, you must apply your withdrawal account's private key to .env
file.
Copy the PRIVATE_KEY=
line of .env.example
to .env
, and add your private key behind the =
.