# Cycles-ledger mainnet canister-id

**URL:** <https://forum.dfinity.org/t/cycles-ledger-mainnet-canister-id/28147>\
**Category:** Developers\
**Created:** [March 6, 2024, 6:04am UTC](https://forum.dfinity.org/t/cycles-ledger-mainnet-canister-id/28147 "2024-03-06T06:04:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vishnu](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vishnu/32/23285_2.png) [@Vishnu](https://forum.dfinity.org/u/Vishnu)\
**Post date:** [March 6, 2024, 6:04am UTC](https://forum.dfinity.org/t/cycles-ledger-mainnet-canister-id/28147/1 "2024-03-06T06:04:36Z")

</div>

Hi everyone, I have some questions.

I want to use cycles-ledger in my project. Does anyone know the mainnet canister ID for cycles-ledger? I couldn’t find it on the documentation or the forum.

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![THLO](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/thlo/32/2349_2.png) [@THLO](https://forum.dfinity.org/u/THLO)\
**Post date:** [March 6, 2024, 7:36am UTC](https://forum.dfinity.org/t/cycles-ledger-mainnet-canister-id/28147/2 "2024-03-06T07:36:54Z")

</div>

The cycles ledger is not up and running yet.  
You can follow the development and ask questions about the cycles ledger project in [this thread](https://forum.dfinity.org/t/improving-the-cycle-management-experience/19895).

---

<div class="post-metadata">

**Author:** ![bitdivine](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/bitdivine/32/246_2.png) [@bitdivine](https://forum.dfinity.org/u/bitdivine)\
**Post date:** [July 18, 2024, 2:33am UTC](https://forum.dfinity.org/t/cycles-ledger-mainnet-canister-id/28147/3 "2024-07-18T02:33:11Z")

</div>

For anyone (like myself) that lands here when looking for the answer:

The mainnet cycles ledger is at: um5iw-rqaaa-aaaaq-qaaba-cai

Source: [sdk/src/dfx/src/lib/operations/cycles\_ledger.rs at release-0.20.0 · dfinity/sdk · GitHub](https://github.com/dfinity/sdk/blob/release-0.20.0/src/dfx/src/lib/operations/cycles_ledger.rs#L46)

To get the string I did:

```auto
max@sinkpad:~/dfn/cycles-ledger-canister-id (3:48)$ cat src/main.rs 
use candid::Principal;

fn main() {
    const CYCLES_LEDGER_CANISTER_ID: Principal =
    Principal::from_slice(&[0x00, 0x00, 0x00, 0x00, 0x02, 0x10, 0x00, 0x02, 0x01, 0x01]);
    println!("{CYCLES_LEDGER_CANISTER_ID}");
}
max@sinkpad:~/dfn/cycles-ledger-canister-id (7:14)$ cargo run
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.02s
     Running `target/debug/cycles-ledger-canister-id`
um5iw-rqaaa-aaaaq-qaaba-cai

```

You can find NNS proposals about the cycles ledger on the dashboard: [https://dashboard.internetcomputer.org/canister/um5iw-rqaaa-aaaaq-qaaba-cai](https://dashboard.internetcomputer.org/canister/um5iw-rqaaa-aaaaq-qaaba-cai)

IMO it would be nice if dfx could say which cycles wallet it is using; it may be possible but I couldn’t find out how. I tried:

- Looking at `dfx cycles --help` and `dfx wallet --help`
- Running `dfx cycles balance --ic --verbose` in the hope that the debug messages might include API calls and canister IDs.

---

<div class="post-metadata">

**Author:** ![bitdivine](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/bitdivine/32/246_2.png) [@bitdivine](https://forum.dfinity.org/u/bitdivine)\
**Post date:** [July 18, 2024, 2:56am UTC](https://forum.dfinity.org/t/cycles-ledger-mainnet-canister-id/28147/4 "2024-07-18T02:56:34Z")

</div>

Note: The canister ID is also listed in the thread linked above - I just missed it on the first skim read…

---

<div class="post-metadata">

**Author:** ![THLO](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/thlo/32/2349_2.png) [@THLO](https://forum.dfinity.org/u/THLO)\
**Post date:** [July 18, 2024, 9:53am UTC](https://forum.dfinity.org/t/cycles-ledger-mainnet-canister-id/28147/5 "2024-07-18T09:53:17Z")

</div>

> [@bitdivine](#):
>
> it would be nice if dfx could say which cycles wallet it is using; it may be possible but I couldn’t find out how.

You can get the canister ID of the wallet associated with your current identity using this command:

```auto
$ dfx identity get-wallet --ic

```

Note that the command `dfx cycles` is all about cycles associated with your principal ID (or, more precisely, the principal ID of your current identity). It is meant to abstract away how the cycles are managed - which is always through the cycles ledger in the background. Consequently, there is no way to print out the canister ID of the cycles ledger.  
If you need to work with the cycles ledger itself, you’ll (hopefully) find all the required information in the [GitHub repository](https://github.com/dfinity/cycles-ledger) or [wiki page](https://wiki.internetcomputer.org/wiki/Cycles_Ledger).
