# Write Contract

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

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

### changeTeamMembersAndRoyalty

The changeTeamMembersAndRoyalty method is responsible for editing a team's details, including changing the fees associated with team members. This functionality allows for adjustments to be made to existing team members' fees or the addition/removal of team members.

<table data-header-hidden><thead><tr><th width="211.33333333333331"></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Data</strong></td><td><strong>Description</strong></td><td><strong>Restrictions</strong></td></tr><tr><td>_tokenId (uint256)</td><td>This parameter expects the token identifier.</td><td><ul><li>must be a number</li><li>must be the token creator</li></ul></td></tr><tr><td>_tokenContractAddress (address)</td><td>This parameter expects the address of the token contract.</td><td><ul><li>must be an address</li><li>must be the correct token address</li></ul></td></tr><tr><td>_members (address[])</td><td>This parameter expects an array of addresses representing the individuals who are to be added to the team.</td><td><ul><li>must be an address</li></ul></td></tr><tr><td>_royaltyMemberFees (uint256[])</td><td>This parameter expects an array of royalty fees, each corresponding to a member's address provided in _members.</td><td><ul><li>must be a number</li></ul></td></tr></tbody></table>

### createTeam

The createTeam method is responsible for creating a team for a given token, enabling team members to receive commissions from future sales. The maximum royalty fee allowed is 10%, which is then distributed among the entire team.

<table data-header-hidden><thead><tr><th width="232.33333333333331"></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Data</strong></td><td><strong>Description</strong></td><td><strong>Restrictions</strong></td></tr><tr><td>_tokenId (uint256)</td><td>This parameter expects the token identifier.</td><td><ul><li>must be a number</li><li>must be the token creator</li></ul></td></tr><tr><td>_tokenContractAddress (address)</td><td>This parameter expects the address of the token contract.</td><td><ul><li>must be an address</li><li>must be the correct token address</li></ul></td></tr><tr><td>_members (address[])</td><td>This parameter expects an array of addresses representing the individuals who are to be added to the team.</td><td><ul><li>must be an address</li></ul></td></tr><tr><td>_royaltyMemberFees (uint256[])</td><td>This parameter expects an array of royalty fees, each corresponding to a member's address provided in _members.</td><td><ul><li>must be a number</li></ul></td></tr></tbody></table>

### renounceOwnership

This method allows the **contract's owner** to renounce their ownership. This method is accessible only to the contract's owner. This function enables the current owner to renounce ownership of the contract. Once this method is called, the owner will lose their privileges to manage the contract, and any methods that require owner permissions will no longer be accessible.

### transferOwnership

The method is **available only to the current owner** **of the contract** and allows changing the ownership of the contract

<table data-header-hidden><thead><tr><th width="188.33333333333331"></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Data</strong></td><td><strong>Description</strong></td><td><strong>Restrictions</strong></td></tr><tr><td>newOwner (address)</td><td>The address of the new contract owner.</td><td><ul><li>must be a wallet address</li></ul></td></tr></tbody></table>


---

# 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/write-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.
