Skip to main content

tron-address-converter

Package for converting TRON address <-> EVM address Based on https://tronscan.org/#/tools/code-converter/tron-ethereum-address and https://github.com/wemaketech/tron-format-address/blob/master/lib/crypto.ts

Installation

pip install tron-address-converter

Usage

import tron_address_converter

evm_wallet = tron_address_converter.to_hex("TXXmULCEzRo6JfxUP1LYfmzbiKUezUvUNj")
# 0xec830e98468d23f54c58174bb9a3671fcc440ff2
tron_wallet = tron_address_converter.from_hex("0xec830e98468d23f54c58174bb9a3671fcc440ff2")
# TXXmULCEzRo6JfxUP1LYfmzbiKUezUvUNj

print(evm_wallet) # 0xec830e98468d23f54c58174bb9a3671fcc440ff2
print(tron_wallet) # TXXmULCEzRo6JfxUP1LYfmzbiKUezUvUNj

Metadata

Release files for tron-address-converter 1.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 tron-address-converter 1.0
File Size Uploaded
tron-address-converter-1.0.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tron-address-converter 1.0
File Interpreter ABI Platform
tron_address_converter-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.5 kB

Release files / tron-address-converter-1.0.tar.gz

Download URL tron-address-converter-1.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fbc333bc7620446657ad929ea7552744ae080280dc90eaefda96f97ff4ee9ac2
BLAKE2b-256 checksum
How to use checksums
ac75f0af9a4a74875a05c28a918fc984242202396b069a09060538781fae69eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / tron_address_converter-1.0-py3-none-any.whl

Download URL tron_address_converter-1.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c28a7a1927744601b59623d8fe28888eed64aaa0743f4352c93310327900fa2
BLAKE2b-256 checksum
How to use checksums
f84bf4f3472f00db048d2c467a15335fde6e78d8cd15df3e8acb6f2446d70267
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

This release

1.0 This release

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