1
0
mirror of https://github.com/Bytom/bytom-spanner.git synced 2020-06-03 17:14:59 +00:00
Python based Bytom wallet tools
Go to file
DeKaiju e596973325
Merge pull request #9 from Bytom/asset
feat(asset): support transaction asset is not BTM
2020-04-24 20:14:36 +08:00
btmsender feat(asset): support transaction asset is not BTM 2020-04-24 18:17:24 +08:00
utxomerger feat(spanner): support vapor 2020-04-13 20:18:28 +08:00
.gitignore feat(validate input): complete transaction address and amount validation feature 2018-06-12 19:01:06 +08:00
README.md feat(asset): support transaction asset is not BTM 2020-04-24 18:17:24 +08:00
spanner.py refactor(btmsender): code refactoring 2020-04-14 11:00:44 +08:00

spanner

Python based bytom and vapor wallet tools

Requirements: Python 3.x, with requests package

Dependencies:

 pip install requests

Prepare:

 bytomd init --chain_id mainnet

OR

 vapord init --chain_id mainnet

If you don't know how to run bytomd or vapord please check bytom wiki or vapor wiki

btm-sender

Tool send BTM to large numbers of address

Usage:

 spanner.py btmsender [-h] -n N -i I -a A [-s S] [-c C] [-u] [-t T]

Options:

-h, --help      show this help message and exit
-n node         bytomd or vapord node address
-i input        transaction txt file
-a account      wallet account id
-s asset_id     transaction asset id
-c count        transaction output count
-u              use unconfirmed UTXO build transaction
-t time_range   the transaction will not be submitted into block after this height

See more details in btm-sender README.md file.

utxo-merger

Tool merge some utxos to one for loops.

Usage:

spanner.py utxomerger [-h] [-o URL] [-a ACCOUNT_ALIAS] [-p PASSWORD]
                     [-x MAX_AMOUNT] [-s MIN_AMOUNT] [-l] [-m MERGE_LIST]
                     [-f FOR_LOOP] [-y]

Options:

  -h, --help            show this help message and exit
  -o URL, --url URL     API url to connect
  -a ACCOUNT_ALIAS, --account ACCOUNT_ALIAS
                        account alias
  -p PASSWORD, --pass PASSWORD
                        account password
  -x MAX_AMOUNT, --max MAX_AMOUNT
                        range lower than max_amount
  -s MIN_AMOUNT, --min MIN_AMOUNT
                        range higher than min_amount
  -l, --list            Show UTXO list without merge
  -m MERGE_LIST, --merge MERGE_LIST
                        UTXO to merge
  -f FOR_LOOP, --forloop FOR_LOOP
                        size for loop of UTXO to merge
  -y, --yes             confirm transfer
  

See more details in utxo-merger README.md file.