#### 2. fill in the `accounts.json` file with the accounts you want to do swap for.
The example of the `accounts.json` file is as follow:
```json
[
{
"address":"0x",
"private":"0x"
},
{
"address":"0x",
"private":"0x"
}
]
```
#### 4. change configure
There is a `config.yml`, you can change the configure in it.
```yaml
param:
# routine count.
routine:10
# swap volume for each transaction, unit is 0.1 usdt. example: 1 is 0.1 usdt.
volume:1
# count of transactions per user.
count:2
# gas_price unit is Gwei.
gas_price:1
# slippage, unit is 1/1000. example: 20 means 2.0%.
slippage:20
# tx deadline, unit is minutes, set 0 to disable.
deadline:20
rpc:
env:"bsc"
pool:20
log:
level:"debug"
users:"accounts.json"
```
#### 5. run the program
After check the configure, you can run the program.
```shell
./build/bin/swapper
```
#### 6. check result
When the program is running, you can check the progress in the console.
```text
REPORT Failed/Total Finished/Total
USER 0/80 18/80
TX 0/0
0.18 Cost / 0.28 Receive
```
After the program is finished, you can check the result in the console.
```text
all done, no failed user
```
If an error occurs, you can check the error details in `detail.log`, and the accounts that failed will be recorded in the `failed.json` file.
If the issue is with the account format, please verify that the account format in the `accounts.json` file is correct. After correcting it, rerun the program.