Skip to main content

trontxsize - Calculate tron transaction size in bytes

CI Codecov PyPI version

In Tron (TRX) network, fee calculation algorithm is complex. And the most complex part of it is that it depends on transaction size.

But there's no method existing to calculate it

This library does just this:

import trontxsize

print(trontxsize.get_tx_size({"raw_data": ..., "signatures": [...])) # matches bandwidth you see in block explorer

How does it work? The library pre-compiled a trimmed-down version of Tron protobuf and uses it directly to calculate transaction size

Copyright and License

Copyright (C) 2022 MrNaif2018

Licensed under the MIT License

Metadata

Release files for trontxsize 1.2.0

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

Source distribution (sdist)

Source distribution for trontxsize 1.2.0
File Size Uploaded Provenance Actions
trontxsize-1.2.0.tar.gz 108.6 kB With provenance Details for trontxsize-1.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 115.1 kB

Release files / trontxsize-1.2.0.tar.gz

Download URL trontxsize-1.2.0.tar.gz
Size 108.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3bb1308e0b78e29bb131c69e1860341dede24cf7211f52cc08d1786d1a495113
BLAKE2b-256 checksum
How to use checksums
323185757f10e525f39239343a514081b0a085c83492c66b4e26576ec9f77827
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 17, 2026.

Transparency log

Release files / trontxsize-1.2.0-py3-none-any.whl

Download URL trontxsize-1.2.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6dcd33407397029c1c3ce62b3d9b43bdb972d5046163458a81dcac122e51653b
BLAKE2b-256 checksum
How to use checksums
49869bf87ad3f84761b38075e6cc1236478cf95d633afd7a39333f0cc6f2a9cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 17, 2026.

Transparency log

Security for trontxsize 1.2.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for trontxsize-1.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 17, 2026.

Transparency log

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.

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