A Python API for interacting with Tron (TRX)
Project description
A Python API for interacting with the Tron (TRX)
A Command-Line Interface framework
You can install it in a system-wide location via pip:
sudo pip3 install tronpytool
Or install it locally using virtualenv:
virtualenv -p /usr/bin/python3 ~/tronpytool
source ~/tronpytool/bin/activate
pip3 install tronpytool
Usage
Specify the API endpoints:
Smart Contract
from tronpytool import HttpProvider
from tronpytool import Tron
full_node = HttpProvider('https://api.trongrid.io')
solidity_node = HttpProvider('https://api.trongrid.io')
event_server = HttpProvider('https://api.trongrid.io')
# option 1
tron = Tron(full_node=full_node,
solidity_node=solidity_node,
event_server=event_server)
# option 2
tron_v2 = Tron()
# option 3
tron_v3 = Tron(
default_address='TRWBqiqoFZysoAeyR1J35ibuyc8EvhUAoY',
private_key='...'
)
# option 4
tron_v4 = Tron().setNetwork('nile')
Documentation
Read the library manual by the manual Documentation is available at docs.
Donations
TRON: TRWBqiqoFZysoAeyR1J35ibuyc8EvhUAoY
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tronpytool-3.3.94.tar.gz
(58.7 kB
view details)
Built Distribution
File details
Details for the file tronpytool-3.3.94.tar.gz
.
File metadata
- Download URL: tronpytool-3.3.94.tar.gz
- Upload date:
- Size: 58.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41047ba5121a9adec5bc4cd9147b651234040a30f4bf0796617c5897d7c2bd72 |
|
MD5 | a699e43d7a9719a9c5c0bc2fec9cf985 |
|
BLAKE2b-256 | f7c9db45b7cda90837db190c052846159fa136691149fd9c9de3cefd0e574922 |
File details
Details for the file tronpytool-3.3.94-py3-none-any.whl
.
File metadata
- Download URL: tronpytool-3.3.94-py3-none-any.whl
- Upload date:
- Size: 82.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcf54d44ff27bc002bd18186f3ca24de9d55ee9ac5f9022f82d7cc47a5261466 |
|
MD5 | 9b0f939eb6ed337015e5aaaf0d36eafe |
|
BLAKE2b-256 | c41a0a34d859e5ea03921dfa32593d39593edb639bee28d31b26312126db61e5 |