How can I get the fuel wallet address directly using the wallet mnemonic? Are there any corresponding algorithm examples or code examples?

For example, in python, I can use the eth_account library to create a mnemonic and then obtain the erc20 wallet address.
Can I use the created mnemonic or private key to obtain the fuel wallet address?
Thanks guys.

1 Like

Hi there!
First you need to import the wallet by using forc wallet as seen here.

forc wallet import

Then, create a new account

forc wallet account new

Finally, use your bech32 address as required. Please check the fuels-ts docs for further examples on address conversion.

4 Likes

Thank you bro.I fixed it using the method you provided. :kissing_heart:

1 Like

Is that possible to translate the code into python for the key generation for import or export functions?