tronprotocol / tronweb

Javascript API Library for interacting with the TRON Network
MIT License
440 stars 277 forks source link

Add 24 words to fromMnemonic #407

Closed vahidsabet closed 1 year ago

vahidsabet commented 1 year ago

Please consider generating HD wallets from 24 words using fromMnemonic.

Is there any substitution for this purpose?

start940315 commented 1 year ago

It's able to generate HD wallets using 24 words using fromMnemonic. You can just use tronWeb.fromMnemonic(phrase, path, wordlist) to create.

vahidsabet commented 1 year ago

Dear @start940315, I mean using both createrandom function and fromMnemonic of created words

vahidsabet commented 1 year ago

Also using fromMnemonic with 24 words returned:

code: 'INVALID_ARGUMENT', argument: 'mnemonic', value: '[ REDACTED ]'

start940315 commented 1 year ago

Which version did you use? And can you post your code on this page? Remember to delete the mnemonic phrase.