> For the complete documentation index, see [llms.txt](https://docs.ante.finance/ante/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ante.finance/ante/getting-started/user-guides/using-antegen.md).

# Using Antegen

Antegen lets you create simple Ante Tests without writing code! All you need to do is look up a few addresses. Here's how to do it:

### NFT balance check test

#### **NFT collection address**

To find the address of an NFT collection, go to the collection page on your preferred NFT marketplace and click “**View on Etherscan**”. (Some NFT marketplaces: [OpenSea](https://opensea.io/), [SuperRare](https://superrare.com/), [Rarible](https://rarible.com/))

<figure><img src="/files/xACBudiRaXU9lqd9pRA8" alt=""><figcaption><p>Etherscan link on various NFT marketplaces</p></figcaption></figure>

In Etherscan, click the “**Copy**” button by the contract address, then paste this into the "**NFT collection address**" field.

![](/files/wmwX09bn20d8mTAGWm6J)

#### NFT holder address

From the NFT collection Etherscan page, click on the "**Token Tracker**" link:

<figure><img src="/files/LHraamEhu00HD5Rj7qfy" alt=""><figcaption></figcaption></figure>

Then select the "**Holders**" tab to view top holders of that NFT collection:

#### ![](/files/nejFiKeNtvRvtBSIHVVk)

#### Minimum balance held

Choose a number between 1 and the number of NFTs from the collection the holder currently holds.

If the holder has fewer than this number of NFTs from the collection, the test will fail.&#x20;

### Token balance check

#### Token address

Go to [Etherscan](https://etherscan.io/tokens) (or other block explorer for the chain) and select a token.

Under "**Other Info**", click the Copy icon next to "**Token Contract**" to copy the contract address.

![](/files/8agPuf1e0nZKOqcC0JtV)

#### Token holder address

On the [Etherscan](https://etherscan.io/tokens) page for the token, click the "**Holders**" tab to view top token holders.

![](/files/8w138M9qRXZjjlKobQF0)

Select one of the addresses and click the Copy icon to copy the holder address.

#### Minimum balance held

Choose a number between 1 and the current token balance of the holder.

If the holder's token balance drops below this number, the test will fail.&#x20;

### Submitting a Pull Request (PR)

If you used Antegen to generate code without deploying, here's how you can submit it to us:

1. Go to [tests.ante.xyz](http://tests.ante.xyz/) and click the "**Fork**" button (create a free GitHub account if necessary).

<figure><img src="/files/fJd8lCXt8Uo2mezjNzg1" alt=""><figcaption></figcaption></figure>

2. Keep the default fork settings and click "**Create fork**"

<div align="center"><figure><img src="/files/8F0Z20KMhJ7GaA863xTB" alt=""><figcaption></figcaption></figure></div>

3. In your forked repository, under "**Add file**", select "**Upload files**"

<figure><img src="/files/inYhedNd55h08kL6jBfw" alt=""><figcaption></figcaption></figure>

4. Upload the Antegen code file, enter a description, and click "**Commit changes**".
5. Open a pull request by clicking “**Contribute**” > “**Open pull request**”.

<figure><img src="/files/59u3I1VszXq6oGw6V3cI" alt=""><figcaption></figcaption></figure>

6. Enter any comments for the reviewers and click “**Create pull request**” to submit your test. That’s it!
