Skip to content

Commit 54a8cc3

Browse files
authored
Update README.md
1 parent 8ddf1af commit 54a8cc3

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
11
# tron-api-python
2+
3+
## Install
4+
5+
```bash
6+
> pip3 install tronapi
7+
```
8+
9+
## Example Usage
10+
```python
11+
from tronapi.providers import HttpProvider
12+
from tronapi.tron import Tron
13+
14+
full_node = HttpProvider('http://13.125.210.234:8090')
15+
address = 'tron address'
16+
17+
tron = Tron(full_node)
18+
tron.private_key = 'private_key'
19+
20+
print(tron.get_balance(address))
21+
```
22+
### cli
23+
```bash
24+
>>> python cli.py send from to amount private_key
25+
>>> python cli.py --generateaddress
26+
>>> python cli.py --node=customnode --getbalance address

0 commit comments

Comments
 (0)