A Python API for interacting with Tron (TRX)
Project description
# TRON API for Python
A Pyton API for interacting with the Tron (TRX)
## Install
```bash
> pip3 install tronapi
```
## Example Usage
```python
from tronapi.providers import HttpProvider
from tronapi.tron import Tron
full_node = HttpProvider('http://13.125.210.234:8090')
tron = Tron(full_node)
tron.private_key = 'private_key'
print(tron.get_balance('address'))
```
### cli
```bash
>>> python cli.py send from to amount private_key
>>> python cli.py --generateaddress
>>> python cli.py --node=customnode --getbalance address
```
## Donations
**Tron(TRX)**: TRWBqiqoFZysoAeyR1J35ibuyc8EvhUAoY
A Pyton API for interacting with the Tron (TRX)
## Install
```bash
> pip3 install tronapi
```
## Example Usage
```python
from tronapi.providers import HttpProvider
from tronapi.tron import Tron
full_node = HttpProvider('http://13.125.210.234:8090')
tron = Tron(full_node)
tron.private_key = 'private_key'
print(tron.get_balance('address'))
```
### cli
```bash
>>> python cli.py send from to amount private_key
>>> python cli.py --generateaddress
>>> python cli.py --node=customnode --getbalance address
```
## Donations
**Tron(TRX)**: 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
tronapi-1.0.8.tar.gz
(7.9 kB
view hashes)