Skip to content

Ton cryptocurrency#129

Open
itsm3abena wants to merge 2 commits into
hdwallet-io:masterfrom
itsm3abena:ton-cryptocurrency
Open

Ton cryptocurrency#129
itsm3abena wants to merge 2 commits into
hdwallet-io:masterfrom
itsm3abena:ton-cryptocurrency

Conversation

@itsm3abena
Copy link
Copy Markdown
Member

@itsm3abena itsm3abena commented May 30, 2026

Description

Closes #103

This PR introduces support for the TON (The Open Network) ecosystem by implementing two of its primary wallet paradigms: v4r2 and the next-generation w5 (v5r1). This allows users to derive TON specific addresses and manage keypairs directly through hdwallet.

Changes Introduced

1. TON v4r2 Support

2. TON w5 (v5r1) Support

Usage Example

from hdwallet import HDWallet
from hdwallet.cryptocurrencies import Ton
from hdwallet.mnemonics import BIP39Mnemonic

# Initialize TON HDWallet
hdwallet = HDWallet(cryptocurrency=Ton)
hdwallet.from_mnemonic(mnemonic=BIP39Mnemonic(mnemonic="your mnemonic"))

# Retrieve address for specific wallet versions
print("Address (v4r2):", hdwallet.address(wallet_version="v4r2"))
print("Address (w5):", hdwallet.address(wallet_version="v5r1"))
# it is default for w5 print("Address (w5):", hdwallet.address())
print("Path:", hdwallet.path())
print("Public key:", hdwallet.public_key())

@itsm3abena itsm3abena requested review from axiom90 and meherett May 30, 2026 12:42
@itsm3abena itsm3abena self-assigned this May 30, 2026
@itsm3abena itsm3abena added the cryptocurrency New cryptocurrency to add label May 30, 2026
@itsm3abena itsm3abena removed their assignment May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cryptocurrency New cryptocurrency to add

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TON network support

1 participant