It is assumed that once the local node has been started and the wallet has been created, e.g. by dfx deploy; if the local node is restarted, the wallet id is still saved, but there is no wallet.
dfx identity get-wallet --network http://localhost:4943
bnz7o-iuaaa-aaaaa-qaaaa-cai
dfx identity get-wallet --network http://127.0.0.1:4943
bkyz2-fmaaa-aaaaa-qaaaq-cai
dfx wallet balance --network http://127.0.0.1:4943
Error: Failed to setup wallet caller.
Caused by: Failed to setup wallet caller.
Failed to construct wallet canister caller: The replica returned a rejection error: reject code DestinationInvalid, reject message IC0301: Canister bkyz2-fmaaa-aaaaa-qaaaq-cai not found, error code Some("IC0301")
dfx wallet balance --network http://localhost:4943
Error: Failed to setup wallet caller.
Caused by: Failed to setup wallet caller.
Failed to construct wallet canister caller: The replica returned a rejection error: reject code DestinationInvalid, reject message IC0301: Canister bnz7o-iuaaa-aaaaa-qaaaa-cai not found, error code Some("IC0301")
Is it possible to put the wallet again for the id that can be obtained here?
Or is it possible to recreate everything, including the wallet id itself?