mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2025-08-03 03:46:27 -04:00
docker readme
This commit is contained in:
parent
6dd9c8662d
commit
cd7b94a46e
1 changed files with 10 additions and 1 deletions
11
README.md
11
README.md
|
@ -1,4 +1,5 @@
|
||||||
# Relayer for Tornado mixer [](https://travis-ci.org/peppersec/tornado-mixer-relayer)
|
# Relayer for Tornado mixer [](https://travis-ci.org/peppersec/tornado-mixer-relayer)
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
1. `npm i`
|
1. `npm i`
|
||||||
2. `cp .env.example .env`
|
2. `cp .env.example .env`
|
||||||
|
@ -9,6 +10,14 @@
|
||||||
2. `curl -X POST -H 'content-type:application/json' --data '<PROOF>' http://127.0.0.1:8000/relay`
|
2. `curl -X POST -H 'content-type:application/json' --data '<PROOF>' http://127.0.0.1:8000/relay`
|
||||||
Relayer should return a transaction hash.
|
Relayer should return a transaction hash.
|
||||||
|
|
||||||
|
## Running in Docker
|
||||||
|
|
||||||
|
To run a relayer in Docker simply run this command:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
docker run -d -e NET_ID=<...> -e RPC_URL=<...> -e PRIVATE_KEY=<...> -e ETH_MIXER_ADDRESS=<...> -e DAI_MIXER_ADDRESS=<...> peppersec/tornado-mixer-relayer
|
||||||
|
```
|
||||||
|
|
||||||
## Proof example
|
## Proof example
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
@ -30,6 +39,6 @@ Relayer should return a transaction hash.
|
||||||
"0x00000000000000000000000003ebd0748aa4d1457cf479cce56309641e0a98f5",
|
"0x00000000000000000000000003ebd0748aa4d1457cf479cce56309641e0a98f5",
|
||||||
"0x0000000000000000000000000000000000000000000000000000000000000000"
|
"0x0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue