Skip to main content

tronpy

PyPI version

TRON Python Client Library. Documentation

How to use

from tronpy import Tron

client = Tron(network='nile')
# Private key of TJzXt1sZautjqXnpjQT4xSCBHNSYgBkDr3
priv_key = PrivateKey(bytes.fromhex("8888888888888888888888888888888888888888888888888888888888888888"))

txn = (
    client.trx.transfer("TJzXt1sZautjqXnpjQT4xSCBHNSYgBkDr3", "TVjsyZ7fYF3qLF6BQgPmTEZy1xrNNyVAAA", 1_000)
    .memo("test memo")
    .build()
    .inspect()
    .sign(priv_key)
    .broadcast()
)

print(txn)
# > {'result': True, 'txid': '5182b96bc0d74f416d6ba8e22380e5920d8627f8fb5ef5a6a11d4df030459132'}
print(txn.wait())
# > {'id': '5182b96bc0d74f416d6ba8e22380e5920d8627f8fb5ef5a6a11d4df030459132', 'blockNumber': 6415370, 'blockTimeStamp': 1591951155000, 'contractResult': [''], 'receipt': {'net_usage': 283}}

Release files for tronpy 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tronpy 0.1.6
File Size Uploaded
tronpy-0.1.6.tar.gz 18.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tronpy 0.1.6
File Interpreter ABI Platform
tronpy-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 38.6 kB

Release files / tronpy-0.1.6.tar.gz

Download URL tronpy-0.1.6.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7c02cddabe7c40be80a47be58994ab71c1817b8beef7f731fb81409139b592d5
BLAKE2b-256 checksum
How to use checksums
5c22cdf3eb27a09215746a6d298882bc9838193ba7f8b17c21a9d041b638d38e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.8.6 Darwin/19.3.0

Release files / tronpy-0.1.6-py3-none-any.whl

Download URL tronpy-0.1.6-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9169b39af9c8c6b5fb1c1b8ef5acf8a313f30f4deabdef66ae62ab7703563ee3
BLAKE2b-256 checksum
How to use checksums
70679c5763989edbb72aca79b0e1bc2033b41995ad6b7df515fde6ab7197609f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.8.6 Darwin/19.3.0

Release history Release notifications | RSS feed

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page