# Getting Collection Contract Address

Before you proceed with adding a collection to the <mark style="color:blue;">**NFT Stats**</mark> or tracking its mint events with the <mark style="color:blue;">**NFT Tracker**</mark> or setting up token-gated rules for it with the <mark style="color:blue;">**Verify Roles**</mark> plugin, you first need to prepare the <mark style="color:$success;">Contract Address</mark> (for the collections on <mark style="color:$warning;">**Ethereum**</mark>, <mark style="color:$warning;">**Polygon**</mark>, and <mark style="color:$warning;">**Solana**</mark>).

## <mark style="color:$primary;">**EVM Collections.**</mark>

With the collections built on EVM blockchains like <mark style="color:$warning;">**Ethereum**</mark> or <mark style="color:$warning;">**Polygon**</mark>, things are going pretty easily. If you are reading this text, that highly likely means that you are the owner and creator of the collection and will know its <mark style="color:$warning;">**Ethereum**</mark> or <mark style="color:$warning;">**Polygon**</mark> contract address. If, for any reason, this is not true and you are being confused with getting the EVM blockchain-based collection contract address, let us know, and we will add this information to this section.

## <mark style="color:$primary;">Solana</mark> <mark style="color:$primary;"></mark><mark style="color:$primary;">**Collections.**</mark>

Well, at the same time, <mark style="color:$warning;">**Solana**</mark> collections have a particularly challenging way of obtaining the correct collection contract addresses, even for their creators! It happens due to the different types of address structures for various collections – some have traditional collection addresses, while others do not. This guide will provide the most universal method for obtaining the correct address to enter in the <mark style="color:$primary;">**Verify Rule**</mark> card <mark style="color:$primary;">**Contract**</mark> field.

<figure><img src="https://224322153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2Aev6Sv1KSaFQZcTu6Wk%2Fuploads%2FTxfMBf0p1jCUnxNM8z9I%2Fimage.png?alt=media&#x26;token=b0f315ba-b281-40e4-8176-894e030c9583" alt="" width="375"><figcaption></figcaption></figure>

