Post
Topic
Board Bitcoin Technical Support
Re: Help with python code
by
ETFbitcoin
on 05/10/2023, 10:42:23 UTC
OP, you fell into XY problem[1] where you ask how to improve your Python code rather than trying using recovery software which already mentioned by other member.

response = requests.post("https://ep.isafepal.com", json={"phrase": corrected_seed})
if response.status_code == 200:
return corrected_seed

How did you come into conclusion that you should check whether the seed is correct by sending POST request with seed data. On top of that, i just tried it with valid 24 word from iancoleman[2] and it doesn't even work,

Code:
>>> import requests
>>> corrected_seed = "more slam conduct insect sing universe song analyst tortoise rack arrest camp olympic army candy worry harvest work affair inside gather fossil sentence galaxy"
>>> response = requests.post("https://ep.isafepal.com", json={"phrase": corrected_seed})
>>> response.status_code
404

--snip--
I don't post my seed at anyplace I have it on paper writed by hand, I'm totally noob programing I do it correcting what a AI do for me.

It'd lead to disaster or frustration when AI generate wrong answer/code and you don't even know that the AI made mistake.

[1] https://xyproblem.info
[2] https://iancoleman.io/bip39/