Hi, @Sakib003 , welcome on the Forum!
If you have 24 words out of 25, it is easy to recover the missing word.
There are only 2048 possible words. See them here: word list
With a suitable program it is a matter of a jiffy.
See this code, e.g., reposted from 25th word missing
# recover.py
# written by danger_dave
# updated by Ludovit Scholtz
#
# This code searches for one missing word in 25 mnemonic algorand phrase with known address
from algosdk import mnemonic
from algosdk import wordlist
# Write in Public Key here
address = "JU73IC5WZRS2AF4LN6WBAY5ZFDWMNNRXU6O5VIPZIFRLLT53VHDOBYP3HQ"
# 24 words go here (single space seperated)
confirmed = "youth journey spot increase action robust teach rubber direct world turn blouse camp hundred vessel pottery ozone brain hard risk quiz window abstract include"
word_list = wordlist.word_list_raw().split("\n")
wordscheck = confirmed.split(" ")
check = True
for word in wordscheck:
if word in word_list:
print(word+" is ok")
else:
print(word+" IS WRONG")
check = False
if not check:
print("!!!!!Some words are wrong .. try to find error in the allowed words: https://github.com/bitcoin/bips/blob/master/bip-0039/english.txt")
raise
curr = 0
first_part = ""
second_part = confirmed
for location in range(25):
print(location)
if location != 0:
curr = confirmed.index(" ", curr + 1)
first_part = confirmed[:curr]
second_part = confirmed[curr:]
for word in word_list:
test_phrase = first_part + " " + word +" "+ second_part
try:
test_address = mnemonic.to_public_key(test_phrase)
except:
continue
if test_address == address:
print(test_phrase)
raise
First, you should install Py-Algorand-sdk. Run $ pip3 install py-algorand-sdk
in a Linux OS to install the package. Then you should edit the above file, and substitute your address in the code to address
, and also the 24 words you know to confirmed
. Finally, run python3 yourfile.py