Identity - cycles wallet - ledger wallet - import and backup

Side note: this is one of the reasons why we’re working on the cycles ledger so that this doesn’t happen.

If you didn’t back up the cycles wallet id you need to recover it somehow and then run dfx identity --network ic set-wallet <wallet id>. To find the id there are a few ways:

  • Search on a chain explorer (e.g. icscan.io) for your principal and see which canisters your identity controls. If a canister interface shows wallet functions then it’s likely your cycles wallet
  • Look at the controllers of canisters that you deployed using that identity. Your projects would have a canister_ids.json file that lists your canister ids. If you check their controllers with e.g. dfx canister --network ic info <canister id> you will see which principals control the canister. dfx by defaults makes your identity and your wallet a controller