From f59e5268e6b9836516bbbfc64148b7077c893d25 Mon Sep 17 00:00:00 2001 From: ravaga Date: Thu, 30 Nov 2023 20:33:01 +0100 Subject: [PATCH] added get_restore_info Signed-off-by: ravaga --- .../rpc-api/wallet-rpc-api/get_restore_info | 28 ++++++++++++++ .../wallet-rpc-api/get_seed_phrase_info.md | 38 ++++++------------- 2 files changed, 40 insertions(+), 26 deletions(-) create mode 100644 docs/build/rpc-api/wallet-rpc-api/get_restore_info diff --git a/docs/build/rpc-api/wallet-rpc-api/get_restore_info b/docs/build/rpc-api/wallet-rpc-api/get_restore_info new file mode 100644 index 0000000..3fa16a9 --- /dev/null +++ b/docs/build/rpc-api/wallet-rpc-api/get_restore_info @@ -0,0 +1,28 @@ +### Request + +```json +{ + "jsonrpc": "2.0", + "id": 0, + "method": "get_restore_info", + "params": { + "seed_password": "12345" + } +} +``` + +seed_password - string; password for seed phrase, is the optional parameter that is used to encrypt the seed phrase. If you're using it make sure to save it, otherwise you will not be able to restore your wallet. + +--- + +### Response + +```json +{ + "id": 0, + "jsonrpc": "2.0", + "result": { + "seed_phrase": "word1 word2 word3.....word25" + } +} +``` diff --git a/docs/build/rpc-api/wallet-rpc-api/get_seed_phrase_info.md b/docs/build/rpc-api/wallet-rpc-api/get_seed_phrase_info.md index 1678343..253e641 100644 --- a/docs/build/rpc-api/wallet-rpc-api/get_seed_phrase_info.md +++ b/docs/build/rpc-api/wallet-rpc-api/get_seed_phrase_info.md @@ -1,40 +1,26 @@ -This endpoint wasnt on original docs and was found in GitHub code, needs a description of what the endpoint does, any required request parameters? and descriptions for json response parameters - - -:::info ㅤ -Check with Ravaga what this endpoint does. -::: - ### Request ```json { - "jsonrpc": "2.0", - "id": 0, - "method": "get_seed_phrase_info" + "jsonrpc": "2.0", + "id": 0, + "method": "get_seed_phrase_info" } ``` --- -### Response +### Response ```json { - "id": 0, - "jsonrpc": "2.0", - "result": { - "hash_sum_matched": false, - "require_password": false, - "syntax_correct": false, - "tracking": false - } + "id": 0, + "jsonrpc": "2.0", + "result": { + "hash_sum_matched": false, + "require_password": false, + "syntax_correct": false, + "tracking": false + } } ``` - -### Response information - -- hash_sum_matched - ? -- require_password - ? -- syntax_correct - ? -- tracking - ? \ No newline at end of file