LPX55 / BTTSpeed-API

Unofficial Python API Wrapper for the BitTorrent Speed Token WebUI (uTorrent 3.5.5+ and BitTorrent 7.10.5+)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contributors Forks Stargazers Issues WTFPL License

BTT Speed API

Unofficial Python API Wrapper for the BTT (BitTorrent Token) Speed WebUI for uTorrent and BitTorrent Clients

Installation

Git:

git clone https://github.com/BTTBoost/BTTSpeed-API.git

Available API Endpoints

  • getEnv - get your current environment
  • getUpdates - get current status
  • getHourlyUpdate - hourly earnings update (not accurate)
  • getTotalUpdate - get total earnings (not accurate)
  • getPublicAddress - gets your wallet address
  • getPublicKey - wallet public key
  • getWalletTransactions - more detailed info on wallet transactions
  • refreshBalance - refreshes your wallet balance, may be useful for "stuck" btt in limbo world
  • checkBTTExchange - check to see if the BTT exchange has enough in balance for withdrawal

Usage example

python

import bttAPI as api
from pprint import pprint

pprint(api.getWalletTransactions())

output:

[{'amount': 1195000000,
  'created': 1622713771,
  'id': 1622578556996,
  'message': 'calling interface [BroadcastTransaction] fail, reasons: '
             '[ResultCode[CONTRACT_VALIDATE_ERROR], Message[contract validate '
             'error : assetBalance is not sufficient.]]',
  'status': 'Complete',
  'type': 'Withdrawal'},
 {'amount': 2350000000,
  'created': 1622483796,
  'id': 1622483746585,
  'message': 'SUCCESS',
  'status': 'Complete',
  'type': 'Withdrawal'}]

Excluded API Endpoints

There are some endpoints I have purposefully left out for numerous reasons: 1) The API endpoint is not publicly live (like the Binance Exchange Wallet Integration endpoints); 2) It's dangerous for those who don't know what they're doing (privatekey, seed phrase, etc)

Complete list of endpoints actually published by BitTorrent team can be seen in misc/extracted.txt

Release History

  • 0.1
    • Work in progress

TO-DO

  • Better organization
  • Include more endpoints
  • Announce the BTT Boost Project

Meta

Distributed under the WTFPL license. See LICENSE for more information.

Donations

  • BTC bc1q9lhnd8un6f74hawqfstgqelevjtaukwtjmspdk
  • ETH / ERC20 0x4a95dEcaB17111Fb690315Fc542ab1754c3B00B5
  • LTC ltc1qk9s2krvnlnzlq8zaarfjqe80vajw5pg2xsc7lw
  • TRX / BTT / USDT-TRC10 TYhp2gFGZ9poFHQmzSQZ5JFe5LWznncyu5
  • XRP: rfPrCwHawfk8NVCvk2LxvKromvtGoZy6Uo
  • DOGE: DGryeDF6F7uJh5JibP9ZogvDF3QYQ19i5h

Contributing

  1. Fork it (https://github.com/BTTBoost/BTTSpeed-API/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

About

Unofficial Python API Wrapper for the BitTorrent Speed Token WebUI (uTorrent 3.5.5+ and BitTorrent 7.10.5+)

License:Do What The F*ck You Want To Public License


Languages

Language:Python 100.0%