Skip to content

dfinity/cycles-wallet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b013764 · Apr 16, 2024

History

87 Commits
Apr 10, 2024
Apr 16, 2024
Apr 16, 2024
Jun 20, 2022
Dec 4, 2021
Feb 24, 2023
Apr 16, 2024
Apr 16, 2024
Jan 10, 2022
Mar 21, 2022
Oct 6, 2020
Nov 15, 2023
Mar 21, 2022
May 24, 2023
Oct 6, 2020
Jan 12, 2021
Jun 20, 2022
May 24, 2023
May 24, 2023
Apr 10, 2024
Jan 12, 2021
Mar 21, 2023
Mar 24, 2021
Jan 21, 2022

Repository files navigation

DFINITY cycles wallet

Build Status

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.

Prerequisites

  • Install the IC SDK.

  • Download and install Node.js, version 16.x.x and older. Running a version newer than 16.x.x may result in an error.

Deploying the cycles wallet

The cycles wallet can be installed and deployed using the following steps:

  • Step 1: Install dependencies:

npm ci
  • Step 2: Start the local replica:

dfx start --background --clean
  • Step 3: Deploy to local replica:

dfx deploy

Once deployed, you can obtain the canister ID with the command:

dfx canister id wallet

Resources