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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tronpytool-3.3.80.tar.gz.
File metadata
- Download URL: tronpytool-3.3.80.tar.gz
- Upload date:
- Size: 55.8 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 |
3f890589b49e79fadd7a738a0999d5f16bff78a1729b279d8ea9be8697963fda
|
|
| MD5 |
8c146d6177d9a6fc328bb7a73260476d
|
|
| BLAKE2b-256 |
0593bf1b7b7ec86a546cb0993413859bed64c48ccf3725e74e5f040fb3ba9574
|
File details
Details for the file tronpytool-3.3.80-py3-none-any.whl.
File metadata
- Download URL: tronpytool-3.3.80-py3-none-any.whl
- Upload date:
- Size: 74.7 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 |
2354ac125986a5fe3db35589087c57b3a0092165df8c73f620fe6da2201595ec
|
|
| MD5 |
1a5eef90726b7e9f79e631fb2409a85f
|
|
| BLAKE2b-256 |
e1b0825bc9f2de3dbcdbee25b45d6f31e373fcca7b9f6bfb5ba1d83705993de4
|