最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Issue with Mnemonic Phrase and Private Key for TON TestNet Transfers – Address Mismatch - Stack Overflow

programmeradmin5浏览0评论

I’ve run into a problem while trying to perform a transfer in TON TestNet using Python with the tonutils and tonsdk libraries. My goal is to send 0.1 TON from my wallet to another address, but the generated address doesn’t match my target address.

Details Mnemonic Phrase: I have a mnemonic phrase: image unlock kangaroo leaf behind bench elite front genre domain law please armor immense latin hundred relief brand sorry squirrel double consider bus feel. Key Generation: I use tonsdk.crypto.mnemonic_to_wallet_key to generate private and public keys: Private key: 535130a8ffdd683d0d9a78612d3f989c016616bfc18a9ca315bf5f8f352e8d53 (64 characters, 32 bytes). Wallet Creation: I create a v5r1 wallet using tonutils.WalletV5R1 with these keys. Result: The wallet address generated is kQDTnkF_wJyxYVcxT1KVNdgNVbYMPVLArkJ71fAnaPEyynCz.

The Problem Target Address: My target address in TestNet is 0QBL00YXYBeTAXnZUapRCxCQGiBiY7-WdJmSisxhF7BGAiCN. Mismatch: The code generates kQDTnkF_... instead of 0QBL00YXY.... Transfer Failure: The transfer doesn’t happen because the generated address has a 0 TON balance, but the main issue is that I can’t get my target address.

What I’ve Tried Checked v5r1: Using WalletV5R1, the address is consistently kQDTnkF_.... Tried v4r2: Switched to WalletV4R2 – the address changes, but it’s still not my target address. Tonkeeper Verification: Imported the phrase into Tonkeeper (TestNet mode) – it also shows kQDTnkF_..., meaning the phrase correctly generates keys, but it’s not my wallet. API Key: The Toncenter API key works fine, and the client initializes successfully, so the issue is with the address generation. Questions Mnemonic Mismatch: Could my phrase image unlock kangaroo... not correspond to the address 0QBL00YXYBeTAXnZUapRCxCQGiBiY7-WdJmSisxhF7BGAiCN? How can I verify this? Wallet Version: Does the wallet version (v4r2 vs v5r1) affect the address generated from the same mnemonic phrase? Correct Key: How do I generate the correct private key for my address if the mnemonic is wrong? Are there tools for this?

发布评论

评论列表(0)

  1. 暂无评论