ICP tokens can be converted into cycles to power canister operations. Cycles reflect the operational cost of communication, computation, and storage that dapps consume.
Unlike ICP tokens, cycles are only associated with canisters and not with user or developer principals. Because only canisters require cycles to perform operations and pay for the resources they use, users and developers manage the distribution and ownership of cycles through a special type of canister called a cycles wallet. The cycles wallet holds the cycles required to perform operations such as creating new canisters. These operations are executed using the canister principal of the cycles wallet instead of your user principal.
[x] Install the IC SDK.
[x] Download and install Node.js, version 16.x.x and older. Running a version newer than 16.x.x may result in an error.
The cycles wallet can be installed and deployed using the following steps:
npm ci
dfx start --background --clean
dfx deploy
Once deployed, you can obtain the canister ID with the command:
dfx canister id wallet