Skip to content

Commit 800d9ac

Browse files
Updated the readme.
1 parent 9357d11 commit 800d9ac

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

registries/canister_registry/README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,28 @@ Registry canister stores the following information about every canister that has
4040
- Logo URL
4141
- Version of the metadata
4242

43-
The version of the metadata helps developers identify new updates and changes to the metadata. Version increments by one, every time the metadata receives an update.
43+
The version of the metadata helps developers identify new updates and changes to the metadata. Version increments by one, every time the metadata receives an update.
44+
45+
The registry canister's principal ID on the mainnet is `qxtlu-aiaaa-aaaah-aaupq-cai`. Let's check if we have the right canister:
46+
47+
```sh
48+
$ dfx canister --network=ic call qxtlu-aiaaa-aaaah-aaupq-cai name
49+
("Canister Registry")
50+
```
51+
52+
Now that we are sure of the canister's principal ID, let's ask the registry for XTC canister's metadata:
53+
54+
```sh
55+
$ dfx canister --network=ic call qxtlu-aiaaa-aaaah-aaupq-cai get_info "(vec {principal \"aanaa-xaaaa-aaaah-aaeiq-cai\"})"
56+
(
57+
vec {
58+
opt record {
59+
url = "https://dank.ooo/xtc/";
60+
name = "XTC";
61+
description = "Cycles Token (XTC) is a token that allows users or developers to hold cycles with just a Principal ID, and send, trade, or develop canisters with them.";
62+
version = 0 : nat32;
63+
logo_url = "https://storageapi.fleek.co/fleek-team-bucket/canister-logos/XTC.svg";
64+
};
65+
},
66+
)
67+
```

0 commit comments

Comments
 (0)