# GroupMetadata

The `getMetadata` function is used to return the metadata of a group NFT for a given tokenURI. This metadata is returned as a base64 encoded JSON string and includes information about the group, such as the group's name, address, details, and URI, as well as some SVG image data. This function is useful for getting a compact representation of all the key information about a group NFT, which can be used for various purposes such as displaying the NFT in a wallet or marketplace.

### Table of Contents

1. [Public Functions](#public-functions)

***

## <mark style="color:purple;">Public Functions</mark>

### getMetadata

Returns the metadata of a group NFT for a tokenURI.

* Level 2 Heading: getMetadata

| Parameter  | Type      | Description                             |
| ---------- | --------- | --------------------------------------- |
| `_tokenID` | `uint256` | Group ID of a token to get metadata for |

**Return Variables:**

| Variable | Type            | Description                                           |
| -------- | --------------- | ----------------------------------------------------- |
| `string` | `string memory` | The metadata of a token in JSON format base64 encoded |

**Usage with ethers.js**

```javascript
let ethers = require('ethers');

let _tokenID = 12345; // Replace with your token ID

let contract = new ethers.Contract(contractAddress, contractABI, provider);

let metadata = await contract.getMetadata(_tokenID);
```
