Skip to main content

tronpy

TRON Python Client Library.

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")
    .fee_limit(100_000_000)
    .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}}

Metadata

Release files for nobi-tronpy 0.2.7

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

Source distribution (sdist)

Source distribution for nobi-tronpy 0.2.7
File Size Uploaded Provenance Actions
nobi-tronpy-0.2.7.tar.gz 36.0 kB Without provenance Details for nobi-tronpy-0.2.7.tar.gz

Built distribution (wheel)

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

Total release size: 70.8 kB

Release files / nobi-tronpy-0.2.7.tar.gz

Download URL nobi-tronpy-0.2.7.tar.gz
Size 36.0 kB
Tags Source
SHA-256 checksum
How to use checksums
664e79e3e285f717cb1d5e56a2dafe4cc396414c3ae88345165051bb6cdb6b87
BLAKE2b-256 checksum
How to use checksums
a34e28d9dd1ad1b06dd9de4946d09c8b310d69a6bf08d5ec13cc2a3d817bbdaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / nobi_tronpy-0.2.7-py3-none-any.whl

Download URL nobi_tronpy-0.2.7-py3-none-any.whl
Size 34.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c92950be0be8b10f5ae6c807f83ef9f810ff374d168c5d7e1da3cd44ee6ad35
BLAKE2b-256 checksum
How to use checksums
340df72a7e0f0df2936016560615a64c7303a0b1f920822478444d8c35a3a869
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Security for nobi-tronpy 0.2.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.7 This release

2 release files No provenance

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