OSDN Git Service

combine with btmsender
[bytom/bytom-spanner.git] / btmsender / README.md
1 # btm spanner
2
3 Requirements: Python 3.x, with requests package
4
5 Dependencies:
6    ```
7     pip install requests
8    ```
9
10 Usage:
11    ```
12     ./bytomd init --chain_id mainnet
13    ```
14    ```
15     ./btmspanner.py [options]
16    ```
17    If you don't know how to run bytomd please check this [wiki](https://github.com/Bytom/bytom/wiki/Build-and-Install)
18
19 Options:
20    ```
21   -h, --help      show this help message and exit
22   -i input        transaction txt file
23   -a account      wallet account id
24   -p password     wallet account password
25   -c count        transaction output count
26   ```
27
28 Example:
29    ```
30     ./btmspanner.py -i ./btm.txt -a 0F0BV1OLG0A04 -p 123456 -c 1000
31    ```
32
33 Transaction txt file format:
34    ```
35     bm1qqn5mrdcaz00d0rvqd0zuuh6z4u4a860qfquwys,265024793
36     bm1qufvnqamhyjwl2c58n0t4ej27kr0xzpm4r94578,296430573
37     bm1qyenrv6thy5pl2jhz08xqj7ukg3kcyn2j3mfc7n,266596998
38     bm1qkkwln4xwgxfl4j838ykudecqehxes6szxmy4fl,366249088
39     bm1qhsk20pnxu2yudxrucmx5pccltgew3z0e3wfqv4,225333795
40    ```