dfinity / cycles-wallet

DFINITY Cycles Wallet
Apache License 2.0
55 stars 30 forks source link

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

Deploying the cycles wallet

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

Resources