Actualize README: change links, update RPC links
This commit is contained in:
parent
910643ab5e
commit
f000d0af36
103
README.md
103
README.md
@ -1,6 +1,6 @@
|
|||||||
# Tornado-CLI
|
# Tornado-CLI
|
||||||
|
|
||||||
Command line tool to interact with [Tornado Cash](https://tornadocashcommunity.eth.link).
|
Command line tool to interact with [Tornado Cash](https://tornado.ws).
|
||||||
|
|
||||||
### Warning!
|
### Warning!
|
||||||
Current cli version doesn't support [Anonymity Mining](https://tornado-cash.medium.com/tornado-cash-governance-proposal-a55c5c7d0703)
|
Current cli version doesn't support [Anonymity Mining](https://tornado-cash.medium.com/tornado-cash-governance-proposal-a55c5c7d0703)
|
||||||
@ -19,12 +19,10 @@ You also need to install C++ build tools in order to do 'npm install', for more
|
|||||||
If you have git installed on your system, clone the master branch.
|
If you have git installed on your system, clone the master branch.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git clone https://development.tornadocash.community/tornadocash/tornado-cli
|
$ git clone https://git.tornado.ws/tornadocash/tornado-cli
|
||||||
```
|
```
|
||||||
|
|
||||||
Or, download the archive file from github
|
Or, download the archive file from git: https://git.tornado.ws/tornadocash/tornado-cli/archive/master.zip
|
||||||
|
|
||||||
https://development.tornadocash.community/tornadocash/tornado-cli/archive/refs/heads/master.zip
|
|
||||||
|
|
||||||
After downloading or cloning the repository, you must install necessary libraries using the following command.
|
After downloading or cloning the repository, you must install necessary libraries using the following command.
|
||||||
|
|
||||||
@ -54,7 +52,7 @@ For RPC nodes please refer to the list of public RPC nodes below.
|
|||||||
|
|
||||||
##### Example:
|
##### Example:
|
||||||
```bash
|
```bash
|
||||||
$ node cli.js deposit ETH 0.1 --rpc https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161 --tor 9150
|
$ node cli.js deposit ETH 0.1 --rpc https://mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607 --tor 9150
|
||||||
|
|
||||||
Your note: tornado-eth-0.1-5-0xf73dd6833ccbcc046c44228c8e2aa312bf49e08389dadc7c65e6a73239867b7ef49c705c4db227e2fadd8489a494b6880bdcb6016047e019d1abec1c7652
|
Your note: tornado-eth-0.1-5-0xf73dd6833ccbcc046c44228c8e2aa312bf49e08389dadc7c65e6a73239867b7ef49c705c4db227e2fadd8489a494b6880bdcb6016047e019d1abec1c7652
|
||||||
Tornado ETH balance is 8.9
|
Tornado ETH balance is 8.9
|
||||||
@ -79,7 +77,7 @@ If you don't need relayer while doing withdrawals, you must provide your withdra
|
|||||||
##### Example:
|
##### Example:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ node cli.js withdraw tornado-eth-0.1-5-0xf73dd6833ccbcc046c44228c8e2aa312bf49e08389dadc7c65e6a73239867b7ef49c705c4db227e2fadd8489a494b6880bdcb6016047e019d1abec1c7652 0x8589427373D6D84E98730D7795D8f6f8731FDA16 --rpc https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161 --relayer https://goerli-frelay.duckdns.org --tor 9150
|
$ node cli.js withdraw tornado-eth-0.1-5-0xf73dd6833ccbcc046c44228c8e2aa312bf49e08389dadc7c65e6a73239867b7ef49c705c4db227e2fadd8489a494b6880bdcb6016047e019d1abec1c7652 0x8589427373D6D84E98730D7795D8f6f8731FDA16 --rpc https://mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607 --relayer https://goerli-relay.example.org --tor 9150
|
||||||
|
|
||||||
Relay address: 0x6A31736e7490AbE5D5676be059DFf064AB4aC754
|
Relay address: 0x6A31736e7490AbE5D5676be059DFf064AB4aC754
|
||||||
Getting current state from tornado contract
|
Getting current state from tornado contract
|
||||||
@ -139,42 +137,19 @@ Tornado contract balance is xxx.x ETH
|
|||||||
Sender account balance is x.xxxxxxx ETH
|
Sender account balance is x.xxxxxxx ETH
|
||||||
```
|
```
|
||||||
|
|
||||||
#### To withdraw, you will need deposit note that matches with your deposit transaction.
|
### List of rpc & relayers for withdrawal
|
||||||
|
|
||||||
```bash
|
|
||||||
$ node cli.js withdraw <note> <recipient>
|
|
||||||
```
|
|
||||||
|
|
||||||
##### Example:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ node cli.js withdraw tornado-eth-0.1-5-0xf73dd6833ccbcc046c44228c8e2aa312bf49e08389dadc7c65e6a73239867b7ef49c705c4db227e2fadd8489a494b6880bdcb6016047e019d1abec1c7652 0x8589427373D6D84E98730D7795D8f6f8731FDA16 --rpc https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161 --relayer https://goerli-frelay.duckdns.org --tor 9150
|
|
||||||
|
|
||||||
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://goerli.etherscan.io/tx/0xcb21ae8cad723818c6bc7273e83e00c8393fcdbe74802ce5d562acad691a2a7b
|
|
||||||
Transaction mined in block 17036120
|
|
||||||
Done
|
|
||||||
```
|
|
||||||
|
|
||||||
### List of public rpc & relayers for withdrawal
|
|
||||||
|
|
||||||
Infura API key fetched from https://rpc.info (Same one with Metamask)
|
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"netId1":{
|
"netId1":{
|
||||||
"rpcUrls":{
|
"rpcUrls":{
|
||||||
"publicRpc1":{
|
"publicRpc1":{
|
||||||
"name":"SecureRPC",
|
"name":"1RPC",
|
||||||
"url":"https://api.securerpc.com/v1"
|
"url":"https://1rpc.io/eth"
|
||||||
},
|
},
|
||||||
"publicRpc2":{
|
"Chainnodes":{
|
||||||
"name":"CloudFlare",
|
"name": "Chainnodes",
|
||||||
"url":"https://cloudflare-eth.com"
|
"url": "https://mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"relayers": {
|
"relayers": {
|
||||||
@ -274,7 +249,7 @@ Infura API key fetched from https://rpc.info (Same one with Metamask)
|
|||||||
"rpcUrls":{
|
"rpcUrls":{
|
||||||
"publicRpc1":{
|
"publicRpc1":{
|
||||||
"name":"BSC Public RPC 1",
|
"name":"BSC Public RPC 1",
|
||||||
"url":"https://bsc-dataseed.binance.org"
|
"url":"https://1rpc.io/bnb"
|
||||||
},
|
},
|
||||||
"publicRpc2":{
|
"publicRpc2":{
|
||||||
"name":"BSC Public RPC 2",
|
"name":"BSC Public RPC 2",
|
||||||
@ -363,7 +338,7 @@ Infura API key fetched from https://rpc.info (Same one with Metamask)
|
|||||||
"publicRpc":{
|
"publicRpc":{
|
||||||
"name":"Gnosis Chain RPC",
|
"name":"Gnosis Chain RPC",
|
||||||
"url":"https://rpc.gnosischain.com"
|
"url":"https://rpc.gnosischain.com"
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
"relayers":{
|
"relayers":{
|
||||||
"torndao.eth": {
|
"torndao.eth": {
|
||||||
@ -376,20 +351,12 @@ Infura API key fetched from https://rpc.info (Same one with Metamask)
|
|||||||
"netId137":{
|
"netId137":{
|
||||||
"rpcUrls":{
|
"rpcUrls":{
|
||||||
"publicRpc1":{
|
"publicRpc1":{
|
||||||
"name":"publicRpc1",
|
"name":"1RPC",
|
||||||
"url":"https://rpc-mainnet.maticvigil.com"
|
"url":"https://1rpc.io/matic"
|
||||||
},
|
},
|
||||||
"publicRpc2":{
|
"Chainnodes":{
|
||||||
"name":"publicRpc2",
|
"name": "Chainnodes",
|
||||||
"url":"https://rpc-mainnet.matic.network"
|
"url": "https://polygon-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||||
},
|
|
||||||
"publicRpc3":{
|
|
||||||
"name":"publicRpc3",
|
|
||||||
"url":"https://matic-mainnet.chainstacklabs.com"
|
|
||||||
},
|
|
||||||
"MyEtherWallet":{
|
|
||||||
"name":"MyEtherWallet",
|
|
||||||
"url":"https://nodes.mewapi.io/ws/matic"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"relayers": {
|
"relayers": {
|
||||||
@ -440,6 +407,10 @@ Infura API key fetched from https://rpc.info (Same one with Metamask)
|
|||||||
"publicRpc1":{
|
"publicRpc1":{
|
||||||
"name":"Arbitrum Public RPC",
|
"name":"Arbitrum Public RPC",
|
||||||
"url":"https://arb1.arbitrum.io/rpc"
|
"url":"https://arb1.arbitrum.io/rpc"
|
||||||
|
},
|
||||||
|
"publicRpc2":{
|
||||||
|
"name": "ChainnodesRPC",
|
||||||
|
"url": "https://arbitrum-one.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"relayers":{
|
"relayers":{
|
||||||
@ -458,8 +429,8 @@ Infura API key fetched from https://rpc.info (Same one with Metamask)
|
|||||||
"netId43114":{
|
"netId43114":{
|
||||||
"rpcUrls":{
|
"rpcUrls":{
|
||||||
"publicRpc":{
|
"publicRpc":{
|
||||||
"name":"Avalanche RPC",
|
"name":"1RPC",
|
||||||
"url":"https://api.avax.network/ext/bc/C/rpc"
|
"url":"https://1rpc.io/avax/c"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"relayers":{
|
"relayers":{
|
||||||
@ -487,9 +458,13 @@ Infura API key fetched from https://rpc.info (Same one with Metamask)
|
|||||||
},
|
},
|
||||||
"netId10":{
|
"netId10":{
|
||||||
"rpcUrls":{
|
"rpcUrls":{
|
||||||
"Optimism":{
|
"publicRpc1":{
|
||||||
"name":"Optimism Public RPC",
|
"name":"1RPC",
|
||||||
"url":"https://mainnet.optimism.io"
|
"url":"https://1rpc.io/op"
|
||||||
|
},
|
||||||
|
"Chainnodes":{
|
||||||
|
"name": "Chainnodes",
|
||||||
|
"url": "https://optimism-mainnet.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"relayers":{
|
"relayers":{
|
||||||
@ -502,18 +477,10 @@ Infura API key fetched from https://rpc.info (Same one with Metamask)
|
|||||||
},
|
},
|
||||||
"netId5":{
|
"netId5":{
|
||||||
"rpcUrls":{
|
"rpcUrls":{
|
||||||
"publicRpc1":{
|
"Chainnodes":{
|
||||||
"name":"Infura",
|
"name":"Chainnodes RPC",
|
||||||
"url":"https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161"
|
"url":"https://goerli.chainnodes.org/d692ae63-0a7e-43e0-9da9-fe4f4cc6c607"
|
||||||
},
|
}
|
||||||
"Slockit":{
|
|
||||||
"name":"Slockit",
|
|
||||||
"url":"https://rpc.slock.it/goerli"
|
|
||||||
},
|
|
||||||
"Prylabs":{
|
|
||||||
"name":"Prylabs",
|
|
||||||
"url":"https://goerli.prylabs.net"
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
"relayers":{}
|
"relayers":{}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user