OSDN Git Service

32a16c79eb297444824221422f1f3146dfcc3cff
[bytom/bytom-spanner.git] / README.md
1 # btm-spanner
2 Python based Bytom wallet tools
3
4 Requirements: Python 3.x, with requests package
5
6 Dependencies:
7    ```
8     pip install requests
9    ```
10 Prepare:
11    ```
12     bytomd init --chain_id mainnet
13    ```
14    If you don't know how to run bytomd please check this [wiki](https://github.com/Bytom/bytom/wiki/Build-and-Install)
15
16 ## btm-sender
17
18 Bytom tool send BTM to large numbers of address
19
20 Usage:
21    ```
22     btmspanner.py btmsender [-h] -i I -a A -p P [-c C]
23    ```
24 Options:
25    ```
26   -h, --help      show this help message and exit
27   -i input        transaction txt file
28   -a account      wallet account id
29   -p password     wallet account password
30   -c count        transaction output count
31   ```
32 See more details in btm-sender [README.md](https://github.com/Bytom/btm-spanner/blob/master/btmsender/README.md) file.
33 ## utxo-merger
34
35 Bytom tool merge some utxos to one.
36
37 Usage:
38   
39   ```shell
40     btmspanner.py utxomerger [-h] [-o URL] [-a ACCOUNT_ALIAS] [-p PASSWORD]
41                      [-x MAX_AMOUNT] [-s MIN_AMOUNT] [-l] [-m MERGE_LIST] [-y]
42   ```
43 Options:
44   ```
45   -h, --help                                    show this help message and exit
46   -o URL, --url URL                             API url to connect
47   -a ACCOUNT_ALIAS, --account ACCOUNT_ALIAS     account alias
48   -p PASSWORD, --pass PASSWORD                  account password
49   -x MAX_AMOUNT, --max MAX_AMOUNT               range lower than max_amount
50   -s MIN_AMOUNT, --min MIN_AMOUNT               range higher than min_amount
51   -l, --list                                    Show UTXO list without merge
52   -m MERGE_LIST, --merge MERGE_LIST             UTXO to merge
53   -y, --yes                                     confirm transfer
54   ```
55
56 See more details in utxo-merger [README.md](https://github.com/Bytom/btm-spanner/blob/master/utxomerger/README.md) file.