A command line interface to make transactions in Tornado Cash protocol
Go to file
0xZick 地方分権化 4dbdd42252
Merge branch 'master' into fixTorando
2021-07-16 13:30:07 +03:00
build fix: deposit and withdraw 2020-12-24 14:46:15 +03:00
cache fix: cache 2021-07-16 13:27:08 +03:00
lib init 2020-05-21 12:29:33 -07:00
.editorconfig formating 2020-05-22 12:35:00 +03:00
.env.example init 2020-05-21 12:29:33 -07:00
.eslintrc.json formating 2020-05-22 12:35:00 +03:00
.gitignore fix: deposit and withdraw 2020-12-24 14:46:15 +03:00
.prettierrc prettier 2021-02-14 21:23:17 +03:00
README.md Update README.md 2021-02-25 16:03:51 +03:00
cli.js Merge branch 'master' into fixTorando 2021-07-16 13:30:07 +03:00
config.js fix: cache 2021-07-16 13:27:08 +03:00
package-lock.json formating 2020-05-22 12:35:00 +03:00
package.json fix: deposit and withdraw 2020-12-24 14:46:15 +03:00
yarn.lock fix: deposit and withdraw 2020-12-24 14:46:15 +03:00

README.md

Warning!

Current cli version doesn't support Anonymity Mining

Kovan, Mainnet

  1. Add PRIVATE_KEY to .env file
  2. ./cli.js --help

Example:

$ ./cli.js deposit ETH 0.1 --rpc https://kovan.infura.io/v3/27a9649f826b4e31a83e07ae09a87448

Your note: tornado-eth-0.1-42-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
$ ./cli.js withdraw tornado-eth-0.1-42-0xf73dd6833ccbcc046c44228c8e2aa312bf49e08389dadc7c65e6a73239867b7ef49c705c4db227e2fadd8489a494b6880bdcb6016047e019d1abec1c7652 0x8589427373D6D84E98730D7795D8f6f8731FDA16 --rpc https://kovan.infura.io/v3/27a9649f826b4e31a83e07ae09a87448 --relayer https://kovan-frelay.duckdns.org

Relay address:  0x6A31736e7490AbE5D5676be059DFf064AB4aC754
Getting current state from tornado contract
Generating SNARK proof
Proof time: 9117.051ms
Sending withdraw transaction through relay
Transaction submitted through the relay. View transaction on etherscan https://kovan.etherscan.io/tx/0xcb21ae8cad723818c6bc7273e83e00c8393fcdbe74802ce5d562acad691a2a7b
Transaction mined in block 17036120
Done