Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add recoverwallet RPC call #11535

Merged
merged 1 commit into from
Sep 22, 2023
Merged

Conversation

lontivero
Copy link
Collaborator

This PR adds a new method to recover wallets from mnemonics. Close: #11362

Using curl

$ curl -s \
  --user <rpcuser:rpcpassword> \
  --data-binary '{"jsonrpc":"2.0", "id":"curltext", "method":"recoverwallet", "params":["recovered-wallet", "emerge title hero sauce pilot mail breeze jelly fatal speak shock ladder"]}' \
  -H \
  -- 'content-type: text/plain;' \
  http://127.0.0.1:37128/

Using wcli

$ ./wcli.sh \
  recoverwallet recovered-wallet \
  "emerge\ title\ hero\ sauce\ pilot\ mail\ breeze\ jelly\ fatal\ speak\ shock\ ladder\"

Copy link
Collaborator

@MarnixCroes MarnixCroes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tack ece3b93
(tried both curl and wcli, and with a password)

Would be nice to return a message if it was successfull -> wallet succesfully recoverd.

@lontivero
Copy link
Collaborator Author

Would be nice to return a message if it was successfull

RPC is for computers, they can see the http error code 200 OK in the header.

@lontivero lontivero merged commit 7185776 into WalletWasabi:master Sep 22, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RPC: Recover wallet
2 participants