Ante
Ante v0.6
Ante v0.6
  • Introduction to Ante
  • Why use Ante?
  • What's new in Ante v0.6?
  • FAQ
  • Security & Trust
  • Getting Started
    • How Ante works
      • Staking
      • Challenging
      • The Decentralized Trust Score
      • Decentralized Trust Tiers
      • Supported assets
    • User Guides
      • Navigating the app
      • Stake an Ante Test
      • Challenge an Ante Test
      • Withdraw funds
      • Check an Ante Test
      • Claim rewards
      • Using Antegen
  • For Developers
    • Community test repo
    • Writing Ante Tests
      • What to test?
      • Interfaces
      • Ante Test Examples
      • Writing and Testing an Ante Test
    • Integrating Ante
      • Integrate Ante using React
      • Integrate Ante using HTML
    • Deploying an Ante Test
      • Deploy an Ante Test
      • Create an Ante Pool
    • Deployed contracts
Powered by GitBook
On this page
  • NFT balance check test
  • Token balance check
  • Submitting a Pull Request (PR)
  1. Getting Started
  2. User Guides

Using Antegen

PreviousClaim rewardsNextWriting Ante Tests

Last updated 2 years ago

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: , , )

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

NFT holder address

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

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

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.

Token balance check

Token address

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

Token holder address

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.

Submitting a Pull Request (PR)

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

  1. Keep the default fork settings and click "Create fork"

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

  1. Upload the Antegen code file, enter a description, and click "Commit changes".

  2. Open a pull request by clicking “Contribute” > “Open pull request”.

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

Go to (or other block explorer for the chain) and select a token.

On the page for the token, click the "Holders" tab to view top token holders.

Go to and click the "Fork" button (create a free GitHub account if necessary).

Etherscan
Etherscan
tests.ante.xyz
OpenSea
SuperRare
Rarible
Etherscan link on various NFT marketplaces