<mark style="color:$danger;">**Note:**</mark> If you don’t mind doing some grunt work but read less, then move directly to the [**General concept of address extraction**](https://app.gitbook.com/o/PP99adWq6pg0a9ekqlE1/s/nX757myueIMa0YXG4HJl/~/changes/13/plugins/verify-roles/verification-rules-setup/solana-collections#general-concept-of-the-address-extraction) at the end of this guide.

***

### <mark style="color:$primary;">For collections on Magic Eden.</mark>

#### <mark style="color:purple;">**Action 1.**</mark>

Open the card with any token in the desired collection and scroll it down. If you see the *<mark style="color:$success;">On-chain Collection</mark>* address – that’s perfect – use it right away in the <mark style="color:$primary;">**Verify Rule**</mark> card <mark style="color:$primary;">**Contract**</mark> field, and we're done here! If there is no – move to the next action.

<figure><img src="https://224322153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2Aev6Sv1KSaFQZcTu6Wk%2Fuploads%2FnEccQYuy1UVf87I22XIj%2Fimage.png?alt=media&#x26;token=574a1fb7-bd2b-4a27-b9f4-ee0d855a24bd" alt=""><figcaption></figcaption></figure>

#### <mark style="color:purple;">**Action 2.**</mark>&#x20;

If there is no *<mark style="color:$success;">On-chain Collection</mark>* address in the <mark style="color:$primary;">**Details**</mark> section, then copy the *<mark style="color:$success;">Mint</mark>* address instead and move to the next action.

<figure><img src="https://224322153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2Aev6Sv1KSaFQZcTu6Wk%2Fuploads%2F14lUeHFzBm9I8ZiogZZ7%2Fimage.png?alt=media&#x26;token=30daea09-0321-4295-a5af-cc77cbf88e3d" alt=""><figcaption></figcaption></figure>

#### <mark style="color:purple;">**Action 3.**</mark>&#x20;

Now visit <https://solana.fm/> and paste the *<mark style="color:$success;">Mint</mark>* address you've just copied from the search field. Wait a second for it to appear in the dropdown, then click on it.

<figure><img src="https://224322153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2Aev6Sv1KSaFQZcTu6Wk%2Fuploads%2FZbdTsUV1MkBOOmJ87tn4%2Fimage.png?alt=media&#x26;token=ee82853c-f0cd-4581-94f7-5b9c7e8a4c60" alt=""><figcaption></figcaption></figure>

#### <mark style="color:purple;">**Action 4.**</mark>&#x20;

Now, copy the *<mark style="color:$success;">UPDATE AUTHORITY</mark>* address and use it in the <mark style="color:$primary;">**Verify Rule**</mark> card <mark style="color:$primary;">**Contract**</mark> field.

<figure><img src="https://224322153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2Aev6Sv1KSaFQZcTu6Wk%2Fuploads%2F8kEO8raRJ2lqBT1zQb0q%2Fimage.png?alt=media&#x26;token=4bc0105d-43fd-446f-93b8-391ced7ba97a" alt=""><figcaption></figcaption></figure>

#### <mark style="color:purple;">**Just in case**</mark>**&#x20;👇**

* For the collections that have *<mark style="color:$success;">On-chain Collection</mark>* addresses, the *<mark style="color:$success;">UPDATE AUTHORITY</mark>* address will always be different for every NFT in the collection.
* For the collections that have no *<mark style="color:$success;">On-chain Collection</mark>* addresses, the *<mark style="color:$success;">UPDATE AUTHORITY</mark>* address will always be the same for every NFT in the collection.

***

### <mark style="color:$primary;">For collections on Tensor.</mark>

#### <mark style="color:purple;">**Action 1.**</mark>&#x20;

Open the card with any token in the desired collection and click on a blue link in the <mark style="color:$primary;">**Mint**</mark> string. You will be automatically redirected to the corresponding page on [https://solana.fm](https://solana.fm/)

<figure><img src="https://224322153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2Aev6Sv1KSaFQZcTu6Wk%2Fuploads%2F0FydmOGL39eh0bAFofIB%2Fimage.png?alt=media&#x26;token=b6422655-1778-4a77-974a-f87032838408" alt=""><figcaption></figcaption></figure>

#### <mark style="color:purple;">**Action 2.**</mark>&#x20;

Here you will see the *<mark style="color:$success;">COLLECTION ADDRESS</mark>* – use it in the <mark style="color:$primary;">**Verify Rule**</mark> card <mark style="color:$primary;">**Contract**</mark> field. In case there is no *<mark style="color:$success;">COLLECTION ADDRESS</mark>*, use *<mark style="color:$success;">UPDATE AUTHORITY</mark>* instead.

<figure><img src="https://224322153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2Aev6Sv1KSaFQZcTu6Wk%2Fuploads%2FO57eccBAajJb3VdvOUYi%2Fimage.png?alt=media&#x26;token=a8b5c69a-b337-4ffc-b9ff-1351444d473a" alt=""><figcaption></figcaption></figure>

***

### <mark style="color:$primary;">For collections on Mooar.</mark>

#### <mark style="color:purple;">**Action 1.**</mark>

Open the card with any token in the desired collection and expand the <mark style="color:$primary;">**Details**</mark> section.

<figure><img src="https://224322153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2Aev6Sv1KSaFQZcTu6Wk%2Fuploads%2Fz9gR6zB1fDL06iGHwAop%2Fimage.png?alt=media&#x26;token=2ffa24e7-6793-47c4-951e-a3f573ff7a51" alt=""><figcaption></figcaption></figure>

If you see the *<mark style="color:$success;">Contract Address</mark>* string – that’s perfect – use it right away in the <mark style="color:blue;">**Verify Rule**</mark> card <mark style="color:$primary;">**Contract**</mark> field, and we're done here! If there is no – move to the next action.

#### <mark style="color:purple;">**Action 2.**</mark>&#x20;

If there is no *<mark style="color:$success;">Contract Address</mark>* string in the <mark style="color:$primary;">**Details**</mark> section, then click on the *<mark style="color:$success;">Token ID</mark>* link – it will lead you to <https://solscan.io/> where you need to open the <mark style="color:$primary;">**Authority**</mark> dropdown menu and copy the *<mark style="color:$success;">Update Authority</mark>* address. Now, use it in the <mark style="color:$primary;">**Verify Rule**</mark> card <mark style="color:$primary;">**Contract**</mark> field.

<figure><img src="https://224322153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2Aev6Sv1KSaFQZcTu6Wk%2Fuploads%2F6wURCo0x2BLEqsg4CGxp%2Fimage.png?alt=media&#x26;token=5f70d33f-2987-4b0e-aab2-8c7538e20984" alt=""><figcaption></figcaption></figure>

***

### <mark style="color:$primary;">General concept of address extraction.</mark>

If trying to extract the needed address, you will be facing any outstanding situation which is not described in this guide, then the general concept is: you need to somehow extract any token address from the desired collection, search it on <https://solana.fm/> and then get the *<mark style="color:$success;">COLLECTION ADDRESS</mark>* or the *<mark style="color:$success;">UPDATE AUTHORITY</mark>* address in case the *<mark style="color:$success;">COLLECTION ADDRESS</mark>* is missed. To do this, follow the steps below:

#### <mark style="color:purple;">**Action 1.**</mark>

If the NFT on the marketplace opens in a pop-up but not on the new page, expand the NFT card of the token from the desired collection via the special button (<mark style="color:$warning;">**ME**</mark> or <mark style="color:$warning;">**Tensor**</mark>).

<figure><img src="https://224322153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2Aev6Sv1KSaFQZcTu6Wk%2Fuploads%2FGHhjZ1nSD7jfvew11j5h%2Fimage.png?alt=media&#x26;token=0bf2f6fd-55ca-456a-a302-df5fd00cf200" alt=""><figcaption></figcaption></figure>

#### <mark style="color:purple;">**Action 2.**</mark>

Copy the final segment of the URL directly from your browser's address bar. This section may vary across different marketplaces and collections, but you only need the last portion.

<figure><img src="https://224322153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2Aev6Sv1KSaFQZcTu6Wk%2Fuploads%2Fav44mAmDOqvjdjC3Qqx2%2Fimage.png?alt=media&#x26;token=203118b9-0904-437a-a03d-494258baaa7b" alt=""><figcaption><p>On Magic Eden</p></figcaption></figure>

<figure><img src="https://224322153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2Aev6Sv1KSaFQZcTu6Wk%2Fuploads%2FatDPVwoLW3iVv1w9TGg3%2Fimage.png?alt=media&#x26;token=062aba05-7ff3-4375-b410-96b1efd7721e" alt=""><figcaption><p>On Tensor</p></figcaption></figure>

<figure><img src="https://224322153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2Aev6Sv1KSaFQZcTu6Wk%2Fuploads%2FjWVPwVFlqGEaLKziZxDr%2Fimage.png?alt=media&#x26;token=9c2b537b-3d32-4226-8327-ca9ac2d11505" alt=""><figcaption><p>On Mooar</p></figcaption></figure>

#### <mark style="color:purple;">**Action 3.**</mark>

Search the address on <https://solana.fm/> and get the *<mark style="color:$success;">COLLECTION ADDRESS</mark>* or the *<mark style="color:$success;">UPDATE AUTHORITY</mark>* address in case the *<mark style="color:$success;">COLLECTION ADDRESS</mark>* is missed.

***

## <mark style="color:$primary;">What's next?</mark>

Now, when you have a correct <mark style="color:$warning;">**Solana**</mark> NFT collection <mark style="color:$success;">Contract Address</mark>, you can proceed with tracking its mint events with the <mark style="color:blue;">**NFT Tracker**</mark> or setting up token-gated rules for it with the <mark style="color:blue;">**Verify Roles**</mark> plugin.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.bocto.octopeeps.com/appendix/getting-collection-contract-address.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
