Skip to content

Conversation

@reactmore
Copy link

Description

This PR introduces TON Wallet support with options for V4R2 and W5 wallet models.
The following core features are implemented:

  • createWallet – create a new TON wallet
  • generateWalletFromMnemonic – restore or generate wallet from mnemonic phrase
  • getAddressFromPrivateKey – derive wallet address from a private key
  • getBalance – fetch balance (supports both native TON and Jettons)
  • transfer – send transactions (supports both native TON and Jettons)
  • getTransaction – retrieve transaction details by address/hash
  • getTokenInfo – fetch Jetton metadata (name, symbol, decimals, etc.)

Wallet Activation (Important ⚠️)

By default, a newly created TON wallet is in an uninitialized state.
To activate it:

  1. Deposit any amount of TON into the wallet.
  2. On first getBalance call after deposit, the wallet will be deployed (state initialized).
    This means getBalance will not work until the wallet is initialized with a small deposit.

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • I have selected the correct base branch.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • Any dependent changes have been merged and published in downstream modules.
  • I ran npm run test and my test cases cover all the lines and branches of the added code.
  • I ran npm run build with success.
  • I have tested my code on the live network.
  • I have checked the Deploy Preview and it looks correct.

@reactmore
Copy link
Author

Good evening, sir @iamnotstatic I am creating a TON Wallet assignment for the V4R2 and W5 wallet models.

@iamnotstatic
Copy link
Owner

Good evening, sir @iamnotstatic. I am creating a TON Wallet assignment for the V4R2 and W5 wallet models.

Hi @reactmore, Thanks for raising this PR, I will review and share updates accordingly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants