# Wallet canister address book

**URL:** <https://forum.dfinity.org/t/wallet-canister-address-book/4129>\
**Category:** Developers\
**Created:** [May 21, 2021, 12:31pm UTC](https://forum.dfinity.org/t/wallet-canister-address-book/4129 "2021-05-21T12:31:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cryptoschindler](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/cryptoschindler/32/26_2.png) [@cryptoschindler](https://forum.dfinity.org/u/cryptoschindler)\
**Post date:** [May 21, 2021, 12:31pm UTC](https://forum.dfinity.org/t/wallet-canister-address-book/4129/1 "2021-05-21T12:31:51Z")

</div>

why is `dfx wallet addresses` not showing canisters created with the wallet?

and how can we list all the canisters created with a wallet?

---

<div class="post-metadata">

**Author:** ![prithvi](https://avatars.discourse-cdn.com/v4/letter/p/22d042/32.png) [@prithvi](https://forum.dfinity.org/u/prithvi)\
**Post date:** [May 21, 2021, 2:06pm UTC](https://forum.dfinity.org/t/wallet-canister-address-book/4129/2 "2021-05-21T14:06:05Z")

</div>

The `addresses` call returns the list of AddressEntry 's [agent-rs/wallet.rs at next · dfinity/agent-rs · GitHub](https://github.com/dfinity/agent-rs/blob/next/ic-utils/src/interfaces/wallet.rs#L161)

```auto
#[derive(CandidType, Debug, Deserialize)]
pub enum Role {
    Contact,
    Custodian,
    Controller,
}

#[derive(CandidType, Debug, Deserialize)]
pub enum Kind {
    Unknown,
    User,
    Canister,
}

#[derive(CandidType, Debug, Deserialize)]
pub struct AddressEntry {
    pub id: Principal,
    pub name: Option<String>,
    pub kind: Kind,
    pub role: Role,
}

```

So it will not display the canisters created by the wallet. The UI displays the canisters by reading the event log.

---

<div class="post-metadata">

**Author:** ![prithvi](https://avatars.discourse-cdn.com/v4/letter/p/22d042/32.png) [@prithvi](https://forum.dfinity.org/u/prithvi)\
**Post date:** [May 21, 2021, 2:08pm UTC](https://forum.dfinity.org/t/wallet-canister-address-book/4129/3 "2021-05-21T14:08:39Z")

</div>

You can get events by doing `dfx canister call <wallet-id> get_events '(record {from = null; to = null})'` and see the canister create events.

---

<div class="post-metadata">

**Author:** ![cyberowl](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/cyberowl/32/3635_2.png) [@cyberowl](https://forum.dfinity.org/u/cyberowl)\
**Post date:** [December 15, 2021, 9:51am UTC](https://forum.dfinity.org/t/wallet-canister-address-book/4129/4 "2021-12-15T09:51:30Z")

</div>

At some point I think by accidentally trying to assign my principal to the wallet canister I messed it up. When I query it I get ` { record { 23_515 = 70 : nat32; 1_191_829_844 = variant { 1_955_698_212 = record { 2_190_693_645 = 0 : nat64; 2_374_371_241 = "canister_status"; 2_631_180_839 = principal "aaaaa-aa"`. I did the process from scratch and I get the correct principal.
