# Read Contract

## Link to the Smart Contract: &#x20;

{% embed url="<https://bscscan.com/address/0x5078ef87Afb28e24936a16Fd3FBac27867549626#readContract>" %}

### currentTeamId

The currentTeamId method provides information about the current team identifier. This allows users to predict the next available team ID and also obtain the total count of teams that have been established.

<figure><img src="https://t26441698.p.clickup-attachments.com/t26441698/929708c1-2714-4bc4-af47-850e70142359/image.png" alt=""><figcaption></figcaption></figure>

###

### getTeam

The getTeam method is responsible for retrieving information about a specific team. By supplying the required parameters, users can obtain details regarding the team's identifier and its owner, offering insights into the team's structure.

| **Data**                         | **Description**                                           |
| -------------------------------- | --------------------------------------------------------- |
| \_tokenId (uint256)              | This parameter expects the token identifier.              |
| \_tokenContractAddress (address) | This parameter expects the address of the token contract. |

<figure><img src="https://t26441698.p.clickup-attachments.com/t26441698/6bc1c134-9f06-4f3a-8acb-be6be4b41b1e/image.png" alt=""><figcaption></figcaption></figure>

a. Input tokenId&#x20;

b. Input Token ContractAddress&#x20;

c. Response the team id, token id, and the team owner

### getTeamMembers

The getTeamMembers method is responsible for retrieving the individuals belonging to a specific team. By providing the required parameters, users can obtain a list of members associated with the designated team, enhancing their understanding of the team's composition.

| **Data**                         | **Description**                                           |
| -------------------------------- | --------------------------------------------------------- |
| \_tokenId (uint256)              | This parameter expects the token identifier.              |
| \_tokenContractAddress (address) | This parameter expects the address of the token contract. |

<figure><img src="https://t26441698.p.clickup-attachments.com/t26441698/25779d4b-3062-4a57-9e11-ff9f5b47532d/image.png" alt=""><figcaption></figcaption></figure>

a. Input tokenId&#x20;

b. Input Token ContractAddress&#x20;

c. Response the team members with the royalty fee per address

### owner

The method allows obtaining the address of the individual or entity that deployed and owns the smart contract. The contract owner has special privileges and permissions to perform certain administrative tasks or manage critical functionalities of the contract.

<figure><img src="https://t26441698.p.clickup-attachments.com/t26441698/04c83703-fbf1-4f1b-b5c9-3d6f8bfcbc79/image.png" alt=""><figcaption></figcaption></figure>

### royaltyTeam

The royaltyTeam method is responsible for retrieving detailed information about a team, including the owner's address and the team's identifier. By providing specific parameters, users can access essential data related to a team, aiding in obtaining a comprehensive understanding of the given entity.

<table data-header-hidden><thead><tr><th width="198"></th><th></th></tr></thead><tbody><tr><td><strong>Data</strong></td><td><strong>Description</strong></td></tr><tr><td>&#x3C;input> (address)</td><td>This parameter expects the address of the token contract.</td></tr><tr><td>&#x3C;input> (uint256)</td><td>This parameter expects the identifier of a particular token.</td></tr></tbody></table>

<figure><img src="https://t26441698.p.clickup-attachments.com/t26441698/47513fb2-885b-49e9-8aa2-08fd9d39e597/image.png" alt=""><figcaption></figcaption></figure>

a. Input contract address&#x20;

b. Input the TokenId&#x20;

c. Response the teamId, tokenId, and teamOwner


---

# 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://docs.metaproprotocol.com/developer-documentation/smart-contracts/metaproroyalty/read-contract.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.
