Skip to content

Commit b18641e

Browse files
Added the principal id of the canister on the mainnet to the readme.
1 parent f28a1ca commit b18641e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

registries/nft/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ The current list of NFT collections that are live and queryable in the NFT List
1717

1818
As a developer that is looking to integrate DAB into an app/UI, your main point of interaction should be to use the [DAB-js library](https://github.com/psychedelic/dab-js), that also provides a standard wrapper to faciliate the integration to NFTs that use different standards. You can [read our documentation](https://docs.dab.ooo) to get detailed examples on how to do so.
1919

20+
**The principal ID of the registry on the mainnet: `aipdg-waaaa-aaaah-aaq5q-cai`**
21+
2022
**This canister currently has three public methods:**
2123

2224
- name: returns the name of the NFT registry canister for health check purposes
@@ -28,14 +30,14 @@ There are also other methods such as `add`, `edit` and `remove` but these method
2830
Let's call the name method and do a health-check:
2931

3032
```sh
31-
$ dfx canister call replace_principal_id name
33+
$ dfx canister --network=ic call aipdg-waaaa-aaaah-aaq5q-cai name
3234
("NFT Registry Canister")
3335
```
3436

3537
Now we can use the `get_canister` method to get the metadata of a canister in the registry (in this case ICPunks):
3638

3739
```sh
38-
$ dfx canister call replace_principal_id get_canister "(\"ICPunks\")"
40+
$ dfx canister --network=ic call aipdg-waaaa-aaaah-aaq5q-cai get_canister "(\"ICPunks\")"
3941
(
4042
opt record {
4143
name = "ICPunks";
@@ -48,7 +50,7 @@ $ dfx canister call replace_principal_id get_canister "(\"ICPunks\")"
4850
Notice that we passed the name of the canister as an argument. That is necessary for the registry to find the canister. If you don't have an special canister in your mind, you can use the `get_all` method to get every canister's information:
4951

5052
```sh
51-
$ dfx canister call replace_principal_id get_all
53+
$ dfx canister --network=ic call aipdg-waaaa-aaaah-aaq5q-cai get_all
5254
(
5355
vec {
5456
record {

0 commit comments

Comments
 (0)