Skip to main content

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

Project details


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.9.tar.gz (8.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page