> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dune.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Query Templates

> Pre-built query templates to jumpstart your Dune journey with common blockchain analytics patterns

Jump start your Dune journey with our collection of pre-built query templates. These templates let you easily select wallets, tokens, and contracts and track their key actions over time.

<Note>
  **Need a specific template?** Don't see what you're looking for? [Request a new template](https://docs.google.com/forms/d/e/1FAIpQLSeDjR0908lRRroCzRHSD9SnBKSS5hox-_AbLJahH7ZmBuf5hA/viewform?usp=header) and we'll consider adding it to our collection.
</Note>

## Tokens

Track token flows, balances, and holder activity across different token standards.

<AccordionGroup>
  <Accordion title="Contract Balance and Flow Monitoring - ERC20 Token" icon="coins">
    Track the net flows of an ERC20 token into contracts, over a given time period.

    <iframe src="https://dune.com/embeds/5823843/9431565" width="100%" height="400" frameBorder="0" />

    [Open in Dune →](https://dune.com/queries/5823843)
  </Accordion>

  <Accordion title="Wallet Balance and Flow Monitoring - ERC20 Token" icon="wallet">
    Track the net flows of top holders (or a list of addresses) for an ERC20 token, over a given time period.

    <iframe src="https://dune.com/embeds/5823857/9431583" width="100%" height="400" frameBorder="0" />

    [Open in Dune →](https://dune.com/queries/5823857)
  </Accordion>

  <Accordion title="Contract Balance and Flow Monitoring - NFT Token (721/1155)" icon="image">
    Track the net flows of an NFT token into contracts, over a given time period.

    <iframe src="https://dune.com/embeds/5823861/9431588" width="100%" height="400" frameBorder="0" />

    [Open in Dune →](https://dune.com/queries/5823861)
  </Accordion>

  <Accordion title="Wallet Balance and Flow Monitoring - NFT Token (721/1155)" icon="user">
    Track the net flows of top holders (or a list of addresses) for an NFT token, over a given time period.

    <iframe src="https://dune.com/embeds/5833534/9444906" width="100%" height="400" frameBorder="0" />

    [Open in Dune →](https://dune.com/queries/5833534)
  </Accordion>
</AccordionGroup>

## Trades

Monitor trading activity across DEXs and NFT marketplaces.

<AccordionGroup>
  <Accordion title="DEX Trade Monitoring" icon="chart-line">
    Track trading volume, price movements, and liquidity patterns for token pairs.

    <iframe src="https://dune.com/embeds/5833536/9444909" width="100%" height="400" frameBorder="0" />

    [Open in Dune →](https://dune.com/queries/5833536)
  </Accordion>

  <Accordion title="NFT Trade Monitoring" icon="image">
    Monitor NFT trading activity, floor prices, and collection performance.

    <iframe src="https://dune.com/embeds/5833538/9444912" width="100%" height="400" frameBorder="0" />

    [Open in Dune →](https://dune.com/queries/5833538)
  </Accordion>
</AccordionGroup>

## Contracts

Analyze smart contract interactions and usage patterns.

<AccordionGroup>
  <Accordion title="New Wallets Calling a Contract" icon="user-plus">
    Identify new users interacting with a specific smart contract over time.

    <iframe src="https://dune.com/embeds/5833540/9444915" width="100%" height="400" frameBorder="0" />

    [Open in Dune →](https://dune.com/queries/5833540)
  </Accordion>

  <Accordion title="New Contracts Calling Another Contract" icon="code">
    Track which new contracts are calling a specific contract.

    <iframe src="https://dune.com/embeds/5833541/9444917" width="100%" height="400" frameBorder="0" />

    [Open in Dune →](https://dune.com/queries/5833541)
  </Accordion>

  <Accordion title="Trending Contracts Called by Tracked Wallet" icon="chart-line">
    Discover which contracts a tracked wallet is calling most frequently.

    <iframe src="https://dune.com/embeds/5833544/9444921" width="100%" height="400" frameBorder="0" />

    [Open in Dune →](https://dune.com/queries/5833544)
  </Accordion>
</AccordionGroup>

## Farcaster

Analyze social activity and user behavior on the Farcaster protocol.

<AccordionGroup>
  <Accordion title="Identify trending users who hold a token" icon="users">
    Find Farcaster users who hold specific tokens and are gaining social traction.

    <iframe src="https://dune.com/embeds/5833549/9444927" width="100%" height="400" frameBorder="0" />

    [Open in Dune →](https://dune.com/queries/5833549)
  </Accordion>

  <Accordion title="Identify trending channels" icon="hashtag">
    Discover which Farcaster channels are gaining popularity and activity.

    <iframe src="https://dune.com/embeds/5833553/9444932" width="100%" height="400" frameBorder="0" />

    [Open in Dune →](https://dune.com/queries/5833553)
  </Accordion>

  <Accordion title="Track trending users someone has interacted with" icon="users">
    Analyze the social network of a specific user to find trending connections.

    <iframe src="https://dune.com/embeds/5833555/9444935" width="100%" height="400" frameBorder="0" />

    [Open in Dune →](https://dune.com/queries/5833555)
  </Accordion>
</AccordionGroup>

## How to Use Templates

1. **Expand any template** above to see a preview of the query results
2. **Click "Open in Dune"** to open the query in the Dune editor
3. **Customize the parameters** using the template's input fields:
   * **Token Symbol**: Choose the token you want to track
   * **Token Contract**: Paste the contract address if the token isn't in our database
   * **Blockchain**: Select the blockchain network
   * **Time Period**: Set the number of days to analyze
   * **Filters**: Adjust minimum thresholds and other parameters
4. **Run the query** to see your results
5. **Save and share** your customized query

## Template Categories Explained

### **Tokens**

Perfect for analyzing token economics, holder behavior, and token flows. Use these templates to understand how tokens move between wallets and contracts.

### **Trades**

Ideal for market analysis, price tracking, and trading pattern identification. Essential for understanding market dynamics and liquidity.

### **Contracts**

Great for smart contract analytics, user adoption tracking, and protocol interaction analysis. Use these to understand how users interact with specific protocols.

### **Farcaster**

Designed for social analytics on the Farcaster protocol. Perfect for understanding community dynamics, influencer identification, and social trends.

## Getting Started

1. **Choose your category** based on what you want to analyze
2. **Select a template** that matches your use case
3. **Customize the parameters** to fit your specific needs
4. **Run and iterate** to refine your analysis

<Info>
  **Pro Tip**: Start with a template and modify it to create your own unique queries. Templates are designed to be building blocks for more complex analysis.
</Info>

## Need Help?

* **Query Editor Guide**: Learn how to use the Dune query editor effectively
* **Writing Efficient Queries**: Optimize your queries for better performance
* **Data Catalog**: Explore available data sources and tables
* **Community**: Join our Discord for help and inspiration

***

**Don't see what you need?** [Request a new template](https://docs.google.com/forms/d/e/1FAIpQLSeDjR0908lRRroCzRHSD9SnBKSS5hox-_AbLJahH7ZmBuf5hA/viewform?usp=header) and we'll consider adding it to our collection.
