<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
    <channel>
        <title>Bitquery | RSS Feed</title>
        <link>https://bitquery.io</link>
        <description>Bitquery provide blockchain APIs for Bitcoin, Ethereum and Web3 protocols like Uniswap etc. We also provide blockchain money tracing APIs.</description>
        <lastBuildDate>Wed, 15 Apr 2026 10:04:37 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>Feed for Node.js</generator>
        <image>
            <title>Bitquery | RSS Feed</title>
            <url>https://bitquery.io/favicon/logo.png</url>
            <link>https://bitquery.io</link>
        </image>
        <copyright>All rights reserved 2026, Bitquery Inc.</copyright>
        <item>
            <title><![CDATA[Bitquery April Release: Market Cap, New Trades API & Free gRPC Streams]]></title>
            <link>https://bitquery.io/blog/bitquery-april-2026-release</link>
            <guid>https://bitquery.io/blog/bitquery-april-2026-release</guid>
            <pubDate>Wed, 08 Apr 2026 12:00:00 GMT</pubDate>
            <description><![CDATA[
Hello Bitquerian,

Here is what is new this month:

- **Market cap and supply** in crypto price APIs and Kafka streams, with an improved weighted algorithm for USD pricing.
- **Solana gRPC (Corecast)** streaming available at no cost for eligible use.
- **Unified multi-chain Crypto Trades API** with price, USD, supply, and trader context so you can track P&L and other trader metrics in one place.

## New market cap and supply data

We have added market cap and supply fields to our crypto price APIs so you can go deeper on token context.

- Real-time **market cap** and **supply** metrics (circulating, total, FDV) across tokens, pairs, and currencies via query or streaming.

Explore the [Crypto Price API documentation](https://docs.bitquery.io/docs/trading/crypto-price-api/) to try it in your stack.

## New price algorithm for the Crypto Price API

The updated index aims for more accurate USD pricing and a more reliable real-time price stream.

- Uses a **1-hour rolling window** with **exponentially weighted volume** so recent trades weigh more heavily and prices stay responsive yet stable.
- **Filters low-quality trades** and **aggregates across pools and pairs** for volume-weighted token prices.

Read the full methodology: [Price index algorithm](https://docs.bitquery.io/docs/trading/crypto-price-api/price-index-algorithm/).

## Free gRPC Corecast streaming for Solana

gRPC streaming for Solana is now available **free** (per current program terms on our site and docs).

- Low-latency, filtered real-time Solana streams over custom gRPC with structured, decoded chain data.
- **Topic-style subscriptions** (trades, transfers, pools, and more) with server-side filtering to keep streams efficient.

Get started: [Solana gRPC introduction](https://docs.bitquery.io/docs/grpc/solana/introduction/).

Product overview: [Solana gRPC streams](https://bitquery.io/products/solana-grpc-streams).

## New Crypto Trades API

Stream real-time DEX trades across chains, including **Solana, Ethereum, BSC, Base, Arbitrum, and Polygon**.

Each trade can include:

- Price and **USD** notionals
- **Market cap** and **FDV**
- **Supply** metrics
- **Trader** wallet
- **Transaction** identifiers and related metadata

Documentation: [Crypto Trades API](https://docs.bitquery.io/docs/trading/crypto-trades-api/trades-api/).

Event streams expose swap-level trade data with full token context, including supply and market cap snapshots where applicable.

**Kafka:** schema for topic `trading.trades` is in [`market/trades.proto`](https://github.com/bitquery/streaming_protobuf/blob/main/market/trades.proto). For a Kafka trial, contact [sales@bitquery.io](mailto:sales@bitquery.io).

## DEXRabbit updates

### New screens and insights

DEXRabbit now includes additional screens for Solana traders and researchers:

[Solana Signals Feed](https://dexrabbit.bitquery.io/solana/signals-feed) — curated signal-oriented view of on-chain activity.

![](/blog/bitquery-april-2026-release/signals.png)

[Pumpfun Trenches](https://dexrabbit.bitquery.io/solana/pumpfun?insight=trenches) 
— explore Pumpfun activity with the Trenches insight layout

![](/blog/bitquery-april-2026-release/trenches.png)

We will keep shipping more actionable insights; follow [DEXRabbit](https://dexrabbit.bitquery.io/) for updates.

## Interesting videos

For walkthroughs and API deep dives, see the [Bitquery YouTube channel](https://www.youtube.com/@bitquery/videos).

## Get in touch

Questions about Telegram or the community? Say hello on [Telegram](https://t.me/bloxy_info) or the [Bitquery community forum](https://community.bitquery.io/), or email [support@bitquery.io](mailto:support@bitquery.io).

## Explore Bitquery

- [Products and tools](https://bitquery.io/products)
- [Documentation and SDKs](https://docs.bitquery.io/docs/)
- [DEX trades and streaming products](https://bitquery.io/products/dex) · [Trade API](https://bitquery.io/products/trade-api) · [Data streams](https://bitquery.io/products/data-streams)
]]></description>
        </item>
        <item>
            <title><![CDATA[Stop Accepting Default Slippage from Your DEX Router: How Algo Traders Use Real-Time Liquidity Data]]></title>
            <link>https://bitquery.io/blog/dex-router-slippage-algo-traders-real-time-liquidity</link>
            <guid>https://bitquery.io/blog/dex-router-slippage-algo-traders-real-time-liquidity</guid>
            <pubDate>Wed, 11 Feb 2026 05:00:00 GMT</pubDate>
            <description><![CDATA[ 
Called the “cost of doing business”, slippage has hurt more traders than you know. Some blogs estimate it to be [upwards of 2.5 billion USD](https://blog.sei.io/education/what-is-slippage-crypto-guide/) annually.

Solutions like CoW Protocol's intents, 1inch's dynamic routing, and MEV-protected RPCs have helped, but they come with trade-offs. You're either paying for solver services, locked into predetermined routing logic, or giving up execution control to third-party systems. These work great if you want a turnkey solution. But what if you're building custom strategies that need direct pool access? What if you want to choose your own routes based on real-time conditions?

If naive traders hard-code 0.5% to 3% slippage in their bots or accept whatever default their DEX router suggests, then see live PnL drift away from backtests. In volatile or thin pools, the quote you see before sending a transaction can be quite different from the final execution price, especially when other bots hit the same liquidity in the same block.

To cope, traders either keep querying nodes or routing APIs for fresh quotes or pay execution services, which adds latency and cost without addressing the information gap.

What is missing is a real‑time view of how much size each pool can absorb at different slippage levels, so order sizing and slippage tolerance come from live liquidity, not from guesswork.​

![](/blog/dex-router-slippage-algo-traders-real-time-liquidity/1.png)

Figure: [Real-time slippage chart for the USDC-WETH pool on Uniswap v3](https://dexrabbit.com/eth/pool/0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc), showing maximum tradeable amounts at different slippage tolerances (via [DEXRabbit](https://dexrabbit.com/), Bitquery's demo dashboard).

  

## The Problem: Static Slippage Settings

Consider a trader trying to swap 100,000 [USDC for WETH on Uniswap v3.](https://ide.bitquery.io/USDC-for-WETH-on-Uniswap-v3-Pools) Most traders hard-code a 1% slippage setting without knowing whether the pool can actually handle that trade size at that tolerance.

  

See the [slippage API documentation](https://docs.bitquery.io/docs/blockchain/Ethereum/dextrades/ethereum-slippage-api/) for more query examples.

With a static 1% slippage setting, the bot doesn't know if the pool can actually handle that size at 1% or if the real price impact will be 3% or higher. If the pool's current liquidity only supports 50,000 USDC at 1% slippage, the trade either fails or executes with much worse slippage than expected, eating into profits. Without real-time liquidity data, the trader is forced to either set overly conservative slippage (leaving value on the table) or risk failed transactions and MEV attacks.

  

## Bitquery's Solution: Real-Time Slippage Tables

Bitquery ingests on‑chain data from major DEXes on Ethereum, Base, Arbitrum, BSC and other EVM networks and normalizes it into a DEXPool data model. For each pool, Bitquery continuously tracks swaps and liquidity changes, maintains a current liquidity snapshot, and computes a slippage table that describes how price and output change with trade size. "This information is exposed through GraphQL APIs including dedicated [slippage APIs](https://docs.bitquery.io/docs/blockchain/Ethereum/dextrades/ethereum-slippage-api/) and [liquidity APIs](https://docs.bitquery.io/docs/blockchain/Ethereum/dextrades/ethereum-liquidity-api/) and low‑latency data streams (Kafka / WebSocket), so traders do not need to simulate swaps against raw pool state or hammer full nodes for quotes."

The model is cross‑chain by design. A typical query uses EVM(dataset: realtime, network: eth) for Ethereum and can be reused on Base, Arbitrum or BSC by changing only the network argument. That allows a single slippage and liquidity logic to run across multiple EVM chains.  
  

#### Querying Pool Slippage and Liquidity

You can fetch slippage and liquidity for a specific pool or token pair with a GraphQL query that filters DEXPools and requests PoolPriceTable and Liquidity fields. The following pattern targets the USDC–WETH pool on Uniswap v3 on Ethereum; you can substitute real addresses or symbols as needed.

For complete query examples and response structures, see the [DEX Trades API documentation](https://docs.bitquery.io/docs/category/dex-trades/) and [slippage-based trading guide](https://bitquery.io/blog/slippage-based-trading-real-time).  
  
A typical response includes one DEXPool row with reserves and a list of A→B slippage tiers. For example, one entry in AtoBPrices might show SlippageBasisPoints = 100, MaxAmountIn = 50,000 (token units), MinAmountOut = X WETH, Price = Y, meaning that trades up to 50k units of USDC can be executed with at most 1% slippage and at least that MinAmountOut of WETH.​  
  

### Executing Limit Orders with Live Slippage Data

Traders can set up dynamic limit orders and open positions since they have access to real-time slippage and maximum liquidity at each slippage tier.

Traditional limit orders on DEXs are static: you set a target price and hope the pool can fill your order at that price when it triggers. But without live slippage data, you don't know if the pool has enough depth to actually execute your full size at your limit price or if price impact will push you past your target.

With Bitquery's [slippage](https://docs.bitquery.io/docs/blockchain/Ethereum/dextrades/ethereum-slippage-api/) and [liquidity](https://docs.bitquery.io/docs/blockchain/Ethereum/dextrades/ethereum-liquidity-api/) APIs, you can build dynamic limit orders that adjust execution parameters in real-time:

How it works:

1.  Your bot continuously monitors the PoolPriceTable for your target pair (e.g., USDC-WETH).
    
2.  When the spot price hits your limit (e.g., 1 WETH = 2,100 USDC), instead of blindly executing, your bot first checks the current slippage table.
    
3.  It looks up: "At my desired order size (say, 50,000 USDC), what slippage tier do I fall into right now?"
    
4.  If the pool can handle your size at acceptable slippage (e.g., ≤1%), the order executes with the correct amountOutMin from the table.
    
5.  If current liquidity is too thin (your size would cause >2% slippage even though price hit your limit), the bot either splits the order, waits for liquidity to improve, or routes to a different pool/chain.
    

Example:

-   You want to buy 100,000 USDC worth of WETH when the price reaches 0.00048 WETH/USDC.
    
-   Price hits your limit, but the current PoolPriceTable shows the pool can only handle 60,000 USDC at 1% slippage.
    
-   Your bot splits the order: executes 60K USDC now at 1% slippage, and queues the remaining 40K to execute when liquidity refreshes or routes it to Base where the pool is deeper.
    
-   This prevents your single large order from slipping 5%+ and eating into your profit.
    

By combining price monitoring with live slippage and liquidity data, you turn dumb limit orders into intelligent, liquidity-aware execution strategies.

  

## Integrating Bitquery streams

  

For a working example of this approach, see the [best-route trader demo application](https://best-route-trader-uniswap.vercel.app/) and its [source code on GitHub](https://github.com/Divyn/best-route-trader-Uniswap). This proof-of-concept demonstrates how to query DEXPool data, compare slippage across multiple pools, and execute trades using the optimal route.

Traders can start by polling GraphQL for DEXPools every few seconds or every N blocks, which is often sufficient for slower strategies. For latency‑sensitive bots, Bitquery provides data streams that publish DEXPool updates as they happen, so the internal slippage view tracks pool changes closely. A typical architecture is:

  
  
![](/blog/dex-router-slippage-algo-traders-real-time-liquidity/2.png)
  

Figure: Typical trading system architecture using Bitquery DEXPool streams

  

Realized slippage and execution quality can be logged and compared with the predicted slippage tier from PoolPriceTable, allowing strategies to adjust safety margins or pool filters over time.  
  
  

## Building at Scale

  

For production systems handling high-frequency trading, Bitquery offers Kafka streaming for real-time DEXPool updates. See the [Kafka streaming](https://docs.bitquery.io/docs/streams/kafka-streaming-concepts/) documentation and [sample data format](https://github.com/bitquery/kafka-data-sample/blob/main/evm/eth_dexpools.json) for implementation details.

  

Advanced systems follow this pattern:  
  

• Run Bitquery Kafka stream subscribed to the DEXPool topic

• Build a local backend to handle the volume of data

• Filter and serve only relevant pools and slippage tiers to your strategy engine

  

### Unlimited Streaming Pricing

Bitquery does not limit by amount of data or rate limits. Streams are sold individually and not by bytes of data, which means pricing is scalable whether you monitor 10 pools or 1,000+ pools across multiple chains. Learn more about Bitquery's [unlimited streaming pricing model](https://coincodecap.com/birdeye-so-alternative-why-bitquerys-unlimited-streaming-saves-you-100k-monthly).

  

## Summary

Slippage does not need to be a fixed configuration value or a guess. By consuming Bitquery’s pre‑calculated slippage tables and liquidity snapshots for DEX pools on Ethereum, Base, Arbitrum, BSC and other EVM chains, algo traders can size orders, set slippage tolerance, and choose pools or routes based on live on‑chain conditions.

This reduces unnecessary failed trades and over‑slippage, and creates a clear path from raw blockchain data to robust execution logic inside trading systems.

Ready to integrate real-time slippage and liquidity data into your trading system? Explore [Bitquery's DEX APIs](https://docs.bitquery.io/docs/category/dex-trades/) or reach out to the team for enterprise solutions.]]></description>
        </item>
        <item>
            <title><![CDATA[Using Real-Time Slippage Data to Trade Smart]]></title>
            <link>https://bitquery.io/blog/slippage-based-trading-real-time</link>
            <guid>https://bitquery.io/blog/slippage-based-trading-real-time</guid>
            <pubDate>Wed, 07 Jan 2026 05:00:00 GMT</pubDate>
            <description><![CDATA[
Trading on decentralized exchanges (DEXs) requires more than just knowing which tokens to buy or sell. One of the most critical factors that can make or break your trading strategy is **[slippage](https://docs.bitquery.io/docs/API-Blog/slippage-faq-using-dexpool-stream/)**, which decides the difference between the expected price and the actual execution price of your trade. Setting the right slippage tolerance isn't just about avoiding failed transactions; it's about protecting yourself from unnecessary losses and front-running attacks while maximizing your trading efficiency.

In this article, we'll explore how to stream real-time slippage data from Bitquery's [DEXPool stream](https://docs.bitquery.io/docs/cubes/evm-dexpool/) to make smarter trading decisions, whether you're executing swaps from smart contracts or building trading bots.

## The Slippage Problem

Most traders and developers approach slippage in one of two ways:

1. **Hardcode a fixed tolerance** (e.g., 1% or 5%) and hope it works
2. **Use trial-and-error** to find what works, often leading to failed transactions or unnecessary losses

Both approaches have significant drawbacks:

- **Too low slippage**: Your transactions fail when liquidity drops, even for small trades
- **Too high slippage**: You accept worse prices than necessary, losing money on every trade
- **Front-running vulnerability**: High slippage tolerance signals to MEV bots that they can exploit your trade

The fundamental issue is that slippage isn't static—it changes with every trade, liquidity addition, and liquidity removal. What works for a 1,000 USDC swap might fail for a 10,000 USDC swap in the same pool, even seconds later.

## The Solution: Real-Time Slippage Data

[Bitquery's DEX Pool stream provides](https://docs.bitquery.io/docs/cubes/evm-dexpool/) pre-calculated slippage data that updates in real-time whenever pool liquidity changes. Instead of guessing or using outdated calculations, you can query the exact slippage tolerance needed for your specific trade size before executing it.

### How It Works

The DEXPool stream calculates price tables by simulating swaps through the pool's initialized ticks, providing accurate slippage data at multiple tolerance levels:

- **0.1% slippage** (10 basis points)
- **0.5% slippage** (50 basis points)
- **1% slippage** (100 basis points)
- **2% slippage** (200 basis points)
- **5% slippage** (500 basis points)
- **10% slippage** (1000 basis points)

For each level, the stream provides:
- `MaxAmountIn`: Maximum input amount you can swap at this slippage level
- `MinAmountOut`: Guaranteed minimum output (use directly as `amountOutMin` in your swap)
- `Price`: Average execution price at this slippage level

### Real-Time Updates

The DEXPool stream updates automatically whenever liquidity-changing events occur:

- **Uniswap V2**: Updates on `Swap`, `Mint`, and `Burn` events
- **Uniswap V3**: Updates on `Swap`, `Mint`, and `Burn` events
- **Uniswap V4**: Updates on `Swap` and `ModifyLiquidity` events

This ensures your slippage calculations reflect the current pool state, not stale data from hours ago.

## Practical Implementation

### Finding the Right Slippage for Your Trade

Let's say you want to swap 25,000 USDC for WETH. Here's how to use DEXPool stream data:

```json
{
  "PoolPriceTable": {
    "AtoBPrices": [
      {
        "SlippageBasisPoints": 10,
        "MaxAmountIn": 2557952147,
        "MinAmountOut": 860478002991619427,
        "Price": 0.0003364734002389014
      },
      {
        "SlippageBasisPoints": 100,
        "MaxAmountIn": 25456674083,
        "MinAmountOut": 8465959707294551328,
        "Price": 0.00033264263765886426
      }
    ]
  }
}
```

**Important**: All amounts are in raw units (smallest token units), not decimal-adjusted. For USDC (6 decimals), `25456674083` = 25,456.67 USDC.

For your 25,000 USDC trade (25,000,000,000 in raw units with 6 decimals):
- At 0.1% slippage: `MaxAmountIn: 2557952147` (2,557.95 USDC) - too small
- At 1% slippage: `MaxAmountIn: 25456674083` (25,456.67 USDC) - perfect fit!

**Important Note**: You don't need to copy the exact `MaxAmountIn` amounts from the DEXPool stream. The `MaxAmountIn` values show the maximum trade size at each slippage level, but you can scale your trade amount up or down based on your risk tolerance. For example, if you want to trade 10,000 USDC instead of 25,000 USDC, you can still use the 1% slippage level (since 10,000 < 25,456.67), and you'll need to proportionally calculate your `MinAmountOut` based on your actual trade size.

Use `MinAmountOut: 8465959707294551328` as your `amountOutMin` parameter (or calculate proportionally for smaller trades).

### Using in Smart Contracts

Here's how to implement this in your smart contract:

```solidity
// After querying DEXPool stream from Bitquery
uint256 amountOutMin = 8465959707294551328; // From MinAmountOut field

IUniswapV2Router02(router).swapExactTokensForTokens(
    amountIn,
    amountOutMin, // Use MinAmountOut from DEXPool stream
    path,
    to,
    deadline
);
```

The `MinAmountOut` value is already in the correct format (raw units), so you can use it directly without conversion.

### Auto Slippage Selection

You can build a function to automatically find the optimal slippage level:

```javascript
function calculateSlippageTolerance(tradeAmount, poolPriceTable) {
  const atoBPrices = poolPriceTable.AtoBPrices;

  // Find the lowest slippage level that can handle your trade
  for (const priceData of atoBPrices) {
    if (tradeAmount <= priceData.MaxAmountIn) {
      // Calculate proportional MinAmountOut for your actual trade size
      // The table's MinAmountOut is for MaxAmountIn, so scale it down
      const proportionalMinOut = (priceData.MinAmountOut * tradeAmount) / priceData.MaxAmountIn;
      
      return {
        slippageBasisPoints: priceData.SlippageBasisPoints,
        slippageTolerance: priceData.SlippageBasisPoints / 10000, // Decimal format
        minAmountOut: proportionalMinOut, // Scaled to your trade size
        price: priceData.Price,
      };
    }
  }

  // Trade too large for even 10% slippage
  return null;
}
```

**Scaling Trade Amounts**: The DEXPool stream's `MaxAmountIn` values represent the maximum trade size at each slippage level, but you can trade any amount up to that limit based on your risk tolerance. For smaller trades, calculate the proportional `MinAmountOut` by scaling the table's `MinAmountOut` value: `(MinAmountOut × yourTradeAmount) / MaxAmountIn`. This ensures you get the appropriate minimum output guarantee for your specific trade size.

## Advanced Strategies

### Preventing Front-Running

Setting slippage tolerance too high creates a vulnerability: front-running bots can see your high tolerance and execute trades that push the price against you, knowing your transaction will still go through.

**Solution**: Use DEXPool stream data to set precise slippage tolerances:
1. Query the latest `PoolPriceTable` for your target pool
2. Find the exact slippage level that matches your trade size
3. Add a small buffer (0.1-0.2%) for execution delay
4. Use this precise tolerance instead of guessing

For example, if your trade fits at 1% slippage, set tolerance to 1.2% (adding 0.2% buffer) rather than defaulting to 5% or 10%.

### Multi-Pool Comparison

You can query multiple pools simultaneously to find the best execution:

```javascript
// Compare Pool A (Uniswap V3) vs Pool B (Uniswap V2)
// For a 20,000 USDC swap:

// Pool A: MaxAmountIn at 1% = 25,456.67 USDC, Price = 0.00033264
// Pool B: MaxAmountIn at 1% = 15,000 USDC, Price = 0.00033333

// Pool A is better: can handle larger trades and offers better price
```

By comparing `MaxAmountIn` values and `Price` fields across pools, you can:
- Identify which pool offers the best execution for your trade size
- Understand price impact before executing
- Optimize trade routing strategies

### Handling Large Trades

If your trade size exceeds all `MaxAmountIn` values (even at 10% slippage), you have several options:

1. **Split the trade**: Break into smaller chunks that fit within limits
2. **Wait for better liquidity**: Monitor DEXPool stream for when liquidity increases
3. **Use multiple pools/routes**: Route through aggregation protocols that split trades automatically

Monitor the DEXPool stream—when `Liquidity.AmountCurrencyA` and `AmountCurrencyB` increase, the `MaxAmountIn` values will increase accordingly.

## Understanding Price Impact vs Slippage Tolerance

It's important to distinguish between two related concepts:

- **Price Impact**: The actual change in pool price caused by your trade (calculated from AMM formula)
- **Slippage Tolerance**: The maximum price movement you're willing to accept (a parameter you set)

The DEXPool stream's `Price` field shows the price impact at different slippage levels. By comparing prices across slippage levels, you can see how price impact increases with larger trades:

```json
{
  "SlippageBasisPoints": 10,
  "Price": 0.0003364734002389014  // Better price, smaller max trade
}
vs
{
  "SlippageBasisPoints": 1000,
  "Price": 0.00030166094074957073  // Worse price, larger max trade
}
```

The price difference shows the impact: `(0.00033647 - 0.00030166) / 0.00033647 ≈ 10.34%`

## Removing Liquidity

The same principles apply when removing liquidity. Use DEXPool stream data to calculate expected output:

1. Get current reserves: `Liquidity.AmountCurrencyA` and `AmountCurrencyB`
2. Calculate your share: `yourShare = yourLPTokens / totalLPTokens`
3. Expected output: `expectedA = Liquidity.AmountCurrencyA * yourShare`
4. Apply slippage tolerance: `minA = expectedA * (1 - slippageTolerance)`

This ensures you set appropriate `amountAMin` and `amountBMin` parameters for `removeLiquidity` functions.

## Building Real-Time Trading Strategies with DEXPool Stream

The DEXPool stream enables sophisticated trading strategies that adapt to market conditions in real-time. Here's how traders are using it to build alpha-generating strategies.

### The Slippage-Execution Speed Trade-Off

When building automated trading strategies, you face a fundamental trade-off:

1. **Lowest Slippage (0.1%)**: 
   - Price is guaranteed (best execution)
   - Might miss the window of opportunity due to gas delays
   - Higher risk of transaction failure if pool state changes

2. **Highest Slippage (10%)**:
   - Quick trade execution (transaction likely to succeed)
   - Price not guaranteed (worse execution)
   - Vulnerable to front-running

3. **Low Gas + Slow Approval**:
   - Lower transaction costs
   - Approval transactions may timeout (120+ seconds)
   - Risk of "Dropped & Replaced" transactions

### Real-World Strategy: Copy Trading with Dynamic Slippage

One effective strategy is to copy positions and directions from the DEXPool stream, executing small trades and closing them within 3-4 blocks using dynamically selected slippage.

**Strategy Overview:**
1. Monitor DEXPool stream for new liquidity events
2. Copy the direction (AtoB or BtoA) based on liquidity depth
3. Execute small position with dynamically chosen slippage
4. Close position in next 3-4 blocks with updated slippage

**Implementation Pattern:**

```python
# Pseudo-code example
def execute_trade_strategy(pool_event):
    # 1. Choose direction based on liquidity depth
    direction = choose_direction_dynamically(pool_event)
    # AtoB if more liquidity in CurrencyA, BtoA if more in CurrencyB
    
    # 2. Find best slippage that fits trade size
    slippage_data = find_best_slippage(trade_amount, pool_event.PoolPriceTable)
    # Pick lowest slippage that can handle the trade
    
    # 3. Execute swap
    execute_swap(direction, slippage_data.MinAmountOut)
    
    # 4. Track position for closing
    track_position(block_number, direction, amount_out)
    
    # 5. Close after 3-4 blocks
    if current_block >= position_block + 3:
        close_position(position, updated_slippage_data)
```

**Key Considerations:**

- **Dynamic Slippage Selection**: Always query fresh DEXPool data before each trade—liquidity changes constantly
- **Direction Selection**: Use `Liquidity.AmountCurrencyA` vs `AmountCurrencyB` to determine which direction has more depth
- **Trade Size Scaling**: You don't need to copy exact `MaxAmountIn` amounts—scale your trade size up or down based on your risk tolerance. The `MaxAmountIn` values show the upper limit at each slippage level, but you can trade any amount up to that limit
- **Block Tracking**: Monitor block numbers to close positions at the right time

### Opening and Closing Positions

A complete trading strategy involves both opening and closing positions. Here's how to implement this using DEXPool stream data:

**Opening a Position:**

1. **Monitor DEXPool Stream**: Listen for new liquidity events or price changes
2. **Choose Direction**: Select AtoB or BtoA based on liquidity depth and market conditions
3. **Calculate Slippage**: Query the latest `PoolPriceTable` to find the optimal slippage level for your trade size
4. **Execute Swap**: Open the position by executing the swap in your chosen direction
5. **Track Position**: Store the position details including:
   - Block number when opened
   - Direction (AtoB or BtoA)
   - Amount received (for closing calculation)
   - Token addresses

**Closing a Position:**

1. **Monitor Block Numbers**: Check if the target number of blocks has elapsed (e.g., 3-4 blocks)
2. **Query Fresh Slippage Data**: Get updated `PoolPriceTable` for the closing direction (opposite of opening)
3. **Check Token Balance**: Verify you have the tokens received from opening the position
4. **Handle Approvals**: If needed, approve the router to spend your tokens (check existing allowance first)
5. **Calculate Closing Amount**: Use the amount received from opening, or a portion of it
6. **Execute Reverse Swap**: Close the position by swapping in the opposite direction

**Important Notes:**

- **Opposite Direction**: Always close in the opposite direction of opening. If you opened with BtoA (bought CurrencyB), close with AtoB (sell CurrencyB)
- **Fresh Slippage Data**: Always query the latest `PoolPriceTable` before closing—pool conditions change between blocks
- **Approval Management**: Check existing token allowances before requesting new approvals to avoid unnecessary transactions
- **Block Timing**: Monitor block numbers carefully. Network congestion may cause more blocks to elapse than expected
- **Partial Closes**: You can close a portion of your position by using a fraction of the `amount_received` value

**Real-World Example:**

```
Opening: BtoA swap (WETH → TOKENA)
- Block: 24189478
- In: 0.000100 WETH
- Out: 6.537647 TOKENA
- Slippage: 10 bps

Closing: AtoB swap (TOKENA → WETH)  
- Block: 24189483 (5 blocks later)
- In: 6.537647 TOKENA
- Fresh slippage calculated from updated PoolPriceTable
- Approval handled automatically
- Position closed successfully
```

### Common Pitfalls and Solutions

Based on real trading bot implementations, here are common issues and how to handle them:

#### 1. Approval Transaction Timeouts

**Problem**: Low gas prices cause approval transactions to timeout after 120+ seconds, leading to "Dropped & Replaced" errors.

**Solution**:
- Use higher gas prices for approval transactions (they're one-time per token)
- Implement approval caching—check if approval exists before requesting new one
- Consider using `permit` signatures (EIP-2612) to skip approvals entirely

```python
# Check existing allowance before approving
current_allowance = token.allowance(wallet, router_address)
if current_allowance < amount:
    # Only approve if needed
    approve_tx = token.approve(router_address, amount, {'gasPrice': higher_gas})
```

#### 2. Insufficient Token Balance

**Problem**: Strategy tries to trade tokens you don't have (e.g., trying to swap WHALE tokens when you only have WETH).

**Solution**:
- Always check token balance before attempting swap
- Implement balance validation in your trade logic
- Consider multi-hop swaps if you need to convert tokens first

```python
def validate_balance(token_address, required_amount):
    balance = token.balanceOf(wallet_address)
    if balance < required_amount:
        return False, f"Insufficient balance. Need {required_amount}, have {balance}"
    return True, None
```


#### 3. Transaction Dropped & Replaced

**Problem**: Transactions with low gas get dropped from the mempool and replaced.

**Solution**:
- Use dynamic gas pricing based on current network conditions
- Implement transaction replacement logic
- Set appropriate timeouts and retry mechanisms

```python
# Get current gas price from network
current_gas_price = w3.eth.gas_price
# Add 20% buffer to ensure inclusion
gas_price = int(current_gas_price * 1.2)

tx = contract.function(parameters).buildTransaction({
    'gasPrice': gas_price,
    'nonce': w3.eth.get_transaction_count(wallet_address)
})
```

### Building Your Alpha Strategy

The DEXPool stream provides the foundation for building profitable trading strategies:

1. **Liquidity Arbitrage**: Monitor multiple pools for the same pair, execute when price differences exceed gas costs
2. **Liquidity Following**: Copy large liquidity additions/removals, trade in the same direction
3. **Slippage Optimization**: Always use the lowest slippage that fits your trade size to maximize profit margins
4. **Multi-Pool Routing**: Compare `MaxAmountIn` and `Price` across pools to find optimal execution

**Example Strategy Flow:**

```
1. Subscribe to DEXPool Kafka stream
2. Filter for pools with high liquidity changes
3. Analyze PoolPriceTable for both directions (AtoB, BtoA)
4. Choose direction with better liquidity depth
5. Select lowest slippage that accommodates trade size
6. Execute swap with MinAmountOut from price table
7. Monitor position for 3-4 blocks
8. Close position with fresh slippage data
9. Repeat
```

### Performance Optimization Tips

- **Batch Queries**: Query multiple pools simultaneously to compare execution
- **Cache Price Tables**: Cache recent PoolPriceTable data to reduce API calls (but always validate freshness)
- **Gas Optimization**: Use the minimum slippage needed—every basis point saved is profit
- **Error Handling**: Implement robust retry logic for failed transactions
- **Monitoring**: Track success rate, average slippage used, and profit margins

## Best Practices

### For Smart Contract Integration

1. **Query immediately before execution**: DEXPool stream updates in real-time, so query right before your transaction to get the freshest data
2. **Account for token decimals**: Remember that all amounts are in raw units—verify using `CurrencyA.Decimals` and `CurrencyB.Decimals` fields
3. **Add a small buffer**: Add 0.1-0.2% to the calculated slippage to account for execution delay
4. **Monitor multiple pools**: Compare execution prices across different pools to find the best route
5. **Handle edge cases**: If your trade exceeds all slippage levels, implement splitting or wait for better liquidity

### For Automated Trading Bots

1. **Balance slippage vs execution speed**: Use lowest slippage that fits your trade, but be aware it may cause delays
2. **Implement approval caching**: Check existing token allowances before requesting new approvals to avoid timeouts
3. **Validate balances before trading**: Always verify you have sufficient token balance before attempting swaps
4. **Use dynamic gas pricing**: Monitor network conditions and adjust gas prices to avoid dropped transactions
5. **Handle protocol limitations**: Filter for supported protocols and implement graceful handling for unsupported ones
6. **Track positions carefully**: Monitor block numbers and implement proper position tracking for multi-block strategies
7. **Implement retry logic**: Handle transaction failures gracefully with exponential backoff
8. **Monitor and log everything**: Track slippage used, success rates, and profit margins to optimize your strategy

## Conclusion

Real-time slippage data transforms DEX trading from guesswork into a precise, data-driven process. By leveraging Bitquery's DEXPool stream, you can:

- Set optimal slippage tolerances programmatically
- Prevent front-running by avoiding unnecessarily high tolerances
- Compare execution across multiple pools
- Make informed decisions about trade sizing and routing
- Build sophisticated trading strategies that adapt to market conditions
- Execute copy-trading strategies with dynamic slippage selection
- Optimize gas usage and transaction success rates

Whether you're building trading bots, executing swaps from smart contracts, or managing liquidity positions, real-time slippage data gives you the edge you need to trade smart. The DEXPool stream provides the foundation for building alpha-generating strategies that respond to market conditions in real-time, balancing execution speed with price guarantees.

The key is understanding the trade-offs: lower slippage guarantees better prices but may cause execution delays, while higher slippage ensures faster execution but at worse prices. By dynamically selecting slippage based on real-time pool data, you can optimize for your specific strategy goals.

## Additional Resources

- [DEXPools Cube Documentation](https://docs.bitquery.io/docs/cubes/evm-dexpool/) - Complete guide to DEXPool data structure
- [Slippage FAQ](https://docs.bitquery.io/docs/API-Blog/slippage-faq-using-dexpool-stream/) - Detailed FAQ on slippage calculation
- [Bitquery IDE](https://ide.bitquery.io/) - Query DEXPool data in real-time
- [Kafka Data Samples](https://github.com/bitquery/kafka-data-sample/blob/main/evm/eth_dexpools.json) - Sample DEXPool stream data structure

----

*This material is for educational and informational purposes only and is not intended as investment advice. The content reflects the author's personal research and understanding. While specific investments and strategies are mentioned, no endorsement or association with these entities is implied. Readers should conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery is not liable for any losses or damages resulting from the application of this information.*




]]></description>
        </item>
        <item>
            <title><![CDATA[Build Solana Bubble Maps with Bitquery: Historical Data with Zero RPC Calls]]></title>
            <link>https://bitquery.io/blog/solana-bubblemaps-bitquery-zero-rpc</link>
            <guid>https://bitquery.io/blog/solana-bubblemaps-bitquery-zero-rpc</guid>
            <pubDate>Fri, 31 Oct 2025 05:35:07 GMT</pubDate>
            <description><![CDATA[
Traditional Solana historical queries usually chain multiple RPCs: call `getSignaturesForAddress`, loop each signature through `getTransaction`, and sometimes walk `getBlock` for context. For active traders, this quickly explodes into hundreds or thousands of requests—slow, costly, and complicated.

Running your own RPC also isn’t a silver bullet. Nodes periodically download snapshots; if slots are missed during catch‑up, the “blocks behind” metric oscillates as the node alternates between downloading, verifying, and following new slots.

**“Zero RPC calls for archival solana data, is that possible?”**

For use cases like bubble maps, you don’t want every on-chain detail; you want the exact subset of transfers, shaped for aggregation and visualization. Bitquery makes this possible by letting you query precisely the data you need in one request.

Deep pagination across billions of records is slow, you need stable ordering and resumable crawls. Even simple tasks like finding the first transfer of an address or the creator of a token, can require paging backward indefinitely.

What’s more, accurate USD amounts need historical price at event time, per token, with decimals handled correctly.

Of course, you can build your own indexer. But then you own storage, infra, maintenance, and the problems that come with it.

Bitquery solves this problem for [historical solana data](https://docs.bitquery.io/v1/docs/Examples/Solana/transfers). You describe the data you want (e.g., transfers for a receiver address since a date, filtered by token), and the API returns exactly those rows, ready for aggregation into a bubble map.

## Why Bitquery is the Best Solution for Historical Solana Data

- Pre-indexed and parsed data: Bitquery maintains a indexed, parsed representation of all Solana transactions. Unlike raw RPC responses that require parsing instruction data, extracting transfer details, and handling various transaction formats, Bitquery provides clean, structured transfer data ready for querying.
- Targeted data: Ask exactly for the transfers you need in one query rather than stitching `getSignaturesForAddress` + `getTransaction` + `getBlock`.
- Predictable performance: Server-side filtering, ordering, and pagination reduce client loops and retries.
- Flexible Querying: GraphQL lets you select only fields needed for analytics/visualization (amounts, addresses, timestamps).

In short, for building things like bubble maps, you care about a subset of transfer edges over a time window with totals—Bitquery gives this directly.

Now let’s fetch historical Solana transfers for a bubblemap—end‑to‑end with Bitquery.

We’ll query only the transfers we need (filtered by token, receiver, and time), return USD amounts, and shape the result for bubblemap visualization.
We will focus on one question:

_“Which wallets have interacted with this address historically?”_

## Simple Tutorial: Build a Solana Bubble Map from Bitquery

This project includes a script using d3.js library that fetches transfers via Bitquery and generates a ready-to-open bubblemap visualization.

![](/blog/solana-bubblemaps-bitquery-zero-rpc/bubblemap.gif)

### Repository

[Complete code is available here](https://github.com/Divyn/solana-bubblemap-generator/tree/main).

### Prerequisites

- Node.js 18+
- A Bitquery account and an OAuth token
- Clone this repository to your system

### Install dependencies

```
npm install axios fs open
```

### Configure your Bitquery token

Once you have an OAuth token, add it an environment variable and import it in the code.

### How the script works

- Builds a GraphQL query targeting solana transfers for a given `receiverAddress` and optional currency token address. You can run the query on Bitquery's IDE [here](https://ide.bitquery.io/map-query-working_1)
- Paginates results and aggregates into:

- nodes: unique addresses with their USD volume
- links: edges between sender → receiver with summed USD value and count

- Embeds data directly into index.html, writes output.html, and opens it in your default browser.

### Run it

Using it as an NPM Script:

```
npm run build:bubblemap --  <currency_address>  <receiver_address>  [since_date]
```

- currency_address: SPL token mint address to filter transfers by (e.g. USDT or a project token). Use null to fetch native SOL transfers.
- receiver_address: The focal address whose inbound transfers form the bubble map neighborhood.
- since_date: ISO date (YYYY-MM-DD). Defaults to 2025-09-24 if omitted.

Or call Node directly:

```
node scripts/build-bubblemap.js <currency_address>  <receiver_address>  [since_date]
```

Example (USDT → a project wallet since 2025‑09‑24):

```
npm run build:bubblemap -- Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB CapuXNQoDviLvU1PxFiizLgPNQCxrsag1uMeyk6zLVps 2025-09-24
```

What you get:

- The script writes output.html at the repo root and opens it.
- output.html contains an embedded dataset and D3 force-directed chart:

- Bubble size: node USD volume
- Link width: summed USD transferred along that edge
- Tooltip: address, node USD, and edge stats

### Adjusting Parameters

You can adjust any of the existing parameters to query a larger dataset:

- pageSize (default 100): Increase to reduce round trips; decrease if you hit timeouts.
- maxPages (default 4): Raises/lowers the total data fetched.
- interPageSleepMs and retry/backoff settings: Helpful when rate-limited.
- nodes.slice(0, 300) and links.slice(0, 1000): Caps visualization complexity for readability.

output.html is a standalone page—no server required. Share it as-is or publish it via GitHub Pages/Netlify. The source index.html is a template during the build.

To preview locally with a static server:

```
npm run serve
```

### Common issues

- “Missing BITQUERY_OAuth_token” or 401: Ensure your OAuth token is valid and present in the script.
- Timeouts or rate limits: Reduce pageSize, increase timeoutMs, and let retries/backoff work.
- Empty map: Double-check currency_address, receiver_address, and since_date are correct and that there is actual activity.

## Beyond Historical Data: Realtime Streaming

While Bitquery's GraphQL API excels at historical data queries, you can also access real-time Solana blockchain data through [Bitquery's gRPC Streams](https://docs.bitquery.io/docs/grpc/solana/introduction). These streams deliver parsed, filterable events with sub-second latency, making them ideal for trading applications, bots, and DeFi platforms that need instant transaction notifications. For comprehensive documentation on real-time streaming technologies including WebSocket, Kafka, and CoreCast, visit the [Streams documentation](https://docs.bitquery.io/docs/streams/).
]]></description>
        </item>
        <item>
            <title><![CDATA[DEX Data Doesn’t Lie: Who's the Leader in DeFi Trading?]]></title>
            <link>https://bitquery.io/blog/dex-activity-bnb-vs-solana-real-trading-myth</link>
            <guid>https://bitquery.io/blog/dex-activity-bnb-vs-solana-real-trading-myth</guid>
            <pubDate>Wed, 02 Jul 2025 10:00:00 GMT</pubDate>
            <description><![CDATA[
Many crypto commentators claim the BNB Chain (formerly Binance Smart Chain) is number one for decentralized trading. In this analysis, we dig into the on-chain DEX data to see what’s happening.

Is BNB Chain truly dominating decentralized exchange activity, or are those numbers driven by algorithmic “pump-and-dump” bots?

And if BNB isn’t the unquestioned leader in real trading, could Solana (with new platforms like Pump.Fun) be giving it a run for its money?

We compare key metrics – trading volume, transaction count, active traders, fees, and token launches between BNB Chain and Solana to set the record straight.

## Suspected Bot Activity on BNB

There are clear signs that a significant portion of the BNB Chain’s DEX volume is driven by short, aggressive trading algorithms rather than broad retail demand. Traders and analysts have identified pump-and-dump cycles on BNB pairs, where bots rapidly buy a token to spike its price, lure in late buyers, and then quickly sell large positions seconds later. This yields spikes in volume and price, followed by equally sharp crashes, a pattern not characteristic of organic market behavior. In practice:

- Bots buy aggressively: Automated scripts scoop up a token very fast, pushing the price up. You can [check top pairs](https://dexrabbit.com/bsc/pair) randomly on a trade data site like DEXRabbit.

![](/blog/dex-activity-bnb-vs-solana-real-trading-myth/chart.png)

- Retail FOMO kicks in: Seeing the sudden jump, ordinary traders buy in, fearing they’ll miss out.
- Bots dump & profit: The bots then sell at the inflated price, causing a steep price drop.
- Cycle repeats: Minutes later, the same routine often starts again on either the same token or another.

This pattern, huge volume bursts followed by dumps, shows up repeatedly in on-chain data for new BNB tokens. The two example DexRabbit charts (BNB pair links provided) illustrate exactly this behavior. It suggests that a lot of BNB DEX volume is from a small number of bots running automated pump schemes, rather than from broad, genuine trading.

This kind of behavior, high-volume bursts created by bots rather than real users, raises an important question: If much of BNB’s activity is artificial, how does it compare to a chain like Solana, which is known for attracting broader community-driven participation? To answer that, we need to move beyond volume headlines and dive into real metrics like trade counts, active users, and token diversity. Let’s put BNB and Solana side by side to see which chain is truly leading in decentralized trading.

## BNB vs Solana – DEX Volume and Trades

To compare chains fairly, we look at multiple metrics. First up is trading volume (USD) on DEXs:

### 24h DEX Trading Activity

![](/blog/dex-activity-bnb-vs-solana-real-trading-myth/dexmarket_solana.png)

![](/blog/dex-activity-bnb-vs-solana-real-trading-myth/dexmarket_bnb.png)

At the time of writing, we analysed the trading stats for the past 24 hours. Solana had about 12 million trades, and BNB at 9 million trades. The numbers look close enough at scale, but that’s not our concern; `What if the numbers were made up of bots?`

The BNB Chain shows an enormous total volume ( [$17.7 billion](https://dexrabbit.com/bsc/token) in our snapshot), far above [Solana’s ($3.8 billion)](https://dexrabbit.com/solana/token). At first glance, BNB appears to be looking far ahead. However, BNB’s numbers are heavily concentrated in a few tokens (for example, USDT and newly launched coins like Bedrock dominated the BNB volume data). Many of those trades on BNB are the rapid pump-and-dump trades mentioned above. In contrast, Solana’s volume is more evenly spread across tokens like WSOL, USDC, and USDT, as well as a host of meme coins. The chart’s logarithmic scale highlights that while BNB’s raw volume is higher, Solana still has substantial multi-billion-dollar activity.

### DEX transaction count (Number of trades executed):

Solana leads by a wide margin here: roughly [28.6million](https://dexrabbit.com/solana/token) trades vs about [10.0 million](https://dexrabbit.com/bsc/token) on BNB in the same period. In other words, Solana saw almost three times as many individual DEX transactions as BNB Chain. This huge difference suggests Solana has far more granular trading activity.

A key contributor to Solana is PumpFun (a new “pump”-style DEX); it alone handled around [1.8 million](https://dexrabbit.com/solana/pumpfun) trades in the period, drawing many participants into quick pump/dump games on that network. BNB’s DEX trades, by contrast, appear more dominated by large single trades (often bot-driven). Even PancakeSwap V3, BNB’s largest DEX, saw under 8 million trades. This implies that real, distributed trading activity is higher on Solana.

## Active Traders and Fee Environment

Another lens is unique active traders. How many distinct addresses are buying on DEXes? Summing across all BNB DEXes, we observe [~264,000](https://dexrabbit.com/bsc/token) unique buyers in our sample period, compared to about [1,108,000](https://dexrabbit.com/solana/token) unique buyers on Solana. Put differently, Solana engaged roughly four times more unique participants on DEXes than BNB Chain. A more active trader base on Solana suggests its ecosystem is hosting more genuine retail and programmatic trading.

### Unique Active Buyers

This compares the two networks’ buyer counts. Solana’s bar towers over BNB’s, reinforcing that [Solana’s DEXes have far more individual traders](https://dexrabbit.com/solana/dex_market). (For reference, Solana’s top DEXes are Raydium, Meteora, and PumpFun, each reported large counts of unique buyers; on BNB PancakeSwap had ~84.9k, and other DEXs added up to ~[264k total](https://dexrabbit.com/bsc/dex_market).)

One reason for Solana’s higher participation is its fee structure. Solana’s fees are tiny (often a fraction of a cent per swap), whereas BNB Chain fees, though low, are still on the order of a few cents per trade. BNB Chain recently announced an upgrade that lowers fees to as little as $0.005 per swap, but even that is higher than Solana’s fees. Lower gas costs on Solana make it more attractive for high-frequency memecoin speculators and small trades, the very crowd fueling these DEX numbers. (Less friction means more trades per user.) Thus, many of Solana’s traders are smaller-time or meme participants, whereas BNB’s numbers are boosted by a handful of very large-volume bot trades.

## Meme Tokens and New Launches

Both chains are seeing a fever-pitch creation of new meme tokens and liquidity pools. The number of new tokens being launched and traded is huge on both sides, especially in the $1–10M range that pumps bots target.

On BNB Chain, our data showed dozens of new tokens with crazy price swings (e.g., Sahara AI, Roam Token, etc.), often traded against WBNB and USDT.

On Solana, hundreds of new “pumpcoins” (like Fartcoin, Mori, StupidCoin, etc.) are listed on niche DEXes or liquidity pools. Overall, BNB may have more total tokens created (given its longer presence), but the rate of new launches on Solana’s newer DEXes is very high. Both ecosystems are littered with tokens that exist mainly to supply speculative trading volume.

![](/blog/dex-activity-bnb-vs-solana-real-trading-myth/table.png)

> Note: The chart uses normalized scores (0 to 1) to fairly compare different metrics like volume, fees, and user activity, so you can easily see which chain performs better in each category, regardless of the original units

## Conclusion

The idea that BNB Chain is the undisputed No.1 DEX trading chain doesn’t quite hold up under scrutiny. Yes, BNB’s raw DEX volume is larger, but much of it comes from rapid bot-driven cycles on a handful of tokens. Solana, by contrast, shows far more trades and far more unique traders, indicating broader participation. In other words, Solana seems to be winning the ecosystem engagement contest, even if its total dollars traded lag.

In practical terms, if you measure “No.1” by headline volume figures, BNB still looks on top, but automatic pumps inflate that. If you measure by real activity and trader count, Solana leads. The reality is nuanced: both chains are currently hotbeds of speculative token activity. The key takeaway is that high-volume DEX stats can be misleading, and claims like “BNB is No.1” should be taken with a grain of salt. In the end, the data suggests BNB’s lead may be largely an illusion of bots, while Solana’s DeFi scene has more genuine hustle and bustle under the hood.

---

_The information provided in this material is published solely for educational and informational purposes. It does not constitute a legal, financial audit, accounting, or investment advice. The article's content is based on the author's own research and, understanding and reasoning. The mention of specific companies, tokens, currencies, groups, or individuals does not imply any endorsement, affiliation, or association with them and is not intended to accuse any person of any crime, violation, or misdemeanor. The reader is strongly advised to conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery shall not be liable for any losses or damages arising from the use of this material._
]]></description>
        </item>
        <item>
            <title><![CDATA[Analyzing Slippage: A Quantitative Study of Pumpfun’s Trading Dynamics]]></title>
            <link>https://bitquery.io/blog/analyzing-slippage-pumpfun-trading-dynamics</link>
            <guid>https://bitquery.io/blog/analyzing-slippage-pumpfun-trading-dynamics</guid>
            <pubDate>Tue, 17 Jun 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[
Have you ever sent 1 SOL on Pumpfun only to receive far fewer tokens than you expected? That unwelcome surprise is known as slippage: the hidden cost of executing fast trades in volatile markets. In decentralized finance, slippage refers to the gap between the price you anticipate when submitting a swap and the actual price at which it executes. Even small differences measured in basis points (1 bp = 0.01%) can add up, especially when trading memecoins on a busy launchpad like Pumpfun.

Pumpfun operates on [Solana](https://docs.bitquery.io/docs/category/solana/) as a memecoin launchpad where token prices automatically rise along a bonding curve each time buyers pour in. Its popularity means liquidity can shift rapidly, and markets move at breakneck speed. In such an environment, slippage is not just likely but almost guaranteed: a modest buy order can push price upward mid-transaction, and if bots or validators detect your pending trade, they may front-run it, further worsening execution. Conversely, under certain conditions, you might even see “negative slippage,” where price moves in your favor between quote and execution, but that is less common for typical users.

To shed light on these dynamics, we analyzed a dataset of 5,000 Pumpfun DEX trades spanning nine tokens, complete with timestamps, trade sizes, quoted and realized prices, and computed slippage. Our goal is to help you understand how slippage is calculated, how often it occurs, and what patterns emerge in this high-volatility setting. By examining which trades experienced zero slippage, which suffered the worst-case losses, and when front-running behavior seems to appear, you’ll gain insight into the hidden mechanics affecting your orders.

We compute slippage in basis points using the formula:

```
slippage (bps) = ((realizedPrice / quotedPrice) – 1) × (–10000)
```

Where,

- realizedPrice: The realized execution price of the swap (the amount of the input asset spent, over the amount of the output asset received).
- quotedPrice: The decision price shown to the user. For this, we can query the price of the previous trade of the pumpfun token pair

A positive slippage value indicates you received a worse price than quoted (you “lost” relative to expectation), while a negative value indicates a better price (you “gained”). This convention makes interpretation straightforward: positive means loss, negative means gain.

Front-running bots magnify slippage in Pumpfun’s fast-moving pools. By observing pending transactions in the mempool and placing their orders ahead of or behind yours (“sandwich” attacks), they can push price against your trade, resulting in higher slippage. Understanding these tactics and the underlying formula helps you set appropriate slippage tolerances, choose safer trade sizes, and consider mitigation strategies such as private transaction submission or splitting orders.

In the sections that follow, we’ll walk through slippage concepts in simple terms and illustrate how we calculated slippage on a real Pumpfun dataset, presented in clear charts and tables. You’ll see how often zero slippage occurs, which tokens show the most stability, when and why traders suffer large losses, and how front-running behavior manifests in our dataset. Armed with this knowledge, you can trade smarter on Pumpfun and avoid nasty surprises.

### How PumpFun Works and Why Slippage Is Built In

[Pumpfun](https://docs.bitquery.io/docs/examples/Solana/Pump-Fun-API/) is a memecoin launchpad built on Solana where tokens follow a [bonding curve](https://docs.bitquery.io/docs/examples/Solana/Pump-Fun-Marketcap-Bonding-Curve-API/) pricing model. That means every time someone buys a token, its price goes up automatically, not based on traditional supply and demand but based on a mathematical formula.

This system creates an extremely fast-moving environment. A few users buying at once can push the price up while your transaction is still processing. So even if you saw a good price when you submitted the trade, by the time it goes through, you might be buying at a much higher price. That’s slippage.

### The Role of Bots and Front-Running

Now here’s where it gets a bit more complex and more dangerous for traders.

When you submit a transaction, it enters something called the mempool a temporary holding area for unconfirmed transactions. In many blockchain systems, the mempool is public. That means bots and validators can see your pending trade before it executes.

Some bots exploit this by performing what's called a front-running attack. They jump in ahead of your trade, pushing the price up before yours goes through. Even sneakier bots use a strategy called a sandwich attack, placing one trade before and one after yours, essentially boxing you in and draining value from your transaction. This kind of manipulation is part of what’s called [MEV (Maximal Extractable Value)](https://bitquery.io/blog/different-mev-attacks), the profit that bots or validators can extract by reordering transactions.

## Dataset Overview

The dataset contains 5,000 Pumpfun token trades obtained using [Bitquery Pumpfun Trade Streams](https://docs.bitquery.io/docs/examples/Solana/Pump-Fun-API/#get-real-time-trades-on-pump-fun) over about 11 minutes (June 9, 2025). Key columns include Time (UTC), Token Name, Amount (token units), Amount (USD), Price (USD) (quoted price), Side Type (buy/sell), Side Amount (token), Side Amount (USD), and Slippage (bps).

After filtering anomalies (trades with quoted price = 0 leading to undefined slippage), we have 4,844 valid trades across 9 tokens: catwifmask, costco, THE AMERICA PARTY, KILL BIG BEAUTIFUL BILL, Kill Bill, moonpig, AMERICA PARTY, OFFICIAL MUSK, and President Vs Elon. These trades span several DEX protocols, mostly Pumpfun’s own AMM and Liquid Blok ClmM, plus Whirlpool and others.

## Slippage Distribution

Most trades saw small slippage. In our data (excluding anomalies), the median slippage is 0 bps, and the 75th percentile is about +6 bps, meaning three-quarters of trades lost under 6 bps (or gained under 6 bps) relative to the quote. The distribution is roughly symmetric: about 8% of trades had zero slippage, ~47% had positive slippage (trader got a worse deal), and ~45% had negative slippage (trader got a better deal). (For context, a large 2021 study similarly found about 50% zero slippage and 33% negative slippage, though exact splits vary by dataset.)

Slippage is highly skewed: a few trades suffer enormous slippage, but most are small. Over half of non-zero-slippage trades had |slippage| < 10 bps. Only about 2% of trades experienced slippage above 100 basis points. The extreme tail includes 11 trades above +1000 bps (worst losses) and 6 trades below –1000 bps (huge gains). In particular, our top slippage trades exceeded 5000 bps (see next section). Overall, the distribution underscores that tiny or moderate trades have minimal slippage, while illiquid or exploited trades can experience massive deviations.

## How Many Zero and Negative Slippages?

From 4,844 valid trades:

- Zero slippage: 406 trades (~8%). These occurred when the pool price changed negligibly between the quote and execution.
- Negative slippage (favorable): 2,294 trades. Traders got slightly better prices, often due to other trades shifting prices in their favor after quoting but before execution.
- Positive slippage (loss): 2,144 trades. Traders paid slightly more or received slightly less.

Why many favorable slippages?

In a live DEX, price moves both ways. After you submit a transaction, other trades might move the price beneficially before execution. Also, bots sometimes push prices up/down around your trade, yielding short windows where later trades see a better price.

## Worst Slippage Trades

The top 5 trades with the worst slippage (highest positive bps) are all for catwifmask. They are summarized below, listing the timestamp (UTC), token, side (buy/sell), USD size, and slippage:

![](/blog/analyzing-slippage-pumpfun-trading-dynamics/table.png)

Interpretation: For these trades, slippage > +5000 bps means price deviated by >50% relative to the quoted price. Such extreme losses typically happen in illiquid pools when a trade moves price drastically, or when bots sandwich small trades.

These tiny to modest-sized trades (all <$500) suffered catastrophic slippage, indicating severe price impact or possible exploitation. (All 10000 bps slippage cases were due to data glitches with price=0 and are omitted above.)

### Most Stable Tokens

Based on the average absolute slippage (mean of |bps|) per token, the four most stable tokens in our dataset were:

- moonpig (mean |slippage| ≈ 14.5 bps): Trades in this pool experienced very small price deviations on average. Most slippage events remained within ±50 bps (±0.50%). Such consistency indicates healthy liquidity and balanced trading activity, making Moonpig relatively predictable for traders.
- President Vs Elon (mean |slippage| ≈ 17.1 bps): Although there were fewer trades for this token, the observed slippage remained mild. This suggests that even with lower volume, price shifts between consecutive trades were modest.
- OFFICIAL MUSK (mean |slippage| ≈ 26.5 bps): Moderate average deviations, generally within ±100 bps. While occasional spikes occurred, they were infrequent, indicating that traders could usually execute without a drastic price impact.
- Costco (mean |slippage| ≈ 31.2 bps): Despite a larger number of trades, the pool maintained relatively low slippage overall (around ±0.3% on average). This reflects a balance of supply and demand or sufficient deep liquidity for routine trades.

In contrast, tokens like catwifmask exhibited much higher mean absolute slippage (~62 bps) and severe outliers, indicating that trades there often faced large price swings or potential MEV activity. Other tokens (e.g., AMERICA PARTY, THE AMERICA PARTY, Kill Bill) showed average slippage near zero but with occasional spikes, suggesting intermittent liquidity stress or concentrated trading bursts

Choosing tokens with low average slippage reduces the likelihood of unexpectedly large execution costs. For tokens like Moonpig or Costco, traders can set tighter slippage tolerances and expect more predictable outcomes. Conversely, high-slippage pools require extra caution: smaller order sizes, higher tolerance for potential price impact, or avoidance unless liquidity improves

![](/blog/analyzing-slippage-pumpfun-trading-dynamics/chart.png)
Fig: Mean Absolute Slippage by Token

### Slippage Over Time

When slippage is aggregated over time (e.g., averaged per minute), we observe that most time intervals exhibit average slippage close to zero, punctuated by brief spikes. In our 11-minute snapshot:

- Stable intervals: During most minutes, the minute-level average slippage hovers around 0 bps. This indicates that for routine trades in stable or liquid pools, price changes between consecutive transactions were minimal.
- Spikes aligned with large or illiquid-token trades: Certain minutes showed noticeable positive or negative average slippage, often corresponding to clusters of trades in low-liquidity pools (notably catwifmask). For example, when a sizable trade or a sequence of trades hit a shallow pool, the subsequent trades in that same minute experienced larger deviations, pulling the average slippage for that period away from zero.
- Implications for traders: Monitoring slippage trends over time can help identify moments of heightened risk. If you see a recent spike in average slippage for a token, it likely signals that liquidity has been disturbed, perhaps by large orders or MEV activity, and you may want to delay your trade, reduce size, or widen your slippage tolerance cautiously.

Over the 11-minute window, slippage trends were mostly calm until two bursts: around 09:51:17–09:51:33 UTC, many catwifmask trades were executed with enormous slippage, pushing the minute-average slippage above +10 bps. For instance, at 09:51, the mean slippage was +18.5 bps (due to the large catwifmask losses). Before and after this, per-minute averages hovered near 0 or slightly negative. Overall, slippage spiked whenever big trades occurred in low-liquidity tokens.

## Token-by-Token Insights

catwifmask: By far the most volatile. Median slippage ≈was 0, but it had the highest extremes (both +5000 bps and 1400 bps). A series of catwifmask trades suffered a massive impact, suggesting very low liquidity or targeted attacks.

Costco: The largest sample (898 trades) with generally small slippage. Average slippage slightly negative (~–0.7 bps), indicating gains on average (perhaps due to routine small advantageous fills). Outliers reached +988 bps or –1158 bps.

THE AMERICA PARTY: Lots of trades (717) with median ≈0. Mean slippage is slightly negative (good). This token had some big swings (±1100 bps), but those were rare.

AMERICA PARTY: Fewer trades (70), mostly small, with occasional spikes (max ~+402 bps, min –237 bps). Average close to neutral.

KILL BIG BEAUTIFUL BILL: Fairly active (406 trades), median slippage 0, mean about –0.8 bps (slightly favorable). It experienced significant swings (over +1800 bps and –2190 bps), but the typical result was mild.

Kill Bill: Moderate activity (193 trades). Mean slippage +0.25 bps (slightly adverse). Volatility was moderate (up to ±900+ bps).

moonpig: Few trades (150) but very smooth. Almost all slippages were under ±50 bps, with none above ±200. The average was near zero.

OFFICIAL MUSK: Small sample (50 trades). Mean +3.1 bps (somewhat adverse), with moderate extremes (~±130 bps).

President Vs Elon: Very few trades (32) but interestingly mean 5.9 bps (on average favorable), with extremes ±60 bps. This suggests occasional nice fills or luck.

## Front-Running Patterns

There are hints of MEV-style sandwich trades. For example, around 09:42:55 UTC in the catwifmask pool, a tiny buy (effectively 0 USD) suffered +4711 bps slippage, immediately followed by a moderate buy (≈$72) with –8951 bps slippage (huge gain), and then another similar-size trade with +3682 bps slippage. This pattern, a tiny trade getting drained, a block-level trade getting a far-better-than-quoted price, and a following trade hitting a poor price, is consistent with a classic sandwich attack (bots arbitraging around a target trade). Similarly, at 09:51:17 UTC, four tiny buys preceded a large sell, which took the brunt of the price movement. In both cases, no normal “preceding large trade” explains the slippage; rather, it looks like small trades or bots pushed the price. While our data lacks explicit trader addresses to confirm, these anomalies strongly suggest front-running by bots is affecting some Pumpfun trades.

## Key Findings

- Worst slippage trades : The absolute losers (highest slippage) were all catwifmask trades (see table above). They lost on the order of +5000 bps.

- Zero slippage count : 406 trades had exactly 0 bps slippage. These likely occurred when liquidity and timing aligned perfectly (or trades were immediately offset).
- Negative slippage (favorable trades) : 2,294 trades had negative slippage (the trader got a better price), versus 2,144 with positive slippage, out of 4,844 valid trades. (This minor imbalance mirrors observations that ~33% of trades can get negative slippage, often due to MEV dynamics.)
- Most stable tokens : moonpig, President Vs Elon, OFFICIAL MUSK, and Costco had the lowest average slippage (mostly single-digit bps). These tokens showed the least volatility.
- Trader consistency : We cannot identify individual wallet addresses or routers from this dataset (no address fields), so we cannot name traders who consistently gained or lost. However, the data does not indicate any one “privileged” address: slippage outcomes seem determined by token liquidity and timing rather than a single repeat winner. Various DEX venues (Pumpfun AMM, LB CLMM, etc.) were used, with no obvious router bias.

- Repeated favorable pricing : Likewise, without address or router info, we cannot conclusively say if certain participants repeatedly got better pricing. The fact that many tokens had near-zero median slippage suggests no clear systematic advantage; the large negative-slippage outliers we see are likely opportunistic bot trades, not regular end-users.

## Conclusion

Slippage is a fundamental aspect of DeFi trading. Our analysis of Pumpfun DEX trades shows:

- Most trades experienced small slippage within ±10 bps.
- Approximately equal proportions saw slight gains or losses relative to the quoted price.
- Some tokens exhibited stable slippage, while others showed extreme volatility and possible MEV exploitation.
- Beginners should prioritize liquidity assessment, proper slippage tolerance, and MEV mitigation for safer trading.

Understanding how slippage occurs and learning to interpret slippage metrics empowers traders to navigate decentralized markets more confidently. Always remain vigilant, especially with new or thinly traded tokens, and leverage available tools to reduce adverse outcomes

In summary, this Pumpfun trade snapshot shows mostly modest slippage for standard trades, but with dramatic exceptions. Traders should set appropriate slippage tolerances and watch for MEV attacks: as others have noted, “active participants [can] trade against you, and thus you will experience negative slippage”, so vigilance is key when trading new or illiquid tokens.

---

_This material is for educational and informational purposes only and is not intended as investment advice. The content reflects the author's personal research and understanding. While specific investments and strategies are mentioned, no endorsement or association with these entities is implied. Readers should conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery is not liable for any losses or damages resulting from the application of this information._

---

Written by Dhimahi
]]></description>
        </item>
        <item>
            <title><![CDATA[Real-World Assets Are Changing Global Finance: A Complete Research Deep Dive]]></title>
            <link>https://bitquery.io/blog/real-world-assets-changing-global-finance-complete-research</link>
            <guid>https://bitquery.io/blog/real-world-assets-changing-global-finance-complete-research</guid>
            <pubDate>Fri, 06 Jun 2025 10:00:00 GMT</pubDate>
            <description><![CDATA[
Imagine you're sitting in a small café in Nairobi, scrolling through your phone. The local currency is unstable, your bank's savings account barely earns any interest, and inflation keeps eating away at the money you've worked so hard to save.

Now imagine this: with just your smartphone and an internet connection, you could invest in U.S. government bonds, one of the safest financial assets in the world. No middlemen, no minimum $1,000 deposit, no trips to the bank. Just a few taps, and you're earning steady interest in digital dollars. This shift isn’t just about convenience, it represents a fundamental transformation in how financial assets are accessed and managed.

Historically, preserving wealth hasn’t been so simple. Currencies around the world, from the Roman denarius to the Zimbabwean dollar, have repeatedly lost value due to inflation, devaluation, or poor monetary policy. Even relatively stable currencies like the U.S. dollar have seen their purchasing power erode over time. For many, especially in emerging markets, storing value in local currencies has been unreliable. This instability has fueled the global demand for safer, more stable, and more accessible forms of investment.[4]

The evolution of financial infrastructure reflects this ongoing search for trust and stability. Early societies traded with shells and beads, later replaced by metal coins, then paper money, and eventually centralized banking systems. Each phase advanced the way people stored, transferred, and protected their wealth. But while traditional systems brought improvements, they also introduced inefficiencies, high entry barriers, and heavy reliance on intermediaries.

In the 20th century, innovation accelerated with the rise of electronic banking, payment networks, and capital markets, enabling broader, faster access to financial services. Yet, these services remained largely confined within national borders and controlled by centralized institutions. That changed with the advent of blockchain technology, which introduced decentralized, transparent, and programmable financial systems that reduced dependence on traditional gatekeepers.

Today, we’re witnessing the next phase: the emergence of Real-World Assets (RWAs)[1]. These bring traditional financial instruments like U.S. Treasuries, real estate, commodities, and private credit onto the blockchain. By doing so, they bridge legacy finance and decentralized infrastructure, making historically exclusive assets more accessible, liquid, and interoperable for a global audience.

RWAs are like putting the real world inside the internet of money. And they’re not just for Wall Street anymore, they’re for you, me, and anyone with a phone.

### What Exactly Are RWAs?

Real-World Assets are physical or traditional financial assets that are represented digitally, as tokens on a blockchain. These tokens can be bought, sold, and used just like cryptocurrencies, but real, tangible things back them.

The tokenization of real-world assets (RWAs) is rapidly transforming global finance, bringing traditional assets like U.S. Treasuries, private credit, and commodities onto public blockchains. As of June 2025, the total value of RWAs on-chain has soared to $23.23 billion a 5.49% increase from just 30 days prior while the number of asset holders has grown by 13.64% to 113,670. This surge reflects growing investor interest in blockchain based finance, particularly in secure and yield-generating assets.

According to data[1], US Treasury Debt leads the market with $7.27 billion in value and a 59.06% market share, followed by Private Credit at $2.48 billion (20.12%). Other emerging asset classes include Commodities ($1.48B), Institutional Alternative Funds ($527.8M), and Public Equity ($317.4M), although Public Equity recently saw a sharp 33.84% monthly decline. The momentum is clear: tokenized finance is no longer just a fringe experiment it’s a fast-growing segment of the financial world with increasing relevance for both retail and institutional investors.

![](/blog/real-world-assets-changing-global-finance-complete-research/image2.png)

Fig: Tokenized Real-World Assets by Total Value

Let’s walk through the main categories of RWAs in brief:

1.  ### Government Bonds and Treasuries

Tokenized bonds and Treasuries are traditional bonds like U.S. government debt turned into digital tokens, making them easier to buy, trade, and use around the world through blockchain technology. Countries like the U.S. borrow money and promise to pay it back with interest. These bonds are considered super safe. Now, with RWAs, these bonds are turned into digital tokens like USDY or BUIDL that can be traded online.

You earn interest daily, and you can use these tokens in other apps too, such as Flux, Morpho, Mountain Protocol, Maple Finance, and Balancer for borrowing, lending, or earning extra yield in decentralized finance (DeFi). As of June 2025, U.S. Treasury Debt dominates the tokenized asset market, with a total value of $7.27 billion, making up 59.06% of the entire RWA market. You don’t need to live in the U.S. or be rich to invest in these anymore. Even $1 gets you in.

2.  ### Tokenized Stocks

Platforms are working to digitally represent shares of real companies like Apple, Tesla, or Google as tokens you can trade 24/7. These tokens are often backed 1:1 by actual shares held by a licensed custodian. Tokenized equities are still a small but emerging category in the RWA space, with a total on-chain value of $317.4 million (just 2.58% of the market).

Projects like Backed Finance and synthetic stock protocols such as Synthetix are pioneering this area. Eventually, you could buy global stocks instantly from anywhere, no brokerage account needed

3.  ### Commodities (Like Gold, Oil, etc.)

Gold bars are heavy and hard to move. But a token representing real gold? Easy to store, trade, and use instantly. With RWAs, commodities like gold, silver, oil, and even carbon credits can be bought as digital tokens, backed by real reserves.This category has grown steadily, now holding a total value of $1.48 billion, or 12.04% of the tokenized RWA market.

Tokenized gold, for example, is backed by real vault reserves but traded as digital tokens, making it easier for users to diversify into safe-haven assets with the click of a button. You can diversify your investments without needing physical storage

4.  Institutional Alternative Funds

Institutional alternative funds like those focused on private credit or venture capital were once only available to large investors. Now, thanks to tokenization, these professionally managed funds are coming on-chain. With a market size of $527.8 million (4.29% share), these funds are now accessible to a broader investor base.Platforms like Superstate, BCAP, and Apollo are turning exclusive investment strategies into digital tokens that can be traded, held, or used in DeFi. This shift opens up new, stable income opportunities for a wider range of investors, all with the security and transparency of blockchain.

5.  Real Estate

Imagine owning a piece of a fancy apartment in Paris or a warehouse in Germany, not the whole building, just a small slice. [RWAs allow real estate to be divided into small tokens](https://bitquery.io/blog/tokenized-real-estate-transforming-property-investment). You can buy a share, earn rent, and even sell your piece later all digitally.It makes investing in property possible for people who don’t have millions

![](/blog/real-world-assets-changing-global-finance-complete-research/image1.png)

Fig: RWA by Protocols and RWA Count

Now that we've introduced the main categories of Real-World Assets (RWAs), let’s take a closer look at each one, exploring how they aim to solve real-world financial problems, how their tokenized markets are growing, and what limitations still exist. The key question we’ll ask throughout: Are RWAs truly reshaping global finance for the better, or simply reinventing the old system in a digital form?

# 1. Tokenized Treasuries: A New Era of Safe Yield

## What If Anyone Could Invest in U.S. Bonds? Even From a Village in Kenya or a Café in Argentina?

For decades, the safest investment in the world, U.S. government bonds (Treasuries), has been mostly limited to wealthy individuals and institutions in developed countries. If you didn’t have thousands of dollars, access to a foreign brokerage, and the right passport, you were locked out. But today, something big is changing.

These traditional financial assets are being tokenized, meaning they're turned into digital tokens that can be bought, sold, and held just like cryptocurrencies. These digital assets are called Real-World Assets (RWAs). And one of the most powerful examples? Tokenized U.S. Treasuries.

Let’s break this down.

When we talk about tokenized U.S. Treasuries, we are referring to short-term debt instruments issued by the U.S. government traditionally used to raise funds now represented in digital form on blockchain networks. This innovation allows individuals around the world, including those without access to traditional financial systems, to invest using just an internet connection and a crypto wallet. Tokenized Treasuries offer several advantages over their traditional counterparts: they typically have low entry points (often as little as $1 to $100), enabling broader participation; they are available 24/7, unlike conventional financial markets; and they allow for instant transfers and settlement. Additionally, the use of blockchain technology enhances transparency, making ownership, transactions, and yields more visible and verifiable in real time.

### 2. How Does It Work?

Here’s what happens when you invest in a tokenized U.S. Treasury product:

Choose a Platform: You visit a platform like Ondo Finance, OpenEden, or Securitize.

Complete KYC: You go through a Know Your Customer (KYC) process to verify your identity and eligibility.

Deposit Funds: You deposit money either in USDC (a stablecoin) or via a bank wire (typically for larger amounts).

Receive a Token: Once the tokenization process is complete, you receive a digital token such as USDY, OUSG, or TBILL. These tokens are fully backed by real U.S. Treasury assets, meaning each token represents a claim on a portion of short-term government debt held by a regulated custodian. As a holder, you begin earning yield automatically either through a daily rebasing mechanism that increases your token balance or via gradual price appreciation.

Behind the scenes of tokenized U.S. Treasuries lies a carefully structured and regulated process. First, the actual U.S. Treasury securities are securely held by a licensed and regulated custodian such as JPMorgan or State Street. These institutions are responsible for the safekeeping and integrity of the underlying assets. Next, a platform or issuer such as Ondo Finance or BlackRock (often working through partners like Securitize) manages the portfolio of Treasury bonds. They are in charge of issuing the blockchain-based tokens that represent ownership or economic exposure to these real-world assets.

The link between the digital token and the underlying treasuries is established through a legal contract, not a smart contract. While smart contracts facilitate on-chain transactions and automation, they cannot enforce claims over real-world assets like U.S. Treasuries, which require off-chain legal agreements. This structure ensures that holders of the token have a legally enforceable claim or entitlement to the real securities or their cash flows, blending traditional finance safeguards with blockchain transparency and programmability.

The Risk to Understand: You don’t directly own the bond you own a claim to it. If the platform fails, gets hacked, or is shut down, you could lose access to your funds. The bond is safe, but your ability to redeem it depends on the platform’s trustworthiness.

In traditional finance, trust is placed in governments and regulated financial institutions. In tokenized finance, trust shifts to smart contracts, custodians, and protocol governance. That’s why it’s essential to know who the issuer is and where the underlying assets are held. Trustworthy issuers and regulated custodians, like JPMorgan or State Street, add credibility and security. Always review the legal agreements and understand your redemption rights to know exactly what your token represents. Most importantly, choose platforms that are transparent and comply with regulations to ensure your investment is protected

### 3. Why Do Tokenized Treasuries Matter?

Traditionally, access to U.S. Treasuries, the world’s most trusted and stable financial assets, was limited to a privileged few. You typically needed a minimum of $1,000 or more to get started, along with a U.S.-based brokerage account something not easily accessible for international investors. The process was often slow and involved paperwork, making it less convenient for modern, digital-first investors.

For most individuals in developing countries or without access to advanced banking infrastructure, U.S. Treasuries were simply out of reach.

That’s changing. With tokenized treasury products like Ondo’s USDY, BlackRock’s BUIDL, and OpenEden’s TBILL,and many more, anyone with a smartphone and an internet connection can now:

- Store savings in digital dollars
- Earn 4–5% annual yield, backed by real U.S. government debt
- Bypass capital controls and avoid unstable local banks
- Start investing with as little as $1, using stablecoins like USDC

This is a major shift in global finance. Tokenized Treasuries are not just more efficient they’re more inclusive. They bring safe, yield-generating assets to people who’ve never had access before, from students in Ghana to small business owners in Vietnam.

And this is only the beginning.

### 4. A Short History of Money and the Erosion of Currency Value

To understand the rise of tokenized real-world assets (RWAs), it helps to step back and look at the long arc of money itself.

In early societies, money wasn’t coins or paper, it was objects of shared value like shells, stones, or beads. These items were scarce, durable, and trusted across communities. As civilizations grew, money evolved into metal coins, then paper currency, and eventually digital entries in centralized bank ledgers. Each evolution made money easier to transfer, store, and verify, but it also gave more power to central authorities.Over time, this power has often been misused.

From the Roman Empire debasing the silver content in its coins to more recent cases like Zimbabwe and Venezuela, history shows that governments frequently erode the value of money through inflation, overprinting, or fiscal mismanagement. Even stable currencies like the U.S. dollar have steadily lost purchasing power; what cost $1 in 1950 costs over $12 today.

This erosion is especially harmful in emerging markets, where local currencies can be volatile and inflation unpredictable. In such environments, storing wealth in local money can be a losing battle.

That’s why the move toward digital, programmable assets backed by real value, like tokenized U.S. Treasuries, is so significant. It isn’t just a tech upgrade; it’s the next phase in the story of money. It reflects the same human need that drove early barter systems and coinage: a secure, trusted store of value that transcends borders and politics.

Real-World Assets (RWAs) on-chain are a modern answer to an ancient question: How do we preserve value over time?

## What Problems Do Tokenized Bonds Solve?

While many tokenized products are still geared toward institutions, the benefits of tokenizing bonds go well beyond access. They address long-standing pain points on both sides of the market for issuers who create them and for investors who need them.

### For Issuers: Efficiency, Transparency, and Global Reach

1.  Reduced Cost and Friction: In traditional finance, issuing a bond involves banks, brokers, custodians, lawyers, you name it. Each layer adds cost and delay. Tokenized bonds use smart contracts to automate much of this, reducing both cost and complexity.
2.  Borderless Distribution: Most bonds today are limited to investors in certain regions. Tokenized bonds can be distributed globally to anyone with a wallet and internet connection, no bank account or broker needed.
3.  Programmable Compliance Manual checks for things like lock-up periods and investor eligibility are outdated. Tokenized assets can embed these rules directly into the token, making compliance faster and more secure.
4.  Real-Time Transparency: On-chain tokenization means issuers see ownership and fund flows instantly, not quarterly or monthly. This makes fund management and reporting dramatically more efficient.

### For Investors: Access, Flexibility, and Control

1.  #### Global Access to Safe Yield: In countries like Argentina or Nigeria, where inflation is high and the dollar is hard to get, tokenized Treasuries offer a lifeline. They let users earn stable interest, without needing access to a U.S. bank.
2.  Fractional Investing: Previously, you needed thousands to buy bonds. Now you can start with min. $1 to $100. Platforms like OpenEden make it possible for everyday people to build dollar-based savings in a trust-minimized, secure way.
3.  24/7 Liquidity & Fast Settlement: Selling a bond used to take days. Now, you can trade and transfer tokenized bonds instantly, just like a stablecoin.
4.  DeFi Utility Tokens like rUSDY and OUSG can be used as collateral in DeFi apps like Flux and Morpho. This means investors can borrow against their bonds, earn extra yield, or plug them into yield strategies.
5.  #### Transparency & Self-Custody: Tokenized bonds can be held directly in your crypto wallet, no third party required. You get real-time updates on yield, value, and ownership, without relying on brokers or banks.

Tokenized U.S. Treasuries: Market Snapshot and Who’s Participating

As of 2025, the tokenized U.S. Treasury market has surpassed $7 billion[[1]] in total value locked (TVL), marking an explosive growth from just $114 million in early 2023. There are currently 46[1] active tokenized treasury products spread across multiple chains like Ethereum, Solana, Polygon, and Avalanche. These products are issued by a mix of asset managers, DeFi-native protocols, and traditional institutions, and together they represent a new frontier in how governments, companies, and individuals engage with public debt.

Out of the 46 products:

- 10 are accessible to retail investors
- Only 5 of those 10 are available to non-U.S. retail users
- The remaining 36 products are exclusively for institutional investors, accredited investors, or qualified purchasers
- A large portion of the offerings are geographically restricted, with over 40 countries blocked on many platforms due to regulatory concerns

So, despite the promise of "global access," the reality today is that tokenized Treasuries are still mostly an institutional product with true retail inclusion remaining a work in progress.

### Top 4 Tokenized U.S. Treasury Products by Market Cap

While dozens of platforms now offer tokenized access to U.S. government bonds, just four products dominate the market. Together, USDY, OUSG, BUIDL, and BENJI represent nearly 60% of the total tokenized U.S. Treasury ecosystem. These leaders indicate where the space is heading: a mix of institutional-grade infrastructure, with growing interest from retail and DeFi users, but also significant barriers still in place.

Let’s take a closer look at each:

#### 1. BUIDL – BlackRock / Securitize

BUIDL, launched by BlackRock in collaboration with Securitize, is one of the largest tokenized U.S. Treasury products, with a market cap of approximately $2.88 billion. Designed specifically for large institutional investors, BUIDL offers a yield of around 4% and requires a minimum investment of $5 million in USDC. It serves as a powerful tool for institutional treasury management and is increasingly being integrated into DeFi ecosystems, including protocols like MakerDAO and Ondo, where it can be used as high-quality collateral.

BUIDL is the largest product in the tokenized treasury space. Issued by BlackRock and tokenized via Securitize, it offers blockchain-native access to a U.S. government money market fund. It combines daily liquidity with real-time NAV, tailored for institutional capital.

Strictly limited to qualified institutional buyers with a high minimum investment, making it inaccessible to most retail users and smaller firms.

#### 2. USDY – Ondo Finance

USDY, issued by Ondo Finance, has a market cap of approximately $631 million and is tailored for non-U.S. retail and accredited investors. Offering a yield of around 4.25%, USDY is available across multiple blockchains, including Ethereum and Solana, enhancing its accessibility and flexibility. It’s commonly used for savings, cash management, and as collateral in DeFi applications, making it a versatile option for users seeking stable, interest-bearing digital assets backed by U.S. Treasuries.

USDY is one of the most retail-accessible tokenized treasury products, backed by short-term U.S. Treasuries and demand deposits. It comes in two formats:

- USDY (accumulating): Increases in value daily
- rUSDY (rebasing): Increases in quantity to reflect yield

Although designed for non-U.S. retail, USDY remains restricted in over 40 countries due to regulatory and compliance constraints. Also, tokens are only minted after a 40–50 day lock-up.

#### 3. OUSG – Ondo Finance

OUSG, another offering from Ondo Finance, holds a market cap of approximately $615 million and is designed for institutional investors, specifically U.S.-based Qualified Purchasers. With a yield of around 4.07%, OUSG is commonly used for DAO treasuries, capital preservation, and as a stable, yield-generating reserve in DeFi treasury management. Its institutional-grade structure and focus on regulatory compliance make it a preferred choice for large-scale, strategic capital deployment.

OUSG provides institutional-grade exposure to short-term U.S. Treasury ETFs. It’s especially popular among DAOs and DeFi-native treasuries, and integrates with protocols like Flux and Morpho.

Only available to U.S. Qualified Purchasers, with low on-chain liquidity and limited DeFi composability due to its security token classification.

#### 4. BENJI – Franklin Templeton

This product is a tokenized U.S. government money market fund designed for both institutional investors and U.S. retail clients accessing it through brokerage channels. It offers daily yield payouts and real-time net asset value (NAV) updates, providing transparency and liquidity. Fully compliant with SEC regulations, it allows investors to gain tokenized exposure to a traditional mutual fund, combining regulatory safeguards with the convenience of blockchain technology.

BENJI brings Franklin Templeton’s government money market fund on-chain. With daily yield reporting and full regulatory compliance, it’s a benchmark example of TradFi merging with blockchain.

While technically accessible to U.S. retail investors, access requires going through a traditional brokerage, limiting permissionless use and DeFi-native integration.

### What These Four Tell Us

- Institutional dominance is clear: three of the top four are geared toward large investors.
- Retail access is growing, but remains fragmented and highly jurisdiction-dependent.
- DeFi utility is increasing, but tokenized Treasuries are still often semi-permissioned, highlighting the balance between innovation and regulation.

These four products aren't just financial tools—they're shaping the infrastructure of tomorrow’s global capital markets.

If They Can Buy Direct, Why Are Institutions Going On-Chain?

What we've seen in the top 4 tokenized U.S. Treasury products is clear: institutional players dominate the space. Platforms like BlackRock’s BUIDL and Ondo’s OUSG are built for large investors, with minimum investment thresholds, regulatory compliance layers, and custodian-backed security.

But that raises a logical question: If institutions can already buy U.S. Treasuries directly through traditional brokers or custodians, why go on-chain at all?

Here’s why tokenization still adds powerful value for institutions, too

1.  Faster Settlement: On-chain Treasuries settle instantly, unlike the 1–2 day delays in traditional markets.
2.  24/7 Liquidity: Institutions can trade or rebalance anytime, not just during market hours.

3.  Programmability: Smart contracts enable automated yield, compliance, and fund logic.
4.  DeFi Integration: Tokenized Treasuries can be used as collateral in protocols like Morpho or MakerDAO.

5.  Real-Time Transparency: Blockchain provides instant, auditable tracking of holdings and activity.

6.  Future-Readiness: Tokenization helps modernize legacy infrastructure and prepares firms for an on-chain financial future.

In short, tokenized Treasuries aren't just about access, they're about efficiency, automation, and integration with the next generation of finance.

## Global Impact: A Lifeline for Small Economies—or a Double-Edged Sword?

Tokenized treasuries aren’t just a technological milestone; they have the potential to be a lifeline for individuals in fragile economies.

In many developing countries, inflation, currency devaluation, and unstable banking systems make it difficult, sometimes impossible, for people to save or build wealth. In such places, the ability to hold dollar-backed assets like USDY or TBILL on a smartphone could be transformative.

For the first time, people in countries like Argentina, Turkey, or Nigeria can:

- Store value in a stable currency
- Earn a 4–5% yield backed by U.S. Treasuries
- Bypass capital controls, failing banks, and political instability

In that sense, tokenized treasuries aren’t just another crypto feature; they could be a new kind of financial infrastructure. But here’s the twist:

The Risks and Realities Behind the Promise

### 1. True Global Access? Not Yet.

Despite all the marketing around “open access,” most tokenized treasury platforms still enforce strict geographic and investor restrictions.

More than 40 countries are blocked from participating, including:

- Most of Africa
- Parts of Asia (e.g., Iran, Afghanistan, North Korea)
- Much of Latin America

Why? Mostly regulatory and compliance concerns. Platforms like Ondo’s USDY or OUSG require users to be accredited investors or qualified purchasers, often proving high net worth or income.

So while the technology enables access, legal frameworks still limit who can benefit. For now, most small savers in the Global South are still on the sidelines.

Dollarization: Helping Individuals, Hurting Nations?

In countries facing high inflation, people are increasingly turning to stablecoins and tokenized dollars as a safer way to store value. For example, in Argentina, where annual inflation has surged above 200%, many citizens have adopted digital dollars like USDC or USDT to protect their savings. This move offers individuals much-needed financial stability but it also raises concerns at the national level.

As more people and businesses adopt digital dollars:

- Local currencies may weaken further
- Central banks could lose control over monetary policy
- Capital outflows might accelerate, especially during crises
- Remittances may bypass traditional banking systems, reducing foreign exchange reserves

Take Brazil, for instance. The Brazilian central bank has flagged growing concerns about the use of U.S. dollar-backed stablecoins for remittances. Around 90% of crypto flows in Brazil involve stablecoins, which are often used to send money abroad without going through official banking channels. This makes it harder for the central bank to monitor capital movements, manage currency stability, and maintain healthy foreign reserves. (Reuters, May 2025)

While digital dollars empower individuals especially in unstable economies they may also weaken national financial systems. It’s a delicate balance between personal security and systemic stability that policymakers and innovators must navigate carefully.

### 3. New Technology, Same Old Bottlenecks

Even in this cutting-edge space, some old problems persist:

- Compliance Delays: Products like USDY require a 40–50 day lock-up period before tokens are tradable, slowing user access and flexibility.
- Centralized Custody: Most real-world assets are still held by traditional custodians (e.g., JPMorgan, State Street), creating points of central control.
- Limited Composability: Some tokens can’t be used in DeFi protocols, or have legal limitations that restrict their utility compared to truly native on-chain assets.

So while we’ve made huge progress, the revolution is still midway through its journey. The rails are being built, but not everyone is riding them yet.

### Limitations and Risks: What’s Still Holding Back Adoption?

Despite the promise of tokenized Treasuries' speed, global access, and programmable yield, several critical barriers still limit widespread adoption. These challenges impact both retail users and institutions, and in some cases, undermine the very benefits these products aim to deliver.

Let’s explore the key limitations, with real-world examples:

#### 1. KYC and Eligibility Barriers

Most platforms require users to undergo Know Your Customer (KYC) verification and, in many cases, prove they are accredited investors or qualified purchasers.  
Example: To invest in Ondo’s OUSG, users must meet strict U.S. regulatory definitions and complete documentation. Similarly, BlackRock’s BUIDL requires a minimum of $5 million and is limited to institutional investors.

This excludes most global retail users, especially in developing countries from participating.

#### 2. Delayed Token Minting (40–50 Days)

Many tokenized Treasuries have a waiting period after investment before tokens are issued, due to securities law compliance like Rule 144A.  
Example: With USDY, users receive a “temporary global certificate” first. Actual tokens are only minted 40–50 days later, delaying liquidity and DeFi utility.

This slows down onboarding and creates confusion for new users expecting instant access.

3. Custodial & Counterparty Risk

Although the underlying assets (U.S. Treasuries) are safe, your access depends on centralized entities, issuers, custodians, and smart contract operators.  
Example: If a platform like Securitize (BUIDL) or Ondo faces a technical failure, legal issue, or gets shut down, users may lose access to their assets even though the Treasuries themselves are fine.

Unlike self-custodied crypto, users rely on intermediaries for redemption and trust, reintroducing TradFi risks.

#### 4. Limited DeFi Utility and Composability

While some tokens are DeFi-compatible, many tokenized Treasuries are restricted or semi-permissioned, limiting their use in decentralized applications.  
Example: OUSG is recognized in DeFi protocols like Morpho, but still cannot be freely traded or composably used like a native token due to its security status.

This reduces the ability to borrow, lend, or deploy yield strategies across DeFi ecosystems.

#### 5. Jurisdictional Restrictions

Many platforms block access to 40+ countries, including most of Africa, Latin America, and parts of Asia.  
Example: USDY excludes users from countries like India, Venezuela, North Korea, and nearly all of Africa, except a handful of exceptions like Nigeria or South Africa.

This undermines the goal of global access and financial inclusion for unbanked or inflation-affected populations.

While tokenized Treasuries represent a major leap in financial technology, they still face legacy roadblocks. From onboarding delays to legal walls, the path to truly global, permissionless, and retail-friendly treasury markets remains under construction. Solving these issues is the next frontier for unlocking their full potential.

The Future: What Comes Next?

Tokenized U.S. Treasuries remain a small segment compared to the traditional bond market about $7 billion versus over $28 trillion in conventional bonds but they are growing rapidly. In 2023 alone, the market experienced an impressive 641% growth and now serves over 18,000 users across various DeFi protocols. Major financial institutions like BlackRock, Franklin Templeton, and Ondo back these tokenized assets, lending them credibility and momentum.

If this adoption trend continues, we could soon see tokenized Treasuries integrated into everyday financial tools such as payroll systems, savings apps, and remittance services. Local banks may also begin offering direct access to tokenized bonds. Industry experts, including McKinsey, predict that tokenized assets could reach a $2 trillion[3] market size by 2030, signaling a transformative shift in how financial assets are accessed and managed.

# 2. Investing Unchained: The Rise of Tokenized Stocks in a Decentralized World

From Wall Street to Web3—how owning a piece of Apple or Tesla is now just a wallet away.

Welcome to the Future: Stocks Meet the Blockchain

Imagine you're in Lagos, Manila, or Buenos Aires. You’ve saved up a little money, but your local currency keeps losing value due to inflation. You want to invest in something stable, maybe Apple, Microsoft, or Tesla. However, gaining access to U.S. stocks typically requires a broker, a U.S. bank account, and sufficient capital to purchase whole shares. Now imagine this instead: you open your crypto wallet, and with just $5 worth of stablecoin (like USDC), you buy a token that represents a slice of Apple stock. No middlemen. No trading hours. No borders.

Welcome to the world of tokenized stocks, traditional equities reimagined for a decentralized, always-on global economy. These aren’t fake or “pretend” versions of stocks. Tokenized stocks are real shares held by licensed custodians, mirrored onto the blockchain. It’s like owning Apple stock but in a crypto-native, globally accessible format.

### What Is a Tokenized Stock?

A tokenized stock is a digital asset that represents ownership in a real-world stock, like Apple (AAPL), Tesla (TSLA), or the S&P 500 ETF (SPY). Each token is backed 1:1 by an actual share held by a licensed custodian. That means if you hold 1 tokenized Apple share in your crypto wallet, somewhere in a traditional brokerage or bank, one real Apple share is held in custody on your behalf.

This isn’t synthetic or simulated exposure. It's direct, blockchain-based ownership of a real asset secured by the same legal structures that underpin traditional equities, but made programmable and globally accessible.

## How It Works: From Wall Street to Your Wallet

In the traditional financial world, buying a share of a company like Apple or Tesla involves going through a regulated broker, linking a bank account, and often navigating trading hours and jurisdictional limitations. That model has worked well for decades, but it excludes billions of people worldwide who don’t have access to U.S. brokers or the right banking infrastructure.

Enter tokenized stocks: a revolutionary blend of traditional finance and blockchain technology that brings real-world equities onto the decentralized web.

### The Process: How It Works Behind the Scenes

To understand the mechanics, let’s walk through the lifecycle of a tokenized stock:

1.  Acquisition and Custody: A regulated financial institution (such as a broker-dealer or custodian bank) buys the actual stock, say 1,000 shares of Apple, on a traditional stock exchange like NASDAQ. These shares are stored in a segregated account, typically held under a legal structure such as a Special Purpose Vehicle (SPV) or a trust.

2.  [Token Creation](https://docs.bitquery.io/docs/examples/Solana/solana-instructions/#latest-created-tokens-on-solana): Using blockchain infrastructure, the custodian or issuing platform then mints 1,000 digital tokens, each representing 1 share of Apple, and deploys them as smart contracts on a public blockchain (like Ethereum, Polygon, or Base). These tokens are cryptographically secured and traceable on-chain.

3.  [On-Chain Trading](https://docs.bitquery.io/docs/examples/Solana/solana-dextrades/): Once minted, these tokens can be bought, sold, or traded just like cryptocurrencies. Investors use stablecoins such as [USDC](https://dexrabbit.com/eth/token/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48), DAI, or USDT to purchase these assets, removing the need for traditional fiat rails or bank accounts.

4.  24/7 Market Access: Unlike traditional stock markets that operate during business hours, tokenized stocks can be traded 24/7, including weekends and holidays. This unlocks continuous, borderless access to global equities, whether you're in New York or Nairobi, London or Indore.

5.  Redemption (Optional): Some platforms also offer a redemption mechanism. If you hold a full tokenized share, you may be able to redeem it for the underlying asset or cash equivalent, depending on the platform’s terms, compliance status, and jurisdiction.

### Under the Hood: Smart Contracts and Legal Compliance

The backbone of tokenized stocks lies in smart contracts—self-executing code on the blockchain that automates ownership, transfers, and regulatory compliance. These contracts often embed investor protections, such as:

- Whitelisting (to enforce KYC/AML rules)
- Transfer restrictions (to comply with local securities laws)
- Real-time audit trails (visible on-chain to anyone)

Moreover, the legal structure ensures that token holders are the beneficial owners of the real-world stocks, even if the shares themselves are held in a centralized custodian account.

This approach blends the legal rigor of traditional finance with the programmability and openness of Web3, creating a new kind of financial asset: fully regulated, yet decentralized.

### Platforms Bringing Stocks On-Chain

Several platforms have already launched live, regulated, tokenized stock products, each with its own regional flavor and technical approach:

![](/blog/real-world-assets-changing-global-finance-complete-research/tabl.png)

## Why This Matters: Smashing Barriers to Investing

For decades, investing in stocks has been a privilege of the few, those with access to brokers, bank accounts, and hundreds of dollars to spare. But what if the ability to own a piece of Apple or Microsoft wasn’t locked behind borders, paperwork, or income level?

Tokenized stocks are flipping that script. By turning traditional equities into blockchain-based assets, tokenized stocks are removing the old barriers and creating a more inclusive financial future.

Traditional stocks versus tokenized stocks across key features:

Traditional stocks require a broker and usually have a more minimum investment, while tokenized stocks can be purchased with just a crypto wallet and often allow fractional ownership starting at low. Trading traditional stocks is limited to standard market hours 9 am to 5 pm on weekdays whereas tokenized stocks trade 24/7, including nights, weekends, and holidays. Additionally, traditional stocks are subject to geographic restrictions and limited accessibility, but tokenized stocks offer borderless, global access to anyone with an internet connection.

### A Gateway to Economic Inclusion

This shift isn’t just about making Wall Street digital. It’s about opening the gates to the 1.7 billion unbanked people worldwide, those who’ve been locked out of the global financial system simply because they lack access to a traditional bank.

Tokenized stocks offer investors a powerful combination of benefits. They serve as a hedge against local economic instability by providing exposure to stable, diversified global companies. Beyond merely preserving wealth, tokenized stocks give people the opportunity to actively build wealth through accessible and flexible investment options. Most importantly, they act as a bridge to global financial markets opening doors for individuals who previously had limited or no access to international equities, enabling truly borderless participation in the world economy.

In essence, tokenized stocks democratize investing. No brokers. No borders. No banks. Just an opportunity.

### Real-World Impact

Nowhere is this transformation more powerful than in regions grappling with unstable currencies and economic restrictions. Take:

- Venezuela or Turkey, where inflation regularly erodes savings
- Nigeria or Lebanon, where accessing U.S. dollars is difficult
- India or the Philippines, where investing in U.S. stocks traditionally required costly intermediaries

For people in these countries, tokenized stocks offer more than investment—they offer financial survival. Instead of watching local currency lose 30–50% of its value in a year, individuals can now preserve wealth in the form of Apple, Tesla, or Microsoft shares all through a smartphone and crypto wallet.

## Solving Real Problems: What Tokenized Stocks Fix

Tokenized stocks aren’t just a shiny new tool in the crypto world—they’re a solution to some of the most frustrating and systemic problems in traditional finance. From everyday users in emerging markets to fintech platforms trying to bridge old and new finance, tokenized equities are unlocking unprecedented opportunities.

### For Everyday Investors: Access, Ownership, and Control

In the traditional world of investing, barriers abound. You need a brokerage account, government-issued ID, and often hundreds of dollars just to buy a single share. Trading is restricted to business hours, and navigating the paperwork can feel like learning a new language.

Tokenized stocks change that equation entirely.Here’s how:

1.Global Access (No Borders, No Banks): If you have a smartphone and internet connection, you can now invest in global giants like Apple, Tesla, or Microsoft. Whether you’re in Nairobi or New York, Istanbul or Jakarta, the playing field has been leveled.

2. Simplicity (Invest With Stablecoins, No Broker Needed): No need for a brokerage account or fiat bank. Using stablecoins like USDC, DAI, or USDT, anyone can buy tokenized shares directly through decentralized apps. It's as simple as swapping crypto no third-party intermediaries required.

3. Fractional Ownership: High stock prices no longer lock you out. Want a piece of Amazon but can’t afford $3,000 per share? No problem. Tokenized stocks offer fractional shares, so you can invest with as little as $1 owning a slice of the stock and its future.

4. Self-Custody (You Hold the Keys): Unlike traditional brokerages that technically hold your assets on your behalf, tokenized stocks can live in your personal crypto wallet. That means you own them directly no counterparty risk, no middleman, full control.

### For Platforms and Fintech Builders: A Better Financial Rail

The innovation isn’t just on the user side. Tokenized stocks unlock entirely new capabilities for financial platforms, developers, and Web3 projects.

1.  Wider Reach (Tap into Global Demand): By offering tokenized stocks, platforms can serve millions of users who’ve never had access to equities. From developing markets to crypto-native investors, the potential user base is massive and largely untapped.

2.  Automated Compliance: Smart contracts bring built-in compliance tools: KYC verification, access controls, jurisdictional restrictions, and more. Instead of manually managing regulations, platforms can code them into the system from the start.

#### 3. Programmability (DeFi Meets Real Stocks):

Perhaps the most powerful feature? Tokenized stocks are programmable assets. That means they can be:

- Used as collateral in crypto lending platforms
- Included in automated yield strategies
- Integrated into savings accounts or on-chain ETFs

Imagine earning interest on tokenized Tesla shares. Or sending tokenized Microsoft stock as a remittance. These aren’t just concepts—they’re already being built.

## The Builders Behind the Movement: Who’s Making Tokenized Stocks a Reality

Every revolution has its pioneers and in the case of tokenized equities, a small but growing group of platforms is leading the charge. These builders are not just experimenting they’re launching fully live products, attracting global users, and navigating the complex world of regulation to bring stocks on-chain.

Let’s meet the key players shaping the future of investing:

1.  ### Backed Finance (Switzerland): Real Stocks, Tokenized

Backed is a Swiss-based platform offering fully collateralized tokenized versions of some of the most iconic U.S. stocks and ETFs think Apple (bAAPL), Tesla (bTSLA), and more. These tokens are backed 1:1 with actual securities held by a licensed custodian in Switzerland, and they follow a rigorous compliance model. Backed has gained a reputation for transparency and precision, bridging TradFi and DeFi with Swiss quality.Fractional, fully-backed Apple and Tesla shares you can trade with stablecoins on-chain.

2.  ### Swarm (Germany): Regulation-First Innovation

Swarm takes a different route building from the ground up with European regulatory compliance in mind. Based in Germany, Swarm is MiFID II-compliant, offering tokenized stocks and ETFs that prioritize investor protection and security. Their equity tokens are built for both retail and institutional users, with programmable compliance baked into every trade.Regulated stock tokens designed for secure, long-term investing with investor-first features.

3.  ### Dinari (USA): The “dShares” Model

Dinari, operating out of the United States, has launched “dShares” fully regulated tokenized stocks that comply with U.S. securities law. Each dShare represents a real-world stock and is backed 1:1 by shares held in a brokerage account. Dinari is also pioneering DeFi integrations, allowing these dShares to be used in smart contract environments, while still adhering to the highest regulatory standards. Fully legal tokenized stocks available to U.S. and global users with on-chain capabilities.

4.  ### Mirror/Agora: Synthetic, Not Backed

Not all tokenized stocks are created the same. Platforms like Mirror and Agora offer synthetic stock tokens digital assets that track the price of real-world stocks but aren’t backed by actual shares. Instead, they rely on price oracles and derivatives to mimic performance. While riskier, synthetics offer broader composability and fewer barriers to entry for DeFi-native investors.Borderless exposure to equities without needing real-world custody ideal for experimentation and DeFi use cases.

### The Numbers: What the Data Tells Us About Growth

While tokenized stocks may still be a niche within the broader financial landscape, their growth is nothing short of explosive. As of May 2025, the total market size of tokenized equities has reached approximately $350 million[1], spread across a growing number of platforms. There are now over 40 tokenized stocks and ETFs available on-chain, including some of the world’s most iconic companies and indexes ranging from tech giants like Apple and Tesla to diversified funds like the QQQ ETF.

The momentum is accelerating. From 2024 to 2025, on-chain equity volume has surged by 125%, indicating strong and rising demand among investors. The user base is largely made up of global retail investors, especially those from regions with limited access to traditional financial markets. However, institutional players are beginning to test the waters as well, signaling that this trend may soon reach the mainstream.

Among the most popular assets, Apple (bAAPL) tops the charts, followed closely by Tesla (bTSLA) a favorite among growth investors. Microsoft (dMSFT) is gaining traction, particularly with institutions, while sQQQ, a tokenized version of the NASDAQ ETF, appeals to those looking for passive investment options within decentralized finance (DeFi) portfolios.

Although $350 million is just a sliver compared to the $124 trillion[[6]](https://www.visualcapitalist.com/124-trillion-global-stock-market-by-region/) global equity market, that’s exactly what makes this so exciting we’re still early. Even if just 1% of global stock trading moves on-chain, it would unlock a $1 trillion opportunity for tokenized equities.

All signs point to an industry in motion. More platforms are launching, more real-world assets are being tokenized, and more users especially from underserved and inflation-hit regions are embracing this new financial rail. Institutions are quietly stepping in, exploring pilot programs and potential integrations. What started as a crypto experiment is evolving into the infrastructure for a borderless, 24/7, and permissionless investment ecosystem one that could ultimately complement or even rival traditional financial systems like Wall Street.

### What People Are Buying: Tokenized Stocks in Action

Tokenized stocks are no longer just theoretical innovations—they’re actively being used by a growing global community. As of May 2025, the tokenized equity market has reached $350 million[1] in value, covering 40+ tokenized stocks and ETFs. Growth is surging, with a 125% increase in on-chain stock sales year-over-year (2024–2025)[1], driven primarily by global retail users. Here are the top assets investors are actually buying, and what makes each of them stand out:

### 1. bAAPL – Tokenized Apple Stock

- Platform: Backed Finance (Switzerland)
- Market Share: ~30% of tokenized stock volume (RWA.xyz, May 2025)
- Custody: Real Apple shares held 1:1 by a Swiss-licensed custodian
- Use Case: Global tech exposure for everyday investors

Apple is the single most popular tokenized equity across platforms like Backed Finance. Its brand strength, historical performance, and global trust make it a go-to option for users in volatile economies.

Real-World Impact: In countries facing inflation or capital controls such as Nigeria or Argentina users are buying fractional Apple stock using stablecoins like USDC. A $5 investment in bAAPL allows them to hedge against currency devaluation and store value in one of the world’s most iconic companies.

### 2. bTSLA – Tokenized Tesla Stock

- Platform: Backed Finance (Switzerland)
- Market Share: ~18% of tokenized equity volume (RWA.xyz, May 2025)
- Custody: Fully collateralized Tesla shares held by a Swiss financial institution
- Use Case: Access to U.S. high-growth equities

Tesla appeals to users looking for growth and innovation—particularly in emerging markets where access to disruptive companies is limited. bTSLA allows anyone to participate in the EV revolution, regardless of geography or financial background.

Real-World Impact: A university student in the Philippines can invest $10 into bTSLA and gain exposure to a high-upside U.S. equity, bypassing both traditional brokers and minimum investment thresholds.

### 3. dMSFT – Tokenized Microsoft Stock

- Platform: Dinari (U.S.)
- Market Share: ~15% of tokenized equity volume (RWA.xyz, May 2025)
- Custody: Regulated under Dinari’s “dShares” framework with real MSFT shares
- Use Case: Institutional-grade equities brought on-chain

Microsoft is favored for its dividend history, stability, and institutional appeal. dMSFT is fully compliant with U.S. securities laws, making it one of the most regulated offerings in the space.

Real-World Impact:A fintech startup in Latin America could integrate dMSFT into a mobile savings app, offering users exposure to a stable, long-term equity without needing local investment licenses or traditional bank partnerships.

### 4. sQQQ – Tokenized NASDAQ ETF

- Platform: Swarm (Germany)
- Market Share: ~10% of tokenized equity volume (RWA.xyz, May 2025)  
  Custody: MiFID-compliant real ETF shares under German regulation
- Use Case: Passive investing with diversification

sQQQ tracks the NASDAQ-100, offering broad exposure to the tech sector in a single token. It’s ideal for users who prefer index-style diversification rather than picking individual stocks.

Real-World Impact: A DeFi user in Argentina can use sQQQ as collateral in a yield farming strategy, combining passive investing with decentralized capital efficiency something nearly impossible in the traditional system.

The tokenized equities market hit ~$350 million in May 2025, with these four assets accounting for over 70% of all volume and user engagement. Their strength lies not just in the companies they represent, but in what they unlock for users around the world:

- Dollar-denominated savings in inflation-hit economies
- Access to high-growth equities for underserved youth
- Diversified tech exposure for DeFi power users
- Compliant on-chain infrastructure for fintech builder

This isn’t just about tokenizing Wall Street stocks. It’s about redistributing access to the financial system one smart contract at a time.

### Freedom or Fragility? The Double-Edged Sword of Tokenized Stocks

Tokenized stocks are revolutionizing global finance by offering individuals unprecedented access to traditional equity markets. They bring hope, especially in regions grappling with inflation, currency collapse, or exclusion from legacy financial systems. But like any innovation, they come with trade-offs. Behind the promise of democratized investing lies a more complex picture one that demands careful attention to potential unintended consequences.

Let’s explore both sides of the coin.

#### The Upside: A Lifeline for the Underserved

1. Inflation Protection: In countries like Argentina, Turkey, or Venezuela, local currencies have lost over 50–90% of their value in the past decade. Tokenized stocks backed by strong global companies like Apple or Microsoft offer a way for citizens to preserve wealth. By converting their savings into tokenized U.S. equities using stablecoins like USDC or DAI, people can hedge against domestic economic instability.

2. Global Market Access: Traditionally, investing in U.S. stocks required going through brokers, banks, and regulatory hoops often inaccessible to the unbanked or underbanked. With a simple crypto wallet and stablecoins, anyone can now gain exposure to global markets through tokenized versions of leading stocks and ETFs, 24/7 and from anywhere.

3. Financial Inclusion at Scale: With over 1.7 billion people globally still unbanked, tokenized stocks unlock a door to long-term savings and capital markets. Fractional ownership allows users to start investing with as little as $1, making wealth-building tools accessible to communities that have historically been excluded.

#### The Trade-Offs: Risks That Can't Be Ignored

1. Capital Flight: As tokenized stocks become more accessible, there’s a real risk of money flowing out of struggling local economies and into U.S. markets. While this empowers individuals, it can also deprive domestic systems of vital liquidity. For example, if thousands in Nigeria or Egypt start storing wealth in Apple or Tesla tokens, local banks and businesses could see reduced deposits and capital availability.

2. Dollarization by Proxy: Most tokenized assets are linked to U.S. equities and priced in U.S. dollars. This creates an indirect form of dollarization—where people across the globe shift their financial behavior toward the U.S. financial system. Over time, this could weaken the role of national currencies and make entire economies more vulnerable to U.S. monetary policy or corporate performance.

3. Regulatory Pushback: Not all governments welcome this change. Some may view tokenized stocks as a threat to capital controls or monetary sovereignty. As a result, we could see more restrictions, licensing demands, or outright bans on platforms offering tokenized equities. In fact, regulatory tensions are already simmering in parts of Asia, Africa, and Latin America as crypto adoption outpaces traditional oversight.

## Jurisdiction Matters: Are Tokenized Stocks Truly Global?

Based on the official restricted countries list from Backed Finance, their tokenized stock products are either prohibited or not offered in a total of 27 countries.This includes 4 countries where services are prohibited, and 23 where services are simply not available.

Tokenized stocks promise a new era of open, borderless finance allowing anyone, anywhere, to access shares in global companies using just a crypto wallet and stablecoins. However, while the technology may be decentralized and borderless, the regulatory environment is not. Jurisdictional restrictions remain one of the most significant hurdles preventing tokenized stocks from being truly global.

Despite the appeal of 24/7 on-chain access, many tokenized equity platforms are bound by the financial regulations of the countries in which they operate. As a result, platforms often restrict access based on user location, citizenship, or regulatory status. For example, Backed Finance, which offers tokenized stocks like bAAPL and bTSLA, blocks users from the United States, China, and other high-risk or non-compliant jurisdictions, in accordance with Swiss and EU financial laws. Similarly, Dinari, a U.S.-based platform offering dShares such as dMSFT, only permits users from select U.S. states and approved international jurisdictions. Swarm, operating under Germany’s MiFID II framework, may also restrict access to retail users in certain regions to remain compliant with European financial laws.

This means that while the assets themselves are tokenized and live on permissionless blockchains, actual user access is often controlled through geo-blocking, KYC (Know Your Customer) requirements, and AML (Anti-Money Laundering) compliance protocols. As a result, the reality is that tokenized stocks are not universally accessible. For instance, a user in Argentina might be able to invest in Apple stock via bAAPL, but someone in New York might be blocked from using the same platform due to SEC regulations even though both users are leveraging the same decentralized technology.

This creates a clear tension between compliance and openness. Fully regulated platforms like Dinari and Swarm are more attractive to institutions and long-term investors due to their legitimacy and transparency, but they sacrifice accessibility for global retail users. On the other hand, more open or synthetic approaches, like those previously seen on platforms such as Mirror Protocol, offer greater inclusivity but have also faced significant regulatory pushback, especially in the United States. In 2024, the SEC explicitly warned against offering tokenized stocks to U.S. investors without registration, prompting several platforms to restrict U.S. access altogether.

Looking forward, solving this dilemma will be crucial for the long-term viability and growth of tokenized equities. Some innovators are exploring hybrid approaches, embedding jurisdictional controls directly into smart contracts or developing “tiered access” models that differentiate between retail and accredited investors. Others are advocating for international regulatory coordination to create clear, consistent frameworks that can support cross-border tokenized stock offerings.

Until such frameworks are established, tokenized stocks will remain programmable and borderless in theory but jurisdictionally fragmented in practice. While the promise of global financial inclusion remains strong, the road to truly universal access will require not just technical innovation, but regulatory alignment across nations

## Challenges Blocking Mass Adoption

Tokenized stocks offer a compelling vision for the future of investing: 24/7 access to global equities, fractional ownership, and seamless digital custody. Yet despite rapid growth and increasing interest, they remain a niche within the broader financial ecosystem. Why?

The answer lies in a set of key challenges technical, regulatory, and infrastructural that must be addressed before mass adoption becomes a reality. Here’s a breakdown of the major barriers and what’s being done to overcome them:

### 1. Custodial Risk: Who’s Holding the Real Shares?

At the heart of any tokenized stock is a real-world asset. But that raises a critical question: Who is holding the actual stock certificate in the traditional financial system?

Custodial risk refers to the potential failure or misconduct of the institutions that safeguard these real shares on behalf of token holders. If a custodian is underregulated, lacks transparency, or becomes insolvent, users may lose access to their assets even if the blockchain shows ownership.

Today, leading platforms like Backed Finance (Switzerland) and Dinari (U.S.) are addressing this with fully licensed custodians, regular audits, and transparent legal structures. However, until these practices become standardized and globally trusted, skepticism around custody will persist.

2. KYC/AML Compliance: Balancing Access with Regulation

One of the defining features of crypto is the ability to transact without intermediaries. But tokenized securities are still securities and that means they must comply with KYC (Know Your Customer) and AML (Anti-Money Laundering) regulations in many jurisdictions.

Some users, particularly in regions with strict privacy laws or weak identification infrastructure, may find this burdensome or exclusionary. On the other hand, institutional investors and regulators require these safeguards to ensure legality and transparency.The challenge is striking the right balance: maintaining accessibility without compromising compliance. Emerging models like zero-knowledge KYC and embedded identity verification in wallets are promising steps in that direction.

### 3. Regulatory Gray Zones: Uncertainty Holds Back Growth

Tokenized stocks sit at the intersection of traditional finance and blockchain an area still largely uncharted by regulators. While some countries like Germany and Switzerland have introduced clear frameworks for digital securities, others (notably the U.S.) remain in flux.

In the U.S., the SEC has yet to definitively classify or regulate tokenized equities, leaving platforms and investors in a legal limbo. This lack of clarity discourages broader participation, especially among regulated institutions and fintech developers.

Until global regulatory bodies align on definitions and standards, jurisdictional uncertainty will remain a drag on adoption.

### 4. Liquidity Limitations: Few Buyers, Fewer Sellers

For any financial market to thrive, it needs liquidity—active buyers and sellers trading regularly. Despite the growing number of tokenized assets (over 40 stocks and ETFs across platforms as of May 2025), most see relatively low trading volume.

This can lead to high slippage, price inefficiencies, and poor user experience. Without deep and consistent liquidity, users may be hesitant to invest, fearing they won’t be able to exit their positions efficiently. Market makers, institutional on-ramps, and integration with decentralized exchanges (DEXs) are critical solutions currently in development to improve liquidity in this space.

5. Smart Contract Bugs: A Technical Weak Point

While smart contracts power the automation and transparency of tokenized assets, they’re not infallible. Code vulnerabilities can be exploited, leading to asset loss or platform instability. As tokenized equities are integrated into DeFi protocols (e.g., loans backed by tokenized stocks), the complexity of interactions increases and so does the risk. Past DeFi exploits have cost users billions, and that memory still lingers.

To counter this, platforms are investing in third-party security audits, formal verification, and bug bounties. But for true institutional confidence, the industry will need to implement bank-grade security standards.

## Solutions on the Horizon

Despite these challenges, the ecosystem is moving forward quickly. Innovations in multi-chain custody, regulated DeFi platforms, and smart contract insurance are actively addressing the bottlenecks to adoption. More importantly, as mainstream fintech firms and global regulators pay closer attention, the gap between crypto-native solutions and traditional investor expectations is starting to close.

In the words of one industry analyst: “The barriers to adoption are real but so is the momentum. We’re solving 20th-century finance problems with 21st-century infrastructure.”

Mass adoption may not happen overnight but with each iteration, the foundation grows stronger.

## The Road Ahead: Trillions on the Table

Despite the current limitations, the long-term trajectory of tokenized stocks is highly promising. We're witnessing the early days of a transformation that could reshape global capital markets much like the rise of ETFs or internet banking did in past decades. According to RWA.xyz and industry forecasts, tokenized real-world assets (RWAs) including stocks, bonds, and commodities are expected to reach $16 trillion[5] in value by 2030. That’s more than 45x today’s ~$350 million tokenized stock market.

1. Mobile-First Platforms: User-friendly apps are already in development to let anyone buy tokenized equities with just a few taps eliminating the complexity of current crypto interfaces.

2. Bank-DeFi Bridges: Traditional financial institutions are beginning to integrate compliance-layered DeFi protocols, allowing tokenized stocks to exist within a legally acceptable, transparent framework.

3. On-Chain ETFs and Retirement Accounts: Tokenized ETFs and even on-chain pensions are emerging providing diversified exposure and long-term savings options through DeFi rails.

4. Cross-Border Remittances in Stocks: Imagine sending your family not just cash, but tokenized Apple shares. This is becoming possible with smart wallets that allow for instant, global remittance in stable tokens or tokenized equities.

5. DeFi Loans Backed by Stocks: Platforms now allow users to borrow stablecoins using tokenized Microsoft (dMSFT) or Apple (bAAPL) as collateral, blending the worlds of traditional equity and decentralized finance.

## From Wall Street to Wallet Street

We are witnessing a profound shift in how capital flows and who has access to it. For the first time in history, someone in Lagos, Caracas, or Manila can own a piece of Apple, Microsoft, or Tesla without a broker, a bank, or even a stable local currency.Tokenized stocks don’t just change how we invest.They change who gets to invest.

From a $350 million niche to a multi-trillion-dollar frontier, the path ahead is clear: a more open, accessible, and programmable financial system that empowers people everywhere not just those with Wall Street connections.

And this time, the stock market lives on-chain.

3. Tokenized Commodities: Gold, Oil, and Value You Can Hold Digitally

Think about this: your grandfather might have stored gold in a hidden box under his bed. You? You can now store it in your smartphone digitally, securely, and globally accessible.

Welcome to the world of tokenized commodities, where physical goods like gold, silver, and even oil are represented by digital tokens, tradable 24/7 on the blockchain. This isn’t the future, it’s happening right now.

Let’s break it down in a simple, story-like way so that anyone, anywhere, can understand how tokenized real-world assets (RWAs) like commodities are quietly transforming global finance.

1. Why Commodities Matter in Finance

Commodities like gold, oil, silver, and platinum have always played a central role in the global economy. These are the real, tangible assets that power industries, preserve wealth, and stabilize financial portfolios. Gold is known as a safe-haven asset trusted for centuries to protect value during war, inflation, and market downturns. Oil fuels everything from transportation and power to manufacturing and logistics. Silver and platinum are essential to electronics, renewable energy, and medical technologies. In short, commodities are not just market instruments they’re the foundation of modern life.

For investors, commodities offer one key benefit: diversification. When stock markets tumble or inflation rises, physical assets like gold tend to hold their value or even increase. That’s why institutional investors like banks, pension funds, and hedge funds have always included commodities in their portfolios to reduce risk and protect wealth.

However, access to these assets hasn’t always been easy. Traditionally, buying commodities meant working with brokers, needing large amounts of money, and relying on custodians or vaults to store physical goods. For most people—especially in developing economies owning commodities like gold or oil was simply out of reach.

But as we’ll see, that’s now changing. Thanks to blockchain and tokenization, these once-elite assets are becoming available to anyone with a phone and an internet connection.

What Are Tokenized Commodities?

Tokenized commodities are physical assets like gold, silver, or oil represented by digital tokens on a blockchain. Think of it as wrapping a bar of gold in code. For example, if you own 1 gram of gold stored in a secure vault in Dubai, a token such as CGO (Comtech Gold) can be issued on a blockchain to represent that exact gram.

These tokens can move freely, just like cryptocurrencies. You can trade them 24/7, send them across borders instantly, or even redeem them for the physical commodity, depending on the platform. Behind the scenes, the real asset is fully insured, stored in professional vaults, and regularly audited to verify its existence.

Smart contracts manage the records, ensuring every token is backed by a real, physical item. So instead of needing trucks, shipping documents, and intermediaries to move commodities, you just send a token as easily as sending an email. It’s a digital leap that makes owning and transferring physical value faster, cheaper, and more accessible.

.

Global Access Without Borders

For decades, investing in commodities like gold was a privilege reserved for the financial elite. You needed access to brokers, bank accounts, and often lived in countries with strong financial infrastructure. The minimum investment amounts were high and the process was slow, paper-heavy, and limited by borders.Tokenization has changed all that.

Today, anyone with a smartphone and internet connection—whether in rural India or Lagos, Nigeria can download a crypto wallet and buy as little as $10 worth of tokenized gold like PAXG or CGO. There’s no need for a bank account, no lengthy paperwork, and no geographic limitations. The gold is securely stored in professional vaults, while your ownership is recorded on the blockchain.

This is more than just convenience it’s financial inclusion. Tokenized commodities are giving millions of people access to real, inflation-resistant assets for the first time. No banks. No borders. Just digital ownership of real-world value.

Tokenized Commodities in Action: Real Assets, Real Platforms

Now that we understand what tokenized commodities are and how they remove borders, let’s take a closer look at the platforms and tokens making this digital gold revolution a reality. These aren’t just experimental projects they’re regulated, audited, and backed by real-world assets. Each of these tokens is helping bring commodities from vaults into digital wallets, allowing users to hold, trade, and even redeem physical gold with just a few clicks..

### 1. Paxos Gold (PAXG)

- What it is: A highly regulated token backed 1:1 by London Good Delivery gold bars
- Custody: The gold is stored in Brink’s vaults in London.
- Regulation: Issued by Paxos Trust Company, regulated by the New York Department of Financial Services (NYDFS).
- Redemption: Users can redeem as little as 0.1 ounces of gold through Paxos.
- Features:

- Monthly third-party audits.
- No custody fees.
- Widely integrated into DeFi platforms like Aave and Compound.

- Market Cap: Over $770 million as of May 2025.
- Limitations: Not available to U.S. retail investors.

PAXG is considered one of the most trusted and transparent tokenized gold products. Its strong regulatory foundation makes it a go-to for institutional investors and DeFi users alike.

### 2. Comtech Gold (CGO)

- What it is: A gram-based token, where each CGO represents 1 gram of 999+ purity gold.
- Custody: Vaulted in DMCC-certified storage facilities in Dubai, with full insurance and third-party audit reports.
- Regulation: Licensed by DMCC (Dubai Multi Commodities Centre) and Shariah-compliant, making it especially relevant in Islamic finance.
- Redemption: Physical redemption is allowed for 1kg or more.
- Unique Features:

- Optional gold financing model where holders can lease gold to vetted traders.
- Bi-yearly audits, low gas fees on the XDC Network, and global availability.

- Market Cap: Approx. $11.3 million, with 389 verified holders and increasing monthly activity.
- Accessibility: Available in most countries, including UAE, India, Africa, and Southeast Asia.

CGO is designed with financial inclusivity in mind, offering low-cost access, flexible redemption options, and compatibility with Islamic finance principles. It’s also gaining traction in regions underserved by traditional gold products.

### 3. Tether Gold (XAUT)

- What it is: A token issued by TG Commodities S.A., backed 1:1 by LBMA gold stored in Swiss vaults.
- Custody: Switzerland-based storage with full insurance.
- Redemption: Minimum of 430 XAUT tokens (~430 ounces) to redeem a full gold bar.
- Regulatory Jurisdiction: Based in El Salvador (post-2025 update); previously registered in the British Virgin Islands.
- Limitations:

- Not available to residents of the U.S., Canada, and Singapore.
- Legal responsibility shifts to the user in case of vault issues.

- Market Cap: Over $628 million as of May 2025.
- Trading: Limited DeFi exposure but high liquidity on centralized exchanges.

XAUT is ideal for high-net-worth individuals and institutions looking for large gold positions, though its redemption size and limited legal protections may not suit smaller retail investors.

4. Tangible and Troy: Expanding the Horizon

While gold dominates the tokenized commodity space, platforms like Tangible and Troy are extending the model to other assets, including:

- Oil-backed tokens, pegged to barrels of crude oil.
- Tokenized gold bars, redeemable through jewelry retailers.
- Real-world delivery options, creating a bridge between on-chain ownership and off-chain utility.

These platforms aim to tokenize energy, property, and industrial metals, bringing broader diversity to the RWA (real-world asset) ecosystem.

Together, these platforms are bridging the gap between traditional vaults and modern digital wallets. Whether you're looking for compliance and scale (PAXG), flexibility and Shariah-compliance (CGO), or institutional-grade storage (XAUT), there’s now a tokenized commodity product tailored to your needs.

For the first time in history, real assets like gold are becoming digitally accessible to everyone, regardless of location, wealth, or banking status.

This isn’t just about digital tokens,it’s about making global financial infrastructure fairer, faster, and more inclusive.

Benefits of Tokenized Commodities: Security, Liquidity, and Transparency

One of the main reasons people are turning to tokenized commodities is the combination of security, liquidity, and transparency they offer three qualities that traditional commodity markets have often struggled to deliver to everyday investors. With tokenized gold, silver, and oil, these barriers are being removed, making real assets easier to access, safer to hold, and simpler to trade.

Security is the foundation of trust in tokenized assets. When you buy a token like PAXG (Paxos Gold) or CGO (Comtech Gold), you’re not just getting a digital symbolyou’re buying a real piece of gold stored in an insured, professional vault. PAXG, for example, is backed by gold held in Brink’s vaults in London and regulated by the New York Department of Financial Services. Similarly, CGO is backed by gold stored in DMCC-certified vaults in Dubai, with insurance coverage and regular third-party audits. This means you're not relying on vague promises or paper claims you have legal rights to an actual asset, stored safely and professionally.

Liquidity is another major advantage. Unlike traditional gold markets that operate only during business hours and require brokers, tokenized commodities can be traded 24/7 on both centralized exchanges like Binance and Bitfinex, and decentralized platforms like Uniswap or XSwap. You can instantly buy or sell your gold tokens, convert them to crypto or fiat, and move them around the world with just a few clicks. According to data from RWA.xyz, tokenized commodity platforms processed over $1 billion in monthly transfer volume, showing strong and active market participation.

Transparency is perhaps where tokenized commodities shine the most. On traditional markets, you rarely get a clear picture of how much gold exists, who holds it, or how it's being managed. But with blockchain-based tokens, everything is visible. The number of tokens issued, current market cap, number of holders, and recent trades are all public and verifiable in real time. Platforms like RWA.xyz make this data accessible and easy to follow. As of May 2025, gold-backed tokens like PAXG, XAUT (Tether Gold), and CGO together represent over 98% of the tokenized precious metals market, with PAXG leading at around $773 million in market cap.

But perhaps the most important benefit is this: you control the asset, not a bank. With tokenized commodities, your gold or oil tokens sit in your own digital wallet. You decide when to trade, where to store them, and even whether to redeem them for physical delivery. In a world where financial systems are increasingly fragile and centralized institutions are being questioned, the ability to hold a secure, verified, and globally recognized asset in your own custody is nothing short of revolutionary.

Why Do We Need Tokenized Commodities When We Already Have Products Like Sovereign Gold Bonds?

At first glance, it’s a fair question: if we already have traditional gold investment products like Sovereign Gold Bonds (SGBs), ETFs, and physical gold, why do we need tokenized commodities? After all, SGBs offer interest payments, are backed by governments, and are even tax-efficient in some cases.

But tokenized commodities aren’t here to replace traditional products—they’re here to fix what they leave out, especially for millions of people around the world who are excluded from existing financial systems.Here’s why tokenized commodities matter and what they offer that traditional instruments don’t.

1.  Global Accessibility: SGBs are limited to residents of India. ETFs like GLD or IAU are listed on U.S. stock markets, requiring brokerage accounts and fiat-based banking systems. In contrast, tokenized assets like PAXG, CGO, or XAUT are borderless. Anyone with a smartphone and an internet connection can buy, sell, or transfer gold 24/7, regardless of geography.

This is revolutionary for people in Africa, Southeast Asia, Latin America, and even parts of Europe who don’t have access to reliable banks or brokers. Tokenized commodities unlock true financial inclusion.

2.  Real Ownership and Redeemability: Sovereign Gold Bonds are government debt instruments, not actual gold ownership. You cannot take physical delivery of the gold they’re just a paper promise.In contrast, most tokenized gold products are fully backed by real, physical gold stored in vaults. Platforms like PAXG and CGO even allow you to redeem your tokens for actual gold bars or coins if you wish.

You don’t just hold a number in a government registry. You hold a real, claimable asset.

3.  Instant Settlement and Liquidity: Traditional gold products often come with long settlement times. SGBs have lock-in periods. ETFs settle in 2–3 days. Physical gold requires time for delivery.Tokenized commodities, on the other hand, are instantly tradable. Whether you're on a decentralized exchange (like Uniswap) or centralized ones (like Binance), you can buy, sell, or transfer your gold in seconds, at any time of the day even on weekends.

This makes tokenized gold a practical choice for emergency liquidity, instant collateral, or global remittances.

4.  Self-Custody and Control: With SGBs and ETFs, your gold is held by a custodian, a government, or an institution. You are dependent on intermediaries.With tokenized gold, you hold your assets directly in your digital wallet. No bank or broker can freeze it. No institution can limit your access. You are in full control.

This is critical in regions with capital controls, currency restrictions, or banking instability.

5.  Transparency and On-Chain Verification: Government gold schemes rarely offer real-time tracking. With tokenized commodities, every transaction and every supply change is recorded on the blockchain. Tools like RWA.xyz allow anyone to see:

- How much gold is backing the tokens
- How many holders exist
- What the current trading volume is

This creates a level of transparency and trust that traditional products simply don’t match.

Risks and Limitations of Tokenized Commodities

While tokenized commodities offer a modern and more accessible way to invest in physical assets, it’s important to remember that no system is without flaws. Investors need to understand the risks and limitations before jumping in. These risks don’t just come from the technology but also from the real-world structures behind the tokens.

Custodial risk: Tokenized gold or oil is still stored somewhere physically typically in a vault or storage facility. This means investors must trust that the custodian is honest, regulated, and insured. In highly regulated tokens like PAXG, this risk is minimized. Paxos operates under the strict supervision of the New York Department of Financial Services and provides clear legal guarantees to token holders. On the other hand, XAUT (Tether Gold), while backed by physical gold in Swiss vaults, places more legal responsibility on the user. If something goes wrong with the vault or custodian, the user not the issuer may have to pursue legal claims directly.

Regulatory uncertainty: Not all countries treat tokenized commodities the same way. In fact, some restrict or completely block access to these assets. For example, U.S. residents are prohibited from buying both PAXG and XAUT due to regulatory limitations. Singapore, Canada, and China have also imposed restrictions that make it difficult or illegal for residents to hold these tokens. This creates a fragmented experience, where the benefits of tokenization like global access may not be available to everyone.

Commodity price volatility:Tokenized or not, the value of gold and oil is still tied to global supply, demand, and geopolitical factors. Prices can swing significantly during market stress or macroeconomic events. Just because a commodity is wrapped in a token doesn’t mean it’s immune to traditional risks. The blockchain might be secure, but the underlying asset still behaves the same.

That’s why it’s essential to research carefully before investing. Ask yourself:

- Who is issuing the token?
- Where is the physical asset stored?
- What legal rights do you have if something goes wrong?

Understanding these limitations helps build realistic expectations and ensures that tokenized commodities are used as a tool for inclusion and empowerment not confusion or false security.

The Future of Tokenized Commodities: Real Value, Digital Freedom

Tokenized commodities are still in their early days but their potential is massive. What started as a way to put gold on the blockchain is quickly evolving into a new financial layer that can transform savings, credit, and trade on a global scale. This isn’t just a technological upgrade it’s the beginning of a financial reset that makes real-world assets programmable, portable, and universally accessible.

### Integration with DeFi: Real Assets Meet Smart Finance

One of the most exciting developments is the integration of tokenized commodities into decentralized finance (DeFi). Imagine using your gold not just to hold value, but to unlock new financial opportunities.

Tokenized gold can already be:

- Used as collateral to borrow stablecoins like USDC or DAI.
- Staked in yield-generating protocols, earning passive income just by holding
- Traded in synthetic futures markets, such as oil or silver contracts, all on decentralized platformswithout brokers or banks.

This gives real assets new utility. Gold doesn’t just sit in a vault it works for you, across decentralized apps.

### Micro-Savings and Financial Freedom

For billions of people living in unstable or inflation-hit economies, traditional savings don’t work. Banks aren’t always safe. Local currencies lose value. And commodity ownership like gold is expensive and hard to access.

Tokenized commodities offer a new solution:

- Fractional ownership means anyone can start saving in gold with just a few dollars.
- These savings are stable and inflation-resistant, ideal for people in places like Lebanon, Zimbabwe, or Argentina.
- No banks, no paperwork just a wallet and internet connection.

This creates real financial freedom, especially for unbanked or underbanked populations. It’s like a global digital piggy bank backed by real-world value.

### Global Trade Collateral

The potential isn’t just personal it’s commercial. In the near future, businesses could use tokenized commodities as on-chain collateral to unlock financing, no matter where they are in the world.

Picture this: a Nigerian exporter uses tokenized gold as collateral to secure a loan from a Swiss lender without needing intermediaries or waiting weeks for paperwork. The token acts as real-time proof of value, instantly verifiable on the blockchain.This model can:

- Accelerate cross-border trade.
- Reduce financing friction.
- Enable digital lending backed by tangible assets.

It’s not just about owning commodities it’s about using them to build a new, borderless financial economy.

4. Tokenized Institutional Funds: How Wall Street Is Bridging the Blockchain Divide

What Are Tokenized Institutional Funds?

We are witnessing the beginning of a new era in finance one where traditional investment products like money market funds (MMFs) and exchange-traded funds (ETFs) are being transformed through blockchain technology. These aren’t experimental crypto assets or fringe innovations. Rather, they are the same financial products that have long existed in the world of traditional finance—now issued as digital tokens by globally recognized institutions such as BlackRock and Franklin Templeton. These are known as tokenized institutional funds.

At their core, tokenized institutional funds are blockchain-based representations of real-world financial assets. They maintain the same backing, regulation, and structure as their traditional counterparts, but they exist in a digital, programmable form on public or permissioned blockchains like Ethereum, Polygon, or Stellar. To put it simply, if traditional funds were like CDs, tokenized funds are like Spotify—offering the same content but delivered in a faster, more flexible, and accessible way.

This transformation doesn’t alter the underlying asset. A tokenized fund that holds U.S. Treasury bills still holds the same secure, interest-yielding instruments. What changes is the infrastructure the how of investing, not the what. With tokenization, fund shares become digital tokens that can be bought, sold, or transferred globally with just a wallet address, eliminating many of the delays and barriers that come with traditional financial systems.

Tokenized funds offer several key advantages. They are issued by licensed asset managers and fully compliant with regulatory frameworks, making them trustworthy and secure. They are backed by real assets and transparently audited. Because they exist on the blockchain, they enable 24/7 access, faster settlement, and real-time tracking. Importantly, tokenization also allows for fractional ownership, which means small investors can participate in high-quality financial products that were previously out of reach due to high minimum investment thresholds or jurisdictional restrictions.

This shift is particularly significant for investors in emerging markets. Traditionally, access to U.S. dollar-based funds has been limited by geography, banking systems, or financial status. With tokenized funds, however, investors around the world can now gain exposure to stable, yield-generating assets simply by using a digital wallet. This brings powerful financial tools directly to the hands of those who need them most, bypassing the slow and costly processes of the legacy financial system.

In summary, tokenized institutional funds mark a major step forward in financial innovation. They blend the reliability of traditional finance with the accessibility, speed, and flexibility of blockchain. Whether for institutional treasuries, Web3 companies, or everyday investors, they offer a glimpse of a more open, global, and efficient financial future. In the sections that follow, we’ll explore how these tokenized funds work, what problems they solve, and who is building this new financial infrastructure.

## How Do Tokenized Funds Actually Work?

Tokenized institutional funds may sound complex, but at their core, they are simply traditional financial products like money market funds or ETFs repackaged using blockchain technology. Understanding how these digital versions work can help demystify the innovation and show how they bring real-world value to investors in a smarter, faster, and more accessible way.

The journey begins with token creation, or minting, which happens in advance. Tokens aren’t created when someone invests they’re made ahead of time and sent to the investor’s wallet after they deposit money, usually in stablecoins like USDC or fiat. This token represents ownership of a share in the underlying fund, which is backed by real-world assets like U.S. Treasury bills or other secure, income-generating instruments. These tokens are stored in a crypto wallet and can be traded or redeemed at any time. When an investor exits the fund, the token is burned (i.e., permanently removed from circulation), and the equivalent value is returned to them in cash or stablecoins.

These tokens operate on blockchain networks such as Ethereum, Stellar, or Polygon. These blockchains serve as transparent, tamper-proof ledgers that record all transactions ensuring real-time visibility, security, and accessibility. Unlike traditional finance systems, which are limited by banking hours and borders, blockchain-based funds are accessible 24/7 from anywhere in the world.

Importantly, while the blockchain manages the digital side, asset custody holding the actual real-world assets is still handled by regulated, professional institutions. This ensures the underlying investments remain safe and fully compliant with financial regulations. In essence, tokenized funds strike a balance between the decentralization benefits of blockchain and the oversight of traditional finance.

Investor onboarding is also streamlined through digital platforms. Users typically register through fund issuers like BlackRock’s BUIDL or Franklin Templeton’s Benji, complete identity verification, and gain access to their digital fund shares. While the process may vary slightly between platforms, most aim to make participation as seamless as using a fintech app, while still adhering to regulatory standards.

In short, tokenized funds function by combining the credibility and structure of traditional finance with the speed, transparency, and flexibility of blockchain. Investors gain access to safe, yield-generating assets packaged in a modern, borderless, and programmable format. It’s not just a technological upgrade; it’s a reimagining of how financial access should work in the digital age.

## Why It Matters: The Benefits of Bringing Funds On-Chain

The shift from traditional finance to blockchain-based tokenized funds isn’t just a tech upgradeit’s a game-changer. By putting real-world financial products like money market funds and ETFs on-chain, institutions and investors gain faster access, better transparency, and global reach.

1.  24/7 Settlement: Always Open: Unlike traditional markets that operate only during business hours, blockchain runs 24/7. Tokenized funds can be bought, sold, or redeemed anytime, removing delays and giving investors greater flexibility and control.This constant availability gives institutions more flexibility in managing liquidity and gives individuals greater control over their investments. It also reduces operational bottlenecks, delays, and counterparty risks that plague traditional finance.

2.  Programmable Compliance: Built-In Rules: Smart contracts automate compliance only eligible investors can access certain funds, and transactions follow preset rules. This reduces human error, cuts costs, and enhances trust in the system.

For example, a tokenized fund can be programmed to only allow access to accredited investors or residents of approved jurisdictions. If a user doesn’t meet the criteria, the transaction simply doesn’t go through. This not only reduces fraud and regulatory risk but also streamlines processes that are often slow and costly in the traditional system.

3.  Borderless Access: Global Inclusion: Tokenized funds are accessible globally, removing the barriers that typically prevent investors especially in emerging markets from accessing high-quality, dollar-based assets like U.S. Treasury funds or money market products. As long as a user has internet access and meets regulatory requirements, they can invest with ease.

This global reach enables capital to flow more freely and fairly, giving individuals and institutions in developing economies the same tools once reserved for the financial elite. It’s a powerful step toward financial inclusion, potentially leveling the playing field for billions of people.

4.  Transparent Audit Trails: Trust, Verified: One of blockchain’s most underrated strengths is transparency. Every transaction involving tokenized funds is recorded on a public ledger, making it easy for auditors, investors, and regulators to track activity in real time.

This transparency drastically reduces the chances of fraud, improves investor confidence, and makes it easier to verify fund performance and integrity. Instead of relying on quarterly reports or opaque systems, users can access proof of reserves, asset movements, and fund updates with just a few clicks.

### Fixing What’s Broken in Finance

Traditional financial infrastructure is burdened with inefficiencies slow processing, siloed systems, costly intermediaries, and limited access. Blockchain technology offers a way to rebuild this system from the ground up, creating a more inclusive, agile, and secure financial ecosystem.

Tokenized institutional funds are not just a technical improvement; they’re a reimagination of how financial products can and should work in the digital age. By combining the trust and regulation of traditional institutions with the innovation and efficiency of blockchain, these new models pave the way for a more open and resilient global economy.

## What Problems Are Tokenized Funds Solving?

In a world where money moves at the speed of the internet, traditional finance still struggles with outdated infrastructure, high costs, and limited access. Tokenized funds blockchain-based versions of traditional financial products like money market funds (MMFs) and U.S. Treasuries offer a smart and scalable solution to these long-standing problems. But this shift isn't just about innovation for innovation’s sake. It’s about fixing what’s broken.

### For Institutions: Cutting Through Financial Friction

Large financial institutions often deal with slow settlement systems, expensive intermediaries, and regulatory complexities especially in cross-border transactions. Tokenized funds help resolve these issues in a few key ways:

1.  Lower Operational Costs: By using blockchain to automate tasks like compliance and record-keeping, institutions can reduce reliance on costly middlemen.

2.  Faster Settlement: Traditional settlements can take days. Blockchain enables near-instant transactions, making capital more efficient and reducing counterparty risk.

3.  Seamless Global Transfers: Cross-border finance is notoriously slow and expensive. With tokenized assets, funds can move across borders with fewer fees and fewer intermediaries 24/7.

### For Investors: Accessibility, Liquidity, and Control

Investors, especially smaller ones or those outside the U.S., often face barriers to accessing safe, yield-generating assets. Tokenized funds bring several powerful benefits to their fingertips:

1.  Fractional Ownership: Instead of needing thousands of dollars to invest, tokenization allows users to buy small portions of high-quality assets opening doors to a wider range of investors.
2.  Global Access to U.S. Yield: People around the world can now tap into U.S. government bonds or institutional-grade funds often considered the safest returns in the market.
3.  Real-Time Liquidity and Automation: Investors can trade or redeem their assets anytime, and integrate with decentralized finance (DeFi) tools for automated portfolio management and earnings.

Tokenized funds aren’t about adding blockchain just to sound futuristic they're solving real financial challenges. They streamline outdated systems, make markets more inclusive, and bring both speed and transparency to investing. For institutions and individuals alike, they represent a step toward a more efficient, global, and accessible financial future.

### Who’s Leading the Charge? The Top Tokenized Institutional Funds

Tokenized institutional alternative funds are no longer just pilot projects or proofs of concept they’re live, growing, and gaining serious traction across the global financial system. As of May 2025, the tokenized alternative fund market has surpassed $400 million in total value, with products spanning venture capital, private credit, and crypto basis strategies.

This new generation of on-chain funds is being issued by credible asset managers like Superstate, Blockchain Capital, Apollo, and SPiCE VC, using tokenization protocols such as Securitize and Superstate on networks including Ethereum, Polygon, and Stellar.

Driven by institutional innovation and increased demand for borderless, programmable investment access, these funds are drawing growing interest from accredited investors, family offices, and global crypto-native communities. From Singapore to the United States, investors are increasingly allocating capital to tokenized funds for their transparency, liquidity potential, and automated compliance features.

Here’s a breakdown of the top four tokenized institutional funds as of mid-2025 and what makes them stand out in this rapidly evolving space.

### 1. Superstate Crypto Carry Fund (USCC)

The Superstate Crypto Carry Fund stands out as a pioneering example of how blockchain technology can unlock sophisticated investment strategies for a broader audience. With a market capitalization of $154 million and a Net Asset Value (NAV) of $10.81, this fund leverages basis trading a strategy that profits from the price differences between crypto spot and futures markets. Built on networks like Ethereum, Base, and others, and powered by the Superstate protocol, the fund uses smart contracts to automate and secure yield-generating processes. Managed by Superstate, a U.S.-based leader in asset tokenization, the fund provides a modern, programmable gateway into crypto arbitrage opportunities. Despite its institutional complexity, the fund already has 27 active holders, signaling growing adoption of on-chain alternative funds among qualified investors.

### 2. Blockchain Capital III Digital Liquid Venture Fund (BCAP)

BCAP (Blockchain Capital III Digital Liquid Venture Fund) represents a new frontier in venture investing, offering blockchain-native access to early-stage opportunities in the crypto and Web3 ecosystem. With a market cap of $148.4 million and a NAV(Net asset value) of $16.29, BCAP enables fractional ownership of a traditionally illiquid asset class venture capital. It is issued by Blockchain Capital, a pioneering crypto investment firm, and tokenized via the Securitize protocol. Operating across Ethereum and Polygon, the fund gives qualified investors exposure to a diversified portfolio of blockchain startups, with the added benefits of faster liquidity, improved settlement efficiency, and transparency. With 65 holders and a growing footprint, BCAP showcases how tokenization can transform alternative investments into more accessible, programmable, and efficient financial products.

### 3. Apollo Diversified Credit Securitize Fund (ACRED)

The Apollo Diversified Credit Securitize Fund provides tokenized access to the lucrative world of private credit, a market traditionally reserved for institutional investors and ultra-high-net-worth individuals. With a market cap of over $72 million and an impressive NAV(Net asset value) of $1,025, the fund reflects its premium and institutional-grade character. Managed by Securitize Capital and operating across multiple blockchains Ethereum, Avalanche, Polygon, and Stellar this product bridges traditional credit markets with blockchain’s programmable, transparent infrastructure. The fund is domiciled in the British Virgin Islands, and its relatively limited holder base of 14 underlines its focus on qualified, professional investors. By tokenizing private credit strategies, Apollo enables real-world yield opportunities with greater liquidity, faster settlement, and enhanced operational efficiency through on-chain mechanisms.

### 4. SPiCE VC

SPiCE VC stands out as one of the pioneering and most widely held tokenized venture capital funds, with a market cap of over $36 million and nearly 290 individual holders. Built on the Ethereum blockchain and domiciled in Singapore, SPiCE offers broad access to the growth potential of early-stage blockchain and digital asset startups. Managed by SPiCE VC and tokenized via Securitize, this fund democratizes venture capital by enabling fractional ownership, removing the need for large upfront investments typically required in traditional VC. With a NAV(Net asset value) of $3.43, it provides retail and accredited investors alike with a liquid, blockchain-native path to participate in next-generation technology innovation across the crypto and Web3 ecosystem.

These four funds clearly illustrate the transformative power of tokenization in reshaping access to alternative investments. Together, they represent a combined market cap of over $410 million as of mid-2025, covering sectors once limited to institutional investors such as private credit, venture capital, and basis trading.

Traditionally, assets like these were illiquid, gated by high minimums, regulatory barriers, and manual settlement systems. But with tokenization, they’re being reimagined on-chain: BCAP and SPiCE VC now offer global, fractional access to venture capital; Apollo’s Credit Fund brings private credit onto the blockchain with institutional-grade yields; and Superstate’s Crypto Carry Fund enables on-chain exposure to advanced yield strategies.

### Tokenized Institutional Alternative Funds in the Global South: Opportunity or Overreach?

The rise of tokenized institutional alternative funds covering private credit, venture capital, and crypto carry strategies has opened new doors for investors worldwide. But when it comes to the Global South regions like Latin America, Africa, Southeast Asia, and South Asia the big question remains: are these funds a genuine opportunity, or a financial experiment that risks deepening inequality?

Let’s explore both sides of the story.

#### Unlocking New Avenues for Capital Access

One of the most exciting promises of tokenized finance is democratization. By fractionalizing investment units and moving fund infrastructure on-chain, products like SPiCE VC and BCAP (with market caps of $36M and $148M respectively) allow investors to access high-growth venture capital portfolios that were traditionally limited to billion-dollar institutions.

With platforms operating across multiple chains like Ethereum, Polygon, and Stellar, these assets can, in theory, be accessed from anywhere with an internet connection. For startups and emerging markets in the Global South, this could mean more efficient fundraising, global exposure, and access to dollar-denominated capital.

#### But There’s a Catch: Access Isn’t Equal

Despite the blockchain’s promise of openness, access remains highly restricted in practice. Most institutional alternative funds such as the Apollo Diversified Credit Fund (NAV over $1,000) are limited to accredited or high-net-worth investors. Regulatory frameworks in countries across the Global South often restrict participation in foreign or alternative assets, especially those managed in offshore domiciles like Singapore or the British Virgin Islands.

In addition, gas fees, wallet setup, and stable internet connections pose technical barriers. While tokenized funds are borderless by design, they’re not yet inclusive by execution.

#### Dollarization and Sovereign Risk

Another concern is capital flight and dollarization. If investors in the Global South increasingly prefer tokenized U.S. credit funds or venture vehicles, it might draw capital away from local markets. This shift could weaken domestic currency demand and increase reliance on U.S.-based financial systems, echoing historical trends where Global South economies became overly dependent on external funding.

While tokenized funds offer safety and yield, they might also divert savings from local development, especially in countries with weaker financial infrastructure.

#### So, Is It Opportunity or Overreach? The answer is: both.

Tokenized institutional alternative funds are a powerful innovation. They create programmable, efficient financial products that could empower investors globally. But the benefits remain unevenly distributed, and without mindful design, these tools could widen the gap between rich and poor economies

To truly serve the Global South, future products must:

- Lower minimum investment thresholds.
- Support mobile-first, low-bandwidth access.
- Improve regulatory clarity.
- Enable local participation and value creation not just capital extraction.

The Global South stands at a crossroads. Tokenized institutional funds can offer powerful new financial pathways but only if they’re built with inclusion in mind. If done right, this innovation could bring emerging markets into a new financial era. If not, it risks becoming just another digital wall dividing the few from the many.

### What’s Holding Institutional Alternative Funds Back?

The Real-World Limitations Slowing Mass Adoption

While tokenized institutional alternative funds are gaining traction, they still face several real-world hurdles that are limiting their full potential. These challenges are not just technical they’re often tied to regulation, infrastructure, and market readiness.

1. Regulatory and Jurisdictional Barriers: One of the biggest roadblocks is regulation. Many of these funds such as BCAP and Apollo Diversified Credit are only available to accredited investors or those in specific jurisdictions. For example, some of the top tokenized funds are domiciled in Singapore or the British Virgin Islands, which may restrict access based on a user's country or KYC status. This limits global retail participation and slows down the promise of democratized finance.

2. Centralized Custody and Limited DeFi Integration: Although these funds are tokenized, they often remain tied to centralized custodians and platforms like Securitize. This means investors don't fully own or control their tokens in a self-custodial way limiting the composability and integration with DeFi protocols like borrowing, staking, or yield farming.

Unlike traditional crypto assets, most tokenized alternative funds cannot be freely traded on decentralized exchanges (DEXs) or moved across protocols, which restricts liquidity and limits the “programmable” aspect of these assets.

3. Liquidity Constraints: Despite market caps in the tens or hundreds of millions (e.g., Superstate’s Crypto Carry Fund at over $154 million, and BCAP at $148 million), the number of holders remains small with some funds having fewer than 30 investors. This indicates thin trading volumes, longer redemption windows, and lower secondary market activity, which may not appeal to retail users seeking instant liquidity or dynamic portfolio adjustments.

4. High Entry Barriers: Some tokenized alternative funds come with high Net Asset Values (NAVs). For example, the Apollo fund has an NAV of over $1,000, making it more suitable for large-ticket investors rather than everyday users. Combined with investor eligibility requirements, this keeps most of the global population out of reach.

5. Lack of Awareness and Trust: Even though the technology and use cases are rapidly maturing, many potential investors both retail and institutional are still unfamiliar with how tokenized funds work or hesitant to trust blockchain-based financial products. Education, transparency, and better UX are needed before tokenized funds become a common tool in investment portfolios.

Tokenized institutional alternative funds are unlocking powerful new investment opportunities but their adoption is being held back by a mix of legal, technical, and practical challenges. For this new asset class to truly scale, it will require broader regulatory clarity, decentralized access, and greater investor awareness. Still, the foundation is being built and each new fund launched on-chain brings us one step closer to a more open, programmable, and globally accessible financial system

Sources:

[1] https://app.rwa.xyz/treasuries

[2] https://openeden.com/tbill

[3] https://www.ledgerinsights.com/mckinsey-estimates-tokenization-will-be-less-than-2-trillion-by-2030/

[4] https://nakamotoinstitute.org/library/shelling-out/

[5] https://www.forbes.com/sites/roomykhan/2023/06/29/asset-tokenization-a-trillion-dollar-market-opportunity-jp-morgan-blackrock-and-goldman-think-so/

[6] https://www.visualcapitalist.com/124-trillion-global-stock-market-by-region/

[7] https://www.reuters.com/world/americas/stablecoins-stoke-volatility-brazil-capital-flows-says-central-banker-2025-05-20/

---

_Written by Dhimahi_
]]></description>
        </item>
        <item>
            <title><![CDATA[The Need for Real-Time Data on Solana: Latency, Scale, and Fidelity at Stake]]></title>
            <link>https://bitquery.io/blog/real-time-data-solana</link>
            <guid>https://bitquery.io/blog/real-time-data-solana</guid>
            <pubDate>Fri, 23 May 2025 10:00:00 GMT</pubDate>
            <description><![CDATA[
> “Better be first 99 percent of the time than second 100 percent of the time.” - Donald MacKenzie, in his book Trading at the Speed of Light

Solana’s ultra-fast block times have creasted new possibilities for real-time blockchain apps, especially in trading, payments, and gaming.

Today, Solana handles around $25 billion in daily spot trading volume, surpassing even Binance, the largest centralised exchange, which does about $15 billion in daily spot volume.

Solana is leading the way in building a fast, scalable trading system on the blockchain. In the future, this won’t just be for crypto—it will make it possible to trade stocks, bonds, forex, commodities, and other assets all on-chain.

Building this kind of trading system requires advanced infrastructure, similar to what Nasdaq and other global exchanges use, and Low latency is an absolute necessity.

To succeed, developers need reliable access to real-time, low-latency on-chain data.

In this article, I’ll discuss the main ways to access ultra-low latency data on Solana to support these applications at scale. My focus here is on reading blockchain data; I’ll cover trade execution in a future article.

Because Solana’s validators are spread around the world, not in a single location, it’s challenging to deliver real-time information efficiently. Optimizing networks to relay blockchain data quickly is essential for many applications.

Let’s look at the different approaches to accessing real-time data on Solana, one by one.

### The Traditional Path: Solana Geyser Plugin

Solana offers the Geyser plugin system for developers needing direct access to on-chain events:

- Update_account: Triggered on account updates
- Update_slot_status: Slot status changes
- Notify_transaction: Processed transactions
- Notify_block_metadata: Block metadata

Yellowstone Geyser Plugin adds a gRPC API for subscribing to updates, getting blockhashes, slot numbers, and more.

#### What are the challenges?

While powerful, Geyser requires running your own Solana node or validator. This means ongoing infrastructure management, manual scaling, node security, and raw data parsing—tasks that can slow down even the best teams.

Filtering options are basic, so you may process much more data than you need, driving up costs and complexity.

### Bitquery: A Powerful Alternative

Bitquery offers a powerful real-time streaming system with two easy-to-use interfaces: GraphQL Subscriptions and Kafka. You can learn more about the differences and benefits of each in the [Bitquery documentation](https://docs.bitquery.io/docs/streams/kafka-streaming-concepts/).

- No Infra Needed: You don’t need to run your own Solana node. Just use the Bitquery endpoint—no server costs, setup, or upgrades.
- Powerful Filtering: Use GraphQL’s expressive filters to get only the data you need (by address, token, program, amount, and more). No more sifting through irrelevant noise.
- Pre-Parsed Data: All data is already structured, labelled, and enriched (including USD values for tokens/trades). You save time and can focus on building features, not parsing raw logs.
- Supports All Major DEXs: Instantly access DEX trades from PumpFun, Raydium, Orca, and more, with no extra parsing.
- Historical + Real-Time: Query past data and stream new events using the same API.
- Managed Reliability: Bitquery handles uptime, redundancy, and failover—no late-night pages for you.
- Easy Onboarding: Get started in minutes, not weeks.

### Bitquery GraphQL Streams (with Powerful Filtering)

Bitquery’s GraphQL subscriptions give you real-time access with less than 2-second latency. Queries are rich and filterable, allowing you to stream only what you need, down to addresses, programs, or amounts.

You can test these queries live on the [Bitquery IDE](https://ide.bitquery.io/).

Popular Bitquery GraphQL Streams:

- Transfers: Real-time token transfers (fungible and NFTs), filterable by address, amount, or specific programs.
- Balance Updates: Monitor wallet balances as they change, and see which programs trigger changes.
- DEXTrades & DEXTradeByTokens: Full trade history, OHLCV (K-line) data, trader stats, and DEX analytics—covering all major DEXs.
- DEXPools: Track liquidity adds, removes, and pool analytics in real time.
- Instructions: Stream parsed Solana program instructions—great for custom app monitoring and token launches.
- Rewards: Follow staking rewards live as they are distributed.
- TokenSupplyUpdates: Watch minting, burning, and supply changes in real time.
- Transactions: Get a live feed of all transactions on Solana.
- Blocks: Stream every new block as it’s produced.

### Kafka Streams by Bitquery

Bitquery’s Kafka streams are a unique product that provides ultra-low latency data directly from blockchain. Here are some key features.

Bitquery offers three main [Kafka streams](https://docs.bitquery.io/docs/streams/protobuf/chains/Solana-protobuf/)

- solana.dextrades.proto — Includes all trade and liquidity pool change data.
- solana.tokens.proto — Covers token transfers, supply changes, and balance updates at both the account and instruction level.
- solana.transactions.proto — Delivers detailed data for blocks, transactions, and instructions.

![](/blog/real-time-data-solana/table.png)


#### Some differentiators

- Geyser provides an entry notification stream for tracking ledger entries in real time.
- Bitquery Streams work directly with unconfirmed transactions and do not offer a separate entry notification stream.
- Because Bitquery focuses on unconfirmed transactions, it can deliver block data before blocks are closed, often faster than other solutions.
- Bitquery Streams include: Real-time instruction and log parsing, and Instruction-level balance updates (showing balance changes from each instruction). Even Geyser does not provide instruction-level balance updates natively.

If you’re building on Solana, Bitquery’s streaming solutions are built for developers who demand more—less setup, more speed, and richer data out of the box. With Bitquery GraphQL Subscriptions, you get clean, filtered, and pre-parsed blockchain data in minutes, while Kafka Streams give you ultra-low latency and enterprise-grade scalability for the most demanding real-time apps.

Curious to see what next-gen blockchain data feels like? Try Bitquery Streams and experience the technical difference for yourself. Your next Solana project just got a whole lot easier.
]]></description>
        </item>
        <item>
            <title><![CDATA[The Illusion of Easy Money: Why Memecoins Always Burn the Retail Investor]]></title>
            <link>https://bitquery.io/blog/easy-money-memecoin-retail-investors</link>
            <guid>https://bitquery.io/blog/easy-money-memecoin-retail-investors</guid>
            <pubDate>Fri, 02 May 2025 10:29:00 GMT</pubDate>
            <description><![CDATA[
### **The Curious Case of a Trader’s Wallet**

Crypto markets thrive on volatility, with sharp rises and declines being the norm. At Bitquery, we were analyzing trade data on Solana. We came across a wallet that, at the time of writing, holds [**342 SOL and 254 WSOL**](https://ide.bitquery.io/holdings-of-a-solana-trader-wallet) (tokens that hold real value), also held [**9,290 different memecoin tokens**](https://ide.bitquery.io/number-of-token-accounts-for-solana-trader) at the same time.

This raised a series of questions;

_Why such a heavy investment in assets known to crash? What’s the strategy here—if any? Also, are there more investors like these asset holders? What are they betting on?_

### **The Risk of Memecoins and Their Rapid Decline**

Memecoins supposedly lose value within minutes of their launch. At the time of writing, we picked a random Pumpfun token, as shown below.

![](/blog/easy-money-memecoin-retail-investors/image1.png)
_Figure 1: OHLC Graph of the token_

As the bonding curve reaches close to 100%, the token loses all its value. The same happens to most memecoins of which a lot of them do not graduate to [Pumpswap](https://docs.bitquery.io/docs/examples/Solana/pump-swap-api/#get-newly-created-pools-on-pumpswap-dex-in-realtime), pumpfun’s own AMM.  
Why then would whale wallets with SOL upwards of 100k invest in memecoins, knowing it's a money pit? There are a few reasons that we can think of;

### **Why are the Big Guns Trading Memecoins?**

#### **A. Whales as Market Movers**

First, whales are considered a source of truth for a lot of traders. If you look at the top traders of any “_unserious coin_”, the top traders are responsible for huge volumes. For example, this wallet traded about [**$91.95M in Trump COIN**](https://dexrabbit.com/solana/pair/6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v#pair_top_traders) per day as seen on DEXRabbit.

This wallet is considered a bigwig given the number of trades ( upwards of 10k trades) they make. Following this wallet, 100s of other wallets could start buying the token. These bagholders might then become a scapegoat or exit liquidity for the top traders who made a profit from the rise.

![](/blog/easy-money-memecoin-retail-investors/image2.png)
_Figure 2: Trade activities of a token_

#### **B. Possible Money Laundering via Memecoins**

There is another lesser-known reason: easy token deployment has attracted launderers who wish to move large sums of money across borders while obscuring their origins. As recently covered by the [**DailyMail in the UK**](https://www.dailymail.co.uk/news/article-14631539/UK-drug-dealers-create-cryptocurrency-launder-dirty-money-case-kind-Britain.html) and noted by expert witness Gary Carroll, the token smart contract developers are paid some of this cash to create the token, which is then bought with the laundered money. Once the price rises, this profit appears legit.

### **Still Falling for Memecoins? Why New Traders Keep Losing Their Money**

#### **A. Chasing a Dream**

Newly created memecoins are a high-risk high-return trading opportunity. For whales, the risk is acceptable because they often invest only their **disposable income**. Even in a worst-case scenario, the downside is limited, but the upside can be 2x, 3x, or even higher. Moreover, whales could also look at these newly created memecoins as an opportunity to create a rug pull or dump on these tokens.

New traders, however, often **buy into memecoins after the initial price spike**, hoping the coin will bounce back. This belief is frequently rooted in **FOMO**. Many of these traders missed out on early opportunities in BTC, ETH, DOGE, SHIB, or PEPE, as seen in numerous [**Reddit threads**](https://www.reddit.com/r/Bitcoin/search/?q=FOMO). These tokens too were once treated like a joke by skeptics. As a result, some investors now doubt their own judgment, wondering if they’re repeating the same mistake by overlooking coins that initially seem like jokes.

This FOMO is not completely unjustified, given the comparison of the [**current price**](https://ide.bitquery.io/current-btc-price_1) of Bitcoin to its [**price at the start of 2016**](https://ide.bitquery.io/btc-price-in-2016).

![](/blog/easy-money-memecoin-retail-investors/image3.png)
_Figure 3: Price of BTC at the start of 2016_

![](/blog/easy-money-memecoin-retail-investors/image4.png)
_Figure 4: Current Price of BTC_

#### **B. Social Media Hype and KOLs**

On Solana, token popularity often depends less on fundamentals and more on who’s tweeting about it. Key Opinion Leaders (KOLs), especially those with large followings on X (formerly Twitter), play a huge role in shaping the narrative around new tokens. A single tweet or retweet from a known memecoin trader or influencer can kick off a chain reaction: early buys start coming in, trading volume picks up, and soon enough, social sentiment trackers start flagging the token. That perceived momentum draws in more buyers, and just like that, a feedback loop is born.

In the end, KOLs are less about marketing and more about market-making—at least in the short term. Their tweets don’t just influence sentiment; they often shape the price chart itself, which is quite easy given that memecoin trading is filled with inexperienced traders which we can evidently infer from this [Bitquery Solana API](https://ide.bitquery.io/number-of-high-end-and-lowend-traders) which shows that over 80% traders place trades less than 100$ and only 20% traders place trades over 100$.

![](/blog/easy-money-memecoin-retail-investors/image5.png)

_Figure 5: Number of high end traders and low end traders_

For new traders, this influence is potent. Many don't understand the tokenomics or project behind a memecoin—they just see a tweet, a few green candles, and jump in. By the time they enter, the early buyers have often already started exiting. This cycle turns influencers into pseudo-market makers and creates an illusion of demand that lures inexperienced wallets into becoming exit liquidity.

This brings us to the most important part of all of this, the only thing we should be looking at, the key to all of this is liquidity!.

### **Why Liquidity is Everything When it Comes to Manipulating the Market**

#### **Why are Memecoins with Low Liquidity Targeted**

Many large traders **usually target tokens with low liquidity** because **low liquidity generally means prices are easier to manipulate**.

Take, for example, there is a token pair between a meme coin and WSOL, where there is 1 WSOL token and 1 billion meme coin tokens. Many liquidity pools in Solana **constant product algorithm** to calculate the price of a token against the other, i.e., the price of a token against the other token is calculated based on the ratio of supply of these tokens. For a liquidity pool with low liquidity, a whale or a big trader could easily buy **half of the available memecoins**, making the ratio shifts dramatically. This makes the price of the memecoin shoot up, even though the actual demand may be low.

#### **Perception of Other Traders**

To novice and immature traders, this might look like a **price surge driven by high demand**. This illusion can trigger more buying from FOMO-driven traders, allowing the original buyer to sell at inflated prices. However, more experienced traders might actually analyse this price surge based on different parameters like volume, number of trades, or liquidity, and then may or may not buy that token based on their devised strategy.

Now all of this sounds very good on paper, but how do these traders get into the market before any of us?

### Executing Trades Before We Blink

Technically, the major challenge for whale wallets or sniper bot traders is the speed of trade execution, as they need to execute trades within seconds or even milliseconds of a token launch. This raises the question of what kind of infrastructure they are using.

_How much of their wealth are they spending to set up such high-speed trading?_

It is not possible to manually buy and sell a coin within milliseconds. We found that large traders and potential whale wallets either own their own Solana nodes or collaborate with Solana validators.

This helps them to execute faster trades due to direct access to blockchain and a lack of load as the entire infrastructure is private. Moreover, this provides them with advantages such as mempool data visibility and priority transaction inclusion even during the peak network activity.

#### **Technical Insights to Reduce Latency**

Even with a highly optimised trade execution logic, the secret of speed still remains in the infrastructure. Let's say that we want to build our own program that detects the newly created memcoins, then buys them before some whale decides to dump that currency. We would need to establish a pipeline that gets the newly created memecoin tokens with low latency and then buy these tokens within milliseconds.

For example, suppose we are retrieving information about newly created tokens using [Bitquery Kafka streams](https://docs.bitquery.io/docs/streams/kafka-streaming-concepts/), which deliver data with sub-second latency. In that case, we would need to run a program to execute a trade and deploy it on a virtual machine, such as an AWS instance located close to the servers sending the data. This setup would allow the program to run continuously, with delays of only a few hundred milliseconds and at high speed.

### **Final Thoughts: Strategy or Speculation?**

There are, of course, exceptions to this rule. There are investors here and there who have made money, but they are not public figures. They don't out themselves to the community. They don't make posts on Reddit. They don't even tell other people in their lives that they made money. They quietly reinvest the money into stablecoins and watch it grow or retire early.

From whales using traders as exit liquidity to new investors driven by emotion and misinformation, the memecoin ecosystem is complex, risky, and often irrational.

Whether it’s about **fast profits, laundering schemes**, or **social media manipulation**, one thing is clear: **memecoins aren't a calculated investment—they’re a gamble**. And in a volatile market like Solana’s, they continue to attract both savvy players and unsuspecting newcomers.

---

_The information provided in this material is published solely for educational and informational purposes. It does not constitute a legal, financial audit, accounting, or investment advice. The article's content is based on the author's own research and, understanding and reasoning. The mention of specific companies, tokens, currencies, groups, or individuals does not imply any endorsement, affiliation, or association with them and is not intended to accuse any person of any crime, violation, or misdemeanor. The reader is strongly advised to conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery shall not be liable for any losses or damages arising from the use of this material._
]]></description>
        </item>
        <item>
            <title><![CDATA[10+ Year Dormant Bitcoin Whales Come to Life in 2024]]></title>
            <link>https://bitquery.io/blog/dormant-bitcoin-wallets-reactivated-insights-market-impact</link>
            <guid>https://bitquery.io/blog/dormant-bitcoin-wallets-reactivated-insights-market-impact</guid>
            <pubDate>Tue, 07 Jan 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[
Bitcoin’s blockchain often holds surprises, and 2024 brought an interesting one: several old wallets that had been inactive for over 10 years became active again. These wallets, untouched for so long, suddenly moved large amounts of Bitcoin. This caught the attention of many in the cryptocurrency world, leading to questions about why these wallets were reactivated.

The wallets discussed here are just a few examples of this trend. Now, in 2025, these reactivations remind us of Bitcoin’s lasting value and the untold stories behind it. They also show how Bitcoin’s network remains a source of surprises, even after many years.

## Dormant Wallets: A Brief Overview

Dormant wallets are Bitcoin addresses that haven’t been used for long, often many years or even decades. These wallets are like forgotten accounts, with no transactions or activity recorded during that time. When funds suddenly move from these wallets, it questions why they became active again.

Did someone recover lost keys, transfer ownership, or decide it was time to use Bitcoin? Such events often draw attention because they can affect the cryptocurrency market and spark curiosity about the stories behind these wallets and their owners.

## Analysis of Significant Wallet Reactivations in 2024

The reactivation of dormant Bitcoin wallets in 2024 presents a fascinating trend worth analyzing. These events involved wallets that had been inactive for over a decade suddenly transferring large amounts of Bitcoin, sparking curiosity and speculation across the cryptocurrency community.

Examining these reactivations helps us understand the diverse reasons behind such activities and their potential impact on market sentiment, pricing, and crypto ecosystem dynamics.

![](/blog/dormant-bitcoin-wallets-reactivated-insights-market-impact/table.png)

Here’s a detailed overview of notable wallet reactivations, categorized by transaction volume.

### High-Value Movements (1,000+ BTC)

#### 1. Address: [1EhXAfSTJbfpzJp9AQCrWHAPTnqWFgeEQv](https://explorer.bitquery.io/bitcoin/address/1EhXAfSTJbfpzJp9AQCrWHAPTnqWFgeEQv?from=2012-09-01&till=2025-01-03)

Last Active: September 25, 2012  
Reactivated On: July 14, 2024  
Transaction ID: [26b443120d7eb8ea65ff9028d2285d57d258aabe742d4eae320f83ca856c6bd3  
](https://explorer.bitquery.io/bitcoin/tx/26b443120d7eb8ea65ff9028d2285d57d258aabe742d4eae320f83ca856c6bd3)To:

- [bc1q8hsl4rkvx49s8u467qj8p09jy6v9kwhm23d0tp](https://explorer.bitquery.io/bitcoin/address/bc1q8hsl4rkvx49s8u467qj8p09jy6v9kwhm23d0tp?from=2012-09-01&till=2025-01-01): 998.7 BTC (~$59.9M)
- [bc1qfcvckfyt6lpsmzw93cs2r6xju59tynmwmw0phl](https://explorer.bitquery.io/bitcoin/address/bc1qfcvckfyt6lpsmzw93cs2r6xju59tynmwmw0phl?from=2012-09-01&till=2025-01-01): 1.2 BTC (~$75.8K)

Total Received: 1,000 BTC ($12,060 at the time of receipt)  
Total Spent: 1,000 BTC ($60M at the time of transfer)  
Final Balance: 0 BTC

**Findings:**

This wallet remained dormant for 11.8 years before [transferring 1,000 BTC to two new wallets](https://ide.bitquery.io/Query-4). Originally funded in 2012, when Bitcoin was valued at $12.06, the wallet’s holdings appreciated significantly.

The sudden reactivation suggests the owner might have rediscovered access, decided to capitalize on the market value, or transferred ownership. The movement classifies this as a whale wallet transaction.

#### 2. Address: [1B1o9yxkweyh7zbjC5EpGNPLDWHsD33NpM](https://explorer.bitquery.io/bitcoin/address/1B1o9yxkweyh7zbjC5EpGNPLDWHsD33NpM?from=2013-11-01&till=2024-07-31)

Last Active: November 24, 2013  
Reactivated On: July 5, 2024  
Transaction ID: [516b62b3a7317e519f80d4251cd58dc1aa55dbba40956658542f7a71069824c8  
](https://explorer.bitquery.io/bitcoin/tx/516b62b3a7317e519f80d4251cd58dc1aa55dbba40956658542f7a71069824c8)To: [bc1qmwafthxm49rwc62tk97s47vvh4q03sl7ejtu3k](https://explorer.bitquery.io/bitcoin/address/bc1qmwafthxm49rwc62tk97s47vvh4q03sl7ejtu3k): 1,004 BTC (~$57M)

Total Received: 1,004 BTC ($737K at the time of receipt)  
Total Spent: 1,004 BTC ($57M at the time of transfer)  
Final Balance: 0 BTC

**Findings:**

Wallet 1B1o9 reactivated after 10.6 years, [transferring its entire 1,004 BTC ($57M) balance to a new wallet](https://ide.bitquery.io/Query-9). The BTC was originally acquired in 2013 and 2014 at an average price of $731 ($737K total).

The significant increase in value and sudden transfer suggest the owner may have opted to liquidate, consolidate, or update security measures. This movement highlights another major whale wallet activity in 2024.

### Moderate Movements (100-500 BTC)

#### 3. Address: [16vRqAJ1wfuFBkVMabKnZHLkeN3uwqjzEa](https://explorer.bitquery.io/bitcoin/address/16vRqAJ1wfuFBkVMabKnZHLkeN3uwqjzEa?from=2013-09-01&till=2024-05-30)

Last Active: September 13, 2013  
Reactivated On: May 12, 2024  
Transaction ID: [e1c74b4d915589a5f14216d3f4587e54d6920d3885e289e54b8ae09099917760  
](https://explorer.bitquery.io/bitcoin/tx/e1c74b4d915589a5f14216d3f4587e54d6920d3885e289e54b8ae09099917760)To: [bc1ptfrdcqngwswahg7a0d6pffdswc0pratmg7yz98u40e2epdppc8pql3k72n](https://explorer.bitquery.io/bitcoin/address/bc1ptfrdcqngwswahg7a0d6pffdswc0pratmg7yz98u40e2epdppc8pql3k72n?from=2012-01-01&till=2025-01-04)

Total Received: 500 BTC ($62K at the time of receipt)  
Total Spent: 500 BTC ($30.45M at the time of transfer)  
Final Balance: 0 BTC

**Findings:**

This wallet became active after 10.7 years, [transferring its entire balance of 500 BTC (~$30.45M)](https://ide.bitquery.io/Query-2_4). The BTC was originally acquired in September 2013, when the price was $124 per BTC. The timing and coordination with another similar wallet suggest that the owner may have decided to move or liquidate funds due to market conditions.

#### 4. Address: [1DUJuHGVT4sa1VMGjfF9YdFnFAEw6NgfC5](https://explorer.bitquery.io/bitcoin/address/1DUJuHGVT4sa1VMGjfF9YdFnFAEw6NgfC5/transactions?from=2013-09-01&till=2024-05-31)

Last Active: September 12, 2013  
Reactivated On: May 12, 2024  
Transaction ID: [a5d5e5139cb4c2b1833dfb428913a6560129f72252cec0173d730bdce99a0e1f  
](https://explorer.bitquery.io/bitcoin/tx/a5d5e5139cb4c2b1833dfb428913a6560129f72252cec0173d730bdce99a0e1f)To: [bc1p0mt4fdvk77hykyrw0e8qzk5za76fnhlfz2f8f5kakkwwtut6m7fq5tanwp](https://explorer.bitquery.io/bitcoin/address/bc1p0mt4fdvk77hykyrw0e8qzk5za76fnhlfz2f8f5kakkwwtut6m7fq5tanwp?from=2012-01-01&till=2025-01-04)

Total Received: 500 BTC ($62K at the time of receipt)  
Total Spent: 500 BTC ($30.45M at the time of transfer)  
Final Balance: 0 BTC

**Findings:**

This wallet was reactivated after 10.7 years of dormancy and [transferred its entire 500 BTC (~$30.45M) balance](https://ide.bitquery.io/query-1_3). Initially funded in September 2013, when the price of Bitcoin was $124, the transfer coincides with another dormant wallet (16vRqA) reactivating simultaneously, suggesting they may belong to the same owner or entity. The coordinated movement points to a strategic decision, possibly for consolidation or liquidation.

#### 5. Address: [18qkWda6Stn4DV5JtFXZG72bep7sccdT5b](https://explorer.bitquery.io/bitcoin/address/18qkWda6Stn4DV5JtFXZG72bep7sccdT5b?from=2012-06-01&till=2024-12-31)

Last Active: June 6, 2012  
Reactivated On: November 17, 2024  
Transaction ID: [2844692fc8a017816486dd83588a67963ecfbe67e9bdf263cef618f886f2ecd2  
](https://explorer.bitquery.io/bitcoin/tx/2844692fc8a017816486dd83588a67963ecfbe67e9bdf263cef618f886f2ecd2)To:

- [1381VUhVhDmEqcHvp1fbDyDP9gttJYka46](https://explorer.bitquery.io/bitcoin/address/1381VUhVhDmEqcHvp1fbDyDP9gttJYka46?from=2012-12-01&till=2025-01-04): 299 BTC (~$20.36M)
- Bitstamp: 100 BTC (~$6.81M)

Total Received: 400 BTC ($2,180 at the time of receipt)  
Total Spent: 399 BTC ($27.17M at the time of transfer)  
Final Balance: 1 BTC

**Findings:**

Wallet 18qkW reactivated after more than 12 years of inactivity and [transferred a total of 399 BTC (~$27.17M) to two destinations: 299 BTC to wallet 1381VU and 100 BTC to Bitstamp, likely for liquidation](https://ide.bitquery.io/Query-3).

Initially funded with 400 BTC (~$2,180) in June 2012, when the price was around $5.45 per BTC, this movement shows an enormous value appreciation. The decision to move a portion to an exchange suggests possible selling activity, while the rest was likely relocated for security or consolidation purposes.

#### 6. Address: [1FBx7iywAN5p842yjq1HRBWRkKEpKgFwzM](https://explorer.bitquery.io/bitcoin/address/1FBx7iywAN5p842yjq1HRBWRkKEpKgFwzM?from=2012-01-01&till=2025-01-01)

Last Active: January 31, 2012  
Reactivated On: October 11, 2024  
Transaction ID: [7eb801033c9202dd8501c5b7492467f5342f6cf98d9686d45e6700a60e95cada  
](https://explorer.bitquery.io/bitcoin/tx/7eb801033c9202dd8501c5b7492467f5342f6cf98d9686d45e6700a60e95cada)To:

- [1C1QJuLawdT7zZXYBbA776kN8HPf1zxWT2](https://explorer.bitquery.io/bitcoin/address/1C1QJuLawdT7zZXYBbA776kN8HPf1zxWT2?from=2012-01-01&till=2025-01-04): 5 BTC (~$301K)
- [1KJGCwM4yxzQKkmRQYDvXLT1dzLWxTnowU](https://explorer.bitquery.io/bitcoin/address/1KJGCwM4yxzQKkmRQYDvXLT1dzLWxTnowU?from=2012-01-01&till=2025-01-04): 5 BTC (~$301K)
- [1AzajWfrD8X6XoJEZ2Vshbd5492B1sxamT](https://explorer.bitquery.io/bitcoin/address/1AzajWfrD8X6XoJEZ2Vshbd5492B1sxamT?from=2012-01-01&till=2025-01-04): 2 BTC (~$120K)

Total Received: 100 BTC ($551 at the time of receipt)  
Total Spent: 12 BTC ($722K at the time of transfer)  
Final Balance: 88 BTC (~$5.28M at the current price)

**Findings:**

Wallet 1FBx7i reactivated after 12.7 years of dormancy, [transferring 12 BTC (~$722K) to three new wallets in portions of 5 BTC, 5 BTC, and 2 BTC](https://ide.bitquery.io/Query-7). Originally funded with 100 BTC (~$551) in January 2012, when Bitcoin was priced at $5.51, this wallet experienced a significant value increase.

With 88 BTC remaining (~$5.28M), the partial transfer suggests possible liquidation, redistribution, or a security-driven move. This event highlights another notable whale movement in 2024.

### Small Movements (>100 BTC)

#### 7. Address: [1C4rE41Kox3jZbdJT9yatyh4H2fMxP8qmD](https://explorer.bitquery.io/bitcoin/address/1C4rE41Kox3jZbdJT9yatyh4H2fMxP8qmD?from=2009-01-01&till=2025-01-04)

Last Active: January 29, 2009  
Reactivated On: September 20, 2024  
Transaction ID: [8bee6dbdbc09253ffbe51e35a910ef39428fc2ca05aa39ce0f1adaebbf8f2cfe  
](https://explorer.bitquery.io/bitcoin/tx/8bee6dbdbc09253ffbe51e35a910ef39428fc2ca05aa39ce0f1adaebbf8f2cfe)To: [bc1qqhvkehsyr2rlrdvq4udtp8tfj75k6kcnd9n7lq](https://explorer.bitquery.io/bitcoin/address/bc1qqhvkehsyr2rlrdvq4udtp8tfj75k6kcnd9n7lq?from=2009-01-01&till=2025-01-04) – 50 BTC (~$3.19M)

Total Received: 50.00001094 BTC ($0.16 at the time of receipt)  
Total Spent: 50 BTC ($3.19M at the time of transfer)  
Final Balance: 0.00001094 BTC (~$0.64)

**Findings:**

This miner wallet reactivated after 15.7 years of dormancy, [transferring 50 BTC (~$3.19M) to a new address while leaving a negligible balance of 0.00001094 BTC (~$0.64)](https://ide.bitquery.io/Query-5).

Originally funded on January 29, 2009, shortly after Bitcoin’s creation, with a transaction worth ~$0.16, this wallet's reactivation suggests a possible strategic movement by an early miner. This event underscores the continuing activity of early Bitcoin participants and highlights a significant historical transaction in the crypto space.

#### 8. Address: [1CGT3Ywaa2upJfWtUtbXonDPNTfZPWqzmA](https://explorer.bitquery.io/bitcoin/address/1CGT3Ywaa2upJfWtUtbXonDPNTfZPWqzmA?from=2005-12-01&till=2025-01-01)

Last Active: February 2, 2009  
Reactivated On: September 20, 2024  
Transaction ID: [d52f4890ac3f0cf699e3187b08ba6376c4d6efbe53add15bbcc3b96b604ecec7  
](https://explorer.bitquery.io/bitcoin/tx/d52f4890ac3f0cf699e3187b08ba6376c4d6efbe53add15bbcc3b96b604ecec7)To: [bc1qg73nvjspdqe9fuf5pqgys386hjy8c94ntlppus](https://explorer.bitquery.io/bitcoin/address/bc1qg73nvjspdqe9fuf5pqgys386hjy8c94ntlppus?from=2005-12-01&till=2025-01-01) – 50 BTC (~$3.19M)

Total Received: 50.00000547 BTC ($0.06 at the time of receipt)  
Total Spent: 50 BTC ($3.19M at the time of transfer)  
Final Balance: 0.00000547 BTC (~$0.32)

**Findings:**

This wallet became active after 15.6 years of dormancy, [transferring 50 BTC (~$3.19M) to a new address](https://ide.bitquery.io/Query-10) and retaining a tiny balance of 0.00000547 BTC (~$0.32). Originally funded on February 2, 2009, just months after Bitcoin’s launch, with a value of ~$0.06, the reactivation may indicate a movement for security, consolidation, or liquidation. This transaction highlights another instance of early Bitcoin holdings being moved in 2024.

#### 9. Address: [1FHft3AFk9Zrdhk2HccSb97AgDNDsFhGuV](https://explorer.bitquery.io/bitcoin/address/1FHft3AFk9Zrdhk2HccSb97AgDNDsFhGuV/transactions?from=2010-07-01&till=2025-01-04)

Last Active: July 12, 2010  
Reactivated On: October 25, 2024  
Transaction ID: [86df0c812d1d72d32f1169bdf1216e5d3ed862f7dee91a3b5e77646c185419aa  
](https://explorer.bitquery.io/bitcoin/tx/86df0c812d1d72d32f1169bdf1216e5d3ed862f7dee91a3b5e77646c185419aa)To:

- [bc1qlmprk86z6djc8e0rshlntchly64au3hpfuzljp](https://explorer.bitquery.io/bitcoin/address/bc1qlmprk86z6djc8e0rshlntchly64au3hpfuzljp?from=2010-07-01&till=2025-01-04): 3 BTC (~$203K)
- [bc1qmefm8e6nfwqgfv6mn5hpdvvm489yc80aeux3xf](https://explorer.bitquery.io/bitcoin/address/bc1qmefm8e6nfwqgfv6mn5hpdvvm489yc80aeux3xf?from=2010-07-01&till=2025-01-04): 47 BTC (~$3.18M)

Total Received: 50.00000547 BTC ($0.17 at the time of receipt)  
Total Spent: 50 BTC ($3.39M at the time of transfer)  
Final Balance: 0.00000547 BTC (~$0.32)

**Findings:**

Wallet 1FHft3A reactivated after 14.3 years of dormancy, [transferring 50 BTC (~$3.39M) to two new wallets: 3 BTC and 47 BTC](https://ide.bitquery.io/Query-8), retaining a minimal balance of 0.00000547 BTC (~$0.32).

This wallet was initially funded on July 12, 2010, with a value of ~$0.17. The sudden movement of funds suggests possible selling, redistribution, or enhanced security measures taken by the wallet holder.

#### 10. Address: [18E5d2wQdAfutcXgziHZR71izLRyjSzGSX](https://explorer.bitquery.io/bitcoin/address/18E5d2wQdAfutcXgziHZR71izLRyjSzGSX?from=2005-01-01&till=2025-01-01)

Last Active: January 30, 2009  
Reactivated On: September 20, 2024  
Transaction ID: [6ce746e19b16f84abc6f5344225050a5b16e3d56aac72e0b7bd642c53c13716d  
](https://explorer.bitquery.io/bitcoin/tx/6ce746e19b16f84abc6f5344225050a5b16e3d56aac72e0b7bd642c53c13716d)To: [bc1ql8znm2y4zdwnxytvy4cyksdvnd3t6xv5rasun9](https://explorer.bitquery.io/bitcoin/address/bc1ql8znm2y4zdwnxytvy4cyksdvnd3t6xv5rasun9?from=2005-01-01&till=2025-01-01) – 50 BTC (~$3.19M)

Total Received: 50.00001094 BTC ($0.31 at the time of receipt)  
Total Spent: 50 BTC ($3.19M at the time of transfer)  
Final Balance: 0.00001094 BTC (~$0.64)

**Findings:**

This wallet, originally funded with 50 BTC (~$0.31) on January 30, 2009, reactivated after 15.6 years of dormancy by transferring 50 BTC (~$3.19M) to a new wallet (bc1ql8zn...) on September 20, 2024, leaving a negligible balance of 0.00001094 BTC (~$0.64).

The long period of inactivity and large transfer suggest an early adopter or miner moving funds, possibly for liquidation or enhanced security. This is another significant whale movement in 2024, highlighting the continued activity of early Bitcoin participants.

## Key Insights

In 2024, Bitcoin’s blockchain delivered a surprise: several old wallets, inactive for more than a decade, suddenly came to life. These wallets, once forgotten, moved massive amounts of Bitcoin, raising questions about what prompted these reactivations. Originally funded when Bitcoin was worth only a few dollars or even cents, their holdings had grown into millions of dollars, making these events major talking points in the crypto world.

Some wallets transferred Bitcoin to new addresses, while others sent large sums to exchanges, possibly signaling sales or redistributions. The reasons behind these moves could include rediscovered keys, ownership changes, or simply long-term holders deciding to cash in after years of waiting. Regardless of the motive, such high-value transfers often draw attention and impact market sentiment.

These unexpected wallet reactivations not only highlight Bitcoin’s enduring value but also remind us of the intriguing stories hidden in its early history. Even after 15 years, Bitcoin continues to surprise.

---

_Written by Aakash_
]]></description>
        </item>
        <item>
            <title><![CDATA[Tracking NFT Wash Trading on Solana: Techniques and Case Studies]]></title>
            <link>https://bitquery.io/blog/how-to-track-nft-wash-trading</link>
            <guid>https://bitquery.io/blog/how-to-track-nft-wash-trading</guid>
            <pubDate>Wed, 11 Dec 2024 08:00:00 GMT</pubDate>
            <description><![CDATA[
[Crypto wash trading](https://bitquery.io/blog/wash-trading-solana-crypto-market-manipulation-detection) is a deceptive practice that involves simultaneously buying and selling the same asset to create an illusion of increased trading activity and price changes. This article explains the mechanics of wash trading, delves into NFT-specific wash trading, and presents detailed case studies to identify and analyze potential instances of manipulation.

![](/blog/how-to-track-nft-wash-trading/trades.gif)

### What is Wash Trading?

Wash trading is performed by a trader or a group of traders through repetitive buy-and-sell cycles of the same asset. This creates misleading impressions of:

- High liquidity: Suggesting the asset is easy to buy or sell.
- Market demand: Artificially inflating the perception of interest.
- Price manipulation: Causing price surges or dips that mislead other investors.

### How Wash Trading is Performed

Below are the primary tactics used in wash trading:

1.  Coordinated Buy/Sell Cycles

    Traders execute repeated buy-and-sell transactions for the same asset, often in quick succession. These transactions, matched within the group, do not reflect genuine market behavior but significantly inflate trading volume.

2.  Inflating Perceived Demand

    These transactions artificially enhance trading metrics, such as the number of traders and transaction volume. This gives the false impression of growing investor interest.

3.  Manipulating Prices

    Timing trades strategically, traders can create artificial price fluctuations. These manipulations often result in sudden spikes or dips, further misleading market participants.

![](/blog/how-to-track-nft-wash-trading/flow.png)

### Understanding NFT Wash Trading

NFTs are particularly susceptible to wash trading because:

- Most NFT platforms allow anonymous transactions with no identity checks.
- NFTs can be sold to a wallet controlled by the same owner to inflate their value.

In the case of NFT wash trading, the goal would be to make one’s NFT appear more valuable than it really is by “selling it” to a new wallet the original owner also controls.

### Key Indicators of NFT Wash Trading

While it is close to impossible to identify all collections that carry out wash trading as it involves filtering a large data set based on qualitative factors, these are some common signs to look out for:

- Collection trades at a persistent price level (i.e. no outlier buys for ‘rares’).
- Collection has high trading volume / is trending but has low visibility poor social media metrics (e.g. low Twitter follower count)
- An NFT was bought more than a normal amount of times in a day (at Footprint Analytics we estimate this to be more than 3+)
- An NFT was bought repeatedly by the same buyer address over a short period, say 120 minutes

Let's examine four case studies that demonstrate potential wash trading (of tokens) tactics:

### Case Study 1 - PEAGLE:

- Total trading volume: 1412
- Unique traders: 12
- Price change: 754.2%

The extremely low number of unique traders (12) compared to the total trading volume of 1,412 is a clear red flag. This suggests a small group of traders are engaging in repetitive buy/sell cycles to inflate the trading activity. The dramatic 754.2% price increase further points to artificial price manipulation.

[View Data Here](https://ide.bitquery.io/Peagle-trades_1)

[https://explorer.bitquery.io/solana/address/Es5xC3r6PnixrdGZgdZeDXJ5piDDrjWrapRr7GZ4pump](https://explorer.bitquery.io/solana/address/Es5xC3r6PnixrdGZgdZeDXJ5piDDrjWrapRr7GZ4pump)

![](/blog/how-to-track-nft-wash-trading/peagle.png)

### Case Study 2 - THOG:

- Total trading volume: 192
- Unique traders: 6
- Price change: 484.7%

Again, the relatively low number of unique traders (6) transacting such a high volume of 192 indicates potential wash trading. A small group could be responsible for most of the buy/sell activity to drive up the price, which surged 484.7%.

[View Data Here](https://ide.bitquery.io/THOG-trades)

[https://explorer.bitquery.io/solana/address/D9ouW29KQEG8jeHnEpuaeqJ4D4QYfyDMRaajCf6rhfCW](https://explorer.bitquery.io/solana/address/D9ouW29KQEG8jeHnEpuaeqJ4D4QYfyDMRaajCf6rhfCW)

![](/blog/how-to-track-nft-wash-trading/thog.png)

### Case Study 3 - GIGATRUMP:

- Total trading volume: 80
- Unique traders: 6
- Price change: 477.5%

With only 6 unique traders accounting for 80 total trades, this is an obvious case of potential wash trading. The price increase of 477.5% is another strong indicator of artificial price inflation.

[View Data Here](https://ide.bitquery.io/GIGATRUMP-trades)

[https://explorer.bitquery.io/solana/address/Bx9kzi4Xs2V5ms392rc24Mc6GwoGoXERPRzQpeLMpump](https://explorer.bitquery.io/solana/address/Bx9kzi4Xs2V5ms392rc24Mc6GwoGoXERPRzQpeLMpump)

![](/blog/how-to-track-nft-wash-trading/gigatrump.png)

### Case Study 4 - cPANZR:

- Total trading volume: 33
- Unique traders: 4
- Price change: 434.7%

While the trading volume of 33 is substantial, the low number of unique traders (4) suggests a small group may be responsible for cycling buy/sell orders to boost trading activity and prices, which climbed 434.7%.

[View Data Here](https://ide.bitquery.io/cPANZR-trades_2)

[https://explorer.bitquery.io/solana/address/F1L5ECK8zRDuUVBN1ZoGrT9EHjj83L4udRhARDwnpump](https://explorer.bitquery.io/solana/address/F1L5ECK8zRDuUVBN1ZoGrT9EHjj83L4udRhARDwnpump)

![](/blog/how-to-track-nft-wash-trading/panzr.png)

### Conclusion

The recurring patterns across these case studies reveal the hallmarks of wash trading:

- Disproportionately low unique trader counts compared to total trading volume.
- Significant price surges within short timeframes.

This deceptive activity distorts the integrity of cryptocurrency markets. Ongoing monitoring and regulation are crucial to detect and mitigate such manipulative practices.

---

_This material is for educational and informational purposes only and is not intended as investment advice. The content reflects the author's personal research and understanding. While specific investments and strategies are mentioned, no endorsement or association with these entities is implied. Readers should conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery is not liable for any losses or damages resulting from the application of this information._

---

_Written by Abhishek_
]]></description>
        </item>
        <item>
            <title><![CDATA[Wash Trading on Solana: Case Studies on Market Manipulation]]></title>
            <link>https://bitquery.io/blog/wash-trading-solana-crypto-market-manipulation-detection</link>
            <guid>https://bitquery.io/blog/wash-trading-solana-crypto-market-manipulation-detection</guid>
            <pubDate>Tue, 10 Dec 2024 08:00:00 GMT</pubDate>
            <description><![CDATA[
In the financial markets, one theme consistently spans across all sectors: manipulation. Bad actors often attempt to exploit the market for their gain. In the crypto ecosystem, one of the common methods these players use is wash trading.

This article will explore how wash trading works, its impact on the [Solana](https://bitquery.io/blockchains/solana-blockchain-api) ecosystem, tools for detecting wash trading, and real-life examples of wash trading on Solana.

## Wash Trading in the Crypto Ecosystem

Wash trading is a form of market manipulation where prices are artificially inflated to mislead investors to believe market liquidity is higher than it actually is.

In cryptocurrency, wash trading occurs when an individual repeatedly buys and sells the same asset to create the illusion of heightened trading activity. This manipulation artificially inflates the asset's trading volume, often leading to an increase in its price. By boosting the volume, these tokens are intentionally manipulated for profit.

## How Wash Trading Works

As mentioned earlier, wash trading involves the repeated buying and selling of an asset by the same person or group to create an illusion of increased trading activity, which leads to artificial price movement.

So, what methods do these actors use to engage in wash trading? Let’s explore.

- Artificial Volume: When traders enter numerous buy and sell orders of the same token within a short timeframe, the trading volume of that token becomes artificially inflated, giving the token a false impression of its importance, and thereby attracting investors.

- Trading Bots: Traders also exploit bots to execute trades automatically, making the process efficient and harder to detect. These bots enter numerous buy and sell orders of the same token within a short timeframe to sustain the illusion of market activity.

- Exchanges: Some traders may target smaller exchanges because they are less regulated than bigger exchanges, and they lack the tools to track wash trading.

Some of the impacts of Wash Trading include;

- Disruption of Market Data: Where false trading volumes and price action disrupt the natural flow of the market structure. This can lead to inaccurate market trends and data.

- Deceiving Investors: The effects of wash trading can be detrimental to investors who rely on trading volume to make informed decisions. It creates a false sense of an asset's popularity, often leading to investments in overvalued or poorly performing assets, resulting in financial losses.

- Price Bubble: The artificial surge in trading activity creates an unstable price bubble that can collapse during a price correction, resulting in losses for investors.

By understanding the dynamics of how wash trading works, investors and regulators can take steps to reduce it by promoting transparency in cryptocurrency markets.

### Why Wash Trading Occurs on Solana

[Solana](https://bitquery.io/blog/inside-solana-instructions-types-exploration) is popular because it has low transaction fees. This attracts wash traders because the frequent transactions they intend to make would be cheap when compared to blockchains with higher fees. By paying low fees, these actors can increase the trading volume of an asset artificially to mislead investors into believing a token is highly active and in demand.

Another reason why Solana is susceptible to wash trading is its speed. It is a a high-speed blockchain that has the ability to process thousands of transactions per second,thanks to its low latency and high throughput features, Solana supports high-frequency trading which allows rapid execution of buy and sell orders. This makes it easy to inflate trading volumes and create the illusion of liquidity.

### Indicators of Wash Trading

The following are patterns that may be an indication of wash trading:

- Back and forth trades: Repeated trades between two or more wallets over a short period of time might indicate wash trading.
- Sudden Spikes: Sharp increase in trading volume or price without a corresponding market news or trend could suggest wash trading acivity.
- Circular Transactions: When a token is bought and sold within seconds or minutes by the same wallet address, it could indicate wash trading activity. This transaction simulates high-trading while retaining balance. In most of these trades, the wallet may have no profit or loss, so its just to manipulate market volume.

## Detecting Wash Trading with On-Chain Data

Here, we will explore examples of projects or tokens on Solana that are suspected of or have been identified in wash trading activities by bad actors.

### Case Study 1 : GGSS

[GGSS](https://dexrabbit.com/solana/pair/v62Jv9pwMTREWV9f6TetZfMafV254vo99p7HSF25BPr/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v#pair_latest_trades)

![](/blog/wash-trading-solana-crypto-market-manipulation-detection/ggss.jpg)

The wallet address[AvVqenaRxjsczBdY3AwtXosVoxF8dnNaBn5bptSx3isF](https://dexrabbit.com/solana/trader/AvVqenaRxjsczBdY3AwtXosVoxF8dnNaBn5bptSx3isF) exhibited consistent and repetitive buying and selling activities.The repetitive transaction pattern from this wallet aligns with the characteristics of wash trading, indicating an intent to distort market metrics and misrepresent genuine trading interests.

![](/blog/wash-trading-solana-crypto-market-manipulation-detection/ggss_trades.jpg)

#### Inflow and Outflow

The inflow of the wallet from 2024-06-1 to 2024-11-30 has only been between GgsS and USDC as seen in the query:[https://ide.bitquery.io/Inflow-for-wallet-address](https://ide.bitquery.io/Inflow-for-wallet-address)

The Outflow of the wallet from 2024-06-1 to 2024-11-30 has been between GgsS and USDC as seen in the query: [https://ide.bitquery.io/Outfloww-for-wallet](https://ide.bitquery.io/Outfloww-for-wallet)

![](/blog/wash-trading-solana-crypto-market-manipulation-detection/ggss_explorer.png)

#### Wallet Past History

From the [query](https://ide.bitquery.io/transactions-for-AvVqenaRxjsczBdY3AwtXosVoxF8dnNaBn5bptSx3isF), it shows that the wallet engaged in multiple trades involving GgsS.

The token was traded over **40,000 times**, which was unusual given that the wallet was inactive prior to this activity.

### Case Study 2 : AKINYA

[AKINYA](https://dexrabbit.com/solana/pumpfun/GG2gsJUccSiqorFYYZ2v9qcA9bm16FgJ52b9aHsUpump#top_trades)

![](/blog/wash-trading-solana-crypto-market-manipulation-detection/akinya.png)

A particular wallet address [2VhzzuwHMFCxS4mS2ksJCPrsrpDM8etsrdbrSXUhdRtF](https://dexrabbit.com/solana/trader/2VhzzuwHMFCxS4mS2ksJCPrsrpDM8etsrdbrSXUhdRtF)

engaged in constant buying and selling in order to artificially increase volume.

![](/blog/wash-trading-solana-crypto-market-manipulation-detection/akinya_trades.jpg)

#### Wallet Past History:

- From past history as seen in the [query](https://ide.bitquery.io/transactions-for-2VhzzuwHMFCxS4mS2ksJCPrsrpDM8etsrdbrSXUhdRtF_1) from 2024-06-1 to 2024-11-30, the wallet was active before these trades.
- The wallet strategically selects a particular token to trade, engages in repetitive buying and selling of the same token, which artificially increases the trading volume.This can be seen in the query response where some tokens are traded more than 30k times.
- This pattern does not align with a typical market behavior ( diversified trading/ holding/ staking of tokens). Instead, it shows deliberate attempts to manipulate the perception if demand for the token.

### Case Study 3 : Got'em

Got’em (You Looked)

![](/blog/wash-trading-solana-crypto-market-manipulation-detection/gotem.jpg)

A particular wallet address [8aAmHmRiFoAydUGtEkGiYMwR5t3LTY9HEWJNSZ7KMEso](https://dexrabbit.com/solana/trader/8aAmHmRiFoAydUGtEkGiYMwR5t3LTY9HEWJNSZ7KMEso)

engaged in constant buying and selling in order to artificially increase volume.

![](/blog/wash-trading-solana-crypto-market-manipulation-detection/gotem_trades.jpg)

#### Wallet Past History:

From past history as seen in the [query](https://ide.bitquery.io/transactions-for-8aAmHmRiFoAydUGtEkGiYMwR5t3LTY9HEWJNSZ7KMEso) from 2024-06-1 to 2024-11-30, the wallet was active before these trades.

#### Observations

- The wallet focuses on a particular token, trades it multiple times, before choosing a new one. This can be seen in the query response where some tokens are traded more than 30k times.
- An example (Got’em/WSOL) is shown above where the wallet shows repeated transactions of buying and selling the same token pair within a short period of time. This behavior shows an attempt to increase trading volume.
- This pattern does not align with a typical market behavior ( diversified trading/ holding/ staking of tokens). Instead, it shows deliberate attempts to manipulate the perception of demand for the token.

## Conclusion

Wash trading presents a major challenge for Solana blockchain and the crypto market in general. It undermines trust and misleads investors by distorting the natural

structure of the market. By understanding this practice and through the use of tools like Bitquery, we can detect irregular patterns, combat manipulation, and promote market integrity.

---

_This material is for educational and informational purposes only and is not intended as investment advice. The content reflects the author's personal research and understanding. While specific investments and strategies are mentioned, no endorsement or association with these entities is implied. Readers should conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery is not liable for any losses or damages resulting from the application of this information._

---

Written by Edgar N
]]></description>
        </item>
        <item>
            <title><![CDATA[Mixers, Tumblers, and DeFi: Tracing Commingled Funds in Crypto]]></title>
            <link>https://bitquery.io/blog/mixers-tumblers-defi-tracing-commingled-funds-crypto</link>
            <guid>https://bitquery.io/blog/mixers-tumblers-defi-tracing-commingled-funds-crypto</guid>
            <pubDate>Mon, 18 Nov 2024 08:00:00 GMT</pubDate>
            <description><![CDATA[
Tracing commingled funds is very important on the blockchain to identify and differentiate between fraudulent and legitimate transactions. By using special processes such as LIBR(Last In, First Out—Reversed) in combination with logic and on-chain analysis, we can recognize clean funds that are associated with suspicious activities. In this article, we will cover how to identify commingled funds using these processes to track deposits and the LIBR logic to separate funds.

You can read the previous article in this series [here](https://bitquery.io/blog/tracking-commingled-funds-simplified-bitquery)

### What are commingled funds?

Commingling of funds is the mixing of digital assets from multiple sources into a single wallet or account, making it difficult to trace the sources or identify ownership of specific amounts, usually done to hide the source and destination of funds.

Funds can be commingled using the following methods;

- Mixing Services: Funds can be mixed from different sources into a single wallet through the use of [mixing or tumbling services](https://bitquery.io/blog/criminals-exploiting-crypto-2024-top-crime-typologies) that blend transactions to increase privacy. The tumbling/mixing services conceal the origin of funds, making it difficult to trace individual transactions to the source.
- Privacy Coins: Funds can be commingled through the use of privacy coins like Monero which has built-in features that allow for mixing. These privacy coins make use of cryptographic techniques that allow them to automatically commingle funds in each transaction, making it nearly impossible to trace the flow of funds.
- Centralized Exchanges: Users deposit funds into centralized exchanges, where the funds are pooled together in shared wallets, mixing assets from multiple users. This commingling creates anonymity within the exchange.
- Decentralized Finance (DeFi) Protocols: Many DeFi protocols involve the commingling of funds from multiple users. The users provide funds to a pool which creates liquidity for lending, borrowing, or trading. This aggregation makes it difficult to differentiate each user’s contribution, although the protocol often maintains records of ownership through tokens or smart contracts.

## Risks and Challenges of Commingled Funds in Blockchain

Commingling funds helps with anonymity, but it also comes with risks and challenges. These challenges are major concerns for blockchain forensic analysis, compliance, and recovering lost or stolen assets.

Let's take a look at some of the risks and challenges involved with commingled funds;

- Hidden transaction path: Commingled funds have their transaction paths scrambled, making it difficult to trace assets back to their original source, this complicates forensic and legal investigations.
- Risk of Money Laundering: [Commingled funds can be used in money laundering,](https://bitquery.io/blog/fatf-indicators-bitquery-detect-money-laundering) where money launderers use it as a means to hide funds within a series of transactions or pools, making it hard to trace the funds back to their source. This practice weakens the transparent nature of blockchain networks and also creates compliance risks for businesses that unknowingly handle these funds.
- Stolen Fund Recovery Challenges: The identification and recovery of stolen assets in commingled accounts becomes difficult, which complicates efforts for victims to recover their funds.
- Compliance: Commingled funds can present serious compliance challenges, particularly regarding Anti-Money Laundering (AML) and Know Your Customer (KYC) requirements.By mixing funds from multiple sources, commingling complicates the process of tracing fund origins, which is essential for regulatory compliance.

## Tracing using LIBR

To trace how much-misappropriated funds or irregularly transferred crypto assets remain after it has been mixed in a wallet with other deposits, we can use the Lowest Intermediate Balance Rule (LIBR) method.

Here’s a breakdown of how it works:

- The first step is to locate the wallet where the crypto was held, identify unauthorized transactions, and note each transfer’s details
- Use blockchain tools like bitquery's Explorer to trace the movement of funds to other wallets and transferred amounts.
- Note the lowest balance in the wallet after the transfer to establish the recoverable amount.
- Document transaction details for potential legal or recovery actions.

Let's take an example:

## Tracing Commingled Funds: BingX Hot Wallet Exploit

Date: September 20, 2024

Incident: Over $43 million in digital assets

Initial Balance (September 20, 2024)

- Clean Funds in Hacker's Account: $0
- Stolen Funds: $43M
- Total: $43M

![](/blog/mixers-tumblers-defi-tracing-commingled-funds-crypto/1.png)

Movements and Analysis

- The hacker converted the most of the stolen assets into 4,526 ETH and 7,864.7 BNB.

Personal Funds spent: $0

Stolen Funds spent: $43M

- A separate wallet [0x940362B46faf7DF48Af1c8989d809F50466B5fCA](https://explorer.bitquery.io/ethereum/address/0x940362B46faf7DF48Af1c8989d809F50466B5fCA/inflow?from=2024-09-19&till=2024-10-30) drained $16.5M worth of cryptocurrencies. They include;

5,300 ETH, 4,100 BNB and 1.65M MATIC.

- These funds were kept in a different wallet [0x1Dd7dAf089C16856155FeFd7e2170966bb6b3AEE](https://explorer.bitquery.io/ethereum/address/0x1Dd7dAf089C16856155FeFd7e2170966bb6b3AEE/inflow?from=2024-09-19&till=2024-10-30)

- Personal Funds Used: $0
- Stolen Funds Used: $16.5M

![](/blog/mixers-tumblers-defi-tracing-commingled-funds-crypto/2.png)

Stolen Funds Balance: $0 in primary account; $16.5M moved to another address.

#### Summary of LIBR Observations

- Total Amount Stolen: $43M
- Conversion: Stolen funds were converted to 4,526 ETH and 7,864.7 BNB to hide it.
- Extra $16.5M drained earlier was moved to another wallet address.
- All stolen funds were used, leaving no personal funds untouched.

This analysis under LIBR shows the steady depletion of stolen assets, with clear signs of concealing it through conversion and fund separation.

## Tracing Commingled Funds: WazirX Multsig Wallet Breakdown

Date: July 18, 2024

Incident: Over $230 million stolen from a multi-signature wallet

Let's take a look at one of the wallet addresses involved in the WazirX Wallet Hack on July 18, 2024;

Wallet address: [0x04b21735e93fa3f8df70e2da89e6922616891a88](https://explorer.bitquery.io/ethereum/address/0x04b21735e93fa3f8df70e2da89e6922616891a88)

Based on the [query,](https://ide.bitquery.io/Wallet-attribute-example_1) at the time of this analysis, the wallet in question has the following transaction statistics:

- The wallet has sent out a total of approximately $15,302.25, and a total transaction count of over 160.
- The total funds received in this wallet is around $15,306.69, which is recorded across 292 received transactions.
- The transactions were received from over 49 unique addresses, involving 206 different currencies.
- The wallet has sent funds to 17 unique addresses, across 137 distinct types of currencies.
- The earliest transaction recorded on this wallet was on July 18, 2024, at 6:19 am.
- The last transaction, as of this writing, was recorded on August 3, 2024, at 7:40 pm.

More details:

[Inbound transactions after July 18, 2024](https://explorer.bitquery.io/ethereum/address/0x04b21735e93fa3f8df70e2da89e6922616891a88/inflow?from=2024-07-18&till=2024-07-31),

[Outbound transactions in the same period](https://explorer.bitquery.io/ethereum/address/0x04b21735e93fa3f8df70e2da89e6922616891a88/outflow?from=2024-07-18&till=2024-07-31).

#### Deposits

![](/blog/mixers-tumblers-defi-tracing-commingled-funds-crypto/3.png)

### Withdrawals

![](/blog/mixers-tumblers-defi-tracing-commingled-funds-crypto/4.png)

#### Analysis

The deposits started on July 18, 2024, when the wallet address saw a significant inflow of ETH, SHIB, MATIC, PEPE, USDT, USDC, and other tokens. The initial deposit of 4.10 GNO is minimal when compared to other deposits. This was probably an attempt to add legitimacy to the account's activity.

This was followed by a large deposit of 15,298.16 ETH at 06:20:23 which seemed fraudulent.

Additional large deposits followed, each occurring within 12 seconds of the previous one. This precise timing suggests the deposits may have been automated to conceal their origins.

The withdrawal involved the use of numerous wallet addresses that suggest they might be exit points in the laundering. Withdrawals also involved a wide range of tokens such as BOB, LOVELY, and CHR. This diversity could indicate attempts to hide transaction history.

Key Observations:

- The large ETH and stablecoin deposits suggest the funds were fraudulent and posed a substantial risk.
- Closely timed deposits and withdrawals showed an automated system.
- The repeated withdrawals to a limited number of common wallets raise money laundering concerns.
- The use of multiple tokens, especially those with low liquidity or niche appeal, points to an effort to obscure the funds’ traceability.

Together, these factors indicate that the wallet exhibits strong signs of high-risk behavior.

### Summary of Commingled Funds Spent

- USDC: 544,818.71 (full amount spent)
- PEPE: 640.27G (full amount spent)
- USDT: 5.789M (nearly all fraudulent funds)
- ETH: 4.50 (multiple small withdrawals)

Initial Balance: $0

Stolen funds: $234M

Balance: $234M

The LIBR approach helps identify that clean GNO funds remain untouched, with fraudulent assets systematically depleted first in each withdrawal. This sequence, combined with timing and the diverse tokens used, supports suspicion of laundering, as funds are rapidly transferred using multiple low-liquidity tokens to obscure traceability

## Conclusion

Tracing commingled funds on the blockchain is an important but difficult task for maintaining transparency and security in digital asset transactions. By using processes such as LIBR alongside on-chain analysis, investigators can differentiate between clean and potentially fraudulent funds even when multiple sources are combined in a single wallet.

---

*Written by Edgar*]]></description>
        </item>
        <item>
            <title><![CDATA[Tracking Commingled Funds Simplified with Bitquery]]></title>
            <link>https://bitquery.io/blog/tracking-commingled-funds-simplified-bitquery</link>
            <guid>https://bitquery.io/blog/tracking-commingled-funds-simplified-bitquery</guid>
            <pubDate>Wed, 13 Nov 2024 08:00:00 GMT</pubDate>
            <description><![CDATA[
Think of commingled funds like mixing different-colored water in a glass. When hackers steal cryptocurrency, they often try to hide their tracks by mixing the stolen funds with legitimate transactions—just like adding clear water to colored water.

This mixing makes it challenging to identify which "drops" were originally stolen. LIBR helps us solve this problem by applying specific accounting rules to determine which portion of any withdrawal comes from the stolen funds, even after they've been mixed with other transactions. For instance, if a wallet contains both stolen and legitimate funds, LIBR helps us determine whether a specific withdrawal should be considered as coming from the stolen portion or the legitimate portion of the total balance.

In this blog, we conduct an in-depth analysis of two significant DeFi security breaches: the 2023 Euler Finance exploit and the 2024 WazirX Exchange hack. This technical analysis demonstrates how the Lowest Intermediate Balance Rule (LIBR) can be effectively applied to track stolen cryptocurrency funds.

## Understanding LIBR in Blockchain Analysis

The Lowest Intermediate Balance Rule (LIBR) is a forensic accounting methodology that Bitquery implements to track specific funds within mixed transactions. This approach is particularly valuable when analyzing cryptocurrency hacks, as it allows us to trace stolen funds even after they've been combined with other assets.

LIBR works by treating stolen funds as the first money spent from a wallet, regardless of any legitimate funds that might be mixed in. For example, if a wallet contains 100 ETH in stolen funds and 50 ETH in legitimate funds, and the wallet owner spends 120 ETH, LIBR considers the first 100 ETH of that transaction as stolen funds and only the remaining 20 ETH as coming from legitimate sources.

This principle applies even when multiple transactions occur or when funds are converted between different cryptocurrencies, making it an essential tool for tracking stolen assets across the blockchain. Think of it as a "first in, first out" system specifically designed to trace stolen cryptocurrency.

## Case Study 1: Euler Finance Exploit Analysis

The Euler Finance hack was one of the largest DeFi exploits of 2023, where attackers stole $196 million from the protocol. Here's a detailed breakdown of how the stolen funds moved:

Hacker Address: [0xb66cd966670d962c227b3eaba30a872dbfb995db](https://explorer.bitquery.io/ethereum/address/0xb66cd966670d962c227b3eaba30a872dbfb995db)

### Initial State (March 13, 2023):

- Legitimate funds in hacker's account: $0 (personal funds)
- Trust funds (stolen): $196M
- Total: $196M

### Initial Balance:

- Personal funds: $0
- Stolen funds: $196M
- Total: $196M

### First Movement ($8.5M to Tornado Cash):

- No personal funds available
- Must use stolen funds: $8.5M
- Remaining stolen funds: $187.5M

### Second Movement ($30M to Tornado Cash):

- No personal funds available
- Must use stolen funds: $30M
- Remaining stolen funds: $157.5M

**Return of Funds ($196M): - Returns the full amount of original stolen funds**

This table shows the transaction flow from the hacker's address during the Euler Finance hack.

![](/blog/tracking-commingled-funds-simplified-bitquery/table1.png)

## Case Study 2: WazirX Exchange Security Breach

The WazirX hack was a major security breach in 2024, where attackers stole $234 million from one of India's largest cryptocurrency exchanges. Following the Lowest Intermediate Balance Rule, here's a detailed breakdown of the initial fund movements:

### Initial State (July 18, 2024):

- Starting Balance (Personal funds): $0
- Stolen funds: $234M
- Total Balance: $234M
- Main Hacker: [0x04b21735E93Fa3f8df70e2Da89e6922616891a88](https://explorer.bitquery.io/ethereum/address/0x04b21735E93Fa3f8df70e2Da89e6922616891a88)

### Fund Movements Following LIBR:

First Split to Exploiter 2 ([0x35febC10112302e0d69F35F42cCe85816f8745CA](https://explorer.bitquery.io/ethereum/address/0x35febC10112302e0d69F35F42cCe85816f8745CA)):

- Balance Before: $234M (100% stolen)
- Key Token Transfers:

- 5.33 T SHIB
- 640.27 B PEPE
- 0.9 ETH
- 20.5 M MATIC
- Other tokens (FLOKI, ANKR, COTI, APE, ARB)

Second Split to Exploiter 3 ([0x90ca792206eD7Ee9bc9da0d0dF981FC5619F91Fd](https://explorer.bitquery.io/ethereum/address/0x90ca792206eD7Ee9bc9da0d0dF981FC5619F91Fd)):

- Balance Before: $231.4M (100% stolen)
- Key Token Transfers:

- 0.9 ETH
- 5.79 M USDT
- 544,818 USDC
- 135.12 M GALA
- Notable tokens: AAVE (2,523), LINK (201,643), UNI (108,231)

- Estimated Value: ~$7.5M (100% stolen funds)
- Balance After: $223.9M (100% stolen)

![](/blog/tracking-commingled-funds-simplified-bitquery/table2.png)

## Verification Through Bitquery

All analyses can be independently verified using Bitquery's APIs:

1.  WazirX Exploiter 2 Analysis Query: [Run query](https://ide.bitquery.io/WazirX-Ex-2#)
2.  WazirX Exploiter 3 Analysis Query: [Run query](https://ide.bitquery.io/WazirX-Ex-3#)

# Key Technical Insights

1.  LIBR Implementation:

- Enables precise [tracking of stolen funds](https://bitquery.io/blog/track-recover-funds-bitcoin-atm-transactions)
- Maintains accuracy through multiple transfers
- Provides verifiable transaction paths

3.  Token Distribution Analysis:

- Tracks multi-token transactions
- Monitors value equivalencies
- Documents transfer patterns

5.  Transaction Verification:

- All movements independently verifiable
- Complete transaction history available
- Real-time tracking capabilities

## Conclusion

Through Bitquery's analytical capabilities, we've demonstrated how blockchain forensics can effectively track stolen funds across complex transaction patterns. You can perform auto-tracing and complete investigation with the [Moneyflow](https://bitquery.io/products/moneyflow) tool.

The LIBR methodology, combined with our robust analytics tools, provides a comprehensive solution for monitoring and analyzing cryptocurrency exploits.

This analysis showcases the power of Bitquery's platform in:

- Implementing LIBR methodology
- Tracking multi-token transactions
- Providing verifiable transaction data
- Supporting thorough blockchain forensics

For further investigation or to conduct your own analysis, access these transactions through Bitquery's APIs.

-----

*Written by Abhishek*]]></description>
        </item>
        <item>
            <title><![CDATA[Exploring Low-Latency Data Solutions for Crypto Futures Trading]]></title>
            <link>https://bitquery.io/blog/exploring-low-latency-data-solutions-crypto-futures-trading</link>
            <guid>https://bitquery.io/blog/exploring-low-latency-data-solutions-crypto-futures-trading</guid>
            <pubDate>Tue, 29 Oct 2024 05:00:00 GMT</pubDate>
            <description><![CDATA[
In financial markets, having access to real-time data with little delay is essential for making quick and accurate decisions. This is called low-latency data, and it allows traders to respond rapidly to price changes and take advantage of opportunities before they disappear. This is especially important in cryptocurrency futures trading, where prices can change in milliseconds.

Fast technological advancements have made high-frequency trading (HFT) much more important. [Research](https://www.sciencedirect.com/science/article/abs/pii/S0165176519301818#:~:text=In%20the%20last,and%20Australian%20markets.) shows that HFT accounts for between 40% and 70% of trading volume in the U.S. markets. This trend highlights how critical low-latency data is, especially in cryptocurrency markets that are known for their volatility.

Almost half of all cryptocurrency transactions today are driven by high-frequency trading, which depends on getting and processing data very quickly. Without low-latency data, traders risk falling behind faster competitors. In this blog, we will discuss why low-latency data is crucial in crypto futures trading and look at the challenges and solutions related to accessing real-time data.

## The Importance of Low-Latency Data in Financial Markets

Low-latency data refers to the quick delivery of information with minimal delay. In trading, especially in futures markets, this concept becomes critically important. When prices fluctuate rapidly even the slightest delay in data delivery can lead to missed opportunities, increased risks, and diminished profits.

Traders must make split-second decisions based on the most current data available to maximize their returns and manage risks effectively. For instance, HFT firms like Citadel Securities and Virtu Financial execute trades at lightning speed, relying on the smallest possible delay between data delivery and execution.

To better understand how low-latency data impacts traders and HFT firms, the following flowchart visualizes the decision-making process in futures trading and how access to real-time data is critical in mitigating risks and maximizing profits.

![](/blog/exploring-low-latency-data-solutions-crypto-futures-trading/flowchart.jpeg)

The flowchart shows how low-latency data flows in financial markets, highlighting its impact on trading outcomes. Traders and HFT firms rely on fast data to make split-second decisions, execute trades quickly, and manage risks from price fluctuations. Delays in data can lead to missed opportunities, increased risks, and reduced profits in volatile markets.

### Impact of Low-Latency Data on Futures Markets

In the cryptocurrency futures market, the importance of low-latency data cannot be overstated. The extreme volatility inherent to cryptocurrencies means that prices can swing dramatically within seconds. During significant market events such as the 2021 Bitcoin bull run prices often changed by hundreds of dollars in minutes.

Traders who had access to real-time data were able to capitalize on these rapid fluctuations, whereas those relying on slower data streams faced issues like slippage, where the executed trade price differed from the expected price due to data delays.

On October 21, 2024, Bitcoin surged past $69,000, peaking at $69,408.1 after three months of declines. This rapid price increase emphasized the importance of low-latency data, allowing traders with real-time information to capitalize on volatility and execute profitable trades swiftly. In contrast, those relying on slower data faced slippage, underscoring how crucial timely data is for navigating fast-moving markets.

### Recent Transaction Data

The importance of low-latency data is further illustrated by analyzing recent transaction volumes in the cryptocurrency market. This data not only shows trading activity but also highlights how timely information can influence trading decisions.

For instance, on October 24, 2024, Bitcoin recorded an impressive 681,834 transactions, equating to an average of 7.89 transactions per second. Click here for the [transaction query](https://ide.bitquery.io/bitcoin-tps). This high transaction volume reflects the active trading environment, where speed and access to real-time data can significantly influence trading outcomes.

In contrast, on October 25, 2024, the Moonbeam network saw 45,835 transactions, averaging about 0.53 transactions per second. Click here for the [query](https://ide.bitquery.io/Tps). While this figure may seem lower compared to Bitcoin, it underscores the growing activity in diverse blockchain ecosystems and the need for timely data access to navigate these markets effectively.

Traders with real-time insights into these transaction volumes were better positioned to act on market movements, minimizing slippage and maximizing profit opportunities. This data exemplifies how crucial real-time information is for capitalizing on market volatility, highlighting the necessity for traders to utilize low-latency data solutions in their strategies.

## High-Frequency Trading (HFT) and Algorithmic Trading

HFT and algorithmic trading are both strategies that heavily depend on low-latency data. HFT involves executing thousands of trades in a matter of seconds, capitalizing on tiny price discrepancies across various exchanges.

These strategies thrive on receiving real-time data to make instantaneous decisions. Even a millisecond delay can result in missed opportunities or unfavorable trade prices.

### The Infrastructure Behind HFT

Firms engaged in HFT invest significantly in infrastructure such as colocation placing their servers physically close to the exchange's servers to reduce latency. This speed advantage allows them to react to price movements before other market participants even receive the same information. Such a competitive edge is crucial in a market where every fraction of a second counts.

Algorithmic trading, which uses pre-programmed trading instructions, also relies on low-latency data to execute trades based on real-time market conditions. Without immediate access to data streams, these algorithms may act on outdated information, resulting in poor execution prices and widening spreads.

#### Key Terms in Low-Latency Trading:

Understanding some key terms related to low-latency trading can provide valuable insights into how real-time data impacts trading efficiency:

1.  Slippage: This refers to the difference between the expected price of a trade and the actual price at which the trade is executed. Low-latency data minimizes slippage by ensuring trades are executed close to the intended price.
2.  Spread: This is the difference between the highest bid price and the lowest ask price in a market. Traders aim to minimize the spread to reduce trading costs. Access to real-time data allows traders to reflect spreads in their trading decisions accurately.
3.  Market Depth: This indicates the liquidity in a market, showing the volume of buy and sell orders at various price levels. Having access to real-time market depth enables traders to gauge supply and demand effectively.

## Challenges in Parsing/Indexing On-Chain Data

One of the main challenges in utilizing real-time data in cryptocurrency trading is the parsing and indexing of on-chain data. Blockchain transactions and smart contracts generate vast amounts of data that need to be processed and analyzed quickly to be useful for traders. Delays in processing this information can lead to outdated trading decisions resulting in financial losses.

Here are some specific challenges:

1.  Data Volume: The sheer volume of transactions and events on the blockchain makes it difficult to extract relevant information in real-time.

2.  Complex Data Structures: Blockchain data often contains complex structures that require sophisticated parsing techniques to interpret correctly.

3.  Processing Speed: Ensuring that data is processed quickly enough to provide timely insights for traders can be challenging.

4.  Data Integrity: Maintaining the accuracy and reliability of data during parsing and indexing is critical, as inaccuracies can lead to poor trading decisions.

5.  Scalability Issues: As the volume of on-chain transactions increases, the systems used for parsing and indexing must scale effectively without compromising performance.

[ETL challenges involved in indexing blockchain data, are discussed in detail in this blog.](https://bitquery.io/blog/blockchain-data-warehousing)

## Solutions: Kafka Streams and Bitquery

To address these challenges, innovative solutions like Kafka streams have emerged. Kafka is a distributed streaming platform that allows for the real-time capture and processing of blockchain events, such as transactions and smart contracts. This technology can efficiently relay crucial data to consumers, enabling traders to stay updated with minimal latency.

[Bitquery](https://bitquery.io/) employs Kafka-based streams to deliver on-chain trade data with minimal latency. It ingests raw data from various blockchain networks in real-time, offering valuable APIs for different ecosystems.

For example, on Ethereum, traders can access the [SmartContract API](https://docs.bitquery.io/docs/examples/calls/smartcontract-filterby/) and [Mempool API](https://docs.bitquery.io/docs/examples/mempool/mempool-api/) for real-time smart contract interactions and pending transactions. Similarly, the BSC DEX Trades API provides insights into decentralized exchange trades on the Binance Smart Chain.

Bitquery processes this data through Kafka Streams, enabling real-time event processing and data enrichment. The Consumer API offers traders customizable access to processed data, featuring key APIs like the [NFT API](https://docs.bitquery.io/docs/examples/nft/nft-api/) for tracking ownership and trading activities, and the Balances API for real-time wallet monitoring.

This architecture allows for low-latency access to actionable insights, empowering traders to make informed decisions. By efficiently parsing and indexing on-chain data, Bitquery addresses the critical challenges of real-time cryptocurrency trading, providing a comprehensive solution that enhances traders' abilities to navigate fast-paced markets effectively.

## How Kafka-Based Streams Work in Bitquery’s Architecture

- Event Capture: As transactions and smart contracts occur on the blockchain, Bitquery captures these events in real-time. This initial step is crucial for ensuring that the data is current.
- Stream Processing: The captured data is then sent through Kafka Streams for processing. This involves filtering irrelevant data, aggregating important metrics, and preparing the information for consumers. The [Streaming API](https://bitquery.io/products/data-streams?_gl=1*5io6z2*_ga*MTU2NTgwNTAyMi4xNzIyNTczNTAw*_ga_ZWB80TDH9J*MTcyOTUyODA4OS4zMy4xLjE3Mjk1MzA0MzUuMC4wLjA.) provides powerful tools to manipulate and analyze streaming data efficiently.
- Data Distribution: After processing, the refined data is published to various Kafka topics, which can be subscribed to by different consumer applications. This enables traders and applications to receive tailored data streams relevant to their specific needs.
- Latency Optimization: Bitquery’s architecture is designed to minimize latency. By processing data close to the source and using efficient streaming techniques, traders receive insights with minimal delay, allowing them to act on the most current information available.

## Application of Bitquery’s Data Feed in Perpetual Futures Trading

Perpetual futures, a type of derivative product unique to the crypto world, allow traders to speculate on the future price of an asset without the obligation of settling on a specific date. These contracts are popular because they allow traders to leverage positions and capitalize on market volatility.

By integrating Bitquery’s low-latency data streams, traders can optimize their perpetual futures strategies in several ways:

- Reducing slippage by timing trade entries and exits more effectively.
- Minimizing spread losses by having a clear and real-time view of the market’s bid-ask spreads.
- Analyzing market sentiment in real-time by monitoring on-chain activity and wallet movements to make more informed trading decisions.

### Case Study: Using Bitquery’s Data for Perpetual Futures Trading

Scenario Overview: A cryptocurrency futures trader is monitoring Ethereum (ETH) price movements and notices significant volatility. To make informed decisions, the trader uses Bitquery’s real-time on-chain data streams to track large transactions, smart contract activity, and DEX trades. This data allows them to anticipate market shifts and capitalize on price swings in the perpetual futures market.

#### Step-by-Step Breakdown of the Trading Strategy:

1.  Monitoring Large Transactions:

The trader can use Bitquery’s [ERC20 Token Transfers API](https://docs.bitquery.io/docs/examples/transfers/erc20-token-transfer-api/) to track significant wallet transactions. One whale wallet moves 5,000 ETH to a decentralized exchange, signaling potential selling pressure.

- Address: [0x742d35cc6634c0532925a3b844bc454e4438f44e](https://explorer.bitquery.io/ethereum/address/0x742d35cc6634c0532925a3b844bc454e4438f44e)
- Transaction: ETH transfer to an exchange.
- Action: The trader opens a short position in ETH perpetual futures, anticipating a price drop.

2.  Analyzing Smart Contract Activity:

The trader uses Bitquery’s [SmartContract Calls API](https://docs.bitquery.io/docs/examples/calls/smartcontract/#recent-smart-contract-calls) to monitor smart contract activity. A spike in withdrawals from the Synthetix staking contract suggests that large players are reducing liquidity, which could lead to price instability.

- Smart Contract Address: [0x5e74c9036fb86bd7ecdcb084a0673efc32ea31cb](https://explorer.bitquery.io/ethereum/token/0x5e74c9036fb86bd7ecdcb084a0673efc32ea31cb) (Synthetix's sETH staking)
- Activity: Large ETH withdrawals signal a bearish outlook.
- Action: The trader strengthens the short position, expecting further price declines.

3.  Tracking DEX Trades:

By tracking trades on decentralized exchanges using Bitquery’s [DEX Trades API](https://docs.bitquery.io/docs/examples/dextrades/dex-api/), the trader observes significant ETH trading activity on Uniswap, indicating high volatility.

- Action: The trader holds the short position as DEX trade volumes increase, indicating heightened volatility and supporting the bearish outlook

![](/blog/exploring-low-latency-data-solutions-crypto-futures-trading/dexrabbit.png)

*Outcome*: Using Bitquery’s real-time data, the trader successfully predicts ETH’s short-term price drop and secures a profit on a leveraged short position. By using data on whale transactions, smart contract activity, and DEX trades, the trader made timely, informed decisions in the volatile cryptocurrency market.

In addition to manual trading strategies, Bitquery’s streaming data can be used to feed automated trading algorithms, helping traders automate their strategies based on real-time market conditions. It can also be used for portfolio risk management and market sentiment analysis, giving traders a broader understanding of the market’s direction.

---

*Written by Aakash*]]></description>
        </item>
        <item>
            <title><![CDATA[Why Real-Time Data Streams are Critical for Bitcoin Payments]]></title>
            <link>https://bitquery.io/blog/real-time-data-critical-bitcoin-payments</link>
            <guid>https://bitquery.io/blog/real-time-data-critical-bitcoin-payments</guid>
            <pubDate>Mon, 28 Oct 2024 05:00:00 GMT</pubDate>
            <description><![CDATA[
Real-time data streams are transforming the [Bitcoin](https://bitquery.io/blockchains/bitcoin-blockchain-api) payment landscape. Fast data flows are transforming how organizations manage Bitcoin and other cryptocurrencies, enabling faster, safer, and more efficient payment processing. Whether you're a developer, a company owner, or just interested in crypto, this article will walk you through the critical role that real-time streams play in the crypto ecosystem and how you can integrate them for faster payment processing.

## Importance of Fast Data in Financial Markets

In financial markets, time isn’t just valuable—it’s everything. The speed at which data moves can mean the difference between profit and loss. The crypto markets are no exception. With prices changing by the second, staying ahead of the curve requires real-time insights.

High-frequency trading firms like Citadel Securities and Virtu Financial rely on ultra-fast data feeds and advanced algorithms to execute trades in microseconds. These firms can process market information and make trading decisions faster than a human can blink, often resulting in profits from tiny price discrepancies across different exchanges.

For instance, during the COVID-19 pandemic market volatility in March 2020, major market makers like Citadel Securities reported processing record-breaking volumes of trades in a single day. This was possible due to their advanced real-time data processing capabilities, allowing them to capitalize on rapid market movements and provide liquidity during turbulent times.

This example illustrates how critical real-time data is in financial markets, where even milliseconds can make a significant difference in trading outcomes.

For businesses that accept cryptocurrency payments, this time sensitivity is equally crucial. Delays in transaction processing can result in significant financial losses due to price volatility or higher fees.

## Financial Transactions and Time Sensitivity

Here’s why fast data is so important in crypto transactions:

1.  Price Volatility: Cryptocurrencies are notoriously volatile. A few minutes' delay can lead to big price changes, affecting the value of payments.
2.  Transaction Confirmation: Unlike credit card payments, cryptocurrency transactions require confirmation on the blockchain, which can take time.
3.  Customer Expectations: In today's world, people expect instant gratification. They want their payments to be processed as quickly as possible.

## Crypto-Specific Issues

Through conversations with industry experts, it's clear that cryptocurrency payments bring their own unique challenges:

1.  Block Confirmation Times: Crypto transactions can take minutes or even hours to fully confirm, depending on the network's congestion and the transaction fees.
2.  Network Congestion: When the Bitcoin network is busy, transactions slow down. Real-time monitoring helps mitigate this issue.
3.  Fee Fluctuations: Transaction fees can vary, impacting how quickly a payment gets confirmed on the blockchain.

## Mempool Monitoring

A critical part of speeding up crypto payments is understanding the mempool, which is where transactions wait before being confirmed. The mempool essentially serves as a waiting room for Bitcoin transactions, and monitoring it allows businesses to see incoming payments before they are fully confirmed on the blockchain.

By tracking the mempool, businesses can detect incoming transactions, adjust fees dynamically, and initiate processes before confirmations occur. This is crucial for reducing wait times and improving the customer experience.

## Real-Time Data for Crypto Payment Systems

Real-time data is the backbone of modern crypto payment systems. Here are three main benefits it provides:

1.  Instant Transaction Detection: Payments can be spotted the moment they’re broadcast to the network, allowing businesses to begin processing them immediately.
2.  Dynamic Fee Adjustment: Businesses can adjust transaction fees in real-time to ensure quick confirmations without overpaying.
3.  Risk Assessment: Real-time data streams allow for continuous analysis of transaction patterns, flagging suspicious activity as it happens.

## Money Flow in Crypto Payment Systems

![](/blog/real-time-data-critical-bitcoin-payments/flowchart.png)

For businesses that accept cryptocurrency, understanding the flow of money is key to success. Most companies use hot wallets (connected to the internet) to manage incoming payments. Detecting incoming transactions quickly ensures smoother operations and a better customer experience.

A case study of an online retailer revealed numerous issues they faced before integrating real-time monitoring into their systems. They often couldn't detect payments in time, resulting in customer complaints and operational delays. After implementing real-time data solutions, they were able to detect transactions as soon as they hit the mempool, significantly improving both their customer service and fund management.

## Challenges of Traditional Systems

Traditional systems face several key hurdles when dealing with cryptocurrency:

1.  Slow Confirmation Times: Waiting for multiple block confirmations slows down the transaction process in a fast-paced e-commerce environment.
2.  Limited Visibility: Without real-time data, businesses are unable to see pending transactions or anticipate network issues.
3.  Inefficient Resource Allocation: Traditional systems often require manual monitoring and intervention, which consumes valuable human resources.

## Real-World Use Case: CryptoMart

Let's consider a hypothetical example of how real-time streams can transform a business. Imagine an online marketplace called CryptoMart that processes about 100,000 crypto transactions daily.

Before integrating real-time data streams:

- They faced frequent customer complaints about slow payments.
- They suffered financial losses due to price volatility during long confirmation times.
- They had a high transaction failure rate due to inaccurate fee estimations.

After adopting real-time monitoring, the results were transformative:

- Customer complaints dropped by 80%.
- Losses from price volatility were nearly eliminated.
- The transaction failure rate fell from 5% to 0.5%.

The CTO of CryptoMart described it as a "night-and-day difference." Real-time data allowed them to see transactions as soon as they were broadcast, enabling better decision-making and smoother operations.

## Real-Time Blockchain Data with Bitquery

### Bitquery's Kafka-Based Streams

For businesses seeking to implement real-time data streams, Bitquery offers a robust solution. Bitquery uses [Kafka-based streams](https://docs.bitquery.io/docs/streams/kafka-streaming-concepts/) to deliver real-time blockchain data, allowing businesses to access a continuous flow of information.

These streams are essential for:

- Instant Transaction Detection: Payments are detected the moment they’re broadcast to the network.
- Network Monitoring: Businesses can track network congestion and adjust accordingly.
- Multi-Chain Support: Bitquery supports multiple blockchains, making it easier to handle payments in various cryptocurrencies.

## Use Case for Payment Providers

Payment providers can particularly benefit from real-time data streams. Here’s how Bitquery helps them:

1.  Mempool Monitoring: They can see transactions in the mempool, allowing them to process payments before they’re confirmed.
2.  Improved Payment Speed: Real-time data ensures faster payment processing by adjusting fees and monitoring network activity.
3.  Fraud Prevention: Real-time data streams enhance security by identifying suspicious activity, detecting double-spend attempts, and blocking risky transactions before they’re confirmed.

## How Bitquery’s Real-Time Data Helps Crypto Payment Systems

Bitquery’s real-time Bitcoin data services play a crucial role in enhancing crypto payment systems, enabling businesses to detect transactions faster, improve payment speeds, and prevent fraudulent activities. Here's how Bitquery's real-time data assists in streamlining these critical processes.

## Detect Transactions in the Mempool

Mempool monitoring allows businesses to detect crypto transactions before they are confirmed on the blockchain. Payment processors can leverage this insight to pre-approve transactions and optimize user experience. Bitquery provides real-time mempool data for multiple blockchain networks, including Ethereum and TRON.

For example, consider a crypto-based E-Commerce platform processing thousands of payments per minute. Using Bitquery's GraphQL API, the platform can monitor the mempool for incoming transactions across different networks:

1.  Ethereum Mempool Monitoring: You can try this [query](https://ide.bitquery.io/ethereum_10#) in the Bitquery IDE.
2.  TRON Network Monitoring: You can try this [query](https://ide.bitquery.io/Tron_2#) in the Bitquery IDE.

With this real-time mempool data, platforms can:

- Detect payments as soon as they're broadcast to the network
- Provide immediate feedback to customers about their transaction status
- Start order processing earlier, knowing the payment has been initiated
- Adjust dynamic fees based on network conditions for each blockchain
- Monitor multiple blockchain networks from a single integration point

### Improve Payment Speed

Real-time data enables crypto payment systems to act more quickly by detecting transactions in the mempool and responding dynamically to blockchain conditions. This helps in reducing the overall time between transaction initiation and confirmation.

For instance, a remittance service transferring crypto across borders can use Bitquery’s real-time transaction data to adjust transaction fees based on real-time network traffic. If the network is congested, the service can automatically increase fees to ensure faster confirmation. On the other hand, when network conditions are smooth, the fees can be minimized, benefiting both the user and the service.

Such flexibility ensures:

- Optimized transaction speed by adjusting fees in response to network congestion.
- Reduced processing times through early transaction detection, allowing businesses to confirm payments faster.

In another scenario, online gaming platforms using cryptocurrency as a mode of payment can significantly improve the gaming experience by reducing lag in payment confirmations. With real-time detection of transactions, players can top-up their accounts or purchase in-game items instantly, improving their engagement.

### Fraud Detection and Prevention

Fraud detection is critical in cryptocurrency payment systems, where real-time data can help flag suspicious transactions and prevent malicious activity before it affects the system. Bitquery's real-time data and visualization tools are particularly powerful in identifying potential fraud through pattern analysis and anomaly detection.

Let's examine a real-world case study of the 2022 Ronin Bridge hack. The attack, attributed to the Lazarus Group, involved the theft of approximately $625 million worth of cryptocurrencies. Using Bitquery's Explorer, we can analyze the suspicious transaction patterns of one of the main Bitcoin wallets involved:

Bitcoin Address: [bc1q5k9tyr30xhmvmnj2z2cx0psprz44ksnmpuw7q8](https://explorer.bitquery.io/bitcoin/address/bc1q5k9tyr30xhmvmnj2z2cx0psprz44ksnmpuw7q8/graph)

This wallet demonstrates several classic patterns of fraudulent activity that businesses should monitor:

1.  Complex Money Flow Patterns:

- Large incoming transactions from exchange addresses
- Immediate splitting of funds into smaller amounts
- Multiple outgoing transactions to different addresses
- Usage of mixing services to obscure transaction trails

![](/blog/real-time-data-critical-bitcoin-payments/moneyflow.jpg)

2.  Suspicious Behaviors:

- Rapid succession of transactions
- Fund splitting and merging
- Interactions with known high-risk addresses
- Attempts to obscure transaction trails

In practice, monitoring a wallet that repeatedly broadcasts large unconfirmed transactions within a short period can help prevent fraud in real-time. Bitquery’s tools allow businesses to establish alerts based on these anomalies, providing an additional layer of security for their payment system.

## Conclusion

The importance of real-time data in cryptocurrency payments cannot be overstated. Businesses that leverage real-time streams can stay ahead of the competition by improving transaction speeds, enhancing security, and providing a better customer experience. From monitoring the mempool to adjusting transaction fees in real-time, the benefits are immense.

With solutions like Bitquery making real-time data accessible, businesses no longer have to deal with slow confirmation times, high volatility risks, or resource-draining manual processes. The future of payments is real-time, and it’s already here.

If you’re in the business of processing cryptocurrency payments, adopting real-time data streams is no longer a luxury – it’s a necessity.

---

*Written by Abhishek*]]></description>
        </item>
        <item>
            <title><![CDATA[How Are Criminals Exploiting Crypto? A Deep Dive Into 2024's Top Crime Typologies]]></title>
            <link>https://bitquery.io/blog/criminals-exploiting-crypto-2024-top-crime-typologies</link>
            <guid>https://bitquery.io/blog/criminals-exploiting-crypto-2024-top-crime-typologies</guid>
            <pubDate>Mon, 16 Sep 2024 05:00:00 GMT</pubDate>
            <description><![CDATA[
The world of cryptocurrency has seen exponential growth, but with it comes the rise of increasingly complex crypto-related crimes. In the first quarter of 2024 alone, [$739.7 million](https://www.idenfy.com/blog/crypto-theft-statistics/#:~:text=The%20report%20on%202024%20Crypto,concerning%20the%20PlayDapp%20gaming%20platform.) worth of cryptocurrency was stolen through methods like phishing attacks, exit scams, and private key compromises. These figures highlight the growing sophistication of crypto crime, making it essential to recognize and address these evolving threats.

Understanding various crypto crime typologies is crucial for anyone in the digital asset space. By identifying the different methods criminals use to exploit the decentralized nature of cryptocurrency, law enforcement, businesses, and individual investors can better safeguard their assets.

This blog will explore 20 distinct crypto crime typologies, each illustrated with real-world incidents. Additionally, we will highlight the role of specialized tools in tracing and identifying these activities to provide a comprehensive view of crypto crime's continuously shifting nature.

## Understanding Crypto Crime typologies

Cryptocurrency typologies refer to the patterns and methods used for financial crimes in digital currency. These include scams where fraudsters trick victims, hacks that breach security to steal assets, and "exit scams" where perpetrators vanish with investors' funds. Due to the decentralized and anonymous nature of cryptocurrencies, these crimes can be complex. Understanding these crime typologies helps recognize and prevent illicit activities, thereby protecting investments from emerging threats.

## typologies for Financial Crime Detection

To detect financial crimes, we need to explore different crime typologies. Next, we'll examine these patterns and real-world examples.

### 1. Ponzi Schemes Using Cryptoassets

Ponzi schemes are fraudulent schemes that promise high returns with minimal risk, depending on new investors' funds to pay earlier ones. They typically collapse when they fail to recruit enough new investors, revealing their unsustainable nature.

#### Incident Overview: [Gain Bitcoin Scheme](https://www.business-standard.com/finance/personal-finance/explained-the-rs-6-600-cr-bitcoin-ponzi-scam-involving-raj-kundra-124042200630_1.html)

- Initiated: 2017
- Company: Variable Tech Pte Ltd
- Promise: 10% monthly returns on Bitcoin investments
- Collapse: Resulted in a loss of Rs 6,600 crore (~$825 million)

Scheme Overview: Amit Bhardwaj and his associates ran a scheme promising high returns through Bitcoin mining. The operation collapsed when it couldn't sustain payouts due to a dwindling number of new investors, leading to significant financial losses. The failure prompted numerous legal cases and investigations, with the Enforcement Directorate taking action.

Tracking the Scam’s Unfolding: In cases like the Gain Bitcoin Ponzi scheme, analyzing the flow of funds and identifying key players is crucial. [Bitquery supports such investigations](https://bitquery.io/products/crypto-investigation-services) by providing comprehensive blockchain data analysis. By examining Ethereum smart contracts and transaction histories, investigators can detect suspicious patterns like abnormal money loops and artificial deposits.

### 2. Use of Non-Compliant or Unlicensed Exchanges

Non-compliant or unlicensed exchanges operate without proper regulatory oversight and often involve illegal activities, such as money laundering and fraud. These exchanges facilitate illicit transactions by providing a platform for criminals to exchange or launder cryptocurrency outside of legitimate financial systems. Their lack of regulation makes them attractive to those looking to evade detection.

#### Incident Overview: [RG Coins](https://www.zdnet.com/article/rg-coins-cryptocurrency-exchange-owner-lands-10-years-behind-bars-for-money-laundering/)

- Date: September 2020
- Conviction: Rossen Iossifov sentenced to 10 years in prison
- Impact: [Nearly $5 million laundered; over $7 million defrauded from U.S. victims](https://explorer.bitquery.io/ethereum/address/0x1947843B3244b194540fE7132f4e6bDEF944D72C/graph)

Case Summary: [Rossen Iossifov, owner of RG Coins, was convicted for laundering funds](https://www.coindesk.com/policy/2021/01/13/owner-of-crypto-exchange-rg-coins-gets-10-years-in-prison-for-laundering-5m/) connected to a fraudulent online auction scheme. The AOAF Network used RG Coins to launder proceeds from fake auctions, defrauding around 900 U.S. citizens. Iossifov faced sentencing under the RICO and for money laundering, highlighting the severity of his crimes.

![](/blog/criminals-exploiting-crypto-2024-top-crime-typologies/rgcoin.png)

Tracking the Scam’s Unfolding: Tracking funds through non-compliant exchanges like RG Coins can be challenging with standard blockchain explorers. Traditional tools often require manual tracking of each transaction, which is time-consuming and prone to errors. Additionally, these tools lack annotations that could help identify key addresses or suspicious patterns, making it difficult to get a complete picture of the scam.

To effectively trace the flow of illicit funds, it’s essential to use advanced tools like Bitquery’s blockchain explorer and Coinpath API. These tools enable investigators to map out transaction flows, detect irregular trading behaviors, and monitor real-time deposits across multiple blockchain networks.

Bitquery empowers law enforcement and investigators to uncover the full extent of illegal activities on platforms like RG Coins, ensuring that the responsible parties are held accountable.

### 3. Cryptoasset Gambling

Cryptocurrencies in unregulated online gambling platforms can mask illicit funds and facilitate money laundering. These sites often scam users by promising high returns but failing to deliver, collecting substantial sums without oversight.

#### Incident Overview: [E-Nugget Online Gaming Scam](https://timesofindia.indiatimes.com/technology/tech-news/online-gaming-app-scam-e-nugget-ed-freezes-rs-90-crore-in-70-accounts/articleshow/109752608.cms)

- Date: 2022
- Details: ED seized Rs 19 crore from bank accounts and Rs 90 crore from crypto exchanges

Scam Overview: The E-Nugget app, posing as a legitimate gaming platform, vanished after collecting funds, leaving investors unable to access their money. The Enforcement Directorate (ED) seized nearly ₹90 crore from crypto accounts and ₹19 crore in cash. Key figures Aamir Khan and Romen Agarwal were arrested and are in judicial custody.

Tracking Funds

Tracking and recovering funds in crypto scams like the E-Nugget gaming fraud is challenging due to the complex and anonymous nature of transactions. Standard blockchain explorers often fall short, necessitating advanced tools for thorough investigation.

One significant problem is the difficulty in proving the legitimate origins of funds, especially when accounts are frozen or under dispute. Bitquery’s Digital Assets API offers detailed indexing and historical data for major cryptocurrencies including USDT and Ethereum. This data helps establish legitimate fund sources, especially when dealing with frozen accounts.

For instance, using a sample USDT contract address on Ethereum ([0xdac17f958d2ee523a2206206994597c13d831ec7](https://explorer.bitquery.io/ethereum/token/0xdac17f958d2ee523a2206206994597c13d831ec7)), you can:

- Track USDT Transfers Between Addresses: Use the [USDT Transfer API](https://ide.bitquery.io/USDT-Transfer-API-Template?token=0xdac17f958d2ee523a2206206994597c13d831ec7) to monitor the movement of USDT.
- Analyze Historical Price Data: Identify unusual trading patterns using the [USDT OHLC Price Data API](https://ide.bitquery.io/USDC-OHLC-Data-template?token=0xdac17f958d2ee523a2206206994597c13d831ec7).
- Identify Major Token Holders: Find significant holders of USDT with the [USDT Token Holder API](https://ide.bitquery.io/USDT-Token-holder-Template?token=0xdac17f958d2ee523a2206206994597c13d831ec7).

Bitquery’s comprehensive tools combined with detailed reporting and legal support ensure effective tracking of stolen assets.

### 4. Chain Peeling

Chain peeling involves breaking down large illicit funds into smaller transactions across multiple addresses to obscure their origin and make tracking more difficult. This method is often used to launder money or evade detection by fragmenting the flow of funds, making it harder for authorities to trace the complete transaction history.

#### Incident Overview: [Bitfinex](https://explorer.bitquery.io/ethereum/token/0x074482065a5a4d9736c4679d6d6ab1dac1bff642/smart_contract) Bitcoin Theft

- Year: 2016
- Theft: 120,000 Bitcoin stolen
- Outcome: Over $3.6 billion worth of Bitcoin seized

Case Summary: Hackers stole Bitcoin from Bitfinex, controlled by Ilya Lichtenstein and Heather Morgan. They laundered the funds using “chain peeling” breaking transactions and converting Bitcoin to other cryptocurrencies. Authorities have seized around $3.6 billion in stolen Bitcoin with Lichtenstein and Morgan charged with money laundering and conspiracy.

In this case, Two key addresses used by the hacker are identified. Let’s use Bitquery to analyze these addresses and gain insights into the movement of the stolen Bitcoin.

Address Analysis Using Bitquery

1.  Address A: [13jE999Hssm2GFf6Yob7zGCJtf1xnPPjHd](https://explorer.bitquery.io/bitcoin/address/13jE999Hssm2GFf6Yob7zGCJtf1xnPPjHd?from=2016-08-01&till=2016-08-31)

- Overview: This address received 433,468 BTC, representing a substantial portion of the stolen Bitcoin from Bitfinex. The entire balance has since been moved, leaving the address with a zero balance.
- You can explore the detailed movement of funds from [Address A using Bitquery Explorer](https://explorer.bitquery.io/bitcoin/address/13jE999Hssm2GFf6Yob7zGCJtf1xnPPjHd/graph?from=2016-08-01&till=2016-08-31) as shown below.

![](/blog/criminals-exploiting-crypto-2024-top-crime-typologies/peeling.png)

2.  Address B: [1J2Tem6ZSHnpppVhBpSq5pAZYmfjENqoD3](https://explorer.bitquery.io/bitcoin/address/1J2Tem6ZSHnpppVhBpSq5pAZYmfjENqoD3?from=2021-04-01&till=2021-04-30)

- Overview: Address B received 259.74 BTC from the stolen funds. On April 14, 2021, 6.51 BTC (about USD 412,317.90) was directly transferred to a prominent crypto exchange. The remaining funds were moved to three unidentified addresses which have not been active since.
- You can explore the detailed movement of funds from [Address B using Bitquery’s Explorer](https://explorer.bitquery.io/bitcoin/address/1J2Tem6ZSHnpppVhBpSq5pAZYmfjENqoD3/graph?from=2021-04-01&till=2021-04-30).

### 5. Exchanges

Cryptocurrency exchanges can be exploited for laundering stolen or illicitly obtained crypto assets, particularly through decentralized platforms. These platforms often lack robust regulatory oversight, making them vulnerable to abuse for illicit activities.

#### Incident Overview: [WazirX Wallet Hack](https://www.thehindu.com/sci-tech/technology/what-is-wazirxs-legal-status-after-a-230-million-wallet-hack/article68595715.ece)

- Date: July 18, 2024
- Incident: Over $230 million stolen from a multi-signature wallet
- Outcome: Significant loss of assets and ongoing legal and financial complications

Attack and Response: WazirX lost over $230 million from a multi-signature wallet managed by Liminal. The breach led to reduced holdings and frozen assets, with criticism for the slow response. WazirX has initiated restructuring and sought legal protection under Singapore’s Insolvency Act.

Attackers' Address: [0x6EeDF92Fb92Dd68a270c3205e96DCCc527728066  
](https://explorer.bitquery.io/ethereum/address/0x6EeDF92Fb92Dd68a270c3205e96DCCc527728066?from=2024-07-17&till=2024-07-31)This address received 0.4795 BTC in 9 transactions, with a current balance of 0.3041 BTC. It has interacted with multiple related addresses.

Stolen Funds Moved Through Addresses:

- Address: [0x361384e2761150170d349924a28d965f0dd3f092  
  ](https://explorer.bitquery.io/ethereum/address/0x361384e2761150170d349924a28d965f0dd3f092?from=2024-07-18&till=2024-07-31)Received 43,800.36 ETH with no outgoing transactions, indicating funds have been held since July 18, 2024.

![](/blog/criminals-exploiting-crypto-2024-top-crime-typologies/waz1.png)

- Address: [0x04b21735e93fa3f8df70e2da89e6922616891a88  
  ](https://explorer.bitquery.io/ethereum/address/0x04b21735e93fa3f8df70e2da89e6922616891a88)Received 15,306.69 in various currencies, with high transaction activity, including significant transfers involving WazirX assets.

![](/blog/criminals-exploiting-crypto-2024-top-crime-typologies/waz2.png)

Attack Transaction

- Transaction ID: [0x48164d3adbab78c2cb9876f6e17f88e321097fcd14cadd57556866e4ef3e185d  
  ](https://explorer.bitquery.io/ethereum/tx/0x48164d3adbab78c2cb9876f6e17f88e321097fcd14cadd57556866e4ef3e185d)This transaction, executed on July 18, 2024, involved 0 ETH and a gas cost of $2.32, playing a key role in the attack's execution.

### 6. Crowd-funding through Charities and Other Organizations

Crowdfunding through fake charities uses the guise of legitimate non-profits to solicit cryptocurrency donations for illicit activities. This disguise allows them to raise significant funds while evading detection and complicating tracing efforts by authorities.

#### Incident Overview: [Hamas' Use of Cryptocurrency for Fundraising](https://crsreports.congress.gov/product/pdf/IF/IF12537/2#:~:text=In%202021%2C%20the%20U.S.%20cryptocurrency,groups%20between%202021%20and%202023.)

- Year: 2019 - 2024
- Amount Raised: Approximately $41 million (Hamas) and $93 million (PIJ)
- Outcome: Seizure of cryptocurrency addresses and legal actions against facilitators

Case Summary: Since 2019, Hamas and other terrorist groups have solicited cryptocurrency donations through online platforms to evade financial sanctions and support activities in Gaza. The U.S. Department of Justice and Israeli authorities have seized related crypto addresses and prosecuted those involved. The U.S. Treasury has imposed sanctions and issued alerts to financial institutions to strengthen efforts against terrorist financing via cryptocurrency.

Tracking the Scam’s Unfolding:  
Addresses related to this case include [0x21B8d56BDA776bbE68655A16895afd96F5534feD](https://explorer.bitquery.io/ethereum/address/0x21B8d56BDA776bbE68655A16895afd96F5534feD) and [0x175d44451403Edf28469dF03A9280c1197ADb92c](https://explorer.bitquery.io/ethereum/address/0x175d44451403Edf28469dF03A9280c1197ADb92c?from=2024-01-01&till=2024-01-31). These addresses can be tracked using advanced tools to uncover how cryptocurrency donations are channeled through various addresses and obscured.

Address Overview: [0x21B8d56BDA776bbE68655A16895afd96F5534feD](https://explorer.bitquery.io/ethereum/address/0x21B8d56BDA776bbE68655A16895afd96F5534feD)

On the Ethereum Mainnet, this address has received a total of 5.88 ETH with 86 transactions and sent 5.71 ETH across 9 transactions. It currently holds a balance of 0.1355 ETH and 2,189.85 USDT.

Address Overview: [0x175d44451403Edf28469dF03A9280c1197ADb92c](https://explorer.bitquery.io/ethereum/address/0x175d44451403Edf28469dF03A9280c1197ADb92c?from=2024-01-01&till=2024-01-31)

On the Ethereum Mainnet, this address has received 1.08 ETH through 82 transactions and sent 1.07 ETH across 3 transactions. It currently holds a balance of 0.0094 ETH and 8,852.68 USDT.

For detailed analysis such as NFT holdings and DEX trades, you can explore further through [Bitquery Explorer](https://explorer.bitquery.io/).

### 7. Synthetic Identity Fraud in Crypto Exchanges

Synthetic identity fraud involves using fake identities to bypass Know Your Customer (KYC) and Anti-Money Laundering (AML) controls on cryptocurrency exchanges. This technique allows individuals to evade detection and engage in illicit activities without proper vetting by the exchange’s compliance systems.

#### Incident Overview: [BitMEX Case](https://www.cftc.gov/PressRoom/PressReleases/8412-21)

- Year: 2021
- Fine: $100 million
- Outcome: BitMEX faced significant penalties for inadequate KYC/AML measures.

BitMEX Regulatory Actions: The CFTC fined BitMEX $100 million for inadequate KYC and AML controls, which allowed illicit trading and synthetic identity fraud. BitMEX has since enhanced its verification processes and restricted U.S. access to comply with regulations.

Tracking the Scam Unfolding:

Tracking synthetic identity fraud is challenging due to the use of fake identities to bypass KYC and AML controls. This complexity arises from the ability of fraudsters to obscure their true identities and create layers of fraudulent transactions across various addresses and blockchains.

Bitquery offers comprehensive solutions for this purpose. Its [Coinpath API](https://bitquery.io/products/coinpath) provides detailed tracking of fund flows across multiple addresses and blockchains, enabling the identification of suspicious patterns and connections linked to synthetic identities.

Additionally, real-time monitoring and the [Cross-Chain Blockchain API](https://bitquery.io/products/cross-chain-api) enhance visibility across different platforms, improving the detection and investigation of synthetic identity fraud. These capabilities support robust KYC/AML procedures and fraud prevention efforts.

### 8. Laundering Illicit-Origin Privacy Coins

Laundering illicit funds with privacy coins involves using cryptocurrencies with strong anonymity features to hide the origin and movement of stolen funds. Privacy coins are designed to obscure transaction details, making it difficult for authorities to trace and investigate the source.

#### Incident Overview: [Sanctioned Russian Cybercriminals](https://home.treasury.gov/news/press-releases/sm1123)

- Year: 2020
- Sanctions: U.S. Treasury Department sanctioned two Russian nationals
- Outcome: Millions in stolen virtual currency and U.S. dollars seized

Case Summary: Danil Potekhin and Dmitrii Karasavidi were sanctioned for a phishing scheme causing $16.8 million in losses. They used privacy coins to hide the stolen funds, complicating the investigation. Authorities traced the funds to Karasavidi’s account and seized millions in virtual and U.S. dollars.

Tacking the Scam Unfolding:

Addressing the challenge of tracking illicit funds through privacy coins is complex due to the inherent anonymity features of these cryptocurrencies. Privacy coins, like Monero, are designed to obscure transaction details, making it difficult for authorities to trace and investigate the source and movement of stolen funds.

In such cases, advanced tracking solutions are essential. Bitquery's services including [Coinpath](https://bitquery.io/products/coinpath) and its suite of APIs, provide investigators with the ability to analyze privacy coin transactions by identifying patterns, linking them to broader blockchain activities, and even tracing the flow of funds across different networks.

By offering visual insights and cross-chain monitoring, investigators can gain a comprehensive view of how illicit-origin privacy coins move through the system. These capabilities help uncover suspicious activity and support forensic analysis, making it easier to identify and mitigate illicit transactions even with privacy-enhanced cryptocurrencies.

### 9. Mixing Services and Privacy Wallets

Mixing services and privacy wallets obscure the origin and destination of cryptocurrency transactions by aggregating and redistributing funds across multiple addresses. This process, known as "mixing" or "tumbling," aims to break the link between the sender and receiver, making it difficult for authorities to trace the transaction flow.

#### Incident Overview: [Helix Mixer and Coin Ninja](https://www.infosecurity-magazine.com/news/coin-ninja-ceo-operated-helix-grams/)

- Year: 2020
- Operation: Helix Mixer, operated by Larry Dean Harmon
- Amount Processed: Over $311 million
- Outcome: Harmon pleaded guilty, and forfeited over 4,400 Bitcoin

Case Summary: Larry Dean Harmon operated Helix Mixer from 2014 to 2017, laundering over 350,000 Bitcoin by partnering with darknet markets and making transactions untraceable. Arrested in February 2020 and pleading guilty in August, he agreed to forfeit over $200 million in assets and faces up to 20 years in prison.

Tracking the Scam Unfolding:

Tracking illicit funds through mixing services and private wallets can be challenging due to the deliberate efforts to hide the origins and destinations of transactions. These services aggregate and redistribute funds, breaking the link between the sender and receiver, and complicating investigations.

Bitquery’s Coinpoth streamlines this process by providing automatic address labeling and entity resolution, grouping related addresses into identifiable entities. This simplifies understanding of the connections between addresses involved in mixing activities, making the investigation more efficient. Additionally, transaction filtering and FATF (Financial Action Task Force) indicators assist in flagging suspicious activities, particularly those linked to money laundering.

For example, let’s analyze a prominent Ethereum address: [0x742d35Cc6634C0532925a3b844Bc454e4438f44e](https://explorer.bitquery.io/ethereum/address/0x742d35Cc6634C0532925a3b844Bc454e4438f44e). This address is widely recognized for holding substantial Ethereum and has been involved in various high-profile transactions. Using Bitquery's wallet tracking features, you can:

- Wallet Transactions: Retrieve a comprehensive log of all transactions associated with the address.
- Holder Details: Identify the entities or individuals linked to the tokens held by the address.
- Inflow/Outflow: Track the movement of cryptocurrency in and out of the address.
- Balance: Display the current balance held by the address.

This address is used here as an example to demonstrate how Bitquery’s tools can aid in tracking and analyzing similar cases involving significant Ethereum transactions. Additionally, Crypto Travel Rule compliance ensures transparency and regulatory adherence by providing comprehensive tracking across transactions.

### 10. Fraudulent Cryptoasset Investment Platforms

Fraudulent cryptoasset investment platforms deceive investors by promising high returns on investments with little to no risk. These platforms often use deceptive tactics to attract and exploit investors, eventually collapsing and disappearing with the funds.

#### Incident Overview: [PlusToken Scam](https://www.scmp.com/economy/china-economy/article/3112115/chinese-cryptocurrency-scam-ringleaders-jailed-us225-billion)

- Date: 2019
- Amount Raised: Over $2 billion
- Outcome: Ringleaders sentenced to up to 11 years in prison

Case Summary: Launched in 2018 by Chen Bo, PlusToken was a Ponzi scheme that promised high returns and attracted 2.7 million members. It used blockchain to appear legitimate but collapsed in 2019, leaving significant losses. Chinese authorities sentenced the ringleaders to up to 11 years in prison.

Fraudulent investment platforms like PlusToken often exploit investors by promising high returns with little risk, eventually disappearing with the funds. Read a [detailed analysis on laundering through PlusToken here.](https://bitquery.io/blog/crypto-money-laundering-advanced-analytics)

Address Overview: [0xecdbf2fec71ce3007b8fb7b5b46f946d60ba5a05](https://explorer.bitquery.io/bsc/token/0xecdbf2fec71ce3007b8fb7b5b46f946d60ba5a05)

- Token: PlusToken (PLUS) on Binance Smart Chain
- Date Range: September 6, 2024 - September 13, 2024
- Total Transfers: 46,284
- Total Amount Transferred: 1,296,429,692.61 PLUS

This address was pivotal in the PlusToken scheme, handling a significant volume of token transfers.

![](/blog/criminals-exploiting-crypto-2024-top-crime-typologies/plustoken.png)

For a detailed analysis and insights into PlusToken transactions, including fund flows and address activities, explore the data on Bitquery’s Explorer [here](https://explorer.bitquery.io).

### 11. Chain Hopping

Chain hopping involves converting cryptocurrencies across different blockchains to obscure their origin and evade detection. This technique is used to launder money by creating complex transaction paths that make it difficult to trace the flow of funds.

#### Incident Overview: Lazarus Group's Cross-Chain Laundering

- Date: July 2022 - July 2023
- Amount Laundered: $900 million
- Affiliation: North Korean Lazarus Group

Case Summary: The Lazarus Group, a North Korean hacking organization, laundered about $900 million by using cross-chain bridges to convert cryptocurrencies across multiple blockchains rapidly. This "chain-hopping" technique made tracking the funds difficult and highlighted a shift from traditional laundering methods to more sophisticated techniques that obscure transaction trails.

Tracking Chain Hopping Activities

Chain hopping presents significant challenges in tracking and investigating illicit activities due to the rapid conversion of cryptocurrencies across multiple blockchains.

To address these challenges, Bitquery offers comprehensive tracking of transactions across various blockchains. It enables the visualization of fund movements by [Moneyflow](https://bitquery.io/products/moneyflow) through cross-chain bridges and exchanges, making it easier to detect suspicious activities. Enhanced transparency through detailed mapping of transaction flows helps unravel obscured origins and destinations of funds. Analytical insights into transaction patterns provide a clearer understanding of how funds are transferred and laundered across different blockchains.

### 12. Tokens and Stablecoins

Tokens and stablecoins can be used to launder funds by disguising their origin through the use of digital assets that are often less scrutinized. This technique involves converting stolen or illicit funds into these assets, which can then be moved or exchanged with greater anonymity.

#### Incident Overview: [BitMart Hack](https://www.theverge.com/2022/1/9/22874734/bitmart-crypto-hack-victims-200-million)

- Date: December 4, 2021
- Amount Stolen: $200 million
- Assets Involved: Including SafeMoon

Case Summary: On December 4, 2021, BitMart was hacked, stealing $200 million in tokens, including SafeMoon, via a compromised hot wallet key. The stolen assets were laundered using tokens and stablecoins, making them hard to trace. The breach caused significant losses for users and highlighted risks in storing tokens on exchanges.

Tracking Tokens and Stablecoins

Tracking and recovering funds that have been laundered through tokens and stablecoins presents unique challenges. These digital assets often move through less scrutinized channels, and their transactions can be more difficult to trace due to their widespread use and the nature of their underlying technology. Identifying the movement of these assets and linking them back to illicit activities requires sophisticated tools and comprehensive analysis.

To address these challenges, Bitquery’s Coinpath provides crucial insights by tracing complex transaction paths across different blockchains including the movement of tokens and stablecoins. This tool visualizes the flow of assets and helps unravel the connections between different transactions and addresses even when funds are dispersed across multiple digital assets and exchanges.

The Token Holder API provides in-depth information about token holders and their transactions. For example, the SafeMoon token, with its address on the Binance Smart Chain (BSC) at [0x42981d0bfbaf196529376ee702f2a9eb9092fcb5](https://explorer.bitquery.io/bsc_testnet/address/0x42981d0bfbaf196529376ee702f2a9eb9092fcb5), can be used to track transactions and holdings associated with this token. This API allows for tracking the flow of SafeMoon and other tokens involved in illicit activities, providing transparency and aiding in the recovery of stolen funds.

To illustrate how these can be applied, consider the SafeMoon token on the Binance Smart Chain with the address [0x42981d0bfbaf196529376ee702f2a9eb9092fcb5](https://explorer.bitquery.io/bsc_testnet/address/0x42981d0bfbaf196529376ee702f2a9eb9092fcb5). Using Token Holder API, you can:

- Monitor Token Transactions: Get a comprehensive view of transactions involving SafeMoon.
- Analyze Holder Details: Understand who holds the tokens and their transaction patterns.
- Track Inflows/Outflows: See how much SafeMoon is coming in and going out of specific addresses.
- Check Balance: View the current balance of the token in various wallets.

These capabilities provide a clearer picture of the movement of illicitly obtained assets, helping to identify and recover stolen funds. For more detailed insights, explore the data on tracking platforms that offer these advanced features.

### 13. Use of Exchanges in High-Risk Jurisdictions

Exchanges based in jurisdictions with lax regulatory frameworks are often used to facilitate illicit activities, including money laundering and ransomware payments. These exchanges exploit weak regulatory oversight to conduct and conceal illegal transactions.

#### Incident Overview: [BTC-e Exchange](https://therecord.media/btce-cryptocurrency-exchange-alexander-vinnik-money-laundering-guilty-plea)

- Date: Shut down in 2017
- Key Figure: Alexander Vinnik
- Amount Facilitated: Over $9 billion in transactions

Case Summary: BTC-e, run by Alexander Vinnik from 2011 to 2017, laundered over $9 billion and facilitated ransomware payments. The unregistered exchange lacked AML and KYC measures, attracting illicit activity. It was shut down in 2017, Vinnik was arrested and extradited, and he pleaded guilty to money laundering. The platform was linked to major hacks, including Mt. Gox.

Address Example for BTC-e Case

BTC-e Ethereum Wallet:

- Address: [0x91337A300e0361BDDb2e377DD4e88CCB7796663D](https://explorer.bitquery.io/ethereum/address/0x91337A300e0361BDDb2e377DD4e88CCB7796663D)

This address is associated with the BTC-e exchange, which facilitated over $9 billion in transactions and was involved in various illicit activities before being shut down in 2017.

Analysis Overview:

Using the provided address, we can analyze transaction data with the following statistics:

- Total Amount Sent: 8,091,160.88 ETH
- Total Amount Received: 8,091,210.24 ETH
- Number of Transactions Sent: 99,918
- Number of Transactions Received: 726,123
- Balance: 0.0002 ETH
- First Transaction Date: April 26, 2016
- Last Transaction Date: September 22, 2023

This data provides insights into the transaction history and balances of the address, showcasing the flow of funds and identifying patterns of activity.

To address the challenges of analyzing transactions involving high-risk exchanges like BTC-e, several tools can be invaluable.

### 14. Ransomware Payments

Ransomware attacks often use cryptocurrency to demand and receive payments, exploiting the anonymity of digital currencies. This method of payment helps attackers evade detection and facilitate their illicit gains.

#### Incident Overview: REvil Ransomware Attack

- Date: July 2021
- Amount Demanded: $70 million in Bitcoin

Case Summary: The REvil ransomware group targeted businesses worldwide, demanding $70 million in Bitcoin to restore encrypted files. Bitcoin’s pseudonymous nature helped the attackers hide their identities and transactions. The attack triggered an international law enforcement response aimed at tracking and recovering the ransom payments.

Challenges in Tracking Ransomware Payments

Ransomware attacks leverage the anonymity of cryptocurrencies to demand and receive payments, making it challenging to track and recover funds. The pseudonymous nature of Bitcoin, for example, complicates the identification of the attackers and their transactions, creating obstacles for law enforcement and investigators.

To tackle these challenges, advanced analytical tools can be highly effective. Coinpath enables the tracing of cryptocurrency transaction flows, helping to track ransomware payments across different addresses and exchanges. Sankey Diagrams and other visual tools assist in mapping out payment trails, identifying suspicious patterns, and understanding complex transaction flows.

Address and Transaction Monitoring features allow for continuous surveillance of specific addresses linked to ransomware activities. Additionally, the Auto Trace function in Moneyflow simplifies tracking by automatically following the trail of funds and uncovering connections. These capabilities collectively enhance the ability to analyze, track, and potentially recover ransomware payments.

### 15. Peer-to-Peer Platforms

Illicit activities can also occur on peer-to-peer (P2P) trading platforms, where individuals trade directly with each other rather than through centralized exchanges. These platforms can be exploited for fraud and scams, often involving deceptive promises and fraudulent schemes.

#### Incident Overview: [My Big Coin Scam](https://www.reuters.com/technology/my-big-coin-cryptocurrency-firm-founder-gets-8-years-prison-fraud-2023-01-31/)

- Date: 2018
- Amount Defrauded: $6 million
- Key Figure: Randall Crater

Case summary: My Big Coin, a fraudulent P2P platform, promised high returns from a non-existent cryptocurrency, defrauding investors of $6 million. Founder Randall Crater was convicted of wire fraud and sentenced to over eight years in prison, with nearly $7.7 million forfeited. His false claims of gold backing and major financial partnerships led to significant losses and set a regulatory precedent in the U.S.

Tracking the Fraud on Peer-to-peer Platforms

P2p platforms are susceptible to fraud due to their decentralized nature. These platforms often lack centralized oversight, making them ripe for deceptive schemes. Bitquery addresses these challenges effectively: Coinpath monitors transactions to uncover suspicious activities, Address Analysis reveals connections to fraudulent schemes, Fraud Detection identifies unusual transaction patterns, and Auto Trace continuously tracks transactions, aiding in the detection and investigation of P2P-related fraud.

### 16. Fake ICOs and Token Sales

Fraudulent Initial Coin Offerings (ICOs) and token sales are a significant threat in the cryptocurrency space. Scammers use these methods to deceive investors with promises of high returns or innovative technologies that don't exist.

#### Incident Overview: [Centra Tech ICO Scam](https://news.sophos.com/en-us/2020/06/18/crypto-founder-admits-25-million-ico-backed-by-celebrities-was-a-scam/)

- Date: 2017
- Amount Defrauded: $25 million
- Key Figures: Robert Farkas, Sohrab Sharma, Raymond Trapani
- Celebrity Endorsements: Floyd Mayweather, DJ Khaled

Case Summary: Centra Tech’s ICO falsely promised a multi-blockchain debit card and claimed partnerships with Visa and Mastercard, raising over $25 million before being exposed. Co-founder Robert Farkas pleaded guilty to securities and wire fraud, facing up to 87 months in prison.

Detecting Fraudulent ICOs and Token Sales

[Fraudulent ICOs and token sales](https://bitquery.io/blog/identify-duplicate-tokens-scam-contracts) exploit investors with false promises and celebrity endorsements. These challenges are through Bitquery’s [Moneyflow](https://bitquery.io/products/moneyflow). It tracks fund flows from investors to issuers, ensuring transparency in ICO fund use and token issuance; [Token Holder API](https://docs.bitquery.io/docs/examples/token-holders/token-holder-api/) provides detailed data on token distribution and wealth metrics; and Auto Trace follows funds from specific ICO addresses. Additionally, FATF-based filtering helps detect suspicious activities and potential money laundering, enhancing the ability to identify and investigate fraudulent schemes.

### 17. Money Mules or Fraudulent Documents at Legitimate Exchanges

Using money mules or fake documents to conduct transactions at legitimate exchanges is a tactic employed to launder money or evade regulatory scrutiny. This method involves leveraging trusted platforms to conceal the illicit nature of funds by using falsified identities or fraudulent documents.

#### Incident Overview: [WEX Exchange Money Mule Operation](https://coingeek.com/crypto-exchange-wex-loses-nz-domain-fake-registration-details/)

- Date: 2017–2018
- Exchange: WEX (formerly BTC-e)
- Key Issues: Fake registration details, use of money mules

Case Overview: WEX, which took over from BTC-e after its shutdown in 2017 due to a $4 billion fraud case, continued operating under problematic conditions. The exchange faced regulatory issues for using fake identities and documents, leading to the suspension of domains like wex.nz by the New Zealand Domain Name Commission.

This suspension caused significant losses for users who were redirected to mirror domains like wex.link. The DNC’s actions were part of a broader effort to enforce data validation and secure domain spaces, with victims advised to report issues to law enforcement and Netsafe.

### 18. Crypto-Enabled Trafficking and Smuggling

Using cryptocurrencies to facilitate trafficking and smuggling operations involves leveraging digital currencies to conduct illegal activities, taking advantage of their anonymity and global reach.

#### Incident Overview: [Silk Road Marketplace and James Zhong's Bitcoin Theft](https://www.justice.gov/usao-sdny/pr/us-attorney-announces-historic-336-billion-cryptocurrency-seizure-and-conviction)

Date: Silk Road (2011-2013); James Zhong's theft (September 2012); Zhong’s guilty plea (November 2022).

- Marketplace: Silk Road (dark web marketplace)
- Key Issues: Cryptocurrency theft, dark web operations

Case Summary: Silk Road, a dark web marketplace, was shut down in 2013, and its founder Ross Ulbricht was sentenced in 2015. James Zhong stole 50,000 Bitcoin from the platform in 2012, hiding the funds, which were worth over $3.36 billion when seized. The case highlighted both vulnerabilities in dark web markets and the effectiveness of advanced tracking.

Address Analysis

The Bitcoin address [1HQ3Go3ggs8pFnXuHVHRytPCq5fGG8Hbhx](https://explorer.bitquery.io/bitcoin/address/1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa), potentially related to the Silk Road case, recently exhibited significant activity. From September 6, 2024, to September 13, 2024, the address showed 955 outputs with a balance of 0.00757271 BTC. The latest inbound transfers included small, frequent transactions, with a total volume of 0.007 BTC over the period. This pattern of frequent small transactions and the relatively unchanged balance suggest careful management or movement of funds, indicative of ongoing monitoring or concealment efforts related to illicit activities.

### 19. Social Engineering Scams

Scammers use deceptive tactics to manipulate individuals into giving away their crypto assets or personal information through personal connections and fabricated investment opportunities.

#### Incident Overview: [$4 Million Gone in Seconds](https://bitquery.io/blog/4-million-gone-in-seconds)

- Date: August 7, 2024
- Amount Lost: $4 million USD
- Key Issues: Ponzi scheme, social engineering, fake investment opportunities

Case Summary: Victims were deceived on social media by individuals posing as trustworthy figures, who used small withdrawals to build trust before promoting a Ponzi scheme with promises of high returns. The scam employed buzzwords like "arbitrage" and "smart contracts" to manipulate victims into larger investments. Two major victims lost $4 million and USD 3 million, leading to significant financial losses and emotional distress.

In this specific case, the victims used Strike to convert fiat into Bitcoin.

Bybit Wallet: [1FeM5NFwxpsDegpxfvMw2u18WsEikcbk3C](https://explorer.bitquery.io/bitcoin/address/1FeM5NFwxpsDegpxfvMw2u18WsEikcbk3C)

- Binance Hot Wallets:

- [bc1qm34lsc65zpw79lxes69zkqmk6ee3ewf0j77s3h](http://bc1qm34lsc65zpw79lxes69zkqmk6ee3ewf0j77s3h)
- [15BoAx4mT1zaRHvDQQp26yigeRanvde3S7](https://explorer.bitquery.io/bitcoin/address/15BoAx4mT1zaRHvDQQp26yigeRanvde3S7)

The trace revealed that the funds were deposited into these known exchange wallets. Due to the centralized nature of these services, further investigation often involves liaising with the exchanges to determine the subsequent handling of these assets.

### 20. Individuals or Small Cells

Small groups or individuals engaging in crypto crimes can orchestrate large-scale frauds with sophisticated schemes and manipulative tactics.

#### Incident Overview: [OneCoin Fraud](https://www.lemonde.fr/en/les-decodeurs/article/2024/05/28/cryptoqueen-ruja-ignatova-mastermind-of-the-onecoin-scam-was-still-investing-in-dubai-while-under-indictment_6672858_8.html)

- Date: 2014–2017
- Amount Defrauded: Over $4 billion
- Key Figure: Ruja Ignatova

Case Summary: Ruja Ignatova, the "Cryptoqueen," launched OneCoin in 2014, claiming it as a revolutionary cryptocurrency and attracting many investors. However, OneCoin was exposed as a pyramid scheme, deceiving investors and defrauding millions of dollars. The scam caused over $4 billion in losses, and Ignatova fled after being charged with fraud and money laundering, disappearing while on the FBI's Most Wanted list.

## Conclusion

Understanding various crypto crime typologies is crucial as criminal tactics evolve with cryptocurrency technology. Awareness of these methods helps in implementing effective strategies to protect assets and prevent financial losses.

Advanced tools like Bitquery’s MoneyFlow are essential for tracking and tracing cryptocurrency transactions, offering precise detection of suspicious activities. These tools enhance your ability to safeguard investments and recover lost assets by providing detailed insights into transaction flows and potential fraud.

—

*Written by Aakash*
]]></description>
        </item>
        <item>
            <title><![CDATA[Inside Germany's Bitcoin Reserves: What is the Government Holding?]]></title>
            <link>https://bitquery.io/blog/inside-germany-bitcoin-reserves-government-holdings</link>
            <guid>https://bitquery.io/blog/inside-germany-bitcoin-reserves-government-holdings</guid>
            <pubDate>Mon, 09 Sep 2024 05:00:00 GMT</pubDate>
            <description><![CDATA[
**Quick Take**

- The German Government sold 49,858 BTC for $2.89B - an average price of $57,900 from assets seized from the Movie2K piracy case through a carefully executed sale between June 19, 2024, and July 12, 2024.
- The Bitcoin was sold through multiple exchanges, including Kraken, Coinbase, Cumberland DRW, Bitstamp, and Flowtraders.
- The sale was conducted in collaboration with the Saxon Central Office for the Custody and Utilisation of Virtual Currencies and Bankhaus Scheich Wertpapierspezialist AG.

## The Context: Seized Bitcoin from Movie2K

In a landmark legal enforcement action, German authorities seized nearly 50,000 BTC from the operators of the infamous movie piracy website, Movie2K. The platform, which was notorious for distributing copyrighted films illegally, was shut down by German police ([BKA](https://www.bka.de/EN/Home/home_node.html)) ([bc1qq0l4jgg9rcm3puhhfwaz4c9t8hdee8hfz6738z](https://explorer.bitquery.io/bitcoin/address/bc1qq0l4jgg9rcm3puhhfwaz4c9t8hdee8hfz6738z)), and the digital assets associated with it were confiscated as part of the crackdown.

Under German law, seized assets, including cryptocurrencies, must be liquidated rather than held indefinitely. This approach contrasts with that of other jurisdictions, where seized digital assets might be retained for ongoing investigations or potential future use. Given the volatile nature of Bitcoin according to the German authorities, the decision to proceed with an "emergency sale" under Section 111p of the German Code of Criminal Procedure was made to mitigate the risk of a significant loss of value.

### Historical Bitcoin Seizures

The German government’s Bitcoin liquidation is the latest in a series of high-profile cryptocurrency seizures by law enforcement, marking a significant chapter in the evolving management of digital assets. These events have established important precedents for how such assets are handled and sold, offering valuable lessons for future cases.

One of the earliest and most notable [Bitcoin seizures occurred in 2013](https://bitquery.io/blog/bitcoin-seized-us-government), when the U.S. government shut down Silk Road, a notorious dark web marketplace, seizing approximately 144,000 BTC from its operator, Ross Ulbricht. The U.S. Marshals Service later auctioned off these assets between 2014 and 2015, netting around $48 million—an amount that, in hindsight, underscores the challenges of timing such sales in a volatile market.

Similarly, the 2021 Bitfinex hack saw U.S. authorities recover over 94,000 BTC, valued at roughly $3.6 billion at the time. This seizure highlighted the growing sophistication of law enforcement in tracing and recovering stolen digital assets, with the subsequent sale of these assets being carefully managed to avoid market disruption while retaining a portion for ongoing investigations.

[2021 Bitfinex Hack Source](https://www.chainalysis.com/blog/bitfinex-hack-plea-july-2023/)

In another significant case, the U.S. government in 2022 confiscated 50,000 BTC from James Zhong, who had exploited vulnerabilities in the Silk Road to steal the funds. These assets were strategically liquidated over several months, allowing the government to maximise returns while minimising the impact on the market.

These historical seizures, including the recent German case, provide a blueprint for future digital asset confiscations, emphasising the importance of strategic asset management and market awareness in ensuring successful outcomes. [James Zong 2022 Seizure](https://www.justice.gov/usao-sdny/pr/us-attorney-announces-historic-336-billion-cryptocurrency-seizure-and-conviction)

#### Exchanges Involved in the Liquidation

The German government distributed the Bitcoin across several well-known cryptocurrency exchanges for liquidation:

- Kraken: [3GrFPWMXfD3WZnqxCfbjuxss8wvBfkyoQ8](https://explorer.bitquery.io/bitcoin/address/3GrFPWMXfD3WZnqxCfbjuxss8wvBfkyoQ8)
- Coinbase: [3EHqwauPSQphJa3gYS8g8wfb3WvmazXNf3](https://explorer.bitquery.io/bitcoin/address/3EHqwauPSQphJa3gYS8g8wfb3WvmazXNf3)
- Cumberland DRW: [bc1qmfqnh2urnnefnetxjdw0qjqd7gkaa080myldpn](https://explorer.bitquery.io/bitcoin/address/bc1qmfqnh2urnnefnetxjdw0qjqd7gkaa080myldpn)
- Bitstamp: [3M6DD5tSe7MG7uKr24PyjrfJhtaxVkbZCa](https://explorer.bitquery.io/bitcoin/address/3M6DD5tSe7MG7uKr24PyjrfJhtaxVkbZCa)
- Flowtraders: [1FKAP8U9VABqdMgyN5s521ejEsQo8MA4uw](https://explorer.bitquery.io/bitcoin/address/1FKAP8U9VABqdMgyN5s521ejEsQo8MA4uw)

![](/blog/inside-germany-bitcoin-reserves-government-holdings/pie.png)
These exchanges played a pivotal role in managing and selling the seized BTC, which was strategically distributed across multiple platforms to avoid market disruptions and optimise returns.

![](/blog/inside-germany-bitcoin-reserves-government-holdings/table.png)

---

## Investigative Analysis Using Bitquery

To understand the complexity and strategic nature of these transactions, we leveraged [MoneyFlow](https://bitquery.io/products/moneyflow). These tools were instrumental in retrieving detailed on-chain data that mapped out the intricate web of transactions involved in the German government’s Bitcoin sale. By using Bitquery, we could visualise the flow of funds from the government-controlled wallets to various exchanges, revealing the timing, volume, and potential strategies behind each transfer.

![](/blog/inside-germany-bitcoin-reserves-government-holdings/gov.png)

The Money Flow tool was particularly valuable in this investigation, providing a clear picture of how Bitcoin moved between different wallets and exchanges. For example, the flow to Kraken, Coinbase, and Bitstamp demonstrated a staggered sale approach, avoiding sudden market impacts by strategically spreading out sales over several days. This staggered strategy suggests that the government aimed to prevent significant price drops while maximizing returns.

The data associated with this liquidation provides a unique window into the meticulous planning and execution of the asset sale. Below is a breakdown of the key transactions, wallet movements, and potential strategies employed.

The majority of the Bitcoin, a substantial 13,334 BTC valued at $772 million, was managed by Flow Traders. Kraken and Coinbase each processed significant portions as well, with 6,708 BTC ($393 million) and 5,900 BTC ($347 million) respectively, spread across several days to optimise the sale process.

Bitstamp also handled a sizable amount of 5,800 BTC worth $339 million, while Cumberland DRW managed 1,777 BTC valued at $103 million. The varying dates of these transactions suggest a deliberate approach to mitigate market volatility and maximize the return on these assets.

All these can be easily visualized and analysed using the bitquery explorer easily [here](https://explorer.bitquery.io/bitcoin/address/bc1qq0l4jgg9rcm3puhhfwaz4c9t8hdee8hfz6738z/graph).

![](/blog/inside-germany-bitcoin-reserves-government-holdings/explorer_moneyflow.png)

Source: Money Flow Movement (bc1qq0l4jgg9rcm3puhhfwaz4c9t8hdee8hfz6738z) using Bitquery Explorer [Link](https://explorer.bitquery.io/bitcoin/address/bc1qq0l4jgg9rcm3puhhfwaz4c9t8hdee8hfz6738z/graph)

[BTC Inflow Query](https://ide.bitquery.io/BTC-inflow-German-Police)

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeh4LL5N4Bk9aYjulCQqjoT113q_txt3iqJcgFxke7V7D1dVrRm-Nly3Kn4f37aOlr9fo0P1vD2ihIUCE9cI0Z2AFd4wdLY34RmzWW9m7WZrq0Tf86A_aiADOsJ9NmQaeEpaEn5ErGbJV8q2Wm298qY0M0?key=mF25kvFLRUvUWJFYbW1MXQ)The query above can be used to fetch all the inflow transactions for the German govt. BTC address

[BTC Outflow Query](https://ide.bitquery.io/BTC-Outflows-German-Police)

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeGx-3TuvUeWW1bBfxemY4gl0WZUzurvaOne8OkcWwi5hOo59OsLnp4kQ5fnTD9FYNvms8a9OjI8Mq0zyMfE_2OHIt-ipyJ3ysRHnaUIZCqBrl3ATK0EyaHCjE5edK92kRMv7JybV-Pzvj7dHUd5vZ-nBsm?key=mF25kvFLRUvUWJFYbW1MXQ)

The query shown above can be used to fetch all the outflow transactions for the german govt. BTC address

### Detailed Transaction Dates and Volumes

#### Kraken Transactions

- Kraken: 3GrFPWMXfD3WZnqxCfbjuxss8wvBfkyoQ8 [Link](https://explorer.bitquery.io/bitcoin/address/3GrFPWMXfD3WZnqxCfbjuxss8wvBfkyoQ8)

![](/blog/inside-germany-bitcoin-reserves-government-holdings/kraken.png)

Source: Money Flow Movement (3GrFPWMXfD3WZnqxCfbjuxss8wvBfkyoQ8) using Bitquery Explorer [Link](https://explorer.bitquery.io/bitcoin/address/3GrFPWMXfD3WZnqxCfbjuxss8wvBfkyoQ8)

- July 12, 2024: 800 BTC ($46.17M)
- July 12, 2024: 400 BTC ($22.90M)
- July 11, 2024: 400 BTC ($22.88M)
- July 11, 2024: 200 BTC ($11.74M)
- July 11, 2024: 375 BTC ($21.77M)
- July 10, 2024: 375 BTC ($22.03M)
- July 10, 2024: 750 BTC ($44.06M)
- July 9, 2024: 400 BTC ($23.02M)
- July 9, 2024: 400 BTC ($22.91M)
- July 8, 2024: 900 BTC ($51.36M)
- July 8, 2024: 200 BTC ($11.46M)
- July 8, 2024: 150 BTC ($8.57M)
- July 4, 2024: 400 BTC ($23.24M)
- July 2, 2024: 32.74 BTC ($2.04M)
- July 1, 2024: 100 BTC ($6.32M)
- June 26, 2024: 125 BTC ($7.71M)
- June 25, 2024: 200 BTC ($12.17M)
- June 19, 2024: 500 BTC ($32.57M)

#### Coinbase Transactions

- Coinbase: 3EHqwauPSQphJa3gYS8g8wfb3WvmazXNf3 [Link](https://explorer.bitquery.io/bitcoin/address/3EHqwauPSQphJa3gYS8g8wfb3WvmazXNf3)

![](/blog/inside-germany-bitcoin-reserves-government-holdings/coinbase.png)

Source Money Flow Movement [3EHqwauPSQphJa3gYS8g8wfb3WvmazXNf3](https://explorer.bitquery.io/bitcoin/address/3EHqwauPSQphJa3gYS8g8wfb3WvmazXNf3)

- July 12, 2024: 400 BTC ($22.90M)
- July 11, 2024: 400 BTC ($22.88M)
- July 11, 2024: 300 BTC ($17.63M)
- July 11, 2024: 375 BTC ($21.77M)
- July 10, 2024: 375 BTC ($22.03M)
- July 10, 2024: 500 BTC ($29.38M)
- July 8, 2024: 900 BTC ($51.36M)
- July 8, 2024: 600 BTC ($34.38M)
- July 8, 2024: 300 BTC ($17.13M)
- July 8, 2024: 250 BTC ($13.95M)
- July 4, 2024: 400 BTC ($23.24M)
- July 2, 2024: 100 BTC ($6.24M)
- July 1, 2024: 100 BTC ($6.32M)
- June 25, 2024: 200 BTC ($12.17M)
- June 20, 2024: 200 BTC ($13.16M)
- June 19, 2024: 500 BTC ($32.57M)

#### Flowtraders Transactions

- Flowtraders: 1FKAP8U9VABqdMgyN5s521ejEsQo8MA4uw [Link](https://explorer.bitquery.io/bitcoin/address/1FKAP8U9VABqdMgyN5s521ejEsQo8MA4uw)

![](/blog/inside-germany-bitcoin-reserves-government-holdings/flowtrades.png)

Source Money Flow Movement (1FKAP8U9VABqdMgyN5s521ejEsQo8MA4uw) using Bitquery Explorer [Link](https://explorer.bitquery.io/bitcoin/address/1FKAP8U9VABqdMgyN5s521ejEsQo8MA4uw)

- July 12, 2024: 752.17 BTC ($43.74M)
- July 11, 2024: 2,000 BTC ($114.78M)
- July 10, 2024: 3,000 BTC ($176.26M)
- July 10, 2024: 1,000 BTC ($58.75M)
- July 10, 2024: 127.38 BTC ($7.48M)
- July 8, 2024: 3,500 BTC ($200.05M)
- July 8, 2024: 700 BTC ($40.11M)
- July 8, 2024: 1,000 BTC ($57.08M)
- July 5, 2024: 547.44 BTC ($30.09M)
- July 2, 2024: 361.88 BTC ($22.65M)
- June 26, 2024: 345.34 BTC ($21.23M)

#### Cumberland DRW Transactions

- Cumberland DRW: bc1qmfqnh2urnnefnetxjdw0qjqd7gkaa080myldpn [Link](https://explorer.bitquery.io/bitcoin/address/bc1qmfqnh2urnnefnetxjdw0qjqd7gkaa080myldpn)

![](/blog/inside-germany-bitcoin-reserves-government-holdings/Cumberland.png)

Source Money Flow Movement [bc1qmfqnh2urnnefnetxjdw0qjqd7gkaa080myldpn](https://explorer.bitquery.io/bitcoin/address/bc1qmfqnh2urnnefnetxjdw0qjqd7gkaa080myldpn)

- July 12, 2024: 748.25 BTC ($42.78M)
- July 11, 2024: 100 BTC ($5.85M)
- July 11, 2024: 151.98 BTC ($8.87M)
- July 10, 2024: 536.11 BTC ($31.50M)
- July 9, 2024: 106.96 BTC ($6.16M)
- July 8, 2024: 133.72 BTC ($7.63M)

#### Bitstamp Transactions

- Bitstamp: 3M6DD5tSe7MG7uKr24PyjrfJhtaxVkbZCa [Link](https://explorer.bitquery.io/bitcoin/address/3M6DD5tSe7MG7uKr24PyjrfJhtaxVkbZCa)

![](/blog/inside-germany-bitcoin-reserves-government-holdings/Bitstamp.png)

Source Money Flow Movement [3M6DD5tSe7MG7uKr24PyjrfJhtaxVkbZCa](https://explorer.bitquery.io/bitcoin/address/3M6DD5tSe7MG7uKr24PyjrfJhtaxVkbZCa)

- July 12, 2024: 400 BTC ($22.90M)
- July 11, 2024: 700 BTC ($40.05M)
- July 11, 2024: 500 BTC ($29.38M)
- July 11, 2024: 375 BTC ($21.77M)
- July 8, 2024: 1,400 BTC ($79.90M)
- July 8, 2024: 400 BTC ($22.92M)
- July 8, 2024: 300 BTC ($17.13M)
- July 8, 2024: 250 BTC ($13.95M)
- July 4, 2024: 500 BTC ($29.05M)
- July 2, 2024: 150 BTC ($9.36M)
- July 1, 2024: 200 BTC ($12.64M)

### Real-Life Event Correlation Analysis

The timing of the German government's Bitcoin liquidation appears to be influenced by several significant real-world events, suggesting that external factors played a crucial role in the process. During the liquidation period, the European Union was actively discussing new cryptocurrency regulations, which may have pressured the government to expedite the sale before any new laws complicated the process.

Concurrently, key developments in the Movie2K legal proceedings, particularly testimony from a key witness in late June 2024, likely added urgency to the liquidation to avoid potential depreciation of the assets if the case dragged on. Additionally, the Bitcoin market experienced notable volatility in early July 2024 where it dropped over 15% from $63k, driven by macroeconomic factors, with the government's transactions coinciding with temporary price spikes—indicating an opportunistic approach to maximise returns.

## Alternative Scenarios and Fund Transfer Strategies

While the data supports a straightforward liquidation process, alternative scenarios could explain the asset movements and highlight different strategies the government may have employed:

### 1. Staggered Liquidations Across Multiple Platforms

The distribution of BTC across multiple exchanges suggests a strategy to mitigate market impact. By staggering the sales and using various platforms, the government could reduce the risk of causing a sudden price drop, ensuring a more stable market environment.

### 2. Use of Private OTC Desks

OTC desks likely played a crucial role, particularly in the transactions with Coinbase and Cumberland DRW. These desks enable large transactions to occur without affecting public order books, suggesting that a significant portion of the BTC may have been sold privately to institutional buyers.

### 3. Obfuscation Through Layered Transactions

Layered transactions, where funds are transferred through intermediary wallets before reaching exchanges, could have been employed to obscure the origins of the assets. This approach would make it more difficult for external observers to track the flow of funds, adding a layer of security to the liquidation process.

### 4. Strategic Timing for Maximum Returns

The German government’s transactions appear to have been timed to coincide with favourable market conditions, suggesting a deliberate strategy to maximise returns. This approach highlights the importance of timing in managing large-scale asset liquidations in the volatile crypto market.

---

## Conclusion: Implications for Future Seizures

The German Government sold 49,858 BTC for $2.89B - an average price of $57,900.This will serve as a benchmark in the management and sale of large-scale digital assets from legal proceedings and seizures. The careful execution, strategic timing, and collaboration with key financial institutions reflect a sophisticated approach to handling such complex transactions. As governments worldwide continue to navigate the challenges of managing seized cryptocurrencies, the lessons learned from this case will likely inform future strategies.

The sale, carried out during a time of market volatility and regulatory uncertainty, highlights the intricate relationship between regulatory actions and market behaviour. While it may have caused some short-term price swings and changes in investor sentiment, in the long run, it’s likely to lead to a stronger and more resilient cryptocurrency market, better prepared to handle large transactions and adapt to changing regulations.

–
*The information provided in this material is published solely for educational and informational purposes. It does not constitute a legal, financial audit, accounting, or investment advice. The article's content is based on the author's own research and, understanding and reasoning. The mention of specific companies, tokens, currencies, groups, or individuals does not imply any endorsement, affiliation, or association with them and is not intended to accuse any person of any crime, violation, or misdemeanor. The reader is strongly advised to conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery shall not be liable for any losses or damages arising from the use of this material.*

--


_Written by Anish M_
]]></description>
        </item>
        <item>
            <title><![CDATA[Tokenized Real Estate: Transforming How We Invest in Property​]]></title>
            <link>https://bitquery.io/blog/tokenized-real-estate-transforming-property-investment</link>
            <guid>https://bitquery.io/blog/tokenized-real-estate-transforming-property-investment</guid>
            <pubDate>Thu, 29 Aug 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Real-World Assets (RWAs) represent tangible, physical assets like real estate, commodities, or precious metals that are brought onto blockchain platforms through a process known as tokenization. Tokenization is the act of converting ownership rights of an asset into a digital token that can be stored, transferred, and traded on a blockchain.

#### _RWA in real estate, what is it?_

In the context of real estate, tokenization allows investors to own a fraction of a property, rather than the entire asset. This method democratizes access to real estate investments, making it possible for smaller investors to participate in markets that were previously inaccessible due to high entry barriers. Through the use of blockchain technology, tokenized real estate provides a transparent and efficient platform for buying, selling, and managing property assets, while also offering the potential for enhanced liquidity compared to traditional real estate markets.

## Overview of Tokenized Real Estate Market

### Current Market Size and Growth Trends

- Market Valuation: The tokenized real estate market is still in its nascent stage but has shown promising growth, with the global market valuation estimated to reach several billion USD in the coming years.

- Growth Rate: The sector will experience a compound [annual growth rate (CAGR) of approximately 75% in the coming years](https://www.mckinsey.com/industries/financial-services/our-insights/from-ripples-to-waves-the-transformational-power-of-tokenizing-assets), driven by increased interest from institutional investors and the rise of blockchain technology.

- Adoption: Major cities and financial hubs like New York, London, and Dubai are becoming hotspots for tokenized real estate projects, reflecting the global spread and adoption of this innovative approach.

- Market Drivers: Key factors contributing to the market’s growth include the democratization of investment opportunities, enhanced liquidity through fractional ownership, and the use of blockchain for increased transparency and security in transactions.

#### Key Players and Platforms

[Blocksquare](https://explorer.bitquery.io/ethereum/token/0x509a38b7a1cc0dcd83aa9d06214663d9ec7c7f4a) : Blocksquare is a pioneering platform in the realm of real estate tokenization, particularly relevant for the Rwandan market as it seeks to democratize property investment. By leveraging blockchain technology, Blocksquare allows for fractional ownership of real estate assets, making it accessible to a broader audience. This approach not only lowers the barriers to entry for individual investors but also enhances liquidity and transparency in real estate transactions.

[Yield24](https://explorer.bitquery.io/bsc/token/0xe2c72cef40aa92eb5d87cdb38df84d35dc80b1c9): Yield24 operates on EVM-compatible chains and offers restaking to optimize assets such as BNB, ETH, and BTC. It functions on both L1 and L2, enabling users to stake assets directly or through liquid staking tokens. The protocol enhances cryptoeconomic security and integrates with various applications, including real-world assets and lending platforms, providing additional reward opportunities.

[CitaDAO](https://explorer.bitquery.io/ethereum/token/0x3541A5C1b04AdABA0B83F161747815cd7B1516bC): CitaDAO is a decentralized finance (DeFi) platform that tokenizes real estate assets, allowing investors to gain exposure to and trade fractionalized ownership of properties on the blockchain. Founded in 2021 and based in Cardiff, Wales, CitaDAO aims to democratize access to high-value real estate investments by breaking down properties into smaller, more affordable tokens.

[Parcl](https://explorer.bitquery.io/bsc/token/0x8db24fed8461cd656089ea3587bc340884fabad1/smart_contract) : Parcl is a decentralized trading platform that allows users to speculate on real estate markets by trading perpetual futures based on real estate price indexes. It operates without a central authority, meaning that accounts are non-custodial and trades are executed autonomously.

These players are at the forefront of the tokenized real estate market, each bringing unique offerings that contribute to the sector's expansion and maturation.

### Analysis of Major Real Estate RWA Tokens

![](/blog/tokenized-real-estate-transforming-property-investment/table.png)

To provide a deeper analysis of these tokens and their on-chain activity, we can use Bitquery. By querying [Bitquery’s blockchain data](http://explorer.bitquery.io/ethereum), we can gather insights into transaction volumes, investor demographics, token distribution, and market trends for each of these platforms. This data-driven approach will help us understand how these tokens are performing in the real estate market and their impact on the broader RWA ecosystem.

### A. Blockchain Platforms Used

The foundation of real estate tokenization lies in the choice of blockchain platforms, which play a critical role in determining the efficiency, security, and scalability of the [tokenized assets.](https://bitquery.io/blog/understanding-tokenized-us-bonds) Commonly used platforms in real estate tokenization include:

- Ethereum: As one of the most widely used blockchain platforms, Ethereum offers a robust environment for deploying smart contracts and managing tokens. It supports the ERC-20 and ERC-721 token standards, which are essential for creating fungible and non-fungible tokens, respectively. Ethereum's large developer community and extensive documentation make it a popular choice, despite its relatively high transaction fees and scalability issues.

- Polygon (formerly Matic): Polygon is a Layer 2 scaling solution for Ethereum that offers faster transactions and lower fees. It maintains compatibility with Ethereum’s ecosystem, making it an attractive option for real estate tokenization projects that require scalability and cost-efficiency without sacrificing security.

- Solana: Known for its high throughput and low transaction costs, [Solana](https://docs.bitquery.io/docs/category/solana/) is gaining traction in the tokenization space. Its ability to handle thousands of transactions per second makes it suitable for platforms anticipating high transaction volumes, such as those dealing with fractional ownership or frequent trading of real estate tokens.

- Binance Smart Chain (BSC): BSC offers lower transaction fees and faster block times compared to Ethereum. It supports Ethereum-compatible smart contracts, making it a viable alternative for projects seeking to minimize costs while leveraging the security and features of a major blockchain.

#### B. Smart Contract Implementation

Smart contracts are self-executing contracts with the terms of the agreement directly written into code. In the context of real estate tokenization, they automate the execution of transactions, ownership transfers, and other contractual obligations, ensuring that all parties adhere to the terms without needing intermediaries.

1.  Calls and Events Data

- Function Calls: Smart contracts in real estate tokenization often include function calls that handle tasks such as transferring ownership, distributing dividends, and voting on governance decisions. By analyzing these function calls, we can understand the most common operations performed on the platform and identify key trends in how the platform is being used.

- Event Data: Smart contracts generate events that log specific actions or changes within the blockchain. For example, an event might be emitted when a property is successfully tokenized or when a dividend is paid out to token holders. Monitoring these events provides valuable insights into the platform’s operational efficiency and investor activity.

3.  Security Measures

- Smart Contract Audits: Regular audits are crucial for identifying vulnerabilities in smart contracts before they are deployed. These audits typically involve a thorough review of the code by security experts who assess the contract for potential flaws or exploits.

- Multi-Signature Wallets: To enhance security, many platforms use multi-signature wallets, which require multiple private keys to authorize a transaction. This reduces the risk of unauthorized access or fraudulent transactions, ensuring that control over the assets remains secure.

- Immutable Contracts: Many smart contracts are immutable once deployed, meaning they cannot be altered or tampered with. This immutability ensures that tokenized asset rules are enforced consistently, reducing the risk of malicious changes.

- Oracle Integration: Oracles are used to bring off-chain data (such as property valuations or market prices) onto the blockchain, which is essential for accurately executing certain smart contract functions. Secure Oracle integration is vital to ensure that the data fed into smart contracts is reliable and tamper-proof.

By focusing on these technical aspects, platforms can ensure that their tokenized real estate offerings are not only efficient and user-friendly but also secure and resilient against potential threats. Understanding the blockchain platforms and smart contract implementations used in real estate tokenization provides a solid foundation for assessing the technical integrity and long-term viability of these projects.

### Importance of Fractional Ownership in Real Estate RWAs

Fractional ownership, enabled by real-world asset (RWA) tokenization, is revolutionizing the real estate investment landscape. It allows investors to own a fraction of a property rather than the entire asset, bringing significant benefits to both investors and the broader market.

#### A. Democratization of Real Estate Investment

- Accessibility: Fractional ownership democratizes access to real estate investment, making it possible for individuals with limited capital to participate in markets that were previously exclusive to wealthy investors. By lowering the minimum investment threshold, more people can invest in high-value properties, gaining exposure to real estate without needing substantial funds.

- Global Participation: Through tokenization, investors from around the world can access real estate markets across different countries. This global participation is breaking down geographical barriers, allowing investors to diversify their portfolios internationally without the complexities of traditional real estate transactions.

- Empowerment of Smaller Investors: Fractional ownership empowers smaller investors by giving them the opportunity to invest in lucrative real estate markets that would otherwise be inaccessible. This democratization leads to a more inclusive investment environment, where the benefits of real estate ownership are more evenly distributed.

#### B. Increased Liquidity and Lower Barriers to Entry

- Easy Liquidity: Traditional real estate investments are typically illiquid, meaning that selling a property can be a lengthy and complex process. Tokenization, however, introduces liquidity to the market by allowing fractional shares of properties to be traded on secondary markets. Investors can buy and sell tokens with relative ease, similar to trading stocks, which significantly enhances liquidity.

- Lower Barriers to Entry: By enabling fractional ownership, tokenized real estate lowers the barriers to entry for investors. Instead of needing to purchase an entire property, which requires substantial capital, investors can buy smaller shares that align with their financial capabilities. This opens up real estate investment to a broader audience, including those who may not have been able to afford direct property ownership.

- Reduced Transaction Costs:. By cutting out intermediaries and streamlining processes, tokenized real estate can offer a more cost-effective way for investors to enter the market.

#### C. Portfolio Diversification Opportunities

- Diversified Investment Options: Fractional ownership allows investors to spread their capital across multiple properties, rather than concentrating it in a single asset. This diversification reduces risk, as the performance of a portfolio is less dependent on the success or failure of a single property. Investors can allocate funds across various property types, locations, and market segments, creating a more balanced and resilient investment portfolio.

- Risk Mitigation: Diversifying into multiple real estate assets helps mitigate risks associated with market volatility and economic downturns. For example, if one property underperforms due to local market conditions, other properties in the portfolio may continue to perform well, balancing out potential losses.

- Customizable Portfolios: Tokenized real estate allows investors to build customized portfolios that align with their investment goals and risk tolerance. Whether focusing on residential, commercial, or industrial properties or selecting properties based on location or market segment, investors have the flexibility to tailor their portfolios to suit their specific preferences.

Fractional ownership through real estate RWAs not only broadens access to real estate investment but also provides increased liquidity, lower entry barriers, and greater diversification opportunities. These benefits are reshaping the real estate market, making it more dynamic, accessible, and attractive to a wider range of investors.

## Regulatory Landscape

#### A. Current Regulations and Jurisdictional Differences

- Varying Regulatory Environments: The regulatory framework for real estate tokenization differs significantly across jurisdictions. In some regions, regulators have embraced blockchain and tokenization, providing clear guidelines for compliance. For example, t[he United States, through the SEC, has established rules](https://bitquery.io/blog/understanding-tokenized-us-bonds) around token offerings that classify many real estate tokens as securities, subjecting them to stringent regulations. In contrast, other countries may have less developed or even ambiguous regulatory frameworks, creating challenges for companies operating across borders.

- Compliance Requirements: Real estate tokenization platforms must adhere to various compliance requirements, including [Know Your Customer (KYC) and Anti-Money Laundering (AML) regulations](https://bitquery.io/solutions/compliance). These requirements are designed to prevent fraud and ensure that all transactions are legal and transparent. However, they also add complexity and cost to the tokenization process, particularly when dealing with international investors.

- Securities Classification: One of the primary regulatory challenges is whether tokenized real estate assets are classified as securities. If they are deemed securities, they must comply with securities laws, which include registration requirements, restrictions on who can invest, and disclosure obligations. This classification can vary by jurisdiction, adding to the complexity of launching and managing real estate tokens.

#### B. Future Regulatory Outlook

- Evolving Frameworks: As the market for real estate tokenization grows, regulators are increasingly focusing on establishing clear guidelines to protect investors and ensure market stability. Future regulations may include standardized procedures for token issuance, trading, and custody, as well as enhanced investor protections.

- Global Harmonization: There is a growing call for harmonization of regulations across different jurisdictions to facilitate cross-border investments in tokenized real estate. This could involve international cooperation to create common standards for tokenization, which would simplify compliance and reduce barriers to entry for global investors.

- Innovation-Friendly Policies: Some jurisdictions are adopting innovation-friendly regulatory policies to attract blockchain and fintech companies. These policies include sandbox environments where companies can test new technologies under regulatory supervision, as well as fast-tracked licensing processes for compliant platforms.

### Market Challenges and Opportunities

#### A. Adoption Barriers and Scalability Issues

- Technological Complexity: One of the main barriers to adoption is the complexity of the technology involved in tokenization. Both issuers and investors may find the technical aspects of blockchain and smart contracts difficult to understand, which can hinder widespread adoption. Simplifying user interfaces and improving education around these technologies are critical to overcoming this barrier.

- Regulatory Uncertainty: As mentioned earlier, varying regulations across different regions create challenges for platforms looking to operate globally. The lack of a unified regulatory framework can deter potential investors who are uncertain about the legal implications of their investments.

- Scalability Concerns: As the tokenized real estate market grows, scalability becomes a significant issue. Blockchain platforms must be able to handle a large number of transactions quickly and efficiently to support a global market. Current scalability issues, such as high transaction fees and slow processing times on some blockchain networks, need to be addressed to ensure the market can expand.

#### B. Potential for Market Growth and Innovation

- Increasing Institutional Interest: As real estate tokenization proves its viability, institutional investors are becoming more interested in this market. The involvement of large financial institutions could provide the liquidity and legitimacy needed to drive widespread adoption.

- Innovation in Token Structures: There is significant potential for innovation in how real estate tokens are structured. For example, platforms could introduce tokens that represent different aspects of property ownership, such as rental income, appreciation, or voting rights. These innovative structures could attract a broader range of investors with different risk appetites and investment goals.

- Integration with DeFi: The integration of real estate tokens with decentralized finance (DeFi) platforms could open up new possibilities for leveraging real estate assets. For example, token holders could use their tokens as collateral for loans or participate in liquidity pools, creating additional value and utility for their investments.

- Expansion into New Markets: As regulatory frameworks become more supportive and technology improves, real estate tokenization could expand into new markets, including emerging economies. This expansion would provide new opportunities for investors and help to diversify the global real estate market.

The regulatory landscape and market challenges present both obstacles and opportunities for the future of real estate tokenization. By navigating these challenges and capitalizing on emerging opportunities, the market has the potential to grow significantly and transform the real estate investment landscape.

## Conclusion

Real estate tokenization is transforming the investment landscape by offering fractional ownership, increased liquidity, and broader access to property markets. Key players like Elevate, Propy, and RET are driving innovation, supported by blockchain platforms that ensure secure and transparent transactions.

Despite regulatory complexities across jurisdictions, the market is poised for growth. As regulations evolve and harmonize, the sector is likely to attract more institutional interest, paving the way for further innovation and expansion.

For investors, tokenization offers new opportunities to diversify portfolios and access global real estate markets with lower entry barriers. For the real estate industry, it represents a shift toward more efficient and accessible investment models. While challenges remain, the future of real estate tokenization is promising, with the potential to reshape how real estate investments are made and managed.

--
*Written by Harshil* 



*The information provided in this material is published solely for educational and informational purposes. It does not constitute a legal, financial audit, accounting, or investment advice. The article's content is based on the author's own research and, understanding and reasoning. The mention of specific companies, tokens, currencies, groups, or individuals does not imply any endorsement, affiliation, or association with them and is not intended to accuse any person of any crime, violation, or misdemeanor. The reader is strongly advised to conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery shall not be liable for any losses or damages arising from the use of this material.* ]]></description>
        </item>
        <item>
            <title><![CDATA[Crypto Travel Rule: From Anonymity to Accountability​]]></title>
            <link>https://bitquery.io/blog/crypto-travel-rule-from-anonymity-to-accountability</link>
            <guid>https://bitquery.io/blog/crypto-travel-rule-from-anonymity-to-accountability</guid>
            <pubDate>Fri, 23 Aug 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Cryptocurrency, no doubt, has revolutionized the way we think about money. It now offers a decentralized, borderless means of transferring value worldwide. With this innovation, however, comes changes, particularly in regulation and compliance. As crypto becomes more integrated into the global financial system, the need for rules, investigation, and enforcement mechanisms grows. This is where the ‘crypto travel rules’ come in.

As the crypto industry continues to grow, the travel rule has become a critical focus, balancing the need for regulatory oversight with the principle of privacy and decentralization that supports the world of digital assets.

Let’s check the impact of the FATF crypto travel rule on the cryptocurrency industry.

## What’s the FATF crypto rule

The [FATF crypto travel rule](https://www.fatf-gafi.org/en/publications/Fatfrecommendations/Targeted-update-virtual-assets-vasps.html) also known as ‘recommendation 16’ is a global initiative to mitigate money laundering, terrorist financing, and other illicit activities in the cryptocurrency industry. It’s a set of guidelines that target financial institutions involved in virtual asset transfer. The rule was implemented by FATF, a global financial watchdog created by the G7.

The rule suggests that Virtual Asset Service Providers (VASPs), (like centralized exchanges and wallets) must share specific user data if a transaction exceeds a certain threshold. Although the FATF travel rule has been implemented for traditional finance since July 1989, the rule was updated to include virtual assets and Virtual Assets Service Providers (VASPs) in July 2019.

According to the FATF crypto travel rules, VASPs are required to:

1.  Collect and share information about the originator (senders) and beneficiary (receivers) of a transaction above a certain amount ($3,000 in the US, and EUR1,000 in Europe). Information including name, wallet address, and if applicable, national identity number or physical address, should be collected and shared among transacting institutions.

![](/blog/crypto-travel-rule-from-anonymity-to-accountability/fatf.png)

Source:https://moneyflow.bitquery.io/

2.  Ensures compliance. VASPs are required to implement procedures to ensure compliance, verify customers' identity(KYC), and monitor transactions for suspicious activities.

3)  Report suspicious activities. VASPs are to report suspicious transactions to relevant authorities, which is not different from how financial institutions handle Suspicious Activity Reports (SARS).

## Why is the FATF Crypto Travel Rule Implemented?

The FATF crypto travel rule was implemented to address the growing concern that crypto could be used for illicit activities like money laundering and terrorist financing.

Unlike traditional financial assets, virtual assets have no limitation—they can be moved borderless with no resistance. This raised concerns for regulators that cryptocurrency's anonymity and borderless nature present a new challenge for traditional anti-money laundering (AML) and Counter-Terrorism Financing (CTF) efforts.

Let’s check some other reasons the FATF crypto travel rule was implemented.

###  Building Trust in the Crypto Industry

It serves as a regulatory framework for the Wild West of the crypto industry. These rules show how VASPs demonstrate their commitment to operating within the law. The rule can also help legitimize the industry and encourage broader adoption of digital assets.

The FATF crypto travel rule required VASPs to comply with the same AML/CTF standards as the traditional financial institutions with few exceptions. This rule helps reassure government agencies, financial institutions, and the general public that the crypto industry is not a haven for illicit activities. And this fosters a positive perception of the industry.

###  Protect Integrity of the Financial Institutions/Enhanced Global Regulatory Consistency

FATF is a coalition of seven politically and economically powerful countries (Japan, the US, Canada, France, Italy, Germany, and the UK). This coalition helps create a consistent regulatory framework for virtual assets across different jurisdictions.

As a result of this, the FATF crypto travel rule prevents regulatory arbitrage, where criminals exploit less regulated regions to conduct illicit activities. It safeguards the integrity of the global financial system and ensures crypto is transparent and traceable. By this, they can better monitor and enforce compliance. And overall, protect the integrity of the world's financial system.

###  Prevent Illicit activities

The crypto travel rules help remove anonymity by requiring VASPs to verify the identities of their customers (through KYC processes) and share this information with counterparty institutions when transactions occur.

With this, criminals cannot hide behind pseudonymous addresses. It also makes it difficult to conduct illicit activities. This rule creates a robust data trail, which law enforcement agencies can use to investigate and prosecute financial crimes. This can help authorities identify the individuals involved in illicit transactions, uncover the networks they operate within, and take appropriate legal actions.

![](/blog/crypto-travel-rule-from-anonymity-to-accountability/pexels.jpg)

###  Aligning to Traditional Financial Regulations

Similar rules to the crypto travel rules already existed for wire transfers. It requires banks and financial institutions to collect and share information about the sender and receiver of funds. The FATF crypto travel rules extended these requirements to virtual assets to ensure crypto and other virtual assets are subjected to the same level of oversight and regulations as fiat currencies and Traditional Finance.

The travel rules provide interoperability between the regulatory framework governing both sectors (crypto and traditional finance). This ensures that the processes and standards used by VASPs are compatible with those of conventional financial institutions. This enables traditional financial players to engage with the crypto industry while maintaining regulatory compliance.

## How is The FATF Affecting Cryptocurrency Users?

The FATF crypto rule, no doubt, has a significant implication for crypto users. What are these implications? Let’s check out how the rule affects the crypto community.

- First, it reduces anonymity: Under [recommendation 16](https://www.fatf-gafi.org/en/publications/Fatfrecommendations/R16-public-consultation-Feb24.html), VASPs are to collect and share the personal information of the sender and receiver of transactions exceeding a certain threshold. For users who want to be anonymous or value the pseudonymous nature of cryptocurrency, the increased transparency may be seen as a drawback.

* Second, the crypto space user experience has changed because of the rules. User's interactions with exchanges/wallets are now formalized and regulated, similar to regular/traditional financial institutions. VASPs now have more extensive documentation rather than the direct approach crypto is known for.

- FATF crypto rule has also led to longer processing time and a shift away from the decentralized ethos that attracted many users to cryptocurrency. VASPs needing to collect, verify, and share transaction information can lead to potential delays in the processing of transactions, especially cross-border transfers.

* The increased compliance burden on VASPs may also result in higher operational costs, and this is passed to users in the form of higher fees for transactions or services.

- On a positive note, the FATF crypto travel rule has enhanced the security and legitimacy of the crypto space. By ensuring [VASPs comply with AML/CTF regulations](https://bitquery.io/blog/fatf-indicators-bitquery-detect-money-laundering), the rule helps to protect users from fraud, scams, and illicit activities. For users, increasing oversight can make them feel safer when engaging with digital assets and this encourages broader adoption.

## How Does FATF Travel Rule Enhance Crypto Fund Tracing

The FATF crypto travel rule mandates VASPs to collect and share information about parties involved in crypto transactions. This has enhanced transparency through proper documentation of transactions and their movements. And as a result of this, it’s easier to trace the flow of funds within the ecosystem. It has also provided a clearer audit trail for transactions, which is crucial for tracing the movement of funds across different platforms and jurisdictions.

With proper documentation, VASPs can easily monitor and analyze transaction patterns, identify high-risk behaviors, and flag potential illicit activities. The information collected provided the necessary context for this analysis, and this makes it easier to trace the flow of funds that can be linked to money launderers, terrorist financiers, and other illicit actors.

Apart from collecting and sharing data, and monitoring transactions, VASPs also need to report [suspicious transactions to the necessary enforcement agency](https://bitquery.io/blog/identifying-tracking-valuing-usdt-litigation). So, FATF crypto travel rules also support law enforcement investigations by providing information to law enforcement to track down lawbreakers and bring them to book.

With the information provided, law agencies can trace the origin and destination of funds, identify entities behind addresses, untangle complex criminal cluster groups, and predict the actions of fraudsters based on their past behaviors. A detailed transaction history provided by VASPs, helps law enforcement agencies to piece together the movement of funds and build cases against those involved in illegal activities.

## MoneyFlow as a Travel Rule Compliance Solution

With the [Moneyflow tool](https://bitquery.io/products/moneyflow), law enforcement agencies and VASPs can comply with the FATF travel rules. The Moneyflow tool makes it easier to follow the movement of funds, record the source and destination of funds, and monitor the compliance of the wallet. In a recent investigation, it was used to [trace \$4 million defrauded and sent to exchanges](https://bitquery.io/blog/4-million-gone-in-seconds).

The Moneyflow tool makes it easier to track crypto addresses, transactions, entities, and VASPs on more than 40 blockchains. With the Moneyflow tool, you can dive deeper into the world of DeFi, DEXes, bridges, and coin mixers. You can also trace tinted-commingled funds across different chains.

- Comprehensive Counterparty Information: the Moneyflow tool provides access to visualizations that are extensively labeled. This gives you access to information about wallet owners and other necessary data to know who you’re dealing with.

* Case Management Reporting: The Bitquery Moneyflow tool doesn’t only let you access the compliance tool. It allows you to streamline your investigation, making it easier to organize your findings and collaborate with other VASPs.

- Intuitive Visualization to Easily Trace Non-compliant Entities: The Moneyflow tool not only provides transition graphs but also provides highly intuitive and detailed visualization to monitor wallets and the movement of funds across the blockchain.

* Address Labeling and Entity Resolution: The Moneyflow tool doesn’t only visualize the movement of funds but helps in labeling addresses and linking multiple wallet addresses referencing the same entity. The tool uses advanced algorithms to analyze transaction patterns and user behavior in group wallets under one entity. This feature helps to identify tornado cash, mixers, previously flagged wallets, and so on.

- Transaction Filtering Based on Amounts: another feature of the moneyflow tool is the ability to filter transactions based on the amounts transferred. A common technique used by money launderers to avoid triggering anti-money laundering (alert) is structuring their funds below the reporting threshold. With the ability to filter transactions based on the amount, Moneyflow tool makes it easier for VASPs to enforce the FATF crypto travel rule.

* Auto-tracing From/To an Address: manually tracking funds on the blockchain can be intensive work because of the anonymity and the decentralized nature of the blockchain. With the auto-tracing feature of the Bitquery moneyflow tool, you can easily follow the movement of funds between several addresses without losing the direction of flow.

![](/blog/crypto-travel-rule-from-anonymity-to-accountability/axie.png)

The Sankey visualization above provides detailed information about the movement of funds from and to the wallet being monitored. The visualization above is for the wallet ([0x098b716b8aaf21512996dc57eb0615e2383e2f96](https://explorer.bitquery.io/ethereum/address/0x098b716b8aaf21512996dc57eb0615e2383e2f96)) used by Axie infinity’s Ronin network exploiter and it showed the movement of funds from different victims to the wallet

From the visualization above, we saw that funds from Axie Infinity are the largest funds received by the wallet ($541 million). While Axier Infinity funds are the largest funds received, we can easily see that funds were stolen and sent from other wallets and smart contracts.

Moreover, the amounts sent out of the wallet are on the right of the origin (0x098b716b8aaf21512996dc57eb0615e2383e2f96). We also saw that the \$572 million was sent out at once and other smaller funds were also sent out.

The visualization above makes it easier to see the movement of funds across several wallets. We are able to collect information about the sender and receiver of the funds, check if the funds comply with the FATF crypto travel rules (in this case which isn’t), and can easily flag transactions that go against the rule. Bitquery’s Moneyflow tool offers you a birds-eye view of several wallets

In conclusion, while FATF Recommendation 16, or the crypto travel rule, may be against the ethos of cryptocurrency—such as decentralization and privacy—it has played a crucial role in building trust in the industry and therefore onboarding millions to the industry. With these regulations, there is increased transparency and heightened security, and overall, the crypto world has been aligned to traditional financial systems.

Despite the challenges and changes it introduces, the crypto travel rule has proven to be a vital step in the maturation of the cryptocurrency industry.


--
*Written by Emmanuel*]]></description>
        </item>
        <item>
            <title><![CDATA[$4 Million Gone in Seconds]]></title>
            <link>https://bitquery.io/blog/4-million-gone-in-seconds</link>
            <guid>https://bitquery.io/blog/4-million-gone-in-seconds</guid>
            <pubDate>Thu, 08 Aug 2024 05:00:00 GMT</pubDate>
            <description><![CDATA[
Imagine an attractive person reaching out to you on social media, building a friendly connection, and then sharing a hot tip about a fantastic investment opportunity. They boast about generating impressive passive income and encourage you to invest a small amount. At first, everything seems legitimate—you can even withdraw some “profits.” But in reality, this is often just a [Ponzi scheme](https://bitquery.io/blog/recover-stolen-bitcoin-guide), where new victims’ deposits fund early withdrawals.

This is what happened with Adam (name changed for anonymity) lost $4 million USD due to an investment scheme promising substantial returns. The scam involved another person who lost $3 million USD.

Over time, these scammers persuade victims to invest more money, promising unrealistic returns of over 1% daily through buzzwords like arbitrage, AMM fees, and smart contracts. Unfortunately, many people end up investing more than they can afford, chasing these false promises of easy money.

### Where do we start looking?

The first step in recovery is to identify Adam’s wallet address and the transaction details that led to the fraudulent platform. In these cases, we analyze their transaction statements to trace the corresponding blockchain activities.

For this particular case, the victims used Strike to convert fiat into BTC. We used [Moneyflow](https://bitquery.io/products/moneyflow) to trace the flow of funds from BTC to exchanges. Our investigation involved analyzing Strike statements to pinpoint the wallet addresses.

![](/blog/4-million-gone-in-seconds/bc1qm35ksjve0t8yn0pggs56s44nglu47z0rxfvwly.png)

- Once we obtained the origin wallet address, we investigated the flow of funds from these wallets to other entities. In this case, we traced up to 7 levels of fund transfers which can be seen starting on the left side of the graph.

- Thanks to automatic clustering and tracing on Moneyflow, we can easily observe subsequent transfers of these assets between wallets.

- When the funds are transferred to a known entity, such as an exchange or any other Virtual Asset Service Provider (VASP), Moneyflow automatically stops tracing, indicating where the funds were deposited.

### Where did the trace lead us?

In this case, we traced deposits to Bybit wallet [1FeM5NFwxpsDegpxfvMw2u18WsEikcbk3C](https://explorer.bitquery.io/bitcoin/address/1FeM5NFwxpsDegpxfvMw2u18WsEikcbk3C) and multiple Binance Hot Wallets including [bc1qm34lsc65zpw79lxes69zkqmk6ee3ewf0j77s3h](https://explorer.bitquery.io/bitcoin/address/bc1qm34lsc65zpw79lxes69zkqmk6ee3ewf0j77s3h) and [15BoAx4mT1zaRHvDQQp26yigeRanvde3S7](https://explorer.bitquery.io/bitcoin/address/15BoAx4mT1zaRHvDQQp26yigeRanvde3S7)

Due to the centralized nature of these services, we are still determining what happens next with these assets; they are usually traded on the exchange into other assets, such as fiat currencies, and transferred to bank accounts. With the involvement of law authorities, these service providers can provide additional information, which greatly aids further investigation.

### The Legality of the Process

We identified which Virtual Asset Service Provider (VASP) received the stolen funds. We then report the incident to law enforcement or lawyers in the victim’s home country. While we strive to communicate with exchanges, legal constraints often limit our ability to recover assets. As forensic experts, we play a crucial role in explaining the transaction flow to support the legal process.

The further steps are outside our jurisdiction, and we must rely on law enforcement to submit formal requests for additional information to the involved entities.

We also attempt to communicate with exchanges, but we are often limited to the information we receive and the legal avenues available for asset recovery. Depending on the individual case, there is a legal process that we try to support in our role as forensic experts, explaining the transaction flow of the proceeds.

### Latest Updates

Since launching our asset recovery service, most of our cases are still under investigation by law enforcement. Although we continue to provide support and follow-ups, the legal process tends to move slower than in the fast-paced world of Web3 and crypto.

### How Bitquery Got Involved

Bitquery has built a strong reputation in the field of asset recovery, thanks to our effective online presence and word-of-mouth referrals. Victims often find us through our website or are referred by satisfied customers, lawyers, and law enforcement agencies. People submit their cases through our website, and we receive numerous referrals from existing customers, lawyers, and law enforcement.

### What Can You Do if You’ve Been Scammed?

1.  Document Everything: At the first sign of suspicious activity, save copies of all conversations, fund transfers, and blockchain transaction details.

2.  Report to Authorities: Inform your local law enforcement agency about the incident.

3.  Seek Expert Assistance: Contact legal and forensic experts like Bitquery for a consultation.

4.  Preliminary Analysis: We can help determine if funds have been transferred to exchanges or other VASPs that might hold KYC data of the recipient accounts.

5.  Monitor Fund Movements: Set up alerts for any activity involving your stolen funds. If the funds are moved to an exchange, act quickly to provide evidence and request a freeze on further transactions.

6.  Backup Your Data: Keep backups of all your evidence, as scammers often delete chat histories and other crucial information.

By taking these steps, you can enhance your chances of recovering lost assets and holding scammers accountable. Quick action, thorough documentation, and expert support are key to navigating the asset recovery process and regaining your peace of mind.

---

_The information provided in this material is published solely for educational and informational purposes. It does not constitute a legal, financial audit, accounting, or investment advice. The article's content is based on the author's own research and, understanding and reasoning. The mention of specific companies, tokens, currencies, groups, or individuals does not imply any endorsement, affiliation, or association with them and is not intended to accuse any person of any crime, violation, or misdemeanor. The reader is strongly advised to conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery shall not be liable for any losses or damages arising from the use of this material._
]]></description>
        </item>
        <item>
            <title><![CDATA[Understanding Gas Consumption: Analyzing Highly Paid Operations on Ethereum and Other Blockchains]]></title>
            <link>https://bitquery.io/blog/gas-consumption-analysis-ethereum-blockchains</link>
            <guid>https://bitquery.io/blog/gas-consumption-analysis-ethereum-blockchains</guid>
            <pubDate>Fri, 02 Aug 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Gas fees are fees paid to successfully conduct a transaction on a blockchain platform. They are important parts of these blockchain networks and serve as compensation for validators who use their resources to process and validate transactions.

This article explores the basics of gas fees, examines the most costly operations on Ethereum, and provides a comparative analysis of gas consumption on other prominent blockchains such as Binance Smart Chain (BSC) and Base.

Understanding the complexities of gas consumption is important for developers who aim to optimize their smart contracts and for users who want to minimize transaction costs.

By the end of this article, readers will understand gas consumption across different blockchain networks and the strategies to manage it effectively.

## Why People Pay High Gas Fees

Gas fees are the costs paid to perform transactions or execute smart contracts on the blockchain. They serve two main purposes:

- Incentives for Miners/Validators: Miners and validators receive gas fees as incentives for validating and processing transactions, thereby maintaining the network's security and functionality.

- Preventing Spam: By charging a fee for each transaction, the network prevents malicious actors from overwhelming it with excessive or unnecessary transactions.

## How Gas Fees Work

Gas fees can be broken down into the following components:

- Gas: Gas is the fee required to conduct a transaction or execute a contract successfully on the Ethereum blockchain platform.

- Gas Units: This is a measure of the computational power needed to perform operations on the Ethereum blockchain.

- Gas Price: This refers to the amount of cryptocurrency (e.g., Gwei for Ethereum) that a user is willing to pay per gas unit for a transaction or operation on the blockchain. The price of gas is determined by supply, demand, and network capacity at the time of the transaction.

## Factors Affecting Gas Fees

Several factors influence the gas fees on blockchain networks, especially on Ethereum. By having an understanding of these factors, we can manage transaction costs effectively.

Factors include the following :

- Network Congestion: Network congestion occurs when many users are trying to make transactions at the same time. This increase in activity raises gas fees because users are competing to have their transactions processed quickly.

- Complexity: The complexity of a transaction or smart contract also influences the amount of gas required. Easy transactions like transferring tokens use less gas than complex transactions like the deployment of smart contracts.

- Gas Limit: There is a gas limit for each transaction per block. This is the maximum amount of gas that can be used per block. If the total gas consumption of pending transactions exceeds this limit, those with higher gas prices are prioritized, causing higher fees during busy periods.

- Smart Contract Efficiency: The design and efficiency of smart contracts also impact gas fees. Smart contracts that are well-optimized require less gas to execute, while inefficient contracts are expensive.

## Highly Paid Operations on Ethereum

[Ethereum](https://ethereum.org/en/developers/docs/gas/) is the leading decentralized blockchain platform for smart contracts that makes use of gas to measure the computational effort required for transactions and execution of contracts.

Below is a query that returns top gas consuming calls and events on the Ethereum blockchain from 2024-07-01 to 2024-07-30.

[Top calls and events.](https://ide.bitquery.io/ETH-Top-gas-consuming-calls_1)

### Function Details

---

#### **balanceOf**

- **Signature:** `balanceOf(address)`
- **Gas Consumption:** `25231034928027`
- **Cost (USD):** `64719974779.718285`
- **Function:** The balanceOf function returns the balance of a specific address.
- **Reason for High Gas Consumption:** The balanceOf call often involves numerous internal calls, sometimes around 10 for certain contracts. It appears that balanceOf is frequently invoked during write operations, and its common usage in cost-heavy transactions leads to high gas costs being attributed to it.

---

#### **max**

- **Signature:** `max(uint256,uint256)`
- **Gas Consumption:** `19709397984544`
- **Cost (USD):** `182447813.60704768`
- **Function:** The max function returns the maximum of two given uint256 values. It compares two values and returns the maximum value among them.
- **Reason for High Gas Consumption:** Normally inexpensive, the high gas usage might be due to complex interactions with other contract parts that increase gas usage.

---

#### **min**

- **Signature:** `min(uint256,uint256)`
- **Gas Consumption:** `19709397984544`
- **Cost (USD):** `182447813.60704768`
- **Function:** This function is the opposite of the max function as it returns the minimum of two given uint256 values.
- **Reason for High Gas Consumption:** Similar to max, the function might be involved in larger calculations or called multiple times within transactions.

---

#### **transfer**

- **Signature:** `transfer(address,uint256)`
- **Gas Consumption:** `15660467214859`
- **Cost (USD):** `30642811629.941307`
- **Function:** This function transfers a given amount of tokens from the sender’s account to another address.
- **Reason for High Gas Consumption:** High gas consumption for the transfer function may be due to complex token contract implementation, state changes, and additional security checks.

---

#### **callClaimMintReward**

- **Signature:** `callClaimMintReward(address)`
- **Gas Consumption:** `12929010612708`
- **Cost (USD):** `170150247.6614094`
- **Function:** This function is used to claim minting rewards for a specified address.
- **Reason for High Gas Consumption:** Minting processes can use a lot of gas because it involves various checks and balances which contribute to the high gas usage.

---

#### **powerDown**

- **Signature:** `powerDown()`
- **Gas Consumption:** `12928930475620`
- **Cost (USD):** `170149637.39978257`
- **Function:** The powerDown function is likely used to disable or deactivate certain functionalities within a smart contract, especially in a governance or staking system.
- **Reason for High Gas Consumption:** The function may involve multiple or complex operations, such as updating various state variables and interacting with other contracts resulting in high gas consumption.

---

#### **claimMintRewardAndShare**

- **Signature:** `claimMintRewardAndShare(address,uint256)`
- **Gas Consumption:** `12093227281162`
- **Cost (USD):** `133903717.38000655`
- **Function:** This function claims a minting reward and shares it with a specified address.
- **Reason for High Gas Consumption:** Distributing rewards and updating the states of multiple accounts is a complex process and can consume a lot of gas.

---

#### **claimRank**

- **Signature:** `claimRank(uint256)`
- **Gas Consumption:** `10810202940109`
- **Cost (USD):** `69538047.40809974`
- **Function:** This function is most likely used to claim a rank or position within a system based on certain criteria.
- **Reason for High Gas Consumption:** The process may involve extensive calculations or data retrieval to determine the rank, which may result in higher gas usage.

---

#### **transferFrom**

- **Signature:** `transferFrom(address,address,uint256)`
- **Gas Consumption:** `10174747845131`
- **Cost (USD):** `12317007704.06669`
- **Function:** This function allows a sender to transfer tokens from one account to another after approval.
- **Reason for High Gas Consumption:** The function involves extra checks, such as approval and balance verification, which may lead to high gas consumption when compared to a simple transfer.

![](/blog/gas-consumption-analysis-ethereum-blockchains/ethereum_gas_consumption.png)

The gas consumption of Ethereum transactions is significantly impacted by the complexity of the operations performed and the frequency with which functions are called.

To mitigate high gas usage, optimizing smart contracts and minimizing unnecessary function calls is important.

## Gas Consumption on Other Blockchains

### BNB

Below is a query that returns top gas-consuming calls and events on BSC chain from 2024-07-01 to 2024-07-30.

Analysis of [Top Gas Consuming Calls and Events](https://ide.bitquery.io/Top-gas-consuming-calls-on-BNB) on BNB Chain.

### Function Details

---

#### **slash**

- **Signature:** `slash(address)`
- **Gas Consumption:** `18446744073709550976`
- **Cost (USD):** `0`
- **Function:** The slash function reduces the balance of a specific address, often used in staking or governance protocols to enforce rules or penalize bad actors.
- **Reason for High Gas Consumption:** High gas usage might stem from complex logic to verify conditions, update multiple records, or handle state changes securely, making it computationally expensive.

---

#### **deposit**

- **Signature:** `deposit(address)`
- **Gas Consumption:** `9223372037085846109`
- **Cost (USD):** `11114740.506539578`
- **Function:** The deposit function allows users to deposit tokens or funds to a specified address, often used in financial applications or smart contracts for staking, savings, or liquidity provision.
- **Reason for High Gas Consumption:** This function can be gas-intensive due to necessary validation checks, state updates, and interactions with other contracts or storage operations.

---

#### **balanceOf**

- **Signature:** `balanceOf(address)`
- **Gas Consumption:** `165338892295799`
- **Cost (USD):** `6598362569.931131`
- **Function:** This function returns the balance of tokens held by a specific address, commonly used in BEP-20 and other token standards.
- **Reason for High Gas Consumption:** The balanceOf call often involves numerous internal calls, sometimes around 10 for certain contracts. It appears that balanceOf is frequently invoked during write operations, and its common usage in cost-heavy transactions leads to high gas costs being attributed to it.

---

#### **transfer**

- **Signature:** `transfer(address,uint256)`
- **Gas Consumption:** `94226635048838`
- **Cost (USD):** `3048333324.3176413`
- **Function:** Transfers a specified amount of tokens from the sender’s account to another address.
- **Reason for High Gas Consumption:** High usage in decentralized applications (dApps) and frequent token transfers can lead to increased gas consumption.

---

#### **transferFrom**

- **Signature:** `transferFrom(address,address,uint256)`
- **Gas Consumption:** `90587402604847`
- **Cost (USD):** `558571429.1118963`
- **Function:** Allows a sender to transfer tokens from one account to another, provided they have been approved to do so.
- **Reason for High Gas Consumption:** This function requires additional checks (such as approval and balance verification) compared to transfer, which can increase gas consumption.

---

#### **safeTransferFrom**

- **Signature:** `safeTransferFrom(address,address,uint256)`
- **Gas Consumption:** `69788385264034`
- **Cost (USD):** `47636710.82603213`
- **Function:** This function safely transfers a specific amount of tokens from one address to another, ensuring that the receiving contract is capable of handling BEP-721 tokens.
- **Reason for High Gas Consumption:** The safety checks and validation required to ensure the recipient can handle the tokens add to the gas cost.

---

#### **ownerOf**

- **Signature:** `ownerOf(uint256)`
- **Gas Consumption:** `60405861461088`
- **Cost (USD):** `49485845.72234921`
- **Function:** Returns the owner of a specific BEP-721 token ID.
- **Reason for High Gas Consumption:** The function itself is typically low-cost, but high gas consumption may result from frequent calls within a larger application or complex data retrieval processes.

---

#### **onERC721Received**

- **Signature:** `onERC721Received(address,address,uint256,bytes)`
- **Gas Consumption:** `56498436129719`
- **Cost (USD):** `35689364.67503641`
- **Function:** Handles the receipt of a BEP-721 token, ensuring that the receiving contract can manage BEP-721 tokens.
- **Reason for High Gas Consumption:** The validation and handling logic required to manage token receipts securely can be complex, contributing to higher gas usage.

---

#### **getReserves**

- **Signature:** `getReserves()`
- **Gas Consumption:** `32055294005348`
- **Cost (USD):** `1038580480.4862747`
- **Function:** Returns the reserve amounts of tokens in a liquidity pool, typically used in automated market makers (AMMs) like PancakeSwap.
- **Reason for High Gas Consumption:** Retrieving and processing reserve data can be computationally expensive, especially if the pool handles large amounts of data or frequent updates.

---
![](/blog/gas-consumption-analysis-ethereum-blockchains/bsc_gas_consumption.png)

The gas consumption of BNB Chain transactions varies based on the complexity of the operations performed and the number of times functions are called within transactions.

### BASE

Below is a query that returns top gas consuming calls and events on Base from 2024-07-01 to 2024-07-30.

[Top gas consuming calls and events](https://ide.bitquery.io/Top-gas-consuming-calls-on-Base)

### Function Details

---

#### **slot0**

- **Signature:** `slot0()`
- **Gas Consumption:** `2169543679014111`
- **Cost (USD):** `2586643413.5828342`
- **Function:** Likely retrieves the first slot of data in a storage structure, commonly used in Uniswap V3-like contracts to fetch pool states.
- **Reason for High Gas Consumption:** Accessing and returning multiple pieces of data stored in the contract can be computationally expensive.

---

#### **liquidity**

- **Signature:** `liquidity()`
- **Gas Consumption:** `1770630841760160`
- **Cost (USD):** `1911403451.7775419`
- **Function:** Retrieves the current liquidity in a pool, used to determine available liquidity for trades.
- **Reason for High Gas Consumption:** Calculating and returning liquidity involves reading state variables and aggregating data from multiple sources, which can be gas-intensive.

---

#### **getReserves**

- **Signature:** `getReserves()`
- **Gas Consumption:** `1235526747695113`
- **Cost (USD):** `3280706006.9748497`
- **Function:** Fetches the reserve amounts of tokens in a liquidity pool.
- **Reason for High Gas Consumption:** Retrieving and processing reserve data is computationally expensive, especially if the pool handles large amounts of data or frequent updates.

---

#### **balanceOf**

- **Signature:** `balanceOf(address)`
- **Gas Consumption:** `645230811614960`
- **Cost (USD):** `18593645961.61769`
- **Function:** Returns the balance of tokens held by a specific address, commonly used in BASE-20 and other token standards.
- **Reason for High Gas Consumption:** The balanceOf call often involves numerous internal calls, sometimes around 10 for certain contracts. It appears that balanceOf is frequently invoked during write operations, and its common usage in cost-heavy transactions leads to high gas costs being attributed to it.

---

#### **tickBitmap**

- **Signature:** `tickBitmap(int16)`
- **Gas Consumption:** `311326700087010`
- **Cost (USD):** `491238256.82881993`
- **Function:** Likely used in Uniswap V3-like contracts, tickBitmap manages liquidity positions at different price points.
- **Reason for High Gas Consumption:** Managing and accessing the bitmap can be computationally intensive, especially when handling numerous liquidity positions and price points.

---

#### **transfer**

- **Signature:** `transfer(address,uint256)`
- **Gas Consumption:** `288221084368862`
- **Cost (USD):** `11314124926.597536`
- **Function:** Transfers a specified amount of tokens from the sender’s account to another address.
- **Reason for High Gas Consumption:** High usage in decentralized applications (dApps) and frequent token transfers can lead to increased gas consumption.

---

#### **transferFrom**

- **Signature:** `transferFrom(address,address,uint256)`
- **Gas Consumption:** `86188933484916`
- **Cost (USD):** `2557618574.525107`
- **Function:** Allows a sender to transfer tokens from one account to another, provided they have been approved to do so.
- **Reason for High Gas Consumption:** This function requires additional checks (such as approval and balance verification) compared to a standard transfer, making it more computationally intensive.

---

#### **getExchange**

- **Signature:** `getExchange()`
- **Gas Consumption:** `72209647044762`
- **Cost (USD):** `2348912.339726342`
- **Function:** Retrieves the exchange rate or the exchange address for a token or pair.
- **Reason for High Gas Consumption:** Frequent updates and retrievals of exchange data can make this function gas-intensive.

---

#### **max**

- **Signature:** `max(uint256,uint256)`
- **Gas Consumption:** `66014568834582`
- **Cost (USD):** `1856990.5833117731`
- **Function:** Computes the maximum of two given unsigned integer values.
- **Reason for High Gas Consumption:** Despite its simple logic, it may be part of more complex and repeated operations within larger transactions, leading to significant cumulative gas usage.

![](/blog/gas-consumption-analysis-ethereum-blockchains/base_gas_consumption.png)

---

## Implications for Developers and Users

Here’s a breakdown of their implications for both developers and users:

For Developers:

- Development Costs: Higher gas fees can increase the cost of development and testing when designing and deploying smart contracts.

- Gas Optimization: It is important developers write efficient code and also follow best practices to minimize gas usage and also to optimize smart contract code.

- Scalability: Developers are actively exploring other solutions such as Layer 2 solutions and other protocols to reduce gas fees and improve scalability.

- Transaction Speed: Since gas fees affect the speed of transactions, developers should appropriate gas limits and prices to balance transaction speed and cost.

For Users:

- Transaction Costs: High gas fees make it difficult for users to execute transactions or interact with smart contracts, making even smaller transactions unfeasible.

- Network Congestion: An increase in gas fees during peak times due to high demand can delay transactions, making users wait longer or pay more just to have their transactions confirmed.

- Alternative Solutions: Users are actively looking for cheaper options, like Layer 2 solutions or other blockchains, to cut down on transaction costs.

## Conclusion

Having an understanding of the operations that incur the highest fees is important for optimizing blockchain usage. High gas fees on Ethereum, for example, are due to complex operations and high network congestion. People will pay these high fees for operations that are considered high-value, such as complex smart contract interactions or essential transactions.

By analyzing the most expensive operations, developers can reduce costs by optimizing their smart contracts. This also helps users make informed decisions when conducting transactions and explore alternatives like Binance Smart Chain and Polygon, which offer lower gas fees to reduce costs.
]]></description>
        </item>
        <item>
            <title><![CDATA[How to Get S&P 500 Onchain Data]]></title>
            <link>https://bitquery.io/blog/get-sp500-onchain-data</link>
            <guid>https://bitquery.io/blog/get-sp500-onchain-data</guid>
            <pubDate>Mon, 29 Jul 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
The rise of [Real World Assets (RWAs)](https://bitquery.io/solutions/rwa) in the decentralized finance (DeFi) landscape marks a significant evolution in how traditional financial instruments can be accessed and traded. RWAs refer to tangible assets or financial instruments that are tokenized and represented on a blockchain, bridging the gap between conventional finance and the innovative world of DeFi.

This tokenization process allows for increased liquidity, accessibility, and transparency,

transforming the way investors engage with assets like real estate, commodities, and equities.

In recent years, the growth of RWAs has been quite adequate and hence the future holds quite promising, reflecting a growing demand for yield-bearing financial assets.

Traditionally, investing in the S&P 500 has involved opening a brokerage account and following regulations set by centralized financial institutions. However, the emergence of Decentralized Finance (DeFi) offers alternative ways to gain exposure to this influential stock market index. DeFi protocols have introduced innovative strategies, such as synthetic assets and tokenized baskets, that allow investors to participate in the S&P 500 through blockchain technology.

Among the various approaches to gaining exposure to RWAs, two prominent DeFi strategies stand out, particularly for investors interested in theS&P 500:

### Synthetic Asset Protocols

Synthetic asset protocols, such as Synthetix, allow users to create and trade synthetic versions of real-world assets. These synthetic assets, known as Synths, track the price movements of underlying assets like stocks or commodities without requiring direct ownership. For instance, investors can gain exposure to the S&P 500 by trading synthetic assets that mirror the performance of the index, providing a way to speculate on its movements without the complexities of traditional equity markets.

### Basket Tokenization Protocols

Basket tokenization protocols, exemplified by Backed Finance, offer another innovative approach to accessing the S&P 500. Backed Finance has developed the Backed CSPX CoreS&P 500 (bCSPX), a tokenized representation of the iShares CoreS&P 500 UCITS ETF. This ERC-20 token is designed to track the performance of the underlying ETF, allowing investors to participate in the index through a blockchain-based asset. Unlike traditional ETFs, this tokenized version provides greater flexibility and accessibility, enabling trading on decentralized exchanges while maintaining a 1:1 backing with the underlying asset.

As the DeFi ecosystem continues to mature, the integration of RWAs presents a transformative opportunity for both investors and the broader financial landscape. The ability to tokenize traditional assets like those in the S&P 500 not only enhances liquidity and democratizes access but also paves the way for innovative financial products that could reshape the investment landscape.

## TokenizedS&P 500 index and stocks

The tokenization of the S&P 500 index and its constituent stocks represents a significant advancement in how investors can access traditional equity markets through blockchain technology.

This innovative approach allows for the creation of digital assets that mirror the performance of well-established financial instruments, enhancing liquidity and accessibility. Here are some notable tokenizedS&P 500 assets along with their key metrics:

### [Backed CSPX CoreS&P 500 (bCSPX)](https://explorer.bitquery.io/ethereum/token/0x1e2c4fb7ede391d116e6b41cd0608260e8801d59)

![](/blog/get-sp500-onchain-data/bcspx.png)

A token designed to track the performance of the iShares CoreS&P 500 UCITS ETF, providing investors with exposure to a diversified portfolio of large-cap U.S. companies.

- Asset Chain: Ethereum

- Asset Market Cap: \$1,077,059

- Asset Monthly Trading Volume: \$12,878

- Holders: 67

### [Backed Coinbase (bCOIN)](https://explorer.bitquery.io/ethereum/token/0xbbcb0356bb9e6b3faa5cbf9e5f36185d53403ac9)

![](/blog/get-sp500-onchain-data/bcoin.png)

A tokenized version of Coinbase shares, allowing investors to participate in the growth of this leading cryptocurrency exchange while leveraging the advantages of decentralized finance.

- Asset Chain: Ethereum

- Asset Market Cap: \$3,166,743

- Asset Monthly Trading Volume: \$329

- Holders: 16

### [Swarm Coinbase (sCOIN)](https://explorer.bitquery.io/matic/token/0x1020d03b5c19d3963484cd8ad8af7e159fd5e261)

![](/blog/get-sp500-onchain-data/coin.png)

Swarm's tokenized version of Coinbase shares, enabling users to invest in the performance of Coinbase through the Polygon network, facilitating a more accessible trading experience.

- Asset Chain: Polygon

- Asset Market Cap: \$158,825

- Asset Monthly Trading Volume: \$103,313

- Holders: 34

### [Swarm Microstrategy (sMSTR)](https://explorer.bitquery.io/matic/token/0xe61aa4e693d3ef8ebc8cd901df2fe1f0a6e2ce78)

![](/blog/get-sp500-onchain-data/mstr.png)

A token that provides investors with exposure to Microstrategy, a company known for its significant Bitcoin holdings, allowing users to invest in the stock while benefiting from blockchain technology.

- Asset Chain: Polygon

- Asset Market Cap: \$128,052

- Asset Monthly Trading Volume: \$6,421

- Holders: 22

### [Swarm Tesla (sTSLA)](https://explorer.bitquery.io/matic/token/0x7fcfa7f21c9390eeb2c0158a892b817bca5fbafb)

![](/blog/get-sp500-onchain-data/tsla.png)

A tokenized representation of Tesla shares, enabling investors to gain exposure to this innovative company in the automotive and energy sectors through the Polygon network.

- Asset Chain: Polygon

- Asset Market Cap: \$54,056

- Asset Monthly Trading Volume: \$43,186

- Holders: 31

### [SPDRS&P 500 ETF Tokenized Stock FTX (SPY)](https://explorer.bitquery.io/arbitrum/token/0xF4BD09B048248876E39Fcf2e0CDF1aee1240a9D2)

![](/blog/get-sp500-onchain-data/spyd.png)

This tokenized version of the SPDRS&P 500 ETF allows investors to gain direct exposure to the S&P 500 index, which comprises 500 of the largest publicly traded companies in the U.S. It provides a convenient way to invest in a diversified portfolio without the need for traditional brokerage accounts.

- Asset Chain: FTX

- Asset Market Cap: \$21,565

- Asset Monthly Trading Volume: N/A

- Holders: 21

### [Swarm Intel (sINTC)](https://explorer.bitquery.io/matic/token/0x4bcdb11ac9ed682db431ccdddbdb0ea7d6a0f9d2)

![](/blog/get-sp500-onchain-data/intc.png)

The Swarm Intel token (sINTC) represents a tokenized version of Intel Corporation shares, enabling investors to gain exposure to this leading semiconductor company through the Polygon network. By tokenizing Intel, Swarm provides a way for investors to trade this asset on-chain, enhancing liquidity and accessibility.

- Asset Chain: Polygon

- Asset Market Cap: \$42,115

- Asset Monthly Trading Volume: \$3,618

- Holders: 13

### [Tokenized Tesla (TSLA.d)](https://explorer.bitquery.io/arbitrum/token/0x36d37B6cbCA364Cf1D843efF8C2f6824491bcF81)

![](/blog/get-sp500-onchain-data/TSLAd.png)

The tokenized Tesla equity (TSLA.d) allows investors to participate in the growth of Tesla, a leader in electric vehicles and renewable energy. This asset is fully backed by the underlying shares, providing a secure way to invest in Tesla's performance through blockchain.

- Asset Chain: Ethereum

- Asset Market Cap: \$27,550

- Asset Monthly Trading Volume: \$3,958

- Holders: 19

The data indicates that while these tokenized S&P 500 assets exist, there is currently no active trading volume or circulating supply, which may reflect their nascent stage in the market.

However, the introduction of these tokenized versions of popularS&P 500 ETFs and stocks highlights a growing interest in providing investors with blockchain-based exposure to the index, potentially paving the way for increased trading activity and liquidity in the future.

## How to access the on-chain data of the S&P 500?

Bitquery offers functionalities to retrieve on-chain data for Real-World Assets (RWAs) and tokenized assets. Their RWA Data Solutions cater to various needs, including:

- Issuers of tokenized assets: Track key metrics like liquidity, asset movement, ownership distribution, and total value locked (TVL) for their tokenized RWAs. This allows for transparency, investor confidence, and compliance.

- DeFi participants: Analyze protocols and DeFi instruments related to tokenized RWAs. Gain insights into platforms like Maple, Goldfinch, Centrifuge, and others to understand performance, risks, and opportunities within the DeFi ecosystem.

Here's a general approach to get started with Bitquery for RWA and tokenized asset data:

1.  Explore Bitquery's Documentation: Bitquery offers comprehensive documentation to guide you through its functionalities. Head to the [Real World Assets (RWA) Data Solutions page](https://bitquery.io/solutions/rwa) to understand their capabilities and available data sets.

2)  Identify Blockchain and Asset: Specify the blockchain network (e.g., Ethereum, Polygon) where the tokenized asset resides. Then, pinpoint the specific token representing the RWA you're interested in (e.g., security token for a specific bond).

3.  Utilize GraphQL Queries: Bitquery leverages GraphQL, a query language for APIs. Their platform offers a GraphQL playground where you can build queries to retrieve the desired data. Explore Bitquery's documentation for GraphQL examples and tutorials related to RWAs and tokenized assets. Bitquery helps in finding and analyzing the RWAs, for example: [This query will help you find the TVL of a RWA.](https://ide.bitquery.io/TVL_Of_A_Contract#) Bitquery's API can help you a lot to analyze, invest, and make an informed decision. [For example, this query helps you get the basic info on an RWA.](https://ide.bitquery.io/RWA-Information)

4)  Bitquery Explorer: In addition to the GraphQL functionality, Bitquery also offers a [block explorer.](https://explorer.bitquery.io/) While the explorer might not be specifically designed for RWAs, it can be a useful tool for general blockchain exploration and inspecting token details on supported blockchains.

By understanding these steps and referring to Bitquery's resources, you can leverage their platform to extract valuable on-chain data for informed decisions regarding RWAs and tokenized assets.

## A Look Ahead: The Future of S&P 500 on Blockchain

The tokenization of S&P 500 assets marks a pivotal shift in finance, offering unprecedented access and liquidity to global investors. While challenges remain, this innovation paves the way for a more inclusive and efficient financial ecosystem. Bitquery's powerful analytics tools stand at the forefront, enabling investors and developers to navigate this new landscape with confidence. As blockchain and traditional finance continue to converge, the future of index investing looks increasingly decentralized and accessible.

--
*Written by Harshil* ]]></description>
        </item>
        <item>
            <title><![CDATA[Is Hedera Still Active? A Deep Dive into Transaction Metrics, Gas Economics, and Network Activity in 2024]]></title>
            <link>https://bitquery.io/blog/hedera-active-2024-transaction-metrics-gas-economics</link>
            <guid>https://bitquery.io/blog/hedera-active-2024-transaction-metrics-gas-economics</guid>
            <pubDate>Mon, 29 Jul 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Hedera is a public, open-source, proof-of-stake network known for its unique consensus mechanism. It offers a range of features including native tokens, predictable fees, and high transaction fairness. In this blog, we will examine Hedera from the following aspects using [Bitquery Hedera APIs](https://bitquery.io/blockchains/hedera-blockchain-api):

- Price

- Transaction Metrics: Volume, TPS (Transactions Per Second), etc.

- Transaction Success and Failures: Different transaction methods

- Network Growth

- Gas Economics

Let's dive into each of these aspects to gain a comprehensive understanding of Hedera's performance and prospects.

### HBAR Price Trends

Current Price: As of the latest data, the current price of HBAR is around \$0.068.

Historical Price Performance: HBAR has experienced significant fluctuations over the past months. It reached a peak of \$0.15 in March 2024 but has since declined to its current price.

Comparison with Major Cryptocurrencies: To assess HBAR's market correlation or independence, let's compare its performance with major cryptocurrencies like Bitcoin and Ethereum. While HBAR has seen a decrease from its peak, [Ethereum has shown substantial growth, increasing by 47% over the last six months](https://ide.bitquery.io/Ethereum-2024-6-months). This contrast highlights different market dynamics and investor sentiments towards these assets.

### Currency Activity on the Network

We'll use the [transaction data](https://ide.bitquery.io/Hedera-inputs) to analyse popular tokens on the network.

**Top 5 Tokens by Quantity:**

- **HBAR**: 61,555,415,598 units (Native token)
- **WHBAR**: 6,178,307 units (Wrapped Hbar)
- **SAUCE**: 2,948,787 units (6 decimals)
- **DOV[hts]**: 2,604,283 units (8 decimals)
- **ETT**: 2,577,666 units (0 decimals)

### Observations

1.  **HBAR Dominance**: The native HBAR token dominates the quantity by a significant margin.
2.  **Diversity in Token Types**: There's a wide variety of tokens, including wrapped tokens (WHBAR, WBTC), stablecoins (USDC, DAI), and other specialized tokens (ETT, LOVE).
3.  **Decimal Variation**: The tokens have a wide range of decimal places, indicating different use cases and precision requirements.

#### Tokens with the Highest Decimals

- **LOVE**: 11 decimals, 51,253 units
- **DAVINCI**: 9 decimals, 39,667 units
- **YAMGO**: 9 decimals, 77,530 units
- **SAUCEINU**: 7 decimals, 154,206 units
- **PACK**: 6 decimals, 83,931 units

5.  **Wrapped Tokens**: Wrapped tokens like WHBAR and WBTC show the integration and bridging of assets across different blockchain platforms.

### Analysing Call Activity on Hedera

We'll run this query to get call [data](https://ide.bitquery.io/unique-memo-on-calls).

From this we see that:

**Coinflip Transactions:**

- A significant portion of unique transactions involves a coin-flipping game using HBAR.

* **Top Swaps via HashPack:**

  - **HBAR to other tokens and vice versa:**
    - **SAUCE:** 14,013 transactions (HBAR to SAUCE), 19,271 (SAUCE to HBAR)
    - **HSUITE:** 27,058 transactions (HBAR to HSUITE), 11,172 (HSUITE to HBAR)
    - **USDC:** 18,315 transactions (USDC to HBAR), 17,997 (HBAR to USDC)
    - Other frequent swaps include HBAR with KARATE, DOVU, LEEMON, JAM, etc.

* **Other Activities:**

  - **Staking NFTs:** 1,471 transactions
  - **Minting Tokens:** 7,187 transactions
  - **Domain-related activities:**
    - **Lookup-domain:** 3,944 transactions
    - **Register-domain:** 1,542 transactions

### Transaction Volume and TPS Analysis

Let’s first query the [TPS change on Hedera](https://ide.bitquery.io/hedera-tps-across-months) for the recent months.

The total transactions processed and the transactions per second (TPS) are crucial metrics to gauge network activity.

- February 2024:

  Transactions: 116,582,831

  TPS: 1349.34

- March 2024:

  Transactions: 108,612,185

  TPS: 1257.09

- April 2024:

  Transactions: 15,597,500

  TPS: 180.53

- May 2024:

  Transactions: 163,939,686

  TPS: 1897.45

- June 2024:

  Transactions: 114,134,933

  TPS: 1321.01

These figures highlight a substantial increase in activity during specific periods such as February, March, and then May and June. However, we need to check other ecosystem metrics before we come to a conclusion.

#### Unique Users and Activity

To get some insights into user engagement over time we will get the [unique payer accounts interacting with the network over time](https://ide.bitquery.io/hedera-unique-payers-2024):

#### Unique Payer Accounts

This metric measures the number of distinct accounts that have initiated transactions, reflecting the level of user participation on the network.

- April 2024: 346,247 unique payer accounts

- May 2024: 127,421 unique payer accounts

- June 2024: 109,517 unique payer accounts

This metric reflects a broad and active user base, critical for the network's ongoing development and adoption. Significant changes in payer activity might correlate with network events, updates, or external factors affecting user behavior.

### Economic and Fee Metrics

The [average transaction fees on the Hedera network](https://ide.bitquery.io/hedera-tx-fee-stats) over recent months offer insights into the platform's cost efficiency and economic dynamics. Here's a breakdown:

#### May 2024

- Average Transaction Fee: 0.00105745 HBAR

#### June 2024

- Average Transaction Fee: 0.00130157 HBAR

#### July 2024

- Average Transaction Fee: 0.00160234 HBAR

#### Analysis of Transaction Fees

1.  Cost Efficiency: Even with the increase, the transaction fees remain relatively low compared to many other blockchain networks, highlighting Hedera's cost efficiency. This low fee structure can be an attractive feature for developers and users seeking affordable and predictable costs.

2.  Impact on Network Usage: The modest fee rise could potentially impact user behavior and transaction volumes. Analyzing this data alongside user activity metrics, such as the number of active accounts and transaction types, could provide insights into whether the fee increase is affecting user engagement.

3.  Fee Currency and Stability: Since the fees are denominated in HBAR, the network's native token, the cost in fiat currency terms may vary with the price of HBAR. This could influence the perceived cost-effectiveness of transactions on the Hedera network.

#### Transaction Failures Due to Insufficient Gas:

An important aspect of understanding a network's fee structure is analyzing [transaction failures](https://ide.bitquery.io/Hedera-INSUFFICIENT_GAS), particularly those related to insufficient gas. In Hedera's case:

- INSUFFICIENT_GAS Transactions:

  Total Count Since January 2024: 377 instances

  Result Code: ID 30, "INSUFFICIENT_GAS"

This data indicates that there have been 377 transactions since January 2024 where the gas provided was insufficient to cover the transaction's execution which is a very little portion compared to the total number of txs executed on-chain.

#### Transaction Success and Errors

Understanding the nature of transaction outcomes helps assess the network's efficiency and reliability. We will query the [transaction outcomes](https://ide.bitquery.io/hedera-tx-type) for the year 2024 till now.

- Successful Transactions in 2024:

  Count: 75,774 (Majority are successful)

  Top Error Codes:

- REVERTED_SUCCESS: 7,360,719

- DUPLICATE_TRANSACTION: 2,589,459

- CONTRACT_REVERT_EXECUTED: 1,196,130

While the majority of transactions are successful, a notable amount involves errors such as reverted successes and duplicate transactions. This suggests areas for improvement in transaction
handling and user experience.

### Future Outlook for Hedera

Hedera continues to demonstrate strong network activity and scalability. The substantial transaction volume, high TPS, and a significant number of unique users indicate an active and robust ecosystem. While the network has not yet decoupled from Bitcoin's price influence, its unique features and growing user base provide a positive outlook for the future.

The key areas for Hedera's growth include improving transaction handling, reducing error rates, and continuing to enhance user experience. As the network evolves, it could potentially decouple from Bitcoin's influence, paving the way for independent growth and value realization.

In summary, Hedera remains a dynamic and active network with promising prospects. The on-chain data reflects its strength in handling high transaction volumes and maintaining a growing user base, setting a solid foundation for future developments.
]]></description>
        </item>
        <item>
            <title><![CDATA[What Happens When Large SOL Positions Are Liquidated?]]></title>
            <link>https://bitquery.io/blog/liquidation-large-sol-positions-risk</link>
            <guid>https://bitquery.io/blog/liquidation-large-sol-positions-risk</guid>
            <pubDate>Tue, 23 Jul 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Solana, known for its high-speed transactions and low fees, has quickly become a significant player in the decentralized finance (DeFi) ecosystem. The SOL token is central to Solana’s operations, facilitating transactions and smart contracts. However, the concentration of SOL in large holdings, often referred to as "whales," presents substantial risks, especially in scenarios of forced liquidations. This article delves into these risks, analyzing how large SOL position liquidations could impact the DeFi ecosystem on Solana.

## Understanding SOL Holdings and Whales

Tracking the largest SOL holdings is critical for assessing the risk of liquidations. Using the Bitquery Solana API, we can identify and monitor these significant positions.

### Tracking the Largest SOL Holdings

To identify and track large SOL positions, we track [the top 5 balance updates for SOL](https://ide.bitquery.io/Top-SOL-token-holders), sorted by the amount of the largest users excluding protocols.

### Whale Information and Analysis

Whales are entities holding a significant amount of Wrapped SOL. Their activities can greatly influence market dynamics and are usually high-frequency participants in Defi and Derivatives. Understanding the difference between individual traders and protocol-owned wallets is essential, as the latter are less likely to liquidate their holdings rapidly.  
  

The query will subscribe you to real-time updates for balance changes on the Solana blockchain for the address entered, The PreBalance and PostBalance functions are used here to get the balance. You can find the query [here](https://ide.bitquery.io/Balance-of-the-raydium-liquidity-pool-address)

  
Largest Wallets(Accounts not Owners) List which are likely not protocol owned, of wrapped Sol.

![](/blog/liquidation-large-sol-positions-risk/balance.png)

This query identifies accounts with Wrapped SOL balances exceeding 10,000 SOL, helping us pinpoint potential whales.

## Risks of Large SOL Position Liquidations

 - Liquidations occur when assets are sold to cover borrowed funds, often triggered by market volatility or margin calls. In DeFi, where borrowing and lending protocols are prevalent, large-scale liquidations can cause cascading market effects. For example, if a significant SOL holder is forced to liquidate, it can flood the market with SOL, driving down its price and triggering further liquidations.

 

 - Liquidations happen when collateral value drops below a threshold compared to the borrowed amount. For instance, if SOL used as collateral drops significantly in price, the collateral-to-debt ratio may fall below the maintenance margin, prompting automatic SOL sales to cover the debt and protect lenders.

### Potential Scenarios of Liquidation

-  In DeFi, liquidations can result from rapid price declines or increased borrowing rates. Market volatility plays a crucial role, as sharp SOL price drops can quickly erode collateral value. For instance, in early July, a 10% SOL price drop in hours led to widespread liquidations.

- Borrowing rate increases can also trigger liquidations. DeFi protocols often adjust rates based on supply and demand. If rates spike, borrowers may struggle to service their debt, leading to liquidations. For example, Solend might raise interest rates during high borrowing demand for SOL, increasing liquidation risks.

- Technical factors like [smart contract bugs](https://bitquery.io/blog/smartcontract-threat-scan) or oracle failures can also cause liquidations. Incorrect price data from oracles can lead to unwarranted liquidations, exacerbating market instability.

### Impact on Solana's DeFi Ecosystem

 - Liquidations can drain liquidity from DeFi protocols, leading to higher slippage and less favorable trading conditions. When liquidations occur en masse, liquidity pools can be quickly depleted, causing significant slippage. For example, major SOL liquidations on Serum can cause high slippage due to sudden order book imbalances.

- This can trigger a ripple effect, impacting other protocols and broader market stability. For instance, Solend's massive liquidations could affect other protocols like Mango Markets or Oxygen, leading to a chain reaction of volatility and potential market crashes.

 - Liquidations can also undermine user confidence in DeFi protocols. If users fear their collateral is at high risk of liquidation, they may withdraw assets, reducing overall liquidity. For example, if many SOL holders withdraw from DeFi protocols out of fear, it could lead to a liquidity crunch, making it harder for borrowers to get funds and for lenders to earn interest.

  

### Case Study: Zeta Markets

[Zeta Markets](https://docs.bitquery.io/docs/examples/Solana/solana-zeta/) is a prominent DeFi platform on Solana, offering derivatives trading. Understanding its role and the impact of liquidations within Zeta Markets provides a practical perspective on the broader risks. The landscape for DeFi derivatives has continued to expand and evolve significantly since the launch of Zeta’s v1 in 2021. In the first four months of 2024 alone, the total monthly volume averaged close to $250 billion. During the same period, Solana saw a surge in DeFi activity that brought its global DEX volume on equal footing with Ethereum.

#### Overview of Zeta Markets

Zeta successfully managed over $11 billion in trading volume and has supported over 100,000 active traders. Despite its good block times of 400ms and much lower gas fees compared to some of its competitors, a derivatives exchange built completely on the Solana L1 still faces several challenges such as latency, congestion and high barriers to liquidity provision. At the time of writing this, Zeta market perps have an open interest of around $8 Million. Open Interest represents the sum of all open positions (derivative contracts), long or short.

Historical data on Zeta Markets shows how liquidations can affect the platform. By analysing this data, we can identify potential risks and develop mitigation strategies. Let’s take a look at these using bitquery.

  

#### Track Order placed on Zeta in Realtime[​](https://docs.bitquery.io/docs/examples/Solana/solana-zeta/#track-order-placed-on-zeta-in-realtime)

To retrieve the latest orders placed on Zeta DEX, we will utilize the Solana instructions API/Websocket.

We will specifically look for the latest instructions from Zeta's program, identified by the program ID ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD, [using this query](https://ide.bitquery.io/Get-all-the-Zeta-Program-methods#). And then we can see in the response that the method with the largest count is an empty string which should be the method to place orders. We will filter for this method to get the orders placed on Zeta in realtime.  
  
To extract the PnL (Profit and Loss) and other related values such as unpaid funding, margin requirement, buffer, balance, adjustment, and max loss we can look at the log messages using this [query](https://ide.bitquery.io/Solana-Zeta-Market-logs). We get the values in lamports which can be converted to SOL to get meaningful interpretations. (1 SOL = 1,000,000,000 Lamports)  
  
**Example:**  
  
Transaction Signature: `3uiP1Ft2WgCp3kqhoVXTBaR2P29cfgrVZso5TsSVVAeXvV2dDkcquP1nufg7fnSgqTjXgeAe68B6JKAJHagSHe5w`

Instruction: **PlaceMultiOrders**

- PnL: 3689997326 lamports = 3.689997326 SOL
- Unpaid Funding: 33145 lamports = 0.000033145 SOL
- Margin Requirement: 30536490255 lamports = 30.536490255 SOL
- Buffer: 433314430010 lamports = 433.314430010 SOL
- Balance: 460284993707 lamports = 460.284993707 SOL
- Adjustment: 0 lamports = 0 SOL
- Max Loss: 124037623 lamports = 0.124037623 SOL
- Instruction: PlaceMultiOrders

- PnL: 3689997326 lamports = 3.689997326 SOL
- Unpaid Funding: 33145 lamports = 0.000033145 SOL
- Margin Requirement: 30535664740 lamports = 30.535664740 SOL
- Buffer: 433313896728 lamports = 433.313896728 SOL
- Balance: 460284993707 lamports = 460.284993707 SOL
- Adjustment: 0 lamports = 0 SOL
- Max Loss: 125396420 lamports = 0.125396420 SOL

![](/blog/liquidation-large-sol-positions-risk/placeMultiOrder.png)

#### Track Liquidations happening on Zeta in Realtime[​](https://docs.bitquery.io/docs/examples/Solana/solana-zeta/#track-liquidations-happening-on-zeta-in-realtime)

To track the latest Liquidations on Zeta DEX, we will utilize the Solana instructions API/Websocket.

We will specifically look for the latest instructions from Zeta's program, identified by the program ID ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD, [using this query](https://ide.bitquery.io/Get-all-the-Zeta-Program-methods?_gl=1*k9otu8*_ga*MTczMzkyMDg2Ni4xNzIwMDY5MTg5*_ga_ZWB80TDH9J*MTcyMTAzNTk2OC40LjEuMTcyMTAzNjAwMC4wLjAuMA..#). And then we can see in the response liquidateV2 method which is called to initialize a liquidation. We will filter for this method to get the liquidations on Zeta in realtime.

You can run this query using this [link](https://ide.bitquery.io/Track-Liquidations-on-Zeta-in-realtime). We look for particular log messages which indicate function calls to the contract. For eg. “Program log: Instruction: LiquidateV2"  
  
Using the above query for the past 30, we can see that the largest account liquidated was GubTBrbgk9JwkwX1FkXvsrF1UC2AP7iTgg8SGtgH14QE. The account had a balance of 16 SOL after the liquidation event. (Pause the query to not run out of points)  
[Bitquery Address Explorer](https://explorer.bitquery.io/solana/address/GubTBrbgk9JwkwX1FkXvsrF1UC2AP7iTgg8SGtgH14QE)  
  
The output of your Bitquery subscription query also provides a summary of the number of times specific methods have been called within Zeta's program on the Solana network which can be used to find the total number of liquidations for any given period.

  

### Track Settling of Funds on Zeta in Realtime[​](https://docs.bitquery.io/docs/examples/Solana/solana-zeta/#track-settling-of-funds-on-zeta-in-realtime)

To retrieve the latest settling of funds transactions on Zeta DEX, we will utilize the Solana instructions API/Websocket.

We will specifically look for the latest instructions from Zeta's program, identified by the program ID ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD, [using this query](https://ide.bitquery.io/Get-all-the-Zeta-Program-methods#). And then we can see in the response settleDEXFunds method which is called to initialize a settlement. We will filter for this method to track the settlements on Zeta in realtime.

You can run this query using this [link](https://ide.bitquery.io/Track-settling-of-funds-on-Zeta-in-realtime).

Using the above query we can see that the total number of liquidations which occurred surpasses 10,000.

![](/blog/liquidation-large-sol-positions-risk/methods.png)

## Mitigating Risks of Large Position Liquidations

Mitigation strategies are crucial to prevent forced liquidations and their adverse effects on both individual portfolios and the broader DeFi ecosystem.

Individual traders can set stop-loss orders to limit losses by automatically selling assets when they reach a certain price. Options — a trading derivative that allows traders to buy a fixed-price ‘insurance’ against price crashes can be an effective way to reduce portfolio risk if used properly.  
  

Maintaining higher collateral levels than required can also reduce liquidation risks. On platforms like Solend, a 200% collateral ratio instead of the minimum 150% offers a buffer against market volatility. Regular market monitoring allows traders to adjust positions based on trends. Diversifying investments across various assets, including stablecoins, can further mitigate risk.

Protocols can implement safeguards to protect against large-scale liquidations. Automated mechanisms can initiate partial liquidations or margin calls to avoid full liquidation. Enhanced collateral management systems dynamically adjust requirements based on real-time market data. Reliable price oracles ensure accurate data, preventing liquidations due to incorrect prices. Stress tests and simulations help identify vulnerabilities and prepare protocols for extreme conditions.

User education and timely alerts are also essential. Educating users about risks and providing notifications when collateral ratios near critical levels can prompt them to add more collateral or reduce debt, preventing liquidations. By adopting these strategies, traders and protocols can effectively manage risks, enhancing DeFi ecosystem stability and confidence.

## Conclusion

In summary, monitoring and managing large SOL positions is essential for maintaining the stability of Solana’s DeFi ecosystem. By leveraging tools like the Bitquery Solana API and implementing robust risk management strategies, both traders and protocols can mitigate the risks associated with large SOL position liquidations.

---

*Written by Anish M*]]></description>
        </item>
        <item>
            <title><![CDATA[Real World Asset Tracking on Arbitrum Made Easy]]></title>
            <link>https://bitquery.io/blog/real-world-asset-tracking-arbitrum-bitquery-apis</link>
            <guid>https://bitquery.io/blog/real-world-asset-tracking-arbitrum-bitquery-apis</guid>
            <pubDate>Tue, 23 Jul 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Arbitrum is a Layer 2 scaling solution for Ethereum, designed to enhance the speed and efficiency of Ethereum transactions while reducing costs. It operates on top of the Ethereum main chain and aims to solve some of the scalability issues that plague the main Ethereum network by handling transactions off-chain before settling on the Ethereum main chain. This approach leverages a technology called [optimistic rollups](https://bitquery.io/blog/understanding-optimistic-rollups), which assumes transactions are valid by default and only performs full computation if a transaction is challenged.

To further facilitate the development and analysis of applications on Arbitrum, [Bitquery's RWA APIs](https://bitquery.io/solutions/rwa) provide a robust toolkit for accessing detailed blockchain data. These APIs allow developers, analysts, and enthusiasts to easily track and analyze transactions, smart contract interactions, and other relevant activities on the Arbitrum network. With Bitquery, accessing data like transaction histories, smart contract events, and wallet balances becomes straightforward, empowering users to generate insights, monitor assets, and build richer applications on Arbitrum's Layer 2 solution.

## Real World Assets (RWA) in the Arbitrum Ecosystem

Real World Assets (RWA) on the Arbitrum ecosystem represent an exciting intersection of traditional finance and blockchain technology. Arbitrum, as a Layer 2 solution, enhances Ethereum's capability to efficiently handle transactions, making it an ideal platform for tokenizing and managing RWAs. This involves taking tangible or intangible assets from the conventional economy—such as real estate, bonds, commodities, and intellectual property—and representing them as digital tokens on the blockchain.

#### Integration of RWAs in Arbitrum:

1.  Tokenization: Assets are converted into tokens on the Arbitrum blockchain. This tokenization process encapsulates the value of real-world assets into digital tokens, which can then be easily traded, divided, or integrated into various financial applications on the blockchain.

2.  Smart Contracts: Arbitrum leverages Ethereum's smart contract features to automate and secure the management of RWAs. These contracts govern the issuance, trading, and other transactional rules associated with each asset, ensuring [compliance](https://bitquery.io/solutions/compliance) and execution without the need for traditional intermediaries.

3.  Decentralized Finance (DeFi): RWAs bring a new dimension to DeFi projects on Arbitrum. By using tokenized real-world assets as collateral, [lending, borrowing, and yield farming](https://bitquery.io/blog/understanding-ethereum-defi-ecosystem) protocols can offer more diverse and potentially less volatile investment opportunities. This increases the practical utility and appeal of DeFi services, attracting both crypto enthusiasts and traditional investors.

4.  Market Accessibility: The fractional ownership made possible through RWA tokens democratizes access to high-value assets. For example, real estate or expensive art which might be out of reach for individual investors can be owned fractionally through small denominations of tokens, making investments more accessible and liquid.

5.  Regulatory Compliance: Arbitrum and similar platforms are increasingly focused on meeting regulatory standards to ensure that the tokenization of RWAs adheres to legal frameworks. This is crucial for fostering trust and wider acceptance of blockchain technology for managing real assets.

## Examples of RWAs on Arbitrum:

### Mountain’s USDM

Mountain’s USDM is a stablecoin backed by high-value physical assets, such as mountain real estate. This token offers stability through real-world collateral and digital liquidity, making it an attractive option for investors seeking secure and stable assets on the blockchain.

#### Key Metrics

Basic metrics for USDM include transfer count, unique senders and receivers, total amount created, and average transfer amount. As of the latest data:

![](/blog/real-world-asset-tracking-arbitrum-bitquery-apis/usdm.png)

#### Latest Trades of Mountain Protocol USD in USDM

- The latest trades involve transactions with varying amounts of USDM being sold and ARBINAUTS tokens being bought.

- The trades are recorded with detailed timestamps, blocks, sellers, buyers, sell and buy amounts, and prices.

- Notable trades include a transaction on 2024-07-19 where 200.43 USDM was sold for approximately 793,354 ARBINAUTS tokens.

#### Trade Analysis

- The trading pattern shows active engagement with consistent sell amounts ranging from approximately 87 USDM to over 415 USDM.

- The prices vary slightly, indicating a relatively stable trading environment for USDM against ARBINAUTS.

![](/blog/real-world-asset-tracking-arbitrum-bitquery-apis/arbinauts_traded.png)

#### Transfer Count and Amount

- The transfer count and amount graphs provide insights into the recent activity for USDM.

- On 2024-07-13, the transfer count was lower compared to the following days, with a significant increase on 2024-07-18.

- The transfer amount reflects a similar trend, with 2024-07-18 showing the highest transfer amount, close to 700,000.

![](/blog/real-world-asset-tracking-arbitrum-bitquery-apis/USDM_transfer.png)

For more detailed data and real-time analysis, you can check it on the [Bitquery explorer](https://explorer.bitquery.io/arbitrum/token/0x59D9356E565Ab3A36dD77763Fc0d87fEaf85508C).

### Backed Finance’s blB01

Backed Finance’s blB01 is a blockchain-based financial instrument offering structured returns. This token allows fractional ownership and easy transferability of traditionally less liquid investments.

#### Key Metrics

Basic metrics for blB01 include transfer count, unique senders and receivers, total amount created, and average transfer amount. Here are some insights based on the latest data provided in the images:

![](/blog/real-world-asset-tracking-arbitrum-bitquery-apis/blB01.png)

#### Smart Contract Events for blB01:

- The events distribution graph shows two main events: "Upgraded" and "AdminChanged," both occurring once as of the latest data.

- The latest event date for both "Upgraded" and "AdminChanged" is 2023-07-13.

![](/blog/real-world-asset-tracking-arbitrum-bitquery-apis/backed_method.png)

#### Analysis of blB01

Using Bitquery’s GraphQL APIs, we can perform detailed analysis on blB01 to understand its trading patterns, transaction history, and token holder behavior. Here are some general insights:

Trading Patterns:

- The data suggests a steady trading activity for blB01, with the potential for detailed examination of transfer counts and amounts over specific periods.

- Regular trading patterns and stable transfer amounts can highlight the demand and market confidence in blB01.

#### Transaction History:

- Analysis of transaction history helps identify significant transfers, the frequency of transactions, and key addresses involved in large transfers.

- This can provide a clearer picture of the token’s liquidity and market behavior.

#### Token Holder Behavior:

- Understanding the distribution of blB01 among holders can offer insights into the concentration of wealth and potential market influence.

- Analyzing unique senders and receivers helps gauge the token's adoption and circulation.

For more detailed data and real-time analysis, you can check it on the [Bitquery explorer.](https://explorer.bitquery.io/arbitrum/token/0xCA30c93B02514f86d5C86a6e375E3A330B435Fb5)

### Xend Finance (\$XEND)

Xend Finance (\$XEND) is a blockchain-based financial instrument designed to offer decentralized savings, lending, and investment opportunities. This token allows users to earn higher yields on their savings by leveraging decentralized finance (DeFi) protocols.

#### Key Metrics

Basic metrics for \$XEND include transfer count, unique senders and receivers, total amount created, and average transfer amount. Here are some insights based on the latest data:

![](/blog/real-world-asset-tracking-arbitrum-bitquery-apis/xrwa.png)

#### Token Holders:

The token holders' page shows the total number of $XEND holders, links to their addresses, total supply, and the amount held by each holder address. The largest token holder has a significant amount of $XEND tokens.

- Token Holders Count: As of the latest data, the number of token holders is around 2,739.

- Total Supply: The total supply of \$XEND is 209,987,348.266 tokens.

![](/blog/real-world-asset-tracking-arbitrum-bitquery-apis/xrwa_holder.jpg)

#### Latest Trades

Recent trades on decentralized exchanges (DEXs) show significant activity in \$XEND tokens. Some insights from the latest trades include:

- Frequent transactions with varying amounts of \$XEND being traded.

- Interaction between different wallets, indicating active participation from multiple users.

![](/blog/real-world-asset-tracking-arbitrum-bitquery-apis/xrwa_trades.png)

#### Analysis of \$XEND

- Holder Behavior: The number of token holders and the Gini factor suggest a stable and gradually increasing distribution of tokens among users.

- Trading Patterns: Regular trades and transfers indicate healthy activity and interest in \$XEND tokens.

- Decentralization: The Nakamoto Index and Gini factor suggest moderate decentralization, with a trend towards more equitable distribution.

For more detailed data and real-time analysis, you can check it on the [Bitquery explorer](https://explorer.bitquery.io/arbitrum/token/0x3096e7BFd0878Cc65be71f8899Bc4CFB57187Ba3).

### PENDLE

PENDLE is a protocol that enables the tokenization and trading of future yield. By splitting yield-bearing assets into their principal and yield components, PENDLE allows users to trade and manage their future yields separately. This offers a unique way to optimize returns and manage risk.

#### Key Metrics

Basic metrics for PENDLE include transfer count, unique senders and receivers, total supply, and the amount held by top holders. As of the latest data:

![](/blog/real-world-asset-tracking-arbitrum-bitquery-apis/pendle.png)

#### Token Holders

The token holders' page shows the total number of PENDLE holders, links to their addresses, total supply, and the amount held by each holder address. The largest token holder has a significant amount of PENDLE tokens.

![](/blog/real-world-asset-tracking-arbitrum-bitquery-apis/pendle_tokens.png)

#### Analysis of PENDLE

Using Bitquery’s GraphQL APIs, we can perform a detailed analysis on PENDLE to understand its trading patterns, transaction history, and token holder behavior. Below are some insights:

- Yield Tokenization: Utilize Bitquery to track the tokenization events where yield-bearing assets are split into principal and yield tokens. Analyze the smart contract interactions for minting these tokens.

- Yield Trading Analysis: Monitor the trading activities of yield tokens on decentralized exchanges using Bitquery’s DEX trade data. Evaluate trading volumes, price movements, and liquidity pools involving PENDLE tokens.

- Principal Token Transfers: Track the transfer and movement of principal tokens through Bitquery’s transaction data. Understand the distribution and accumulation patterns among wallets.

- Yield Redemption Events: Capture the events related to yield redemption, where users claim their earned yields. Use Bitquery to monitor these smart contract calls and the distribution of yields.

- Market Dynamics: Analyze the overall market dynamics of PENDLE by examining large transactions, whale activities, and significant balance changes. This helps in understanding the broader impact of yield tokenization on the DeFi ecosystem.

For more detailed data and real-time analysis, you can check it on the [Bitquery explorer](https://explorer.bitquery.io/arbitrum/token/0x0c880f6761F1af8d9Aa9C466984b80DAb9a8c9e8).

### Florence Finance’s flrEUR

Florence Finance's flrEUR is a tokenized version of the Euro, designed to integrate traditional fiat currency stability into the blockchain ecosystem. By representing the Euro on the Arbitrum network, flrEUR allows users to engage in decentralized finance activities with a stable and widely recognized currency.

#### Key Metrics

Token Attributes: The token attributes for flrEUR include a symbol of flrEUR, a name of Florence Finance flrEUR, 18 decimals, and it follows the ERC20 protocol.

![](/blog/real-world-asset-tracking-arbitrum-bitquery-apis/fleur.png)

Token Transfer Statistics: As of the latest data, flrEUR has a transfer count of 43,355. There are 7,580 unique senders and 7,714 unique receivers. The first transfer date was on September 1, 2023.

![](/blog/real-world-asset-tracking-arbitrum-bitquery-apis/fleur_tx.png)

#### Holder Statistics for Florin (FLR)

The holder statistics for Florin (FLR) as of July 21, 2024, indicate that the total holder count is 1,106. The Gini factor, which measures inequality among holders, is 0.9975722808221159, indicating a high level of inequality. The Nakamoto Index, which measures the distribution of wealth, is 2, suggesting a low level of decentralization. The total supply of FLR is 3,667,093.3725262934501991 tokens.

![](/blog/real-world-asset-tracking-arbitrum-bitquery-apis/flr_holder.png)

For more detailed data and real-time analysis, you can check it on [Bitquery explorer](https://explorer.bitquery.io/arbitrum/token/0x9B6226dd0191a77d032F56A6d383044EE99944C3).

## Conclusion

Using Bitquery's APIs on Arbitrum allows for a detailed and efficient way to handle and analyze Real World Assets, merging traditional finance with the benefits of blockchain technology. This integration not only improves how assets are managed and traded but also opens up new opportunities for investment and financial innovation. The accessibility of such detailed data through Bitquery APIs makes it easier for users to make informed decisions and develop robust applications in the blockchain space.

----
*Written by Abhishek*]]></description>
        </item>
        <item>
            <title><![CDATA[Bitcoin ATM Theft: How to Track and Recover Your Stolen Funds]]></title>
            <link>https://bitquery.io/blog/track-recover-funds-bitcoin-atm-transactions</link>
            <guid>https://bitquery.io/blog/track-recover-funds-bitcoin-atm-transactions</guid>
            <pubDate>Thu, 18 Jul 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
In the ever-changing world of cryptocurrency, Bitcoin ATMs have emerged as a convenient and accessible means for users to buy and sell Bitcoins. However, these ATMs, including those operated by [Bitcoin Depot](https://bitcoindepot.com/), come with risks such as high transaction fees, lack of KYC requirements, and susceptibility to scams and technical issues. With the increased use of Bitcoin ATMs, proper monitoring and security measures are important to ensure transaction integrity and user safety.

This article explores Bitcoin ATM transaction monitoring, common issues and scams associated with Bitcoin Depot ATMs, and effective methods for tracking Bitcoin wallet transactions.

Additionally, it highlights real-life cases of lost funds and explains how [Bitquery’s crypto investigation services](https://bitquery.io/products/crypto-investigation-services) can assist in recovering these assets.

## Understanding Bitcoin Depot ATMs

Bitcoin Depot is the largest Bitcoin ATM network worldwide, with over 7,400 locations across the United States, Canada, Puerto Rico, and Australia. The ATMs are

specially designed for buying and selling Bitcoin.

Users can buy Bitcoin using cash or debit cards. By depositing cash into the machine and scanning a QR code, the equivalent amount of Bitcoin is sent to their digital wallet.

## Fee Structure and Transaction Limits

The fees charged for transactions vary based on the type of transaction and location.

- Transaction Fees: For each transaction, users are charged a fee for using the ATM. Fees are calculated as a percentage of the transaction amount and may range from 5% - 10% per transaction.

- Spreads: Besides transaction fees, spreads between the market price of the cryptocurrency and the price offered at the ATM can affect the overall cost of the transaction.

- Limits: There are also daily limits on the volume of Bitcoin a customer can buy or sell in a single transaction or within a certain period, You can check the ATM for details on fees and limits.

## Lack of KYC Requirements and Associated Risks

Bitcoin Depot ATM users do not require Know Your Customer (KYC) for smaller transactions, this gives the following benefits:

- Anonymity: Users can purchase or sell their cryptocurrency without disclosing personal information for small transactions at Bitcoin ATMs, ensuring privacy and anonymity.

- Convenience: Without KYC requirements for small transactions, the process is quicker and more convenient since users can avoid lengthy verification procedures.

While the absence of KYC requirements has advantages, it also carries potential risks.

Risks:

Fraud and Money Laundering: Due to the absence of KYC requirements, the anonymity provided by these ATMs can be exploited for illegal activities such as [money laundering and fraud](https://bitquery.io/blog/cryptocurrency-money-laundering). Here's a deeper look into how this affects users:

- No Identity Checks: Without KYC requirements, unidentified users can make transactions without verification. This makes it easy for individuals to conduct illegal activities without being traced.

- Money Laundering: The lack of KYC allows criminals to use these ATMs to convert large amounts of illicit cash into Bitcoin, making it harder to trace. This process helps them "clean" the money and integrate it into the financial system.

- Scams: The anonymity of these ATMs can increase scams, where users deposit money expecting Bitcoin but never receive it. Legitimate users can also become victims of fraud, as transactions are untraceable, making it extremely difficult to recover lost funds.

Regulatory Issues: Lack of KYC requirements on these ATMs can attract scrutiny from governments and regulatory bodies that may impose stricter regulations on ATMs to prevent misuse. This could impact the availability and operation of these services in the future.

## Importance of Monitoring Bitcoin ATM Transactions

Recent events have underscored concerns about rising crypto-related fraud and Bitcoin ATM scams.

In 2023, S&P Solutions, also known as [Bitcoin of America](https://cointelegraph.com/news/bitcoin-atm-firm-profited-from-crypto-scams-via-unlicensed-kiosks-secret-service), and its executives faced serious charges for operating over 50 Bitcoin kiosks in Ohio without proper licenses. These kiosks were exploited by scammers, resulting in substantial financial losses, including an elderly man losing over \$11,000 in an hour.

Despite awareness of the scams, the company continued operating the kiosks, profiting from a 20% fee on transactions. Authorities seized 52 kiosks, with more located in other areas, and the company reportedly earned \$3.5 million from these illegal activities in 2021.

These incidents show the importance of monitoring Bitcoin transactions to prevent future scams. Regular and thorough monitoring can help identify unusual or

suspicious activity, allowing for prompt intervention before significant damage occurs.

By monitoring the flow of funds and analyzing transaction patterns, authorities

and individuals can spot warning signs. These signs include money being quickly moved across many addresses or transactions, or small amounts being sent by multiple senders to a particular address and so on.

![](/blog/track-recover-funds-bitcoin-atm-transactions/graph1.png)

Using good monitoring tools and practices enhances security and builds trust and transparency within the cryptocurrency ecosystem.

## Common Issues and Scams Related to Bitcoin Depot ATMs

Although convenient and easy to use, Bitcoin Depot ATMs can be vulnerable to various issues and scams. They exploit users' trust and lack of knowledge about cryptocurrency transactions.

Government Impersonation Scams: Fraudsters in these scams impersonate officials from legitimate organizations like pension agencies, tax authorities, or utilities. They contact victims, claiming debts such as unpaid bills, and threaten severe consequences for non-payment. Victims are instructed to withdraw cash, convert it to Bitcoin at a Bitcoin Depot ATM, and transfer it to the scammers.

An example of this scam happened in Australia where law enforcement discovered a [scheme](https://cointelegraph.com/news/australia-tax-regulator-warns-of-fraudulent-requests-for-tax-payment-via-btc-atms) where fraudsters posing as tax collectors convinced victims to make fraudulent tax payments using Bitcoin ATMs.

Financial Exploitation: This is a scam that targets the elderly's lack of familiarity with digital finance, convincing them to deposit cash into Bitcoin ATMs for convenience. The victims are forced into repeated payments until their savings are exhausted. For instance, a Michigan [elderly couple lost \$350,000](https://www.atmmarketplace.com/news/elderly-michigan-couple-loses-350k-in-bitcoin-atm-scam/) to scammers posing as Apple support, who instructed them to deposit cash into a Bitcoin ATM. Police in Alabama also uncovered similar schemes targeting elderly victims at gas station Bitcoin ATMs.

Investment scam: In investment scams, scammers pretend to be wealthy investors on social media or dating apps, building trust with victims to push them into crypto investments. They persuade victims to withdraw cash, deposit it into a Bitcoin ATM, convert it to crypto, and send it to the scammers' wallets. Once they receive large sums, typically tens or hundreds of thousands of dollars, the scammers disappear without a trace.

# How to Monitor Bitcoin Wallet Transactions with Bitquery?

Bitcoin transactions are recorded on the blockchain, an immutable and transparent ledger. Each transaction consists of inputs and outputs, with a unique transaction ID

as its identifier. Understanding these components is essential for tracking Bitcoin ATM transactions effectively.

### Using Bitquery for Bitcoin ATM Transaction Tracking:

[Bitquery](https://bitquery.io/) is a powerful tool that can help you effectively monitor Bitcoin ATM transactions. Here’s how you can do it:

1.  Access Bitquery explorer: Open [Bitquery explorer](https://explorer.bitquery.io/).

2.  Search for Bitcoin Transactions:

- Open the [Bitcoin mainnet](https://explorer.bitquery.io/bitcoin).

- Enter the Bitcoin addresses you're interested in.

For example, let's use this address: [bc1qvtl5lhhnnh9gjcyww0ld3rlx3luvd3sxnxfal8](https://explorer.bitquery.io/bitcoin/address/bc1qvtl5lhhnnh9gjcyww0ld3rlx3luvd3sxnxfal8).

- Use filters like date, amount, and other parameters to narrow down and focus on relevant transactions.

In the Bitcoin address example above, the date range is from "July 9, 2024, to July 16, 2024."

3.  Analyze the Transactions

Bitquery provides comprehensive details for each transaction, including:

- Transaction ID: A unique transaction identifier that can be used to track and reference it.

In the Bitcoin address above, the transaction ID is given as follows: [d4b2a26c2c2b0fe432a2af8a7b9ffb33b2dd0272ec40f15a7b1e537d2274b90a](https://explorer.bitquery.io/bitcoin/tx/d4b2a26c2c2b0fe432a2af8a7b9ffb33b2dd0272ec40f15a7b1e537d2274b90a).

- Date and Time: The exact timestamp when the transaction occurred, helping to establish the transaction timeline.

The transaction occurred on "2024-07-16 20:48:46"

- Amount: The specific quantity of Bitcoin that was transferred. This is important for understanding the transaction value.

The transaction amount was 0.00652168 BTC.

- Sender and Receiver Addresses: The Bitcoin addresses of both the sender and the receiver, identifying the parties involved in the transaction.

Sender: bc1qvtl5lhhnnh9gjcyww0ld3rlx3luvd3sxnxfal8

Receiver: bc1qspe9cl72mldemst6yd4empqv6fztyft0djfsu

4.  Visualize Transaction Patterns

Use Bitquery's advanced analytics tools to gain insights into transaction patterns:

- View Transaction Graphs: Plot transaction flows to observe how Bitcoin moves between different addresses, helping to understand the flow and connections.

![](/blog/track-recover-funds-bitcoin-atm-transactions/graph2.png)

- Identify Clusters: Group addresses associated with specific ATMs to spot transaction trends and commonalities, making it easier to identify significant patterns.

Following these steps, you can effectively monitor and gain insights into Bitcoin ATM transactions using Bitquery's powerful tools.

### How Bitquery Can Help Recover Lost Funds?

Bitquery provides specialized [investigation services](https://bitquery.io/products/crypto-investigation-services) to track down your stolen digital assets and deliver all types of support that help recover your crypto.

- Funds Tracking: Bitquery can help with tracking funds by using its cutting-edge blockchain analysis tools to track stolen funds. They do this by analyzing and tracking the flow of funds from the originating wallet to the final destination.

* Legal Support: By providing comprehensive reports on blockchain activities, Bitquery can help connect with seasoned crypto lawyers for legal proceedings and fund recovery efforts.

* Recovery Assistance: Bitquery offers expert support by coordinating with crypto exchanges and law enforcement agencies to retrieve lost or stolen assets.

#### How it works

- If you have lost money after using a BTC ATM and scanning your wallet's QR code, submit a [form](https://share.hsforms.com/1JFHb2vpNSnGYa5y6F8S1gw3rc4g) on Bitquery’s platform to request help.

- Bitquery’s team will conduct an initial assessment using the [Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) tool to trace the flow of funds through Bitcoin ATMs, identifying patterns and addresses involved in your transaction.

- If promising leads are found, such as suspicious transactions or interactions with known addresses or exchanges, Bitquery conducts further investigations to determine their significance and provide you with detailed insights.

- You will be contacted to discuss the findings and will be offered the option to purchase a complete report. This report includes a detailed analysis of the transaction, providing valuable information to help trace your funds.

- Bitquery collaborates with authorities, using the complete report to provide evidence and support for legal and regulatory compliance, helping to recover your lost funds.

### How Does MoneyFlow Work?

Bitquery [MoneyFlow](https://bitquery.io/products/moneyflow), is a tool that uses advanced blockchain data analytics to trace and analyze cryptocurrency movements across multiple blockchains, providing detailed transaction insights and counterparty information to aid in compliance, security, and research.

It is the ultimate crypto investigation solution for crypto investigators and law enforcement agencies for the following reasons:

- Precise Monitoring and Visualization: Coinpath effortlessly tracks specific fund transfers, automates investigation processes, and visualizes fund movement with intuitive tools.

- Automated Tracing and Clustering: Coinpath automates the tracing of cryptocurrency transactions, reducing the manual effort required to follow the movement of funds. This feature ensures that users can quickly and accurately identify the flow of assets from one address to another, increases the efficiency of the investigation process, saves time, minimizes manual decision-making, and eliminates errors.

- Labels and Counterparty Info: Coinpath provides detailed information about counterparties involved in transactions. This includes labels that identify known entities and addresses, making it easier to understand the nature of the transaction and the parties involved. This feature is crucial for compliance and risk management.

- Multiple Chains: One of the standout features of Bitquery Coinpath is its support for 40+ blockchain networks. Users can trace transactions across different chains, providing an overview of cryptocurrency flows.

With these features, Bitquery Coinpath empowers users to gain deeper insights into the movement of cryptocurrencies, enhancing transparency and enabling more informed decision-making.

To learn more about how Bitquery can assist you in monitoring Bitcoin wallet transactions and recovering lost funds, visit [Bitquery Crypto Investigation Services.](https://bitquery.io/products/crypto-investigation-services)

## Conclusion

Monitoring Bitcoin ATM transactions is crucial for maintaining the integrity and security of the cryptocurrency ecosystem. Understanding the features and potential issues related to Bitcoin Depot ATMs can help users navigate these services safely.

By utilizing tools like Bitquery, users can effectively monitor transactions and recover lost funds, ensuring a secure and transparent cryptocurrency experience.

If you've encountered issues with Bitcoin ATM transactions, reach out to Bitquery for expert assistance in tracking and recovering your funds.

----

*Written by Edgar N*]]></description>
        </item>
        <item>
            <title><![CDATA[Maximizing Crypto Gains: Using Mempool Data and Bitquery APIs for Token Price Predictions]]></title>
            <link>https://bitquery.io/blog/maximizing-crypto-gains-mempool-bitquery-token-price-predictions</link>
            <guid>https://bitquery.io/blog/maximizing-crypto-gains-mempool-bitquery-token-price-predictions</guid>
            <pubDate>Mon, 15 Jul 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
The crypto market is a fast-paced game full of opportunities that look like cheat codes and malicious individuals and schemes that you may not want to be associated with.

The key difference between traditional markets and crypto markets is the way we predict the future price action of an underlying asset. Cryptocurrencies offer different data sources that are not accessible in tradfi.

One such goldmine of a source that is not very popular in the crypto market is [mempool](https://bitquery.io/products/mempool-api) - a crucial component in blockchain architecture and a treasure trove for data-savvy and arbitrage traders. Mempool - short for memory pool serves as an awaiting area for unconfirmed transactions on a blockchain - before a transaction is included in a block.

Using on-chain data tools like Bitquery facilitates users with [real-time data through subscriptions](https://docs.bitquery.io/docs/subscriptions/mempool-subscriptions/). Using live data will help you realize potential opportunities and red flags.

In this article, we will learn just that through a couple of case studies, so let’s get right into it.

## How does Mempool help predict price actions?

The mempool (memory pool) in blockchain networks contains unconfirmed transactions waiting to be included in the next block. Analyzing mempool data can provide valuable real-time insights into market sentiment and potential price movements. Here's how specific attributes of mempool data can be used for token price analysis:

## 1. Transaction Volume and Frequency

The number and frequency of pending transactions for a particular token can indicate increased interest or activity, potentially preceding a token price movement.

Example: Uniswap (UNI) had seen a [meteoric price increase during mid-February of 2024](https://ide.bitquery.io/Tracking-the-surge-in-transaction-of-Uniswap). The price of Uniswap almost doubled and the transaction count /day went almost 10x. ![](/blog/maximizing-crypto-gains-mempool-bitquery-token-price-predictions/uniswap_tx_count_price.png)

Onspot mempool analysis can give you an edge over others when it comes to such event types

Some reasons for the same could be:

- Growing interest in the token, possibly due to positive news or speculation

- Increased trading activity, which might lead to higher volatility

- Potential price movement as demand changes

Analysis Rationale: Sudden spikes in transaction volume often precede price movements. Traders monitoring this data might interpret it as a signal to enter or exit positions, potentially amplifying the price effect.

## 2. Gas Fees

In networks like Ethereum, rising gas fees often correlate with increased demand for block space. This can signal growing interest in specific tokens or protocols.

Example: During the launch of Yuga Labs' Otherside NFT collection, Ethereum gas fees [spiked to unprecedented levels](https://ide.bitquery.io/Otherdeed-high-gas-fee). At its peak, gas prices reached nearly 8,000 gwei, with some [users reportedly paying thousands of dollars with of ETH](https://cointelegraph.com/news/eth-gas-price-surges-as-yuga-labs-cashes-in-300m-selling-otherside-nfts) just in transaction fees. This surge was due to the immense demand for the NFTs, causing a massive influx of transactions on the Ethereum network.

![](/blog/maximizing-crypto-gains-mempool-bitquery-token-price-predictions/eth_gas_nft_launch.png)

[Tracking gas fees](https://ide.bitquery.io/Ethereum-Gas-FEES_1) helps us track such changes in demand and supply.

Analysis Rationale: Higher gas fees suggest users are willing to pay more to ensure their transactions are processed quickly. This often correlates with time-sensitive opportunities or strong convictions about imminent price movements.

## 3. Smart Contract Interactions

Pending interactions with decentralized exchanges (DEXs) or lending protocols can provide insights into imminent trading activity.

Example: YFI was launched with a total supply of only 30,000 tokens, distributed to users who provided liquidity to specific pools on yearn.finance.

### Surge in Pending Transactions

- Immediately after the announcement, there was a massive surge in pending transactions on Ethereum, particularly on decentralized exchanges like Uniswap.

- Many users were trying to acquire YFI tokens by swapping ETH or other tokens.

- The Ethereum mempool became congested with a high number of pending swap transactions.

### Price Movement

- YFI's price skyrocketed from effectively $0 to over $4,000 within the first day.

- By July 18, the price had surpassed \$4,000.

- The price continued to climb rapidly, [reaching around \$40,000 by the end of July.](https://ide.bitquery.io/YFI-45000-USD-trade)

### Impact on ETH and Gas Prices

- The surge in transactions caused Ethereum gas prices to spike dramatically.

- While ETH price wasn't significantly impacted in this case, the gas price increase affected the entire Ethereum ecosystem.

![](/blog/maximizing-crypto-gains-mempool-bitquery-token-price-predictions/yfi_launch.png)

Analysis Rationale: Smart contract interactions, especially with DEXs, directly impact token supply and demand. Large pending volumes can foreshadow imminent price changes once these transactions are confirmed.

## 4. Large Value Transfers

Significant pending transfers, especially from known whale addresses, may foreshadow market-moving events.

Example Compound Finance is a major DeFi lending protocol on the Ethereum blockchain. COMP is its governance token, distributed to users of the protocol as an incentive.

### Event Details

1.  Bug Introduction - September 2021:

- A buggy upgrade was implemented in the Compound protocol's Comptroller contract.

- This bug caused the protocol to distribute excessive amounts of COMP tokens to some users.

3.  Abnormal On-chain Activity:

- Shortly after the upgrade, observers noticed a surge in abnormal transactions involving the COMP token.

- Large amounts of COMP were being claimed by addresses that shouldn't have been eligible for such rewards.

- This activity was visible in the mempool before transactions were confirmed.

5.  Market Reaction:

- As news of the bug spread, primarily through on-chain observations, the COMP token price began to fall.

- The price dropped from [hundreds of dollars to a meagre \$40 over the months.](https://ide.bitquery.io/COMP-USD-downfall)

7.  Protocol Response:

- Compound's team acknowledged the issue and began working on a fix.

- However, due to the protocol's governance structure, implementing the fix would take several days.

Analysis Rationale: Large holders have the potential to impact token prices significantly. Other traders often closely watch their actions, and significant movements can trigger broader market reactions.

## How to Interpret Mempool Data?

The art of mempool analysis lies in interpreting various metrics to identify potential price movements. By leveraging advanced blockchain data analysis techniques, analysts can gain valuable insights into market dynamics.

Bitquery’s [plethora of queries](https://ide.bitquery.io/explore/All%20queries?search=mempool) on the topic can be a good start, with its easy-to-use UI, you can also fetch data from blockchain with almost no SQL experience.

Let's explore key aspects of mempool analysis with practical examples.

### 1. Identifying Supply and Demand Trends

The volume and direction of pending orders in the mempool can indicate incoming market pressures.

Example: Imagine the mempool shows a sudden influx of pending orders for the ABC hypothetical token:

- 500 pending sell orders totaling 100,000 ABC tokens

- Only 50 pending buy orders totaling 5,000 ABC tokens

This imbalance suggests incoming selling pressure, which could lead to a price decrease for ABC token.

Advanced Technique: Implement real-time tracking of pending orders across multiple decentralized exchanges. By aggregating this data, you can get a comprehensive view of supply-demand imbalances for example [total circulating supply of a token](https://ide.bitquery.io/Total-Circulating-Supply-of-a-token-on-Ethereum), providing a more accurate picture of potential price movements.

### 2. Spotting Arbitrage Opportunities

Differences in pending trades across DEXs can reveal arbitrage opportunities, often leading to short-term price equalizations.

Example: Pending orders in the mempool show:

- DEX A: 100 pending buy orders for XYZ token at \$10

- DEX B: 100 pending sell orders for XYZ token at \$10.5

This disparity indicates a potential arbitrage opportunity, which could lead to a quick price adjustment as traders exploit this difference.

Advanced Technique: Develop a system to compare pending orders across different DEXs and even different blockchains. This broader view enhances your ability to identify and act on arbitrage opportunities quickly.

### 3. Recognizing Spikes in Trading Activity

Explanation: Sudden increases in pending swap transactions for a particular token pair could precede a price surge or drop.

Example: The mempool shows a 50% increase in pending swap transactions for the DEFI/ETH pair in the last 10 minutes. This could indicate:

- Breaking news about the DEFI project

- A potential pump-and-dump scheme in progress

- Imminent price volatility for DEFI token

Advanced Technique: Implement WebSocket connections to enable real-time monitoring of mempool activity. Set up alerts for sudden spikes in trading activity, allowing for quick reactions to market changes.

Websockets are quite useful because:

-  Real-time data: WebSockets provide a persistent connection between the client and server, allowing for instant data transmission as soon as it's available. This is crucial for mempool analysis, where timing is everything.

-  Efficiency: Unlike RESTful polling, WebSockets don't require constant requests to the server. This reduces latency and server load, making it ideal for high-frequency monitoring.

-  Scalability: WebSockets can handle a large number of simultaneous connections, making them suitable for monitoring multiple token pairs or blockchain networks concurrently.

But how to implement WebSockets? [Check this Bitquery article](https://docs.bitquery.io/docs/subscriptions/websockets/) to understand in detail.

[This query](https://ide.bitquery.io/dex-trading-vol-by-pairs) can be a good starting point while studying DEX and trading volume points.

### 4. Detecting Patterns

Explanation: Recurring patterns in mempool data, such as regular large transfers or contract interactions, might correlate with cyclical price movements.

Example: Analysis of historical mempool data shows that every Friday at 3 PM UTC, there's a spike in pending transactions interacting with a particular yield farming contract. This pattern often precedes a 2-3% price increase in the associated token over the weekend.

Advanced Technique: Plot each and every mempool transaction you generate via Bitquery’s API into a database along with the time and token price, over time, where there are huge spikes in volatility and hefty price action, look at the mempool data. You can further itemize the data and use pattern identification algorithms to flag and analyze these data into opportunities and red flags

Let us look at some of the ways you can use Bitquery/s Mempool and subscription features to increase your profits.

### Case Study 1: Detecting Rug Pulls

Mempools are a great source of predicting short-term price actions, but due to their temporary and dynamic nature hooking them up with a bigger setup makes more sense. A rug pull detection mechanism can be one of those ‘ bigger setups’. And using the Bitquery APIs can make your work cut out for you.

Rug pulls are a form of exit scam where developers and other core project stakeholders abandon a project by selling their bags and create a major imbalance in the liquidity pool that other token holders cannot sell their assets.

This is usually very common in low market cap meme coins on DEXes and is a major concern in the crypto space. Mempool analysis can help in giving early warning signs of potential rug pulls, allowing vigilant investors to get out of the project before something like this happens.

Methodology: Our approach involves monitoring the mempool for large transactions involving recently created tokens. A sudden, significant transfer of a new token can be an indicator of a potential rug pull.

**Step-by-step process using Bitquery**

-  Monitor large pending transactions in the mempool (especially the developer tokens)

-  Cross-reference with token creation date

-  Flag potential rug pulls or influential transactions

[This is a query that gives large transactions](https://ide.bitquery.io/Rug-Pull-Detection-for-small-MC-coins-using-Mempool), their value, and the associated time stamp on the mempool.

By using Bitquery, you can create a more efficient and effective rug pull detection system. It allows you to process large volumes of mempool data in real-time, potentially giving investors crucial early warnings about suspicious activity in the crypto space, without the need to build and maintain complex blockchain data infrastructure yourself.

Let's look at what the sandwich strategy is.

### Case Study 2: Sandwich Trading Using Mempool Data

Sandwich trading is a strategy where a trader attempts to profit from a large pending transaction

by executing trades immediately before and after it.

The biggest challenge with this strategy is getting streamlined mempool data in the language you are comfortable in. Bitquery solves that making your work cut out for you, hence we will use Bitquery for the tool.

[This tutorial helps you build dashboards to track sandwich attacks in real-time.](https://docs.bitquery.io/docs/usecases/sandwitch-detection/)

By leveraging mempool data, we can identify potential opportunities for this strategy. Let's explore how to implement this using Bitquery's tools.

![](/blog/maximizing-crypto-gains-mempool-bitquery-token-price-predictions/sandwich_strategy.png)

**Methodology**

-  Monitor the mempool for large pending transactions through Bitquery

- Place a buy order with higher fees to execute before the large transaction

- Place a sell order to execute after the large transaction

[This is a query](https://ide.bitquery.io/Sandwich-Trading-opportunity-detection_1) that helps you detect the token price of more than a predetermined amount.

To get the query in the language you want, you can get the code snippet on the right side of the screen.

We would then need to automate to trigger another order that can help you execute steps 2 and 3 in your quant bot.

The pseudo-code looks like:

```
while True:

    large_tx = monitor_mempool()
    if large_tx and is_profitable(large_tx):
        # Step 1: Buy ETH with a higher gas price
        buy_eth(amount=calculate_amount(large_tx),
                gas_price=large_tx.gas_price * 1.1)
        
        # Step 2: Wait for a large transaction to be mined
        wait_for_transaction(large_tx.hash)
        
        # Step 3: Sell ETH immediately after
        sell_eth(amount=calculate_amount(large_tx))

```

### Key Considerations

-  Speed is crucial. The system must be able to detect opportunities and execute trades very quickly.

-  Gas fees must be carefully managed to ensure profitability.

-  The strategy carries risks, including potential losses if the market moves unexpectedly or if the large transaction is canceled or modified.

-  Ethical considerations: This strategy can be seen as a form of front-running and may be considered controversial.

### Implementation with Bitquery

To implement this strategy:

-  Use the subscription to monitor the mempool continuously.

-  When a large transaction is detected, quickly estimate its price impact.

-  If profitable, use this [sandwich opportunity detection query](https://ide.bitquery.io/Sandwich-Trading-opportunity-detection_1) to fetch current token prices and gas fees.

-  Execute the buy transaction with a slightly higher gas price.

-  Monitor the blockchain for the large transaction to be mined.

-  Immediately execute the sell transaction once the large transaction is confirmed.

This implementation leverages Bitquery's real-time mempool data to identify potential sandwich trading opportunities quickly. By using Bitquery, we can efficiently monitor the mempool without having to run and maintain our own Ethereum node, which significantly simplifies the implementation of this strategy.

However, it's crucial to note that sandwich trading is a complex and potentially risky strategy

Other than that, you can also use Mempool for:

- Arbitrage opportunities

- Flash Loan Attack Detection

- MEV (Miner Extractable Value) Opportunities

- Token Launch Monitoring

- DApp Usage Trends

## Summing up

Mempool analysis offers a unique and powerful approach to predicting token price movements in the fast-paced world of cryptocurrency trading. By leveraging the real-time insights provided by pending transactions, traders can gain a valuable edge in anticipating market shifts.

Using Bitquery for mempool analysis can help you do it faster and in a smarter manner.


--

*Written by Harshil*]]></description>
        </item>
        <item>
            <title><![CDATA[The Ultimate Guide to Crypto Wallet Intelligence: Tracing, Analysis, and Compliance]]></title>
            <link>https://bitquery.io/blog/ultimate-guide-wallet-intelligence-tracing-analysis-compliance</link>
            <guid>https://bitquery.io/blog/ultimate-guide-wallet-intelligence-tracing-analysis-compliance</guid>
            <pubDate>Mon, 15 Jul 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Wallet Intelligence is the analysis and interpretation of the information (token type, transaction volume, transfer information, etc) associated with a cryptocurrency wallet. With wallet intelligence, you track and understand the behavior, activities, and patterns of transactions made by a specific wallet on the blockchain network.

## Importance of Wallet intelligence

Wallet intelligence offers a lot of benefits to crypto users. The analysis of crypto wallets provides insights into the behavior of the users and patterns of their usage. Here are the benefits of wallet intelligence.

1.  ### Anti-money Laundering and Know Your Customer (AML/KYC) Compliance

This helps comply with [AML/KYC regulations](https://bitquery.io/blog/cryptocurrency-money-laundering) by verifying transactions that fit the profile of money laundering and enabling quick response or reporting. It verifies users' identity and monitors or surveils wallet activities, which help identify and stop illicit activities in real-time.

Moreover, wallet intelligence helps in regulatory reporting after documenting the suspicious activities to the proper regulatory bodies and ensures adherence to legal requirements.

2.  ### Wallet Balance Reconciliation

With wallet intelligence, you can conduct analysis on a wallet to reconcile past transactions and verify the current balance against historical records. Bitquery APIs enables you to retrieve detail audit trails, which makes it easier to identify discrepancies and ensure accurate reconciliations.

Overall, wallet intelligence makes it easier to [audit blockchain wallets](https://bitquery.io/blog/audit-blockchain-wallets-step-by-step-guide) and enables you to easily verify transactions ensuring enhanced accuracy, efficiency, and security.

3.  ### Network Relationship mapping

With wallet intelligence, you can conduct network relationship mapping to identify the network of illicit activities and uncover related wallets engaging in coordinated fraudulent activities and scams. You can learn and understand the relationship to disassembling illicit network activities by targeting key wallets and breaking down their criminal networks. You map the interaction between wallets and uncover related wallets.

For example, if a particular wallet is detected to be used by a hacker or fraudster, with wallet intelligence, you can monitor the wallet and uncover related wallets that’s used by those group.

Below is an address link to the Lazarus group (as reported by ZachXBT)

[0x0864b5ef4d8086cd0062306f39adea5da5bd2603](https://explorer.bitquery.io/ethereum/address/0x0864b5ef4d8086cd0062306f39adea5da5bd2603/)

With the Bitquery Coinpath API, we are able to [trace the interaction of the wallet with other wallet](https://bitquery.io/products/coinpath) and thereby discover the network of related scam wallets. Here is a visualization of the movement of funds from the wallet to other wallets:

![](/blog/ultimate-guide-wallet-intelligence-tracing-analysis-compliance/coinpath1.png)

![](/blog/ultimate-guide-wallet-intelligence-tracing-analysis-compliance/coinpath2.png)

The visualization above showed how the wallet ten transactions from 10 different sources, with the largest transactions coming from a Uniswap Router. We also saw how transactions were initially sent to two wallets before being consolidated to one.

Moreover, you understand the broader ecosystem and identify influential players, identify clusters related to wallets, and provide useful data and information for coordinated activities like collaborative fraud and market manipulation.

4.  ### Detecting Anomalous Transactions

Wallet intelligence can also help detect unusual activities or deviations from typical patterns. For example, a sudden large transaction from a wallet or a transaction to crypto mixers like [Tornado Cash](https://bitquery.io/blog/track-money-tornado-cash-bitquery) can indicate fraud and hacks may indicate potential security breaches or fraudulent behavior.

With wallet intelligence, you can easily monitor a wallet and so identify suspicious activities that may indicate potential security breaches or fraudulent behavior. And this could prevent them before they eventually happen.

## Why Bitquery when it comes to Wallet Intelligence?

Bitquery is a leading provider of blockchain data APIs and crypto tracing tools. It offers a different suite of products that enables [cross-chain analytics, DEX insights, and smart contract APIs](https://bitquery.io/products/data-on-demand). It parses, indexes, and stores blockchain data in a unified manner. It’s dedicated to powering and solving blockchain data problems using on-chain data.

Its different APIs let you conduct a deep/comprehensive analysis of a particular wallet. In the next section, we’ll go through a practical process of conducting wallet intelligence in real time using Bitquery APIs on a wallet.

## Case Study: How to Conduct a Wallet Intelligence using Bitquery APIs

Here, we’ll walk you through a case study on how you can conduct wallet intelligence analysis using Bitquery APIs.

In this case study, we’ll be conducting an analysis using the below wallet address:

[0x41Bc7d0687e6Cea57Fa26da78379DfDC5627C56d](https://explorer.bitquery.io/ethereum/address/0x41Bc7d0687e6Cea57Fa26da78379DfDC5627C56d)

Without further ado let’s get started.

1.  ### Getting the Attribute of the Wallet

After deciding on the wallet to analyze, the next action is to get the attribute or the necessary information concerning the wallet. Using [Bitquery’s Address Stats API](https://docs.bitquery.io/v1/docs/Examples/addressStats/address-stats-api), you can access the information to analyze the wallet. Here is the link to the GraphQL query to gain the [wallet attribute](https://ide.bitquery.io/attribute-of-the-wallet_1).

With the query, we can retrieve these basic information:

- We discovered that as of the time of writing this article, the total amount sent out from the wallet to other wallets is around $62,871.28 with a total transaction count of 6,469 while the total amount received is $62,981.30 with a total of 8,139 in total received transaction.

* Also, transactions were received from over 1,110 addresses and the total currencies received since the inception of the wallet is 936. While there are 937 unique wallets our wallet has sent tokens to. And the total currencies transferred out is 721.

- We are also able to discover that the first day a transaction was ever conducted on this wallet was on June 9, 2019, at 9:33 am while the last transaction as of the time of writing this article is on July 08, 2024, at 10:41 pm.

These are some of the information we think is important to highlight. If you need more details, you can also access them with this query, information like current balance, total gas fee spent, total transaction count, and so on.

2.  ### Identifying the Type of Asset Held

Once you get the basic information of the wallet you want to analyze, it’s also important to identify the type of asset held. With the [Address Balance History API](https://docs.bitquery.io/docs/examples/balances/balance-api/), we can retrieve the information about the tokens held by the wallet.

Here is the query to retrieve the [balance update information](https://ide.bitquery.io/wallet-asset-balance_1) of the wallet. With the query, we retrieve this information in descending order. Here is a list of the top 10 wallets held by the wallet and the balance in USD.

- This wallet holds $400,000 worth of Blockchain-certified Data Tokens and $325,320 worth of ether.fi governance token, $191,981 Synth sUSD, a stablecoin, $65,621 worth of pound token, \$48,876 worth of Frax token, and so on.

* The information gives us access to the wallet balance, which makes us identify and understand the type of wallet, value distribution, quantity breakdown of the wallet balance, and the psychology that guides the wallet owner.

- Overall, we’re able to identify that the wallet is individually owned and that the wallet is classified as a whale since it holds more than \$10 million worth of cryptocurrency.

Moreover, a close look at the types of tokens in this wallet lets us know that this investor leans more into yield farming/liquidity providing/staking.

3.  ### Analyzing the Wallet Inflow and Outflow

We can now analyze the movement of funds and the buying/selling patterns of the wallet. With the [transfers API](https://docs.bitquery.io/v1/docs/Examples/Transfers/transfer-api), we can access the inflow and outflow of tokens and the movement of funds in the wallet. This will help us gain market insight, map network relationships, and check for suspicious transactions that could point to fraud or hack.

This query helps us pull the information about all [inbound transactions](https://ide.bitquery.io/All-Inbound-transactions-of-a-wallet#) after January 1, 2024, and this query helps us pull information about the [outbound transactions](https://ide.bitquery.io/All-outbound-transactions-of-a-wallet) in the same period.

From the data we pulled using the Bitquery Transfer API, we saw that the wallet, apart from a few stablecoins, received more derivative tokens.

For example, on the first of January, 2024 at 10:41 am, the wallet received over \$900k worth of swETH token (a derivative Ethereum token for Swell Network, a liquid restaking platform) from this wallet, [0xaa68ca9c69a4ff22203ce189ce4448d7401875e8](https://explorer.bitquery.io/ethereum/token/0xaa68ca9c69a4ff22203ce189ce4448d7401875e8).

Also a few hours later at 01:01 pm, the wallet received another \$600k worth of swETH from another wallet with this address [0xf951e335afb289353dc249e82926178eac7ded78](https://explorer.bitquery.io/ethereum/token/0xf951e335afb289353dc249e82926178eac7ded78).

On the other hand, looking at the outbound transactions, we discovered a clear and vivid transaction pattern on the token sent. Looking through the outbound transactions, we discovered two things:

- The owner only transferred out Ethereum tokens

- The wallet owner never transferred more than 37.7 Ether (\$98,486), as seen on the 11th of January 2024 at 5:17 am

By pulling and analyzing inbound and outbound transactions, we can figure out the buying and selling pattern of the wallet and identify the interaction between this wallet and others.

So, assuming we saw the wallet sending out other tokens apart from Ether and it’s more than the usual amount common to the wallet owner, we can easily raise a red flag and dig deep into the event.

On the other hand, if the wallet seems to receive other tokens aside from derivatives (of course this could happen occasionally) but if it becomes more frequent than normal and the amount is in large numbers, we’d easily know something is wrong and reach out to the necessary authority for a solution.

4.  ### Checking for Interaction with other Wallets and Counterparty

Based on our previous analysis, we discovered that this wallet owner is more of a DeFi investor (i.e. a staker/yield farmer), based on their inbound and outbound transactions. Taking a closer look at the inbound transaction, we saw that the wallet interacts more with a particular wallet.

For example, the wallet received about \$1.6 million worth of swETH derivative tokens from [0xe7583af5121a8f583efd82767cccfeb71069d93a](https://explorer.bitquery.io/ethereum/smart_contract/0xe7583af5121a8f583efd82767cccfeb71069d93a) and [0xaa68ca9c69a4ff22203ce189ce4448d7401875e8](https://explorer.bitquery.io/ethereum/token/0xaa68ca9c69a4ff22203ce189ce4448d7401875e8) in less than 24 hours.

Assuming, based on more analysis of the other factors, you find these transactions suspicious, you can even dig deep into the relationship between these wallets to be sure of your conviction before drawing the attention of the necessary authorities.

Here, we want to know more about [0xe7583af5121a8f583efd82767cccfeb71069d93a](https://explorer.bitquery.io/ethereum/smart_contract/0xe7583af5121a8f583efd82767cccfeb71069d93a) what wallet interacted with this wallet, where the funds sent here come from, and if there is an established interaction between the wallets. With the Coinpath API, you can track the movement of funds, and you can also visualize it using the Moneypath tab in Bitquery Explorer.

![](/blog/ultimate-guide-wallet-intelligence-tracing-analysis-compliance/coinpath3.png)

With the money path visualization, we discovered that the \$900k worth of swETH was also sent from a wallet ([0x0ce176e1b11a8f88a4ba2535de80e81f88592bad](https://explorer.bitquery.io/ethereum/smart_contract/0x0ce176e1b11a8f88a4ba2535de80e81f88592bad)), which was then sent to our wallet. And there seems to be no prior interaction between any of the wallets.

If our finding seems suspicious, you can dig deep into the wallet to know more about the sender. And if there is any form of fraud, scam, or hack, you can report it to the right authority.

In conclusion, wallet intelligence is an invaluable tool in the cryptocurrency ecosystem. By leveraging various aspects of wallet intelligence, stakeholders can significantly enhance the security, compliance, and operational efficiency of their activities.

As demonstrated in the case study, the practical application of Bitquery APIs can reveal crucial details about a wallet's attributes, asset holdings, transactional patterns, and movement of funds allowing for informed decision-making and proactive risk management. Whether you are an individual investor, a financial institution, or a regulatory body, harnessing the power of wallet intelligence using Bitquery APIs can help you navigate the complexities of the cryptocurrency landscape with confidence and precision.


---
*Written by Emmanuel*]]></description>
        </item>
        <item>
            <title><![CDATA[Announcement of New API Pricing at Bitquery]]></title>
            <link>https://bitquery.io/blog/new-pricing-june-2024</link>
            <guid>https://bitquery.io/blog/new-pricing-june-2024</guid>
            <pubDate>Thu, 20 Jun 2024 12:42:00 GMT</pubDate>
            <description><![CDATA[
Dear Bitquery Users,

We want to share with you an update regarding changes to our pricing structure effective from June 2024. This update is designed to better align with the evolving needs of our users and the increasing costs of maintaining state-of-the-art blockchain data services.

## Why the Change in Pricing?

Blockchain technology is expanding swiftly, with an increasing number of chains and faster transaction speeds, which have led to significant growth in data volume and complexity. Initially, Bitquery managed only a few terabytes of data and less than 10 chains; today, we process over 2 petabytes of blockchain data and support 40+ blockchains. We now handle millions of API calls and real-time data streams daily.

Despite these developments, our prices have not changed in the last five years. We have absorbed the rising costs of infrastructure and maintenance to ensure your experience remains unaffected. However, to continue providing the quality and reliability you expect, we are introducing a more flexible pricing model.

## New Pricing Structure

The new pricing will not be one-size-fits-all but will instead reflect the diverse needs and usage patterns of our customers. It will take into account several factors including:

- The blockchains you access
- Your data stream requirements
- API usage
- Specific use cases

This approach ensures that you only pay for what you truly need and benefit from.

### For Our Existing Customers

We value your continued trust and partnership. Therefore, we offer a smooth transition to the new pricing:

- To enjoy uninterrupted service, please switch to the new pricing by October 1, 2024.
- If you have prepaid for services beyond this date, rest assured that your current pricing will be honored until the end of your prepaid term. After this period, the new pricing will apply.

## Our Commitment to You

Our team is dedicated to supporting your ventures and ensuring that Bitquery remains a pivotal tool for your business. We believe that this new pricing model will foster a deeper relationship with all our users, tailored to your specific needs.

## Questions or Concerns?

We understand that changes can raise questions. Please do not hesitate to contact our sales team at [sales@bitquery.io](mailto:sales@bitquery.io) with any inquiries or further clarification. We are here to help and ensure a seamless transition for everyone.

We thank you for your understanding and continued support. Together, we are excited to embark on this new phase of growth and innovation.

Warm regards,

The Bitquery Team

---

---

## Frequently Asked Questions about Our New Pricing

### What prompted the change to a new pricing model?

We’ve updated our pricing to reflect the growth in blockchain data and the costs associated with providing high-quality, reliable services. This change helps us keep pace with technological advancements and infrastructure needs.

### How will the new pricing structure be different from the current one?

The new model is tailored to match the specific needs of our customers based on their usage patterns, such as the type of blockchain data accessed, volume of data streams, API usage, and specific business use cases.

### Will there be different pricing tiers?

The new pricing completely depends on your requirements; therefore, we will charge you for whatever you use or plan to use.

### How can I find out what my new pricing will be?

You can contact our sales team at sales@bitquery.io for a personalized consultation or book a call using [this Calendar](https://meetings.hubspot.com/anmol-pandhi)

### What happens if I’ve already paid for services beyond 1st October 2024?

If you have prepaid for any period extending beyond October 1, 2024, your current pricing will be honored until the end of your prepaid term. After this, the new pricing structure will apply. We will reach out in advance to ensure a smoother transition.

### How do I switch to the new pricing?

Existing customers will need to transition to the new pricing by October 1, 2024. You can make this change by contacting our sales team at [sales@bitquery.io](mailto:sales@bitquery.io) or through [booking a call with a Sales representative](https://meetings.hubspot.com/anmol-pandhi).

### Can I keep my current pricing?

Due to changes in market conditions and costs, all users must move to the new pricing by October 1, 2024. We appreciate your understanding as we make these necessary adjustments.

### What support is available if I have questions or need help transitioning?

Our customer support and sales team can answer any questions or concerns. Please reach out via email at [sales@bitquery.io](mailto:sales@bitquery.io) or through our [support portal on our website](https://support.bitquery.io/).

### Will there be any changes to the services provided under the new pricing model?

The new pricing model will allow us to continue improving and expanding our services. You can expect enhanced features, better data coverage, and improved support as part of our commitment to your business success.

### What if I decide the new pricing doesn’t fit my needs?

We encourage you to discuss your specific concerns with our Sales team. We are committed to working with you to find a solution that fits your business requirements.

### My problem is not mentioned above; who should I contact about it?

You can send us an email at [sales@bitquery.io](mailto:sales@bitquery.io)
]]></description>
        </item>
        <item>
            <title><![CDATA[The Future of Finance: How Syla Uses Bitquery Data for Crypto Tax Solutions]]></title>
            <link>https://bitquery.io/blog/syla-bitquery-crypto-tax-solutions</link>
            <guid>https://bitquery.io/blog/syla-bitquery-crypto-tax-solutions</guid>
            <pubDate>Fri, 14 Jun 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
## Background

[Syla](https://www.syla.com.au) is Australia’s leading tax software for crypto investments. As a crypto tax software provider, Syla has a need for complete and accurate transaction history imports, which are then utilized for generating tax reports.

Facing an increasing demand for accurate on-chain transaction reporting, Syla sought to enhance its [crypto tax calculator](https://bitquery.io/solutions/crypto-tax-software) to provide comprehensive support for additional blockchains.

![](/blog/syla-bitquery-crypto-tax-solutions/tax%20report.png)

## Challenge

The primary challenge was the complexity and variability of blockchain transactions. Syla needed to extract detailed transaction data across multiple blockchains, in a standardised format that could scale, but still ensure the accuracy of tax calculations and compliance with Australian tax regulations.

## Solution

Syla partnered with Bitquery, leveraging its advanced blockchain data API. Bitquery’s API provided Syla with granular data on cryptocurrency transactions, including historical transaction records, wallet addresses, and token transfer details across various blockchains. This integration enabled Syla’s software to automatically categorise transactions and calculate tax obligations accurately.

The main benefits of the Bitquery API for the application included:

- Customized queries using GraphQL

- Access to decoded logs

- Support for internal transactions along with ERC20, ERC721, and ERC1155 transactions.

- Ability to identify tokens and NFTs.

This integration provided the necessary tools to enhance and scale up Syla’s tax software to support on-chain sources of transaction data.

## Implementation

The integration process involved setting up Bitquery’s GraphQL APIs with Syla’s existing systems. Syla’s development team utilised Bitquery’s comprehensive documentation and interactive tools to customise the data queries to fit their specific requirements.

## Results

The implementation of Bitquery’s APIs transformed Syla’s crypto tax software, making it more robust and user-friendly. The software now supports multiple blockchains, providing users with precise tax reports, tailored to each user’s transaction history. The enhanced software significantly reduced errors and saved time for users by automating the complex process of tracking and reporting cryptocurrency transactions.

## Customer feedback

Syla’s customers have appreciated the simplicity and effectiveness of the software. The comprehensive features powered by Bitquery have made it easier for users to manage their tax obligations without needing to understand the complexities of blockchain technology.

## Conclusion

Syla’s utilisation of Bitquery’s blockchain data APIs highlights the benefit of strategic partnerships in the industry to address complex challenges. Through this collaboration, Syla has not only enhanced its software offering but has also positioned itself as the leading Australian crypto tax calculator.

*Curious about how Bitquery APIs can supercharge your crypto software development? [Get in touch with us today](https://bitquery.io/forms/api)!*
]]></description>
        </item>
        <item>
            <title><![CDATA[Exploring the Symbiotic Relationship Between Meme Coins and Their Native Networks]]></title>
            <link>https://bitquery.io/blog/symbiotic-relationship-meme-coins-native-networks</link>
            <guid>https://bitquery.io/blog/symbiotic-relationship-meme-coins-native-networks</guid>
            <pubDate>Fri, 14 Jun 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Meme coins have gained significant traction in the cryptocurrency market, driven by community engagement, humor, and speculative trading. Despite their often playful origins, coins like Dogecoin, Shiba Inu, BONK, WIF, PEPE etc. have developed substantial market presence and captured a significant percentage of the mindshare of the crypto participants, and in a market where attention is the only scarce resource they can no longer be overlooked by any serious trader or speculator. This article explores the symbiotic relationship between these meme coins and their native networks, focusing on how network activity impacts meme coin valuations.

## Understanding Meme Coins and Their Networks

Meme coins, known for their humorous and satirical nature, have emerged as notable players in the crypto market. Key examples include:

### Dogecoin (DOGE)

Initially created as a joke, the first meme coin ever. It has grown into one of the most recognisable and discussed cryptocurrencies. It is the progenitor of all categories of meme investing.

![](/blog/symbiotic-relationship-meme-coins-native-networks/doge.png)

Launch Date: December 6, 2013

ATH Date: May 5, 2021

Holders Count: 6.9 Million

### [Shiba Inu (SHIB)](https://explorer.bitquery.io/ethereum/token/0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE)

An Ethereum-based token dubbed the "Dogecoin killer." It has been tested over the bear market and was able to maintain its stronghold amongst the largest cryptocurrencies.

![](/blog/symbiotic-relationship-meme-coins-native-networks/SHIB.png)

Launch Date: Aug 1, 2020

ATH Date: Oct 28, 2021

Holders Count: 1395205

### [PEPE Coin (PEPE)](https://explorer.bitquery.io/ethereum/token/0x6982508145454ce325ddbe47a25d4ec3d2311933)

According to PEPE’s official website, “PEPE is a meme coin with no intrinsic value or expectation of financial return. There is no formal team or roadmap. The coin is completely useless and for entertainment purposes only.” and yet it finds itself hard to be displaced for the list of top 50 crypto currencies.

Launch Date: April 17, 2023

ATH Date: May 15, 2024

### [BONK](https://explorer.bitquery.io/solana/address/DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263)

A meme coin on the Solana network, known for its popular meme and as the \$DOGE of SOL surged in unison with the rise of SOL.

![](/blog/symbiotic-relationship-meme-coins-native-networks/bonk.png)

Launch Date: December 25, 2022

ATH Date: March 4, 2024

Native Network Price (SOL):

### [Dogwifhat (WIF)](https://explorer.bitquery.io/solana/address/EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm)

Another Solana-based meme coin with significant trading volumes.

Launch Date: 20 November, 2023

ATH Date: Mar 31, 2024

These coins leverage the infrastructure of native networks such as Ethereum and Solana, which provide essential support for transactions, smart contracts, and liquidity.

## Price Dynamics and Network Activity

Historical data reveals a strong correlation between meme coin price surges and spikes in network activity. For instance, BONK and WIF experienced significant price increases in Q4 2023 and Q1 2024, coinciding with record trading volumes and active addresses on the Solana network, which can be seen in the BONK and WIF price action correlation graphs in the next section.

### Data Analysis

- Solana Network Activity: During periods of intense meme coin trading, Solana's decentralized exchange (DEX) volume reached record highs. In March 2024, Solana's trading volume hit nearly \$3 billion, surpassing Ethereum's volume during the same period

* Price Surges: BONK surged by 218% over seven days, with a corresponding increase in Solana's network activity. Similarly, PEPE saw a 406% weekly gain, driven by heightened activity on the Ethereum network.

#### Graphical Representations (Price action correlation)

![](/blog/symbiotic-relationship-meme-coins-native-networks/pepe_usdt.png)

ETH vs PEPE Price Action correlation

![](/blog/symbiotic-relationship-meme-coins-native-networks/shib_usdt.png)

ETH vs SHIB Price Action correlation

![](/blog/symbiotic-relationship-meme-coins-native-networks/bonk_usdt.png)

SOL vs Bonk Price Action correlation

![](/blog/symbiotic-relationship-meme-coins-native-networks/wif_usdt.png)

SOL vs WIF Price action correlation

The charts reveal that meme coin surges generally follow the surge in their native network assets. For instance, SHIB's sharp spikes tend to occur after significant movements in ETH, and PEPE's price increases lag behind Ethereum's upward trends. Similarly, BONK and WIF show price jumps that align with or come after notable increases in SOL. This pattern suggests that meme coins often respond to the performance of their native networks, with their value fluctuations and surges typically trailing behind the more stable and influential movements of the network assets like ETH and SOL.

## Case Studies and Real-World Examples analysis using Bitquery API

### Case Study: WIF and Solana

In early 2024, WIF's price surge was accompanied by a marked increase in Solana's network metrics. Transaction volumes, active addresses, and DEX activity all peaked during this period, highlighting the interconnectedness of meme coin success and network performance. Let’s take a look at some on chain metrics using the bitquery GraphQL IDE

### [Solana Daily Active Users Query and Total transactions By Month](https://ide.bitquery.io/Solana-Daily-Active-Users-Query-and-Total-transactions-Query-by-month)

Let's delve into Solana's network activity to better understand the relationship with WIF's price movements. We begin by examining the daily active users and total transactions on the Solana network. These metrics will help us gauge the overall engagement and workload on the network during the period of interest.

### [Total WIF’s transactions by month](https://ide.bitquery.io/Total-wif-transactions-by-month-query)

Next, we focus specifically on WIF's transactions. Analyzing the volume of transactions directly related to WIF will provide insights into its trading dynamics and popularity among users during the surge periods.

The graphs below display the trends in network activity alongside WIF's transactions. Notice how fluctuations in daily users and transaction volumes correlate with changes in WIF's transaction numbers, offering a visual representation of their interconnectedness.

![](/blog/symbiotic-relationship-meme-coins-native-networks/Screenshot%202024-06-14%20at%202.13.43 PM.png)

![](/blog/symbiotic-relationship-meme-coins-native-networks/dau_tx_wif.png)

## Case Study: PEPE and Ethereum

PEPE's price explosion in early 2024 was closely tied to Ethereum's network activity. The coin's value surged as Ethereum's price surpassed \$3,000, sparking interest in ETH-based assets. Social media trends and whale trading activities further amplified PEPE's price movements. Let’s take a look at some on chain metrics using the bitquery GraphQL IDE

### Holder growth Month over Month Query

To understand the impact of Ethereum's market dynamics on PEPE, we start by looking at the monthly changes in PEPE holders. This metric will help us assess investor interest and adoption rates as Ethereum's price fluctuated.

### [Monthly PEPE Holder's change](https://ide.bitquery.io/Monthly-Token-Holders)

Holder growth reflects the number of unique addresses holding PEPE, indicating user adoption and network confidence. For instance, despite the high gas expenditure in March 2024, there is a notable increase in PEPE holders by 22.91%, demonstrating strong investor interest.

### [Gas Spent vs Total Transactions](https://ide.bitquery.io/Gas-SpentTotal-Transactions-Query)

Further, let's explore Ethereum's network efficiency and cost-effectiveness during this period by examining the total gas spent and the number of transactions. These figures are crucial for understanding the network's performance and how it might influence PEPE's transaction costs and accessibility.

An increase in gas consumption is typically associated with growth in network activity. Higher gas values indicate more users interacting with the network or executing more complex operations. For example, in November 2023 and March 2024, we observe significant spikes in gas expenditure, suggesting increased network activity during these periods as can be seen in the above query.

Below are graphs/tables charting the relationship between Ethereum's transaction counts, gas expenditures, and the percentage change in PEPE holders.

![](/blog/symbiotic-relationship-meme-coins-native-networks/Screenshot%202024-06-14%20at%202.14.45 PM.png)

![](/blog/symbiotic-relationship-meme-coins-native-networks/tx_gas_holder.png)

**% change vs Gas spent vs Total eth transactions vs PEPE holders from June 2023 to April 2024 (\$PEPE)**

## Conclusion

Our analysis reveals a strong correlation between native network usage and meme coin activity, with specific focus on WIF on Solana and PEPE on Ethereum.

### WIF on Solana

From November to April, there was a significant increase in Daily Active Users (DAU) on Solana, peaking in April with over 1 million users.

WIF transactions mirrored this growth, peaking in March. This suggests a positive correlation between Solana's network activity and WIF transactions.

### PEPE on Ethereum

PEPE transactions showed substantial growth during periods of high Ethereum activity. Peaks in Ethereum transactions coincided with spikes in PEPE transactions.

High gas fees during these peak periods also influenced PEPE transactions, indicating that broader network congestion impacts meme coin activity.

Both WIF and PEPE demonstrated increased activity during times of high network engagement, highlighting that meme coin transactions are significantly influenced by the overall usage of their native networks, the network usage peaks also coincided very closely with the ATH(All time high) prices of the network tokens and the meme coins.

In conclusion, the analysis underscores the positive correlation between native network metrics, meme coin prices, and overall meme coin activity, illustrating that heightened network engagement drives meme coin success.

---

*Written by Anish M*
]]></description>
        </item>
        <item>
            <title><![CDATA[Identifying, Tracking, and Valuing USDT for Litigation Matters]]></title>
            <link>https://bitquery.io/blog/identifying-tracking-valuing-usdt-litigation</link>
            <guid>https://bitquery.io/blog/identifying-tracking-valuing-usdt-litigation</guid>
            <pubDate>Tue, 11 Jun 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
The digital age has ushered in a new era of asset ownership, with cryptocurrency experiencing a surge in popularity. While Bitcoin may be the most well-known, stablecoins like Tether (USDT) increasingly finding their way into investment portfolios.

Unlike other cryptocurrencies whose values fluctuate, Tether (USDT) is a stablecoin pegged to the US dollar, offering a supposed one-to-one value. This very characteristic makes it particularly attractive in litigation matters where someone might want to conceal assets.

Tether (USDT) transactions can zip through the financial system anonymously thanks to peer-to-peer exchanges and mixing services that blur the trail. While transactions on the blockchain are recorded, the anonymity of users can make it challenging to [trace the origin and destination of funds.](https://bitquery.io/blog/track-money-tornado-cash-bitquery)

This anonymity can indeed complicate efforts to track and assess USDT holdings, particularly in legal proceedings such as lawsuits, investigations into financial crimes like fraud or money laundering, and divorce cases where asset division is a significant concern. For Instance: Imagine a scenario in late 2024 where a ransomware gang cripples a major hospital's IT system. They demand a ransom in Bitcoin. The gang could then use a DEX to swap their Bitcoin for USDT or other privacy-focused coins, further obfuscating the origin of the funds.

Uncovering hidden USDT allows courts to make informed decisions about financial settlements and ensures that neither party gains an unfair advantage by hiding a significant portion of their wealth. Uncovering hidden USDT becomes crucial for:

- [Fraud and Money Laundering Investigations](https://bitquery.io/blog/crypto-money-laundering-advanced-analytics): Criminals are tricky when it comes to turning dirty money into clean crypto. Cryptocurrencies, including USDT, are often used by criminals to hide illicit gains. Identifying hidden USDT assets is crucial for investigators working on such cases.

  Criminals use shady exchanges with weak rules, fake IDs on legit ones, and special services to swap crypto types and hide their tracks. They might even involve offshore accounts and fake companies to further confuse things. The whole process is like layering clothes on a crime scene dummy – the more layers, the harder it is to see what's underneath.

For Instance: [Hackers stole \$40 million worth of Bitcoin from Binance in 2019](https://www.washingtonpost.com/technology/2019/05/08/binance-says-hackers-stole-million-worth-bitcoin-one-transaction/). To hide their tracks, they shuffled the Bitcoin around with other cryptocurrencies and used anonymous services. Some Bitcoin might have been converted to cash, making it even harder to follow. This complex laundering scheme shows the challenges of catching criminals in the cryptocurrency world.

- [Divorce Settlements](https://www.cnbc.com/2021/05/28/dividing-cryptocurrency-in-a-divorce-settlement-is-complicated.html): During divorce proceedings, a fair division of marital assets requires an accurate valuation of all holdings, including any USDT owned by the couple. Failing to track and value USDT could lead to an unfair distribution of wealth.

## Challenges of Identifying and Tracking USDT

Tracking USDT is challenging due to its decentralized nature. Unlike traditional centralized ledgers, cryptocurrency transactions are recorded on a blockchain, offering transparency but also anonymity. Wallet addresses on the blockchain are pseudonymous, making it difficult to link them to real-world identities, especially when privacy features are used.

USDT transactions span various exchanges and wallets, complicating tracing efforts. Traditional asset identification methods often fail, particularly on platforms with weak KYC regulations or peer-to-peer exchanges lacking user identification. Tracking these transactions across different blockchains like Ethereum and Tron requires specialized forensic tools and expertise. Ethereum provides more transparency and ease of tracking compared to other blockchains, somewhat simplifying the tracing of USDT's path.

## Strategies for Identifying and Tracking USDT

Fortunately, advancements in blockchain technology have given rise to tools that can help track USDT transactions. Here are some resources legal professionals can utilize:

- Blockchain Analysis:

Blockchain technology, the underlying infrastructure of cryptocurrency, records every transaction. Specialized tools can analyze this data to track USDT movement. Blockchain analysis involves examining the public record of transactions on a blockchain to identify patterns, track funds, and potentially link them to real-world entities. Through sophisticated algorithms, blockchain analysts can map the flow of USDT across different wallets and exchanges, even when obfuscation techniques are used.

- Investigative Platforms:

Services like [Bitquery's Investigation Service](https://bitquery.io/products/crypto-investigation-services) offer a more in-depth analysis of crypto transactions. These platforms leverage sophisticated algorithms to identify patterns and connections between different wallets, potentially revealing hidden USDT activity.

For more in-depth investigations, specialized investigative platforms like Bitquery's Investigation Service offer advanced analytics tools and visualizations to help trace complex transaction paths and identify hidden asset flows.

- Blockchain Explorers:

Blockchain explorers, such as [Bitquery](https://explorer.bitquery.io/) allow users to search for specific wallet addresses and view their transaction history. By analyzing wallet addresses and transaction details, investigators can potentially identify USDT holdings and track their movement.

![](/blog/identifying-tracking-valuing-usdt-litigation/tracing.png)

While it doesn't directly reveal the owner's identity, it can provide valuable insights into the movement of USDT and potentially link it to known exchanges or wallets. Platforms like Bitquery allow users to explore transaction histories on blockchains like Ethereum, where USDT often resides.

## Tracking USDT Movement

Successfully tracking the flow of USDT across different wallets and exchanges requires a deep understanding of the interconnectedness of the cryptocurrency ecosystem. Here are some methods employed for this purpose:

- Blockchain Transaction Analysis: As mentioned earlier, blockchain analysis forms the backbone of tracking USDT movement. By analyzing the public ledger of transactions on a blockchain, investigators can identify patterns and connections between various wallet addresses. Tools like Bitquery allows tracing transactions associated with a specific USDT wallet address, revealing its interactions with other wallets and potentially identifying exchanges involved.

* [Cluster Analysis](https://bitquery.io/blog/best-blockchain-analysis-tools-and-software): This technique involves grouping together wallet addresses that exhibit similar transaction patterns. By analyzing the frequency and size of USDT transfers between wallets, investigators can identify clusters potentially belonging to the same individual or entity. This can be particularly helpful in scenarios where someone attempts to obfuscate their activity by using multiple wallets.

![](/blog/identifying-tracking-valuing-usdt-litigation/coinpath.png)

- Exchange Monitoring: Since most USDT transactions eventually flow through exchanges for conversion to other cryptocurrencies or fiat, monitoring exchange activity becomes crucial. While some exchanges with lax KYC regulations pose challenges, investigators can focus on reputable platforms with stricter user verification procedures. By collaborating with exchanges and obtaining relevant data (with proper legal authorization), they can track the movement of USDT deposits and withdrawals linked to specific user accounts.

* Heuristics and Machine Learning: Advanced investigators often leverage these techniques to identify suspicious transaction patterns indicative of potential USDT hiding. For instance, investigators might observe a series of transactions involving large sums of USDT being rapidly moved between multiple wallets on various blockchains within a short timeframe. These transactions might also be accompanied by characteristics like unusual transfer sizes for USDT's peg to the US dollar, frequent hopping between wallets on different blockchains, or engagement with known mixers.

By leveraging machine learning algorithms trained on historical data of USDT transactions and other cryptocurrency activity, investigators can analyze these patterns and flag them as potentially suspicious. Imagine a criminal trying to hide a pile of stolen money converted to USDT. They might move it quickly between many wallets, in odd amounts, to avoid suspicion. This "wallet hopping" is a red flag for investigators.

Subsequently, investigators can conduct further analysis to uncover the underlying criminal activity and take appropriate enforcement actions. This demonstrates how advanced analytical techniques enhance law enforcement's ability to combat illicit activities involving USDT in the cryptocurrency space.

![](/blog/identifying-tracking-valuing-usdt-litigation/sankey.png)

Understanding the interconnectedness of the cryptocurrency ecosystem is paramount for effective USDT tracking. By combining these strategies and recognizing the relationships between wallets, exchanges, and blockchain protocols, investigators can piece together the puzzle of USDT movement, even when deliberate efforts are made to conceal the flow of funds.

## Valuing USDT for Equitable Distribution

While USDT can proudly boast a peg to the US dollar, achieving a truly equitable distribution in cases involving litigation with respect to this stablecoin is a multifaceted process. It does not have the kind of value that traditional assets do—like stocks or real estate—that you can appraise at a certain point in time. Its value is fairly stable and doesn't fluctuate much, meaning relative to other cryptocurrencies, it could be very attractive in terms of hiding assets. In other words, determing fair value for litigation purposes is arguably more complex.

The smallest price fluctuation can play an enormous role in litigation, especially when a divorce settlement is concerned. For instance, a spouse may try to hide some assets by converting them into USDT when its price experiences a slight increase. If a court values the USDT only at the pegged value when the assets are discovered, the hidden asset remains concealed, further distorting the fair distribution of marital assets.

To do this, legal professionals rely more and more on tools such as [Coinpath](https://bitquery.io/products/coinpath). Coinpath is a set of Blockchain money tracing APIs. It's based on a sophisticated mathematical algorithm able to perform complex calculations between Blockchain addresses for showing the money flow.

Lawyers, through the use of Coinpath's data, can value USDT holdings at any moment in time and thus get a more accurate picture of financial circumstances for individuals during relevant times. This is where historical pricing data of importance helps trace USDT's value during possible attempts of concealment and, if necessary, get fair and equitable distribution of assets in litigation.

However, one has to keep in mind that Coinpath and any such tool are but a puzzle of all the pieces. Fluctuations, even minor, may still cause a dispute as to the exact value of USDT at a particular time. Testimony from experts in blockchain analysis and financial professionals might become a necessity in establishing comprehensive knowledge of the movement and valuation of USDT in the specific case of litigation.

### Example Scenario

Imagine a messy divorce where one spouse suspects the other of hiding money, maybe in USDT. To gain a clear picture of the individual's financial situation and trace the flow of USDT funds, the legal team can employ [Coinpath's blockchain money tracing APIs](https://bitquery.io/products/moneyflow).

Using Coinpath, the lawyers can analyze the blockchain transactions associated with the suspected individual's cryptocurrency wallets. Legal teams can improve their chances of retrieving hidden assets by acquiring proof of ownership for the relevant cryptocurrency wallets. This proof can significantly increase the likelihood of a positive response from the custodian service holding the bulk of the funds. Coinpath's blockchain tracing capabilities allow it to track the movement of USDT funds over time, [identifying transactions between different addresses and exchanges](https://www.youtube.com/watch?v=ZFUl-2fHgnQ). While Coinpath itself may not provide historical pricing data for USDT, it offers valuable insights into the flow of funds, including timestamps and transaction amounts.

To complement Coinpath's analysis and accurately value the USDT holdings at specific points in time, the legal team can integrate additional tools or data sources. They can utilize historical pricing data from reputable cryptocurrency exchanges or market data providers to determine the value of USDT holdings during the relevant periods of the case.

By combining Coinpath's blockchain tracing capabilities with historical pricing data, the lawyers can paint a more accurate picture of the individual's financial situation, identify potential concealment attempts, and ensure a fair and equitable distribution of assets in the litigation process. This integrated approach showcases how legal professionals can leverage multiple resources to effectively handle cases involving cryptocurrency assets like USDT.

## Why Specialized Services are Essential in USDT Litigation: The Power of Expertise:

Navigating the complexities of cryptocurrency in legal matters requires specialized knowledge. Law firms with experience in crypto investigations offer several advantages when dealing with USDT in litigation.

The complexities surrounding USDT identification, tracking, and valuation underscore the critical importance of employing law firms with a proven track record in crypto investigations. These firms possess a deep understanding of the cryptocurrency ecosystem and can leverage specialized tools and resources to navigate the challenges associated with USDT in litigation matters.

Here's where services like [Bitquery](https://bitquery.io/products/crypto-investigation-services) and [Coinpath](https://bitquery.io/products/coinpath) come into play. Bitquery, for instance, offers a robust investigative platform specifically designed for tracing cryptocurrency transactions. Its advanced analytics tools and visualizations empower investigators to map complex webs of USDT movement across different wallets and exchanges. This capability is invaluable for uncovering hidden USDT holdings and establishing a clear picture of an individual's financial activity.

[Coinpath](https://bitquery.io/products/moneyflow), on the other hand, provides a different but equally crucial piece of the puzzle: historical pricing data for cryptocurrencies. By incorporating Coinpath's data into their strategies, legal teams can accurately value USDT holdings at specific points in time. This historical context is essential for countering potential attempts to conceal assets by exploiting minor price fluctuations.

The benefits of using specialized services extend far beyond just these two examples. Law firms with crypto investigation expertise can also:

- Identify and Analyze Exchange Activity: They can monitor transactions on reputable cryptocurrency exchanges, potentially linking specific user accounts to hidden USDT flows.

- Leverage Blockchain Analysis Tools: In addition to Bitquery, these firms may utilize a range of other blockchain analysis tools to sift through vast amounts of blockchain data and identify patterns indicative of USDT manipulation.

- Partner with Blockchain Forensics Experts: Complex cases may necessitate collaboration with specialists who possess advanced skills in extracting and interpreting data from the blockchain.

- Stay Abreast of Evolving Regulations: The regulatory landscape surrounding cryptocurrency is constantly evolving. Specialized law firms stay updated on the latest regulations and can ensure their investigative strategies comply with legal requirements.

Bitquery also offers its own unique and powerful investigation process specifically tailored for legal professionals tailored to assist in recovering stolen crypto funds. Here's a breakdown of their process:

- Straightforward Approach: Bitquery's process is designed to simplify complex investigations. They begin with a consultation to understand your unique situation and identify the most effective options for recovering crypto funds.

- Expert Tracking and Analysis: Bitquery's team of skilled crypto investigators utilizes advanced blockchain tracing tools to meticulously track and locate your missing cryptocurrency assets. This helps uncover hidden USDT and understand how it was moved.

- Resolution Focused: Bitquery prioritizes achieving legal closure. They work collaboratively with law enforcement agencies and cryptocurrency exchanges to facilitate asset recovery and support all necessary legal actions to apprehend scammers and increase the chances of a successful recovery.

Imagine a client losing their life savings in a USDT scam. Tracing these funds and achieving a successful recovery requires specialized knowledge. Law firms with crypto investigation experience offer a crucial advantage, especially with the complexities surrounding USDT identification, tracking, and valuation. With Bitquery's [Crypto Investigation Services](https://bitquery.io/products/crypto-investigation-services), you can trace those funds efficiently, potentially leading to their recovery. To increase the probability of a response from the custodian service that holds the largest portion of the stolen funds, Bitquery will need some additional information from you:

- Proof of Ownership of Your Wallet: Ideally, a screenshot including the wallet address. This will help Bitquery pinpoint the exact location of the stolen funds.

- Contact with Law Enforcement: Any proof that you have contacted the FBI (if in the United States). Ideally, the PDF you have included in the previous email - IC3 Complaint Referral Form. While the IC3 reporting isn't a police report, it helps the FBI track trends and initiate investigations when enough complaints accumulate against a single scammer. Bitquery will check legal options available for you.

By employing law firms with crypto investigation expertise and leveraging the capabilities of services like Bitquery and Coinpath, legal professionals can gain a significant advantage in litigation matters involving USDT. These resources empower them to identify hidden assets, track USDT movement across the complex cryptocurrency ecosystem, and accurately value these holdings to achieve fair and equitable outcomes.

## Final Thoughts

USDT is now a necessary subject in the understanding and valuation of litigation when it comes to cryptocurrency and blockchain. Law firms experienced in crypto investigations understand how to trace and assess USDT holdings while interpreting exchange behaviors through advanced blockchain tools. Through such analysis of exchange activity and the assistance of modern blockchain tools, they uncover complex financial maneuvers and find hidden assets. As the use of cryptocurrency in legal situations continues to evolve, those seeking justice will need experienced counsel to navigate an increasingly complex landscape effectively. On the other hand, in family law disputes, understanding and valuation of digital assets such as USDT will be indispensable to getting just results. The legal system will, therefore, stay ahead in this evolving legal landscape, ensuring that indeed justice and fairness continue to be done in the digital era.

Is your firm facing challenges related to USDT identification, tracking, or valuation in dispute cases? [For further inquiries or assistance feel free to contact Bitquery team.](https://bitquery.io/products/crypto-investigation-services)


----
*Article Written by Pratik* 
]]></description>
        </item>
        <item>
            <title><![CDATA[How to Audit Blockchain Wallets : A Step-by-step Guide​]]></title>
            <link>https://bitquery.io/blog/audit-blockchain-wallets-step-by-step-guide</link>
            <guid>https://bitquery.io/blog/audit-blockchain-wallets-step-by-step-guide</guid>
            <pubDate>Mon, 03 Jun 2024 22:29:00 GMT</pubDate>
            <description><![CDATA[
While the concept, purpose, and aim are the same, financial auditing for blockchain wallets is different from the conventional auditing process.

[Traditional financial audits](https://corporatefinanceinstitute.com/resources/accounting/what-is-an-audit/) involve the review of a company’s financial statement to check for discrepancies and correlations. The auditor verifies the records and statements of a company to see if they are accurate and in fair representation of the firm’s financial situation and transactions. You also check if there are misstatements or malpractices in the calculation and generation of financial statements.

On the other hand, blockchain wallet/account auditing is also related to the traditional financial audit processes. The only difference is that blockchain wallet auditing uniquely focuses on transactions recorded on the blockchain, utilizing the immutable and transparent nature of the blockchain ledger. This process employs cryptographic proofs and specialized tools to ensure the integrity and validity of transactions.

## What’s the Main Purpose of Auditing a Blockchain Wallet?

The primary purpose of a blockchain wallet audit is to ensure the accuracy, integrity, and security of transactions recorded on the blockchain, verifying that the financial records are free from any material misstatements due to errors or fraud.

This process involves not only checking for financial discrepancies but also ensuring compliance with regulatory requirements, ensuring compliance with regulatory requirements, verifying the proper execution of smart contracts, and accessing the overall security and performance of the wallet and associated system.

For example, in [this judgment text from the High Court of the Republic of Singapore](https://www.elitigation.sg/gd/s/2023_SGHC_199), where an employee, Ho Kai Xin, makes eight anomalous transactions to four crypto addresses. Through crypto reconciliation and blockchain wallet auditing, Bybit was able to discover discrepancies, which led to the prosecution of the said employee.

With auditing and reconciliation processes, auditors can identify inconsistencies and discrepancies in finances. While the above auditing and reconciliatory work as mentioned in the litigation was done using a Microsoft Excel sheet, blockchain analytical tools like [Bitquery](https://bitquery.io/) can be reliably used because of their transparency, immutability, and security.

In this article, we’ll discuss how to conduct financial audits and reconciliation processes for digital assets to gain insights and detect anomalies using Bitquery APIs and Explorers. Without ado, let’s get to it!

## How to Conduct Proper Blockchain Wallet Audits and Reconciliatory Works Using Bitquery APIs and Explorer?

Bitquery is a blockchain analytical company that indexes, parses, stores, and analyzes blockchain data. This data tool offers access to over 40 blockchains and 100 DEX protocols. With this extensive data tool, we can audit and reconcile blockchain wallets with ease.

Without much ado, here is a simple tutorial on how to use Bitquery APIs and explorers to audit on-chain information against a company's transaction records.

1.  ### Transaction Data Collection and Verification

Blockchain wallet auditing requires planning. This section is where you identify the wallet(s) you’re required to audit as an external auditor. Here is where you’re given access to the information you need.

Below is a wallet we’ll be working with through this tutorial article:

0x7BFEe91193d9Df2Ac0bFe90191D40F23c773C060

Let’s assume that’s a company blockchain wallet and you’re required to perform auditing and reconciliatory work on the wallet between the first of March to the 30th of May 2024. You’ve also been given access to the company’s on-chain transaction record.

2.  ### Accessing Blockchain Explorer and Checking Wallet Address

Here is where you conduct the systematic collection of data and records from the blockchain network to support the audit process. Using the [Bitquery Transfers API](https://docs.bitquery.io/docs/category/transfers/), you can retrieve information like transaction history, wallet balance as at the start of the audit process, and other useful and relevant information shared on the blockchain.

With [this total deposit query](https://ide.bitquery.io/Total-Deposit_2), we retrieve the necessary information about the total deposit within the specified period, i.e., April 30 to May 30 2024.

```
{
  ethereum(network: ethereum) {
    transfers(
      date: {since: "2024-03-01", till: "2024-05-30"}
      amount: {gt: 0}
      receiver: {is: "0x7BFEe91193d9Df2Ac0bFe90191D40F23c773C060"}
    ) {
     Deposits:  count(success: true)
    }
  }
}

```

While [this query](https://ide.bitquery.io/Total-Withdrawal_2#) helps us retrieve the total count of transfers from the wallet to other wallets

```
{
  ethereum(network: ethereum) {
    transfers(
      date: {since: "2024-03-01", till: "2024-05-30"}
      amount: {gt: 0}
      sender: {is: "0x7BFEe91193d9Df2Ac0bFe90191D40F23c773C060"}
    ) {
     Withdrawal:  count(success: true)
    }
  }
}

```

With the above queries, we discovered that the total deposit count (transaction received) for this wallet over the three month period is 1403. While the total withdrawal count (transaction sent out from the wallet holder) was 571 transactions.

While this information gives you a broad overview of the data you will be working with, you still don’t have access to the detailed information (block information, transaction information, sender and receiver address, amount, currency, and so on) concerning the transactions.

And so, with this [received transaction query](https://ide.bitquery.io/Received-transaction-Information_1#), you can pull all the necessary information (block information, sender address, token information) you need for the auditing and reconciliation work.

```
{
  ethereum(network: ethereum) {
    transfers(
      date: {since: "2024-03-01", till: "2024-05-30"}
      amount: {gt: 0}
      receiver: {is: "0x7BFEe91193d9Df2Ac0bFe90191D40F23c773C060"}
      options: {asc: "block.timestamp.time", limit: 20}
    ) {
      block {
        height
        timestamp {
          time
        }
      }
      sender {
        address
      }
      currency {
        name
        symbol
        tokenType
      }
      amount
      amountInUSD: amount (in:USD)
      transaction {
        hash
      }
    }
  }
}


```

Alternatively, to retrieve the necessary information about the transaction sent out by this wallet address owner, you can do so with this [sent transaction query](https://ide.bitquery.io/Sent-transactions_1#) below:

```
{
  ethereum(network: ethereum) {
    transfers(
      date: {since: "2024-03-01", till: "2024-05-30"}
      amount: {gt: 0}
      sender: {is: "0x7BFEe91193d9Df2Ac0bFe90191D40F23c773C060"}
      options: {asc: "block.timestamp.time", limit: 20}
    ) {
      block {
        height
        timestamp {
          time
        }
      }
      receiver {
        address
      }
      currency {
        name
        symbol
        tokenType
      }
      amount
      amountInUSD: amount (in:USD)
      transaction {
        hash
      }
    }
  }
}


```

With the appropriate tools like the [Bitquery APIs](https://bitquery.io/), you can retrieve all transaction information recorded on the blockchain and reconcile them against the company’s transaction record.

However, if you’re not the technical type, you can access the necessary information about the wallet without writing any query. All you have to do is visit [Bitquery Explorer](https://explorer.bitquery.io/) and insert the wallet address and filter by the date range.

3.  ### Calculating Balances and Comparing With Recorded Balance

Once you’ve retrieved the transaction history (both the incoming and outgoing transactions linked to the wallet address) as we’ve done in the previous step, you can now calculate the wallet’s balance.

With the [total transfer over the time period query](https://ide.bitquery.io/Total-transfer-over-the-time-period), you’d get the total balance of each token in the wallet as at May 30,2024. Moreover, you also know the total number of times a particular token is deposited and withdrawn from the wallet. Here is the example query below:

```
query ($network: EthereumNetwork!, $address: String!, $from: ISO8601DateTime, $till: ISO8601DateTime, $limit: Int!, $offset: Int!) {
  ethereum(network: $network) {
    transfers(
      date: {since: $from, till: $till}
      amount: {gt: 0}
      any: [{receiver: {is: $address}}, {sender: {is: $address}}]
      options: {limit: $limit, offset: $offset, desc: ["count_in", "count_out"], asc: "currency.symbol"}
    ) {
      sum_in: amount(calculate: sum, receiver: {is: $address})
      sum_in_usd: amount(in: USD, calculate: sum, receiver: {is: $address})
      sum_out: amount(calculate: sum, sender: {is: $address})
      sum_out_usd: amount(in: USD, calculate: sum, sender: {is: $address})
      count_in: count(receiver: {is: $address})
      count_out: count(sender: {is: $address})
      currency {
        address
        symbol
        tokenType
      }
    }
  }
}

```

The query above retrieves the Ethereum token transfer data for a specified address, within a given date range, on a specified Ethereum network. It filters transfers where the address is either the sender or receiver and includes only transfers with a positive amount.

The query also limits the number of records returned, supports pagination, and sorts results by the number of transfer and token symbols. It calculates the total amount received and sent in both the native token and USD), and also counts the number of incoming and outgoing transfers.

Additionally, it provides details about the token involved including, their contract address, symbol, and type.

Finally, once you’ve gotten the net balance of the tokens in the wallet over the specified period, you can now compare the retrieved data with the recorded balances from the on-chain explorer and ensure there are no discrepancies between the calculated balances and the recorded balances.

Using the query above, below is Ethereum token balance information we got:

```
"sum_in": 420070.7241165968,
 "sum_in_usd": 413614.71519630746,
"sum_out": 420009.9315213211,
"sum_out_usd": 413604.35966727405,
"count_in": 49,
"count_out": 10,
"currency": 
"address": "0x15f74458ae0bfdaa1a96ca1aa779d715cc1eefe4",
          "symbol": "GRAI",
          "tokenType": "ERC20"

```

#### Summary of the Information

- The wallet has an ERC20 token named GRAI with a smart contract address: 0x15f74458ae0bfdaa1a96ca1aa779d715cc1eefe4.

- Over the course of three months (between march and may), the wallet received a total of 420,070 GRAI, which is worth \$413,614.72.

- On the other hand, a total of 420009 GRAI, which is worth \$413,604.35 was sent out by the wallet owner in the same period. All things being equal, this means that the wallet should be holding around 61GRAI.

- Finally, the total transaction count is 59 with 49 out of the 59 total transactions sent from an external wallet while the remaining 10 transfer count was from the wallet to external wallets.

Check through the data using the above information while comparing with the recorded transaction details from the company. With this information, you should be able to discover discrepancies and anomalies if there are any. If there are any anomalies, the next step below will be on how to investigate the error or fraud and find the most suitable solution to it.

4.  ### Investigating Discrepancies

By conducting a thorough investigation of discrepancies, auditors can ensure the integrity and accuracy of financial information, which will enhance trust and reliability.

If there seem to be discrepancies between the recorded and the calculated balance, you should dig deep into the transaction information to identify any anomalies or irregularities.

This can be done by systematically analyzing transactional data (like the amount, timestamp, transaction fees, wallet addresses, and transaction pattern) to identify and resolve the inconsistency.

For example, let’s say that the GRAI token information we pulled above using the Bitquery API doesn’t correlate with the data received on the company transaction record.

## What should you do?

The first thing to do at this stage is to zoom in on the information available. And that means pulling the transaction information of the token over the three month period. This can be done using the [token transfer details query](https://ide.bitquery.io/Token-transfer-details) for details about the incoming transaction or the [token transfer details (outgoing)](https://ide.bitquery.io/Token-transfer-details-outgoing) query for the outgoing transactions.

Here is the query for retrieving the necessary details about token transfer information for the incoming transactions:

```
query ($network: EthereumNetwork!, $address: String!, $limit: Int!, $offset: Int!, $currency: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transfers(
      options: {desc: "block.timestamp.time", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      amount: {gt: 0}
      currency: {is: $currency}
      sender: {is: $address}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      address: receiver {
        address
        annotation
      }
      currency {
        address
        symbol
      }
      amount
      transaction {
        hash
      }
      external
    }
  }
}

```

With the data retrieved, you can look through the transaction history gathered from the blockchain ledger with the recorded transaction data provided by explorers or wallet providers, ensuring that the details were accounted for and accurately reflected in both sets of data.

If you discovered that there are some errors or elements of fraud in what you see, here are ways to dig deep and investigate these discrepancies further:

1.  Trace the flow of funds through blockchain networks to verify the legitimacy of transactions and confirm their impact on the wallet’s balance. You can trace the origin and destination of funds as well as any intermediate transactions using the [Coinpath API](https://docs.bitquery.io/v1/docs/category/coinpath) or [request an investigation](https://bitquery.io/products/crypto-investigation-services) by Bitquery’s service.

2)  Validate cryptographic signatures, and verify transaction confirmations on the blockchain network. And ensure transactions were not fraudulent or manipulated. You can also use the transaction hash obtained from the transaction detail information to trace and verify transactions on the blockchain.

3.  Check and identify any patterns or trends in the transaction data that could explain discrepancies in the balances. Like recurring transactions, large withdrawals and deposits, and unusual activity that deviates from typical usage data.

4)  Once you identify the issues, you take corrective actions to reconcile the balance and ensure accuracy. Corrective actions like updating transaction records, correcting data errors, and adjusting balance calculations accordingly.

### 5. Documenting Reconciliation Processes and Reporting

This process involves recording the steps taken to compare and resolve discrepancies between two sets of records or accounts. Here are the processes you should take for reporting your audit work.

1.  Provide an Overview of the Process

You should provide a detailed note about the records being reconciled and accounts audited and specify the period or transactions covered by the reconciliation.

2.  Data sources, steps taken, and the reconciliation methodology

What’s your source of data? blockchain explorer, ledger, wallet accounts? Is your process/methodology manual, automated, or both? What steps were taken to identify discrepancies and compare the data? What is the detail of the adjustments, corrections, or reclassifications made during the process?

3.  How were the discrepancies discovered, investigated, and resolved

What corrective actions were taken to address, and identify errors and discrepancies like adjustments to transaction records and account balance?

4.  Documentation of findings and reporting

Record the result of the reconciliation process like the final reconciled balance, or adjustments, made to account for discrepancies. And you should also explain unresolved differences and document outstanding issues. And finally, prepare a report to summarize the findings and conclude the reconciliation process.

In conclusion, as blockchain technology continues to evolve, so too must our understanding of its intricacies and potential vulnerabilities. This article has shed light on the complexities involved in auditing blockchain wallets, from planning the process to gathering transaction data, navigating the challenges, and uncovering discrepancies due to error or fraud.

Ultimately, the findings and insights gleaned from this article will not only enhance the security and integrity of the audited wallet but also contribute to broader discussions on best practices for blockchain security and regulatory compliance. By applying the lessons learned from this article, stakeholders can better safeguard their assets, mitigate risks, and prevent any form of material misstatement due to fraud or mistakes.


--

Written by Emmanuel Ajala]]></description>
        </item>
        <item>
            <title><![CDATA[Understanding Blockchain Demand: Analyzing TPS and Throughput Needs​]]></title>
            <link>https://bitquery.io/blog/understanding-blockchain-demand-tps-throughput-analysis</link>
            <guid>https://bitquery.io/blog/understanding-blockchain-demand-tps-throughput-analysis</guid>
            <pubDate>Mon, 03 Jun 2024 22:29:00 GMT</pubDate>
            <description><![CDATA[
Transactions Per Second (TPS) is the number of transactions a blockchain network can process every second. This number varies for each network. For example, the average TPS of the Bitcoin network is around 7, although this can fluctuate.

Ethereum has consistently maintained its TPS at its maximum capacity, averaging around 12 TPS. However, the launch of CryptoKitties in 2017 triggered a sudden surge in Ethereum's transaction fees due to increased transaction demand driven by [CryptoKitties' trading activities](https://ide.bitquery.io/CryptoKitties-Trade-Amount).

By this time, there had been a significant surge in people's interest, leading them to explore a decentralized world. Developers recognized this trend and embarked on creating new blockchains.

Ethereum's layer 2 solutions like Polygon and Arbitrum, along with its competitors referred to as Ethereum killers such as BSC, Tron, and Avalanche, entered the market with the advantage of significantly lower transaction fees. These platforms boasted transaction per second (TPS) capacities several times higher than Ethereum's.

A serious question arises regarding the TPS of new blockchains, which can process significantly more TPS than Ethereum. Is there a need to increase this TPS throughput capacity? Hence, it is necessary to scrutinize the TPS of these new blockchains closely.

In this article, we analyze the actual demand for transactions and its growth to observe whether there is a demand for TPS in new blockchains akin to original ones.

## TPS of different networks: Avalanche, Tron, Polygon, Arbitrum, BSC, Base, opBNB, Solana

The following table (excel: [link 1](https://docs.google.com/spreadsheets/d/1OR1K5WqvvQ_mbEEQKNhwzDJhZxlJnr5nJlWowz1sglg/edit#gid=0) & [link 2](https://docs.google.com/spreadsheets/d/1wtAKjNQ_WYO_nOe_1dbVhBfibRIoEEcIgTXFEPjMiF0/edit#gid=0) ) contains the TPS of blockchains.

![](https://lh7-us.googleusercontent.com/docsz/AD_4nXcwbSbqYuq5Lb8wrBNCnUe66uwD785BQL7EGxG_A7oz2HwZdqWswocecg2hfAGh4WpEDXw2krepm-61Dw7jp5b0NKk3volzOvPdK5zJ54Yj5LvjGdQvWv3iSwqV1q5eV32lE7Iz0S8LpODysEoX-pxqXWVj?key=k_Az3EpsAQZblDRRmgSozQ)

- Solana, layer 1 blockchain, went live on the mainnet in March 2020, has a relatively high TPS demand of 2501.4 compared to the other blockchains.

- Ethereum, the pioneering blockchain for decentralized applications (DApps), has led the industry since its launch in July 2015. Despite facing scalability challenges, it continues to process transactions at its maximum throughput capacity, with a current TPS of 13.8.

- Base is the latest popular layer 2 solution of Ethereum, launched in June 2023. Its current TPS demand is 31.9.

- The Avalanche Layer 1 blockchain, launched in September 2020, despite having transaction fees several times lower than Ethereum. It is struggling with transaction demand. Its current TPS is just 3.1.

#### Ranking of Blockchains by Monthly Average TPS Demand (January 2023 - April 2024).

![](/blog/understanding-blockchain-demand-tps-throughput-analysis/chainTPS.png)

- Solana leads with a 3753 average TPS, showing the highest demand.

- Tron follows with 71.24 TPS.

- opBNB has grown significantly, reaching 62.4 TPS. Polygon, as the top Ethereum scaling solution, handles 38.16 TPS.

- Ethereum is already processing at its maximum capacity with averages of 12.8 TPS.

- BSC records 45.3 TPS, while Base surged to 31 TPS in April 2024.

- Avalanche has the lowest demand, at 6.3 TPS on average.

This analysis shows that newer blockchains like Solana and opBNB effectively meet the high transaction demand. Let’s break down each network in detail in the below sections.

### Solana : TPS vs Demand

Solana launched in 2020. Transaction demand in Solana is significantly higher than compared to the other blockchains. [Solana registered 3753 TPS on average per month](https://ide.bitquery.io/Solana-total-transactions) and experienced its high in August 2023 with 4529 TPS.

Solana recorded 300 times more transactions than Ethereum (12.5 TPS on average) and processed 98 times more TPS than [Polygon (38.1 TPS on average)](https://ide.bitquery.io/Polygon-TPS-transactions), which is the highest TPS among Ethereum scaling solutions. To delve deeper into Solana's transactions, check out this article [link](https://bitquery.io/blog/reasons-transactions-fail-solana-base).

TPS demand in Solana is 480 times higher than the Layer 2 chain Base, and 100 times higher than the Layer 2 chain Optimistic BNB.

### Tron : TPS vs Demand

Tron is a non-EVM-supported layer 2 blockchain with a capacity of 2000 TPS. However, on average, [Tron saw only 71.24](https://ide.bitquery.io/Tron-transactions-TPS) TPS, just 3.5% of its maximum capacity.

Moreover, Tron is nowhere near Solana in terms of transaction demand. Tron recorded nearly 50 times less TPS on average than the non-EVM chain Solana ( 3753 TPS).

However, Tron has the highest average TPS of all blockchains, followed by Solana. Transactions in Tron peaked in June 2023 with 119 TPS.

The number of transactions per second in Tron has increased by 5.5 times more than in Ethereum, indicating a much higher demand for transactions in Tron than in Ethereum.

### opBnB : TPS vs Demand

![](/blog/understanding-blockchain-demand-tps-throughput-analysis/layer2TPS.png)

OP BNB saw TPS with an average of around 4.8, this indicates that TPS demand in OP BNB was low in its initial four months since it launched in August 2023.

However, the TPS demand in opBNB increased 15 times from December 2023 to April 2024, reaching an average TPS of 62.4 (equivalent to 1.3% of its 4600 TPS capacity), surpassing all other blockchains except Solana, which averaged 2786 TPS.

Meanwhile, demand in Tron was around an average of 57 TPS. This indicates opBNB's growing transaction demand.

### Ethereum's Scaling Solutions and Other Layer 2 Blockchains

![](/blog/understanding-blockchain-demand-tps-throughput-analysis/ethlayer2.png)

Bitquery data reveals that Polygon recorded only 38.16 TPS on average, which is just 0.5% of its potential (7000 TPS).

However, Polygon is ahead of other Ethereum’s scaling solutions. [Polygon recorded 2.6 times more TPS than Arbitrum](https://ide.bitquery.io/Arbitrum-Total-transactions) and 3.08 times more TPS than Ethereum itself, indicating that Polygon has more demand than Arbitrum.

However, despite its lead, Polygon (38.16 TPS) still lags behind BSC in TPS demand, Layer 1 blockchain (45.3 TPS on average), and opBNB (62.4 TPS) in average TPS.

Ethereum’s scaling solutions and other Layer 2 blockchains are supposed to see high demand in TPS, but it is not rising according to market expectations.

### TPS Analysis: Ethereum vs Layer 1 and Layer 2 Blockchains

![](/blog/understanding-blockchain-demand-tps-throughput-analysis/ethAvaBase.png)

Ethereum overtakes some Layer 1 and Layer 2 blockchains in TPS

From January 2023 to March 2024, Ethereum registered 12.8 TPS on average, indicating that it is relatively 2 times more active than its Layer 1 competitor, [Avalanche (5.4 TPS on average)](https://ide.bitquery.io/Avalance-Transactions-TPS), and Coinbase’s Layer 2 [Base chain (7.5 TPS on average).](https://ide.bitquery.io/Base-Transactions-TPS_1)

TPS demand in Layer 1 blockchain Avalanche is the lowest among all the blockchains. Only 6.3 average TPS was recorded by Avalanche, which is almost 600 times less than the average TPS recorded by Solana.

The demand for TPS in the Layer 2 Base chain was nearly the same as Avalanche until March 2024 (6.6 TPS). However, in April 2024, the [Base chain experienced an unexpected surge in transaction demand, reaching 31 TPS.](https://ide.bitquery.io/Base-April-Transactions-TPS)

## Conclusion

Bitquery data reveals that the demand for TPS in Solana is continuously hitting new records, leaving other blockchains behind in TPS demand. Besides the Solana, the demand for TPS does not reach 1% of its maximum throughput capacity. After Solana, TRON has seen the highest demand for TPS. Despite being a Layer 1 chain, BSC experienced a high demand for TPS, surpassing that of Layer 2 blockchains like Polygon, opBNB, and Base. Among all the Ethereum Layer 2 solutions, the demand for TPS is highest on the Polygon chain. Layer 1 blockchain Avalanche saw the lowest demand in TPS among all the blockchains.

--
Article written by Vishal
]]></description>
        </item>
        <item>
            <title><![CDATA[Comparison of Ethereum, Polygon and Arbitrum Networks using On-chain Analysis of Wrapped Ether (WETH)​]]></title>
            <link>https://bitquery.io/blog/weth-holders-ethereum-arbitrum-matic-comparison</link>
            <guid>https://bitquery.io/blog/weth-holders-ethereum-arbitrum-matic-comparison</guid>
            <pubDate>Wed, 22 May 2024 22:29:00 GMT</pubDate>
            <description><![CDATA[
This article analyses the Wrapped Ether(WETH) token in the Ethereum, Polygon (formerly recognized as the Matic Network), and Arbitrum networks from April 2023 to March 2024.

We observe the involvement of WETH across different chains by determining the number of senders, receivers, transactions, and transfers in each network. Furthermore, we investigate the top trading pools of WETH in the Ethereum and Polygon networks, using the total number of trades and trade volume of WETH from April 2023 to March 2024. Additionally, we determine the most traded currencies against WETH.

Through WETH trades, we compare exchanges in the Ethereum and Matic networks. We also distinguish between Uniswap v2 and Uniswap v3 by finding the number of newly created pools of WETH in the Ethereum network during the same period. Moreover, we find the number of duplicate WETH tokens in the Ethereum and Arbitrum networks.

1.  ### WETH movement and holders analytics

From April 2023- March 2024, [WETH holders in the Ethereum network](https://ide.bitquery.io/WETH-holders-in-Ethereum-network-till-march-2024) increased by an average of ~2.5 %, whereas [holders in the Arbitrum network](https://ide.bitquery.io/Token-holder-of-WETH-Arbitrum-network-till-march-2024) average growth is ~5 %. WETH holders in the Ethereum network are growing steadily. However, the rapid adoption of WETH in the Arbitrum network can be seen clearly.

![](/blog/weth-holders-ethereum-arbitrum-matic-comparison/Holder_Table.png)

![](/blog/weth-holders-ethereum-arbitrum-matic-comparison/Holder_chart.png)

![](/blog/weth-holders-ethereum-arbitrum-matic-comparison/Receiver_table.png)

![](/blog/weth-holders-ethereum-arbitrum-matic-comparison/Receiver_Chart.png "Chart")

Over the same period, Matic Network surpasses Ethereum by around ~7 % in senders and 22 % in receivers, exceeds Arbitrum by around ~142% in senders and ~133% in receivers, while Ethereum outstrips Arbitrum by around ~125 % in senders and ~91% in receivers.

![](/blog/weth-holders-ethereum-arbitrum-matic-comparison/sender_table.png)

![](/blog/weth-holders-ethereum-arbitrum-matic-comparison/sender_table.png)

Due to its high throughput and cheaper transaction fees, users of the Ethereum network are shifting toward the Matic network. On [Ethereum, there are an average of around 139K senders and 137K receivers of WETH](https://ide.bitquery.io/transactions-transfers-senders-recivers-of-WETH), whereas on [Polygon (Matic), these numbers are slightly higher, with an average of around 149K senders and 167K receivers](https://ide.bitquery.io/Matics-WETH-unique-senders-receivers-transfers-transactions-on-Matic-networks). However, the average transaction volume for WETH remains higher on Ethereum, [around 6.5 million transactions](https://ide.bitquery.io/transactions-transfers-senders-recivers-of-WETH), compared to other networks. The reason is that WETH is a tokenized version of Ethereum's native token, ETH.

In contrast, the [Arbitrum network has seen fewer senders and receivers, around 72K and 62K](https://ide.bitquery.io/Arbitrum-unique-senders-transactiosns-transfers), respectively, compared to Matic. Despite this, [Arbitrum processes a higher average transaction volume, around 5.2 million transactions,](https://ide.bitquery.io/Arbitrum-unique-senders-transactiosns-transfers) compared to [Matic's 2.9 million transactions](https://ide.bitquery.io/Matics-WETH-unique-senders-receivers-transfers-transactions-on-Matic-networks). This suggests that even though Matic has more users, Arbitrum is handling a larger volume of transactions.

In the Matic network, users rely more on WMATIC as it is the tokenized version of the MATIC token, compared to WETH.

![](/blog/weth-holders-ethereum-arbitrum-matic-comparison/Transactions_table.png)

![](/blog/weth-holders-ethereum-arbitrum-matic-comparison/Transactions_Chart.png)

![](/blog/weth-holders-ethereum-arbitrum-matic-comparison/Transfers_Table.png)

![](/blog/weth-holders-ethereum-arbitrum-matic-comparison/Transfers_chart.png)

2.  ### Comparison of Uniswap v2 and [Uniswap v3](https://ide.bitquery.io/newly-Pool-created-of-Wrapped-Ether): Newly Pool created on Ethereum Network

[Uniswap v2](https://etherscan.io/address/0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f) was deployed on the Ethereum mainnet on May 4, 2020. Exactly one year later, on May 4, 2021, its new version, [Uniswap v3](https://etherscan.io/address/0x1f98431c8ad98523631ae4a59f267346ea31f984), was deployed on the Ethereum network.

In the Ethereum network, from April 2023 to March 2023, the number of newly created pools in Uniswap V2 for WETH decreases over time. However, the number of pools created in Uniswap V2 of WETH remains higher than in the latest version of Uniswap V3.

![](/blog/weth-holders-ethereum-arbitrum-matic-comparison/Pool_created_Table.png)

![](https://lh7-us.googleusercontent.com/MLWlB5rvez8TFQpAlStqnAcXNe3VGeUeinppXdy7jRghSbtw5cnyxtWIj0LU3Y19YHsdB-SZT-9fF0_f2y0EZ2Cb6SEgOcITwOyLJ1K7A3_ysYcoRsw11beegqhjhFkwVUVyotrJG7J8sa45OEZ7znI)

3.  ### Duplicate Tokens of Wrapped Ether

In the Ethereum network, 53 duplicate tokens of Wrapped Ether were created until March 2024. Most were created in 2022 (29 duplicate tokens), with no duplicate tokens generated before 2019 and none created in 2021. In 2024, only 1 duplicate token was created until March.

In the Arbitrum network, only 2 duplicate tokens of Wrapped Ether have been created until March 2024

![](/blog/weth-holders-ethereum-arbitrum-matic-comparison/Duplicate_token_created_chart.png)

4.  ### Top WETH pools on Ethereum

In this section, we find the top 10 pools of WETH in Ethereum network based on total number of trades and trade amount from April 2023 to March 2024. Furthermore, we analyse the top currencies traded against WETH. Finally, we compare the performance and engagement of Uniswap v2 and Uniswap v3 across the identified top WETH pools.

![](https://lh7-us.googleusercontent.com/54jlNAdKbkIrJV5Fbhk9G9aSpyoG1TRFh6WKN05SrH8cNsyRjsTcP0x7Z1b_XeT4ADw9Fs1rB_KwYgJHL9sI4Xgqn_UZ6ZtlhSFTPMd9MQMlWTuEdALdjF6TiTpOo2vbHXOB1QFZBdyQaBkyo7OxKMQ)

![](/blog/weth-holders-ethereum-arbitrum-matic-comparison/TopWETHpoolsonEthereum_Image2.png)

1.  ### Top currencies traded against WETH

We have analyzed through the top 10 pools of WETH that WETH is one of the dominant pair currencies, with over 90% of all pairs or pools created on Ethereum using WETH as the pair currency.

As you can see in the table below, Stablecoins ([USDC](https://etherscan.io/token/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48), [USDT](https://etherscan.io/token/0xdac17f958d2ee523a2206206994597c13d831ec7), [DAI](https://etherscan.io/token/0x6b175474e89094c44da98b954eedeac495271d0f)) win the day, with 6 out of 10 pairs belonging to them and 85% of the trading volume.

Even though USDC’s market cap is 1/3rd of USDT, the USDC - WETH pair is the biggest pair on Ethereum with over \$86 billion in trading volume in the last 1 year and contributing over 56% of volume among the top 10 WETH pairs we analysed.

From April 2023 to March 2024, there are 2 pools of USDC and WETH, and 3 pools of USDT and WETH. Despite similar trade counts for both USDC and USDT pools (around 35% to 40%), the trade volume in USDC pools was notably higher at around 58 %, compared to USDT pools (25%). This indicates that USDC pools handled transactions of higher trade volume compared to USDT pools

2.  ### WETH Pools : [Uniswap v2](https://explorer.bitquery.io/ethereum/smart_contract/0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f) and [Uniswap v3](https://explorer.bitquery.io/ethereum/smart_contract/0x1f98431c8ad98523631ae4a59f267346ea31f984)

Among the top 10 pools of WETH, we analyzed, 6 were related to Uniswap v3, and 4 belonged to v2. In addition, when it comes to trade count, 6 pools of Uniswap v3 did around 62% of the total trades, compared to 37% of v2's trades.

However, when it comes to volume, Uniswap v3 has completely taken over Uniswap v2 among the top 10 pools with ~ 95% of the trading volume.

Recently, we saw a huge narrative around meme coins. It’s interesting to see a Meme coin (Pepe) among the top 10 pools for WETH, with around 4% of the total trading volume of the top 10 pools.

![](/blog/weth-holders-ethereum-arbitrum-matic-comparison/wethpooluni1uni2_img1.png)

![](/blog/weth-holders-ethereum-arbitrum-matic-comparison/wethpooluni1uni2img2.png)

5.  ### Top WETH pools on matic

In this section, firstly, we identify and analyse the top 10 pools of Wrapped Ether (WETH) within the Matic Network focusing on their trading volume total number of transactions recorded between April 2023 to March 2023, then we discuss the leading currencies traded against WETH and corresponding most popular trading pairs and exchanges.

![](/blog/weth-holders-ethereum-arbitrum-matic-comparison/Pool%20Matic%20_%20IMG%201.png)

![](/blog/weth-holders-ethereum-arbitrum-matic-comparison/Pool%20Matic%20_%20IMG%202.png)

1.  ### Top traded currencies against WETH

From April 2023 to March 2024, among the top 10 pools, the important observation is that the stablecoin [USD Coin (PoS)](https://explorer.bitquery.io/matic/token/0x2791bca1f2de4661ed88a30c99a7a9449aa84174), which is transacted through the other chains, is being traded more, accounting for around 50% of the trade volume. Meanwhile, the native [USDC (USD Coin)](https://explorer.bitquery.io/matic/token/0x3c499c542cef5e3811e1192ce70d8cc03d5c3359) token of Matic network is traded very minimally during the same period, around 3% of the trading volume.

The total number of trades of USDC and WMATIC against WETH is nearly equal, at around 40% each. Together, they did approximately 78% of the total volume.

![](https://lh7-us.googleusercontent.com/GAn5KL1tfgP663wGY6IsEF9KlITQZb5_ZSdt5Cpa9WFJYL1V3yqtG8Mw5Ax3g-P9mA5-lrtSBBFckhtYbpzC4zSnx6N1U0IqqqsoXFvPdP1HZvtXFdgAm6NIWPanKLx6yi2iPQ3cdzUOkyX5ILOI9uY)

![](https://lh7-us.googleusercontent.com/O2SDXBoPHAEcQa1krH7QTfiKUJ-teF1hbBJEvae3IRYA53GxKYvx6Z6IPfdv-ksDWY09Ak-N5qosfOJPUtBZ2Xb1fZgOLEP4wqDmYA0RMSJWTKSscCMQAP_OS_238W7SGE27IoYdEjfFz0tz6J9ZLE0)

2.  ### Uniswap v3 vs other exchanges

[Uniswap v3](https://explorer.bitquery.io/matic/smart_contract/0x1f98431c8ad98523631ae4a59f267346ea31f984) was deployed on Polygon mainnet on Dec 20, 2021.

From April 2023 to March 2024, a clear dominance of Uniswap v3 can be seen, as among the top 10 pools, 5 pools belong to Uniswap v3 . Pools of Uniswap v3 account for nearly 80% of the total trades with around 88% of the trade volume. This shows that Uniswap v3 handled more trades of WETH with high transaction volume.

Note that [Uniswap v3](https://explorer.bitquery.io/matic/smart_contract/0x91e1b99072f238352f59e58de875691e20dc19c1) was deployed on June 15, 2023, on Polygon mainnet.

Moreover, Uniswap v3 handled the same number of trades and trade volume (nearly 12%). It is important to mention that Uniswap v2 and Uniswap v3 are distinct exchanges, as their addresses differ.

![](https://lh7-us.googleusercontent.com/jH5REjSKOeJKIGof6npDclmj3cACQzBQWnqJ0wafRou_szYGix9un2AnQZHBSlXj3aZxOVHIEX16aemst3xiyrLjH0BioyuxdBxvU8sjUb66tGMizhRM7tqspFYhIeUCpLAil9nGm4hQc4lxYaD0yz0)

.![](https://lh7-us.googleusercontent.com/_G1JbjmGIU7ngs_lLDbfaBHYjWK6CRbk2PUcAGLc4nvHlpnyZgHjv9LRVy8jBgx1gyzxacGxGthS-eWRGHJh8cFOKTCQgPr14otot5sf3aPpiyH2mZo2hYi0Alu45DBJPON5xOjRyagG4qFNzqPBtXA)

### Conclusion

WETH is one of the most active tokens in Ethereum and its related layer two chains. When it comes to trading, it has the biggest trading volume and pairs with almost all the tokens in the blockchain. As we discovered above, because of fees, we saw a better growth of WETH activity in Layer 2 chains specially in Arbitrum. Uniswap v3 emerges as the most trusted exchange for trading in Ethereum and Matic. Moreover, we have noticed that stablecoins USDT, USDC and DAI are sitting at the top in terms of trading volume with WETH. Surprisingly, we saw that the bridge USDC is more active in Polygon than Polygon’s own USDC. We have also detected duplicate currencies of WETH with the same name and symbol, mostly used by scammers.


----

Article written by Vishal]]></description>
        </item>
        <item>
            <title><![CDATA[A Deep Dive into Exchange Whale Ratio with Blockchain Data​]]></title>
            <link>https://bitquery.io/blog/deep-dive-exchange-whale-ratio</link>
            <guid>https://bitquery.io/blog/deep-dive-exchange-whale-ratio</guid>
            <pubDate>Tue, 21 May 2024 22:29:00 GMT</pubDate>
            <description><![CDATA[
Crypto investors and analysts continuously seek metrics to gauge market sentiment, predict price movements, and assess the overall health of various digital assets. One such metric gaining traction is the Exchange Whale Ratio. This blog post aims to delve into what the Exchange Whale Ratio is, its significance, and how to leverage bitquery API to track EWR for different cryptocurrencies.

### What is “Exchange Whale Ratio”?

The Exchange Whale Ratio is a metric used to measure the dominance or concentration of large holders, often referred to as "[whales](https://bitquery.io/blog/how-to-find-ethereum-whales-follow-money)" within the cryptocurrency ecosystem. These whales typically represent entities or individuals holding significant amounts of a particular cryptocurrency. The Exchange Whale Ratio specifically focuses on the proportion of total supply held by these large holders that are deposited on exchanges. The mathematical formula for the calculation of EWR is as follows:

![](/blog/deep-dive-exchange-whale-ratio/ewr.png)

## Significance of Exchange Whale Ratio

Understanding the Exchange Whale Ratio can provide valuable insights into market dynamics and investor behavior. Here are some key points highlighting its significance:

1. Market Sentiment Analysis: A high Exchange Whale Ratio may indicate that a relatively small number of entities holds a large portion of a cryptocurrency's supply. This concentration of wealth can influence market sentiment and potentially impact price movements, as the actions of whales can have a significant effect on market trends.

2) Liquidity and Volatility: The Exchange Whale Ratio can also offer insights into liquidity levels within the market. High concentrations of supply held by whales on exchanges may imply increased liquidity, potentially leading to higher trading volumes and reduced price volatility.

3. Risk Assessment: For investors and traders, monitoring the Exchange Whale Ratio can aid in assessing the risk associated with a particular cryptocurrency. A high ratio suggests a higher degree of centralization, which could pose risks such as price manipulation or sudden sell-offs by large holders.

## Using Bitquery API to compute EWR for various cryptocurrencies

[Bitquery](https://bitquery.io/) indexes data from 40+ blockchains and provides GraphQL APIs and additional interfaces, including WebSocket. To find the “Exchange Whale Ratio” we can leverage the [Bitquery Token Holder APIs](https://docs.bitquery.io/docs/examples/token-holders/token-holder-api/).

In this blog, we will find EWR for some altcoins like Shibainu, Link, and Matic and try to do a comparison using graphs.

### Finding Exchange Whale Ratio for Shiba Inu

The [SHIBA INU (SHIB) Token](https://explorer.bitquery.io/ethereum/token/0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce) on Ethereum mainnet has token address - “0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce”. This is needed to find the transitions specific to this token.


#### How to Calculate Exchange Inflows? 

In the context of cryptocurrency trading, inflow to exchanges typically refers to the amount of cryptocurrency being transferred from personal wallets to exchange wallets. This inflow indicates users' intent to trade, sell, or participate in other exchange-based activities.

For example, I want to find the Inflow of only the “Shiba Inu” token which is listed on the Ethereum blockchain, How to find it?

Here, to get the inflow which is nothing but the trades of the token we leverage [Bitquery DexTrades API](https://docs.bitquery.io/docs/evm/dextrades/).

The [query](https://ide.bitquery.io/Total-Volume-of-SHIB-in-all-Dex-for-last-72H) below retrieves the total sum of transactions of Shiba Inu (SHIB) for the last 72 Hours i.e. 13th May to 15th May.

```graphql
{
  ethereum(network: ethereum) {
    dexTrades(
      date: {before: "2024-05-16", after: "2024-05-12"}
      baseCurrency: {is: "0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce"}
    ) {
      count
      tradeAmount(in: USD, calculate: sum)
    }
  }
}
```

Now, Using another [query](https://ide.bitquery.io/Top-10-SHIB-transaction-on-all-Dex-in-last-72H) we can retrieve the top 10 exchange inflow transactions of Shiba Inu token in the same 72-hour period.

```
{
  ethereum(network: ethereum) {
    dexTrades(
      options: {limit: 10, desc: "tradeAmount"}
      date: {before: "2024-05-16", after: "2024-05-12"}
      baseCurrency: {is: "0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce"}
    ) {
      count
      tradeAmount(in: USD)
      timeInterval {
        hour(count: 1)
      }
    }
  }
}

```

Using the above queries for the last 15 days, the below table is formed the EWR of the SHIB token.

![](/blog/deep-dive-exchange-whale-ratio/shib_ewr.png)

### Finding Exchange Whale Ratio for LINK

The [ChainLink Token (LINK) Token](https://explorer.bitquery.io/ethereum/token/0x514910771af9ca656af840dff83e8264ecf986ca) on Ethereum mainnet has a token address - “0x514910771af9ca656af840dff83e8264ecf986ca”. This is needed to find the transitions specific to this token.

The [query](https://ide.bitquery.io/Total-Volume-of-LINK-in-all-Dex-for-last-72H) below retrieves the total sum of transactions of Chainlink (LINK) for the last 72 Hours i.e. 13th May to 15th May.

```
{
  ethereum(network: ethereum) {
    dexTrades(
      date: {before: "2024-05-16", after: "2024-05-12"}
      baseCurrency: {is: "0x514910771af9ca656af840dff83e8264ecf986ca"}
    ) {
      count
      tradeAmount(in: USD, calculate: sum)
    }
  }
}

```

Now, Using another [query](https://ide.bitquery.io/Copy-of-Top-10-LINK-transaction-on-all-Dex-in-last-72H) we can retrieve the top 10 inflow transactions of LINK token in the same 72-hour period.

```

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {limit: 10, desc: "tradeAmount"}
      date: {before: "2024-05-16", after: "2024-05-12"}
      baseCurrency: {is: "0x514910771af9ca656af840dff83e8264ecf986ca"}
    ) {
      count
      tradeAmount(in: USD)
      timeInterval {
        hour(count: 1)
      }
    }
  }
}

```

Using the above queries for the last 15 days, the below table is formed for the EWR of the LINK token.

![](/blog/deep-dive-exchange-whale-ratio/link_ewr.png)

### Finding Exchange Whale Ratio for MATIC

The [Matic Token (MATIC) Token](https://explorer.bitquery.io/ethereum/token/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0) on Ethereum mainnet has token address - “0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0”. This is needed to find the transitions specific to this token.

The [query](https://ide.bitquery.io/Total-Volume-of-MATIC-in-all-Dex-for-last-72H) below retrieves the total sum of transactions of Polygon Matic (MATIC) for the last 72 Hours i.e. 13th May to 15th May.

```graphql
{
  ethereum(network: ethereum) {
    dexTrades(
      date: {before: "2024-05-16", after: "2024-05-12"}
      baseCurrency: {is: "0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0"}
    ) {
      count
      tradeAmount(in: USD, calculate: sum)
    }
  }
}

```

Now, Using another [query](https://ide.bitquery.io/Top-10-MATIC-transaction-on-all-Dex-in-last-72H) we can retrieve the top 10 inflow transactions of MATIC token in the same 72-hour period.

```
{
  ethereum(network: ethereum) {
    dexTrades(
      options: {limit: 10, desc: "tradeAmount"}
      date: {before: "2024-05-16", after: "2024-05-12"}
      baseCurrency: {is: "0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0"}
    ) {
      count
      tradeAmount(in: USD)
      timeInterval {
        hour(count: 1)
      }
    }
  }
}

```

Using the above queries for the last 15 days, the below table is formed for the EWR of the MATIC token.

![](/blog/deep-dive-exchange-whale-ratio/matic_ewr.png)

### Visual Comparison of EWR across Cryptocurrencies

![](/blog/deep-dive-exchange-whale-ratio/ewr_linechart.png)

![](/blog/deep-dive-exchange-whale-ratio/ewr_bar.png)

The above graph was created using Python Code which can be [run on Google Colab](https://colab.research.google.com/drive/1SKw8I0yUdURmhfHJv33CzsHfdzyucmlp?usp=sharing), also the data is fetched using Bitquery API and can be found [here](https://drive.google.com/file/d/14DTvDAC4-cGALdoTYswb_882lftPjtEI/view?usp=sharing).

## Conclusion

The Exchange Whale Ratio serves as a valuable metric for assessing the concentration of wealth within the cryptocurrency ecosystem and understanding its implications for market dynamics. While it provides useful insights, it's essential to consider other factors such as trading volume, market sentiment, and fundamental analysis when making investment decisions.

As the cryptocurrency market continues to evolve, the Exchange Whale Ratio, along with other metrics, will remain a crucial tool for investors, analysts, and enthusiasts alike to navigate the complexities of this burgeoning asset class. Understanding and monitoring these metrics can contribute to more informed decision-making and a deeper understanding of cryptocurrency markets.


---

*The information provided in this material is published solely for educational and informational purposes. It does not constitute a legal, financial audit, accounting, or investment advice. The article's content is based on the author's own research and, understanding and reasoning. The mention of specific companies, tokens, currencies, groups, or individuals does not imply any endorsement, affiliation, or association with them and is not intended to accuse any person of any crime, violation, or misdemeanor. The reader is strongly advised to conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery shall not be liable for any losses or damages arising from the use of this material.*

--

Paid Guest Post Written by Pranshu Agrawal 
]]></description>
        </item>
        <item>
            <title><![CDATA[Using FATF (Financial Action Task Force) Indicators and Blockchain Data to Detect Money Laundering​]]></title>
            <link>https://bitquery.io/blog/fatf-indicators-bitquery-detect-money-laundering</link>
            <guid>https://bitquery.io/blog/fatf-indicators-bitquery-detect-money-laundering</guid>
            <pubDate>Tue, 21 May 2024 22:29:00 GMT</pubDate>
            <description><![CDATA[
The Financial Action Task Force [FATF](https://www.fatf-gafi.org/content/dam/fatf-gafi/reports/Virtual-Assets-Red-Flag-Indicators.pdf) has developed a set of red flag indicators that, when combined with Bitquery data APIs and investigation tools like [Coinpath®](https://bitquery.io/products/moneyflow), can be instrumental in detecting suspicious activities.

This article explores how FATF indicators and Bitquery data can be used to detect anomalous transactions in the cryptocurrency ecosystem, particularly focusing on transactions within specific value ranges and patterns.

## FATF Red Flag Indicators

FATF has identified several red flag indicators related to transactions, transaction patterns, anonymity, sender/recipient irregularities, and the source of funds. These indicators are crucial for identifying potential anomalous transactions activities in the virtual asset sector.

### Key Indicators

1. **Size and Frequency of Transactions**

   - Structuring transactions to avoid record-keeping thresholds (e.g., multiple transactions just below 1 ETH).
   - Multiple high-value transactions in short succession.
   - Incoming transactions from many unrelated wallets followed by a subsequent transfer to another wallet.

2. **Transaction Patterns**

   - Large initial deposits inconsistent with customer profiles.
   - Frequent virtual asset-to-fiat currency exchanges at a potential loss.
   - Immediate transfers to multiple virtual asset service providers (VASPs) in different jurisdictions.

3. **Anonymity**

   - Use of privacy coins or mixing/tumbling services.
   - Use of decentralized/unhosted wallets to transport virtual assets across borders.

4. **Sender/Recipient Irregularities**

   - Multiple accounts under different names to circumvent trading limits.
   - Transactions from non-trusted or suspicious IP addresses.
   - Insufficient KYC information.

5. **Source of Funds**
   - Transactions linked to known fraud, extortion, or ransomware schemes.
   - Use of credit/debit cards linked to virtual asset wallets for large fiat withdrawals.

## Using Bitquery to Detect Anomalous Transactions

Bitquery provides extensive blockchain information that can be used to detect suspicious transactions based on FATF indicators. By querying specific transaction data, we can identify patterns that align with anomalous transactions behaviors.

### Transactions Between 0.89 ETH to 0.99 ETH

A common tactic to avoid triggering anti-money laundering (AML) alerts is structuring transactions just below the reporting threshold. This can be identified through the following query where we filter txs that have value between 0.89 ETH to 0.99 ETH falling right below the 1 ETH threshold that might be flagged:

```graphql
query MyQuery {
  EVM(network: eth) {
    Transactions(
      where: {
        Transaction: { Value: { ge: "0.89", le: "0.99" } }
        Block: { Date: { after: "2024-03-01" } }
      }
      limit: { count: 1000 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Time
        Number
      }
      Transaction {
        From
        Hash
        To
        Value
        ValueInUSD
        Type
      }
      Fee {
        SenderFeeInUSD
        SavingsInUSD
      }
    }
  }
}
```

This query helps identify transactions that are structured to avoid detection, a key indicator of money laundering.

### Transactions Involving Specific Exchange Wallets

Monitoring transactions involving known exchange wallets, especially those close to value thresholds, can reveal attempts to bypass exchange reporting requirements. The following query targets transactions from/to a specific OKX exchange wallet with values just below the threshold:

```graphql
{
  EVM(dataset: archive, network: eth) {
    Transactions(
      limit: { count: 100 }
      where: {
        any: [
          {
            Transaction: {
              From: { is: "0xa7efae728d2936e78bda97dc267687568dd593f3" }
            }
          }
          {
            Transaction: {
              To: { is: "0xa7efae728d2936e78bda97dc267687568dd593f3" }
            }
          }
        ]
        Transaction: { ValueInUSD: { ge: "989", le: "999" } }
      }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Time
        Number
      }
      Transaction {
        Hash
        Cost
        To
        From
        ValueInUSD
        Value
      }
    }
  }
}
```

This query detects transactions that fall just below the threshold, potentially indicating attempts to circumvent reporting requirements by staying under value limits.

### Identifying Top Senders in a Period

By identifying the top senders over a period, one can detect patterns such as the accumulation of funds from multiple sources into a single wallet, followed by large outflows. The following query identifies the top senders in the Binance Smart Chain (BSC) network:

```graphql
{
  EVM(dataset: archive, network: bsc) {
    Transactions(
      where: {
        Block: { Date: { after: "2024-03-03" } }
        Transaction: {
          To: {
            notIn: [
              "0x55d398326f99059ff775485246999027b3197955"
              "0x13f4ea83d0bd40e75c8222255bc855a974568dd4"
              "0x10ed43c718714eb63d5aa57b78b54704e256024e"
            ]
          }
        }
      }
      orderBy: { descendingByField: "senders" }
      limit: { count: 200 }
    ) {
      Transaction {
        From
      }
      senders: count(distinct: Transaction_To)
    }
  }
}
```


### Transactions with Large Initial Deposits

To identify transactions with large initial deposits that are inconsistent with customer profiles you can use the below query.

```graphql
{
  EVM(network: eth) {
    Transactions(
      where: {
        Transaction: { ValueInUSD: { ge: "50000" } }
        Block: { Date: { after: "2024-03-01" } }
      }
      limit: { count: 1000 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Time
        Number
      }
      Transaction {
        From
        Hash
        To
        Value
        ValueInUSD
        Type
      }
    }
  }
}
```

### Transactions Involving Privacy Coins or Mixing Services

To identify transactions involving privacy coins or mixing/tumbling services, which can obscure the origin of funds we can use the below query where we include tornado cash/mixing service addresses in the `To` filter. You can read more about [tracing funds through Tornado Cash here](https://bitquery.io/blog/track-money-tornado-cash-bitquery)

```graphql
query MyQuery {
  EVM(dataset: archive, network: eth) {
    Calls(
      limit: { count: 10 }
      where: {
        Transaction: {
          To: {
            in: [
              "0x910Cbd523D972eb0a6f4cAe4618aD62622b39DbF"
              "0x12D66f87A04A9E220743712cE6d9bB1B5616B8Fc"
            ]
          }
        }
      }
    ) {
      Transaction {
        From
      }
      count
    }
  }
}
```

Run the query [here](https://ide.bitquery.io/TornadoCash-ETH-frequent-txs)

### Transactions Linked to Known Fraudulent Activities

To identify transactions that are linked to addresses associated with known fraudulent activities, extortion, or ransomware schemes, filter the addresses using Transaction `From` filter. Such addresses will be flagged on explorers like Bitquery, for example [this address](https://explorer.bitquery.io/ethereum/address/0x1d50588C0aa11959A5c28831ce3DC5F1D3120d29) has been labelled `Fake_Phishing899, Phish / Hack`.

```graphql
{
  EVM(network: eth) {
    Transactions(
      where: {
        Transaction: {
          From: { in: ["0xFraudulentAddress1", "0xFraudulentAddress2"] }
        }
        Block: { Date: { after: "2024-03-01" } }
      }
      limit: { count: 1000 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Time
        Number
      }
      Transaction {
        From
        Hash
        To
        Value
        ValueInUSD
        Type
      }
    }
  }
}
```

### Utilization of VASPs in High-Risk Jurisdictions

To detect funds originating from or sent to exchanges in high-risk jurisdictions with inadequate AML/CFT regulations you can find exchange addresses based on the [list provided by FATF](https://www.fatf-gafi.org/en/topics/high-risk-and-other-monitored-jurisdictions.html)

```graphql
{
  EVM(network: eth) {
    Transactions(
      where: {
        Transaction: { To: { is: "0xHighRiskJurisdictionExchange Address" } }
        Block: { Date: { after: "2024-03-01" } }
      }
      limit: { count: 1000 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Time
        Number
      }
      Transaction {
        From
        Hash
        To
        Value
        ValueInUSD
        Type
      }
    }
  }
}
```

By employing these queries alongside the FATF red flag indicators, investigators can gain deeper insights into suspicious activities within the cryptocurrency space, helping to uncover and prevent money laundering schemes.

## **About Bitquery**

[**Bitquery**](https://bitquery.io/?utm_source=blog&utm_medium=about_coinpath "https://bitquery.io/?source=blog&utm_medium=about_coinpath") is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

- **APIs** - [Explore API](https://ide.bitquery.io/streaming "https://ide.bitquery.io/streaming"): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

- **Coinpath®** - [Try Coinpath](https://bitquery.io/products/moneyflow?utm_source=blog&utm_medium=about "https://bitquery.io/products/moneyflow?utm_source=blog&utm_medium=about"): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

- **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/cloud-products?utm_source=blog&utm_medium=about "https://bitquery.io/products/data-on-demand?utm_source=blog&utm_medium=about"): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

- **Explorer** - [Try Explorer](http://explorer.bitquery.io/ "http://explorer.bitquery.io"): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.
]]></description>
        </item>
        <item>
            <title><![CDATA[Evaluating Token Success: Holder Patterns and Price Changes Post-Launch]]></title>
            <link>https://bitquery.io/blog/token-success-evaluation-holder-patterns-price-changes</link>
            <guid>https://bitquery.io/blog/token-success-evaluation-holder-patterns-price-changes</guid>
            <pubDate>Thu, 16 May 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
[Initial Coin Offerings (ICOs)](https://www.coindesk.com/learn/what-is-an-ico/) are the crypto equivalent of Initial Public Offerings (IPOs). It’s a method of fundraising capital for early-stage crypto projects. A firm looking to raise funds to create a DApp or offer web3 services can raise them through ICO. An offering where investors can buy to receive the new tokens that represent a stake in the company.

In ICO, blockchain-based startups mint a predetermined quantity of their native digital token and sell them to early investors in exchange for other crypto tokens such as Ethereum, Bitcoin, BNB, and stablecoins like USDT, USDC, or DAI. Unlike IPOs, it’s easier to make sizable profits through ICOs.

A proper example of making a sizable profit through ICO was an event that occurred in 2023. According to [@lookonchain’s post on X](https://twitter.com/lookonchain/status/1681476159253680128?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1681476159253680128%7Ctwgr%5Ef6935831fb6ab21552a0ecac79c8e03902910176%7Ctwcon%5Es1_&ref_url=https%3A%2F%2Fdecrypt.co%2F149142%2Fethereum-ico-whale-moves-116m-in-eth-to-kraken), this wallet that participated in the Ethereum ICO moved their investment after lying dormant for eight years and an over 611,000% increase.

![](https://lh7-us.googleusercontent.com/ce7S9yFtp84clCv0jCqW6i2Nm7PGdczh2uHm90mWTkz0U3AMiu4q4Kyifib-zzzDo11eW9Hzg5fIDZ-9dsjCZueN6cfkvS_SSS4mX2dy-nSmwaqoJPHUbi347DFHU9iyuUtB0IeXuO_5A4RfSHT22M4)

On the other hand, ICOs are also risky — any token sold through an ICO is considered a high-risk investment. The market is under-regulated. So, scam ICOs are rife, and investors have no protections if an ICO fails or turns out to be fraudulent.

A [December 2022 report on ICOs by MDPI](https://www.mdpi.com/1911-8074/15/12/579#:~:text=As%20previously%20discussed%2C%20from%20an,56.80%25)%20exhibited%20scam%20accusations.) revealed that about 56% of all ICOs reviewed exhibited scam accusations.

Over the years, ICOs have become less popular because of the legal gray area around the offerings. But even so, tokens are still deployed and sold every day.

According to the data retrieved from the Ethereum blockchain with [Bitquery’s Smart Contract API](https://ide.bitquery.io/count-of-contract-deployed), 63,315 ERC20 token smart contracts were deployed year to date. That’s an average of 523 ERC20 tokens released every single day!

So, even if ICOs are no longer popular, tokens are still deployed daily. And more so, the risk of scams is still high—though not as high as before. However, the best way to mitigate the risk of buying into scams is to analyze tokens.

However, apart from the risk of buying into scams…

### Why Should You Learn to Analyze Tokens?

Here are the importance of analyzing newly launched tokens.

1.  Risk assessment: Crypto launch is under-regulated and very risky. Anybody, even those with ulterior motives, can decide to deploy a smart contract and launch a token anytime without being checked. Analyzing tokens allows investors to evaluate the potential risk associated with the token, such as the project credibility, market trends, investors' and traders' sentiments, and market volatility.

2)  Due Diligence: Analyzing a token lets you perform your due diligence before investing. You learn about the token supply, tokenomics (token economy), the roadmap, the team behind the token, and the transparency and security level of the deployed contracts. Conducting due diligence helps you avoid the likelihood of scams and ensure transparency.

3.  Long-Term Viability: Learning the fundamentals of a token helps gauge your investment. Checking the use cases, community support, scalability, and the project's roadmap gives you insight into the future outlook of the token. This also allows you to gauge the viability and the potential token growth.

4)  Reward Potential: Analyzing a new token gives you access to helpful information to learn more about your investment. Analyzing the project utility, market demand, tokenomics, and so on will provide you with insights into the reward potential of investing in this token.

Becoming a profitable on-chain investor or trader requires you to have early access to helpful information before anyone else. One of the ways is learning how to retrieve needed data from the blockchain with data analytic tools like Bitquery.

Bitquery is a blockchain analytics company that focuses on retrieving, parsing, and indexing blockchain data for analysis. It offers a suite of APIs that simplifies the process of retrieving data from the blockchain. And with this data, you can gain usable insight to make intelligent investment decisions.

In this article, we’ll walk you through ways to analyze newly launched tokens and gain insight from the data. Read on to learn about how to draw meaningful insights from blockchain data. Before that, let’s learn the key metrics for drawing insights from the blockchain.

## Analyzing the Top Newly Launched Tokens on the Ethereum Blockchain

In this section, we’ll walk you through the process of analyzing newly launched crypto tokens using the Bitquery APIs. Here, we'll do an exploratory analysis of some newly launched tokens based on the token holders and Uniswap liquidity.

For this analysis, we’ll be using the [dex Trade](https://docs.bitquery.io/docs/category/dex-trades/) API, the [Token Holders API](https://docs.bitquery.io/docs/examples/token-holders/token-holder-api/), and the [Transfers API](https://docs.bitquery.io/docs/category/transfers/).

1.  ### ELON

[Elon](https://explorer.bitquery.io/ethereum/token/0x69420E3A3aa9E17Dea102Bb3a9b3B73dcDDB9528) smart contract was deployed to the Ethereum blockchain on the 24th of April 2024 on block 19,723,619.

#### Token Holder Distribution

- It has a total supply of over 690 billion Elon and an FDV of $12 million.

- According to the data retrieved using the Bitquery Token Holder’s API, Elon has just 4,735 unique token holders with an average of 6,275,181 ELON per wallet address.

- Based on our analysis using the Bitquery API, eight unique wallets are sitting on over 23% of the total token supply.

![](/blog/token-success-evaluation-holder-patterns-price-changes/Elon/token%20holders%20distribution.PNG)

#### Trading Activity After Deployment

Looking into the Uniswap liquidity using the dex trade API, Elon has deep liquidity when compared to other tokens launched around the same period. With total DEX trade transactions of 65,314 and a total token transfer of 113,420, Elon is considered highly liquid. A unique sender and receiver of 7,869 and 10,238 respectively.

![](/blog/token-success-evaluation-holder-patterns-price-changes/Elon/First%2060minutes%20(hist).PNG)


The charts above give insight into the first trading hour on Uniswap DEX. Looking into the chart,

- the first few minutes of trades showed heavy trading traffic.

- For example, an average of about **$12,000 was traded in the first 10 minutes**, showing an enthusiasm that usually follows the deployment of new tokens on DEXes.

- As time went on, the enthusiasm continued to dwindle and the amount traded on the Uniswap DEX was reduced by around 41% by the end of the first trading hour.

However, there was little reflection on the price chart. In that, the changes that we saw in the trading volume and amount traded have little effect on the token price within the first hour of trade. The lowest quote price within the hour is just 4.95e-9 (0.00000000495) per WETH, while the highest quote price over the same period was 6.21e-9 (0.00000000621) per WETH and the Average quote price traded is 5.68e-9 (0.00000000568) per WETH.


![](/blog/token-success-evaluation-holder-patterns-price-changes/Elon/average%20price%20in%20first%2024hrs%20(elon).PNG)

#### Trading Activity Over Time

While the first chart gives us a detailed overview of what happened in the first hour, a better way to draw insight from on-chain data is to zoom out and check the trend over time. Looking into the data above, we discovered that our analysis of the first chart doesn’t reflect what happened over the next 24 hours.

- After the first two hours of deployment, the traders/investors’ activities increased significantly.

- From less than $1M traded in the first two hours, the amount traded peaked in the fifth hour at about $7M, about 1,200% change, before trending down over subsequent hours.

Alternatively, the trade volume on the Uniswap DEX also followed the same pattern as the amount traded.

- From just 500 transactions in the first two hours, it peaked to at over 2500 trades in the fifth hour,

- Before trending back down to under 500 trades in the 24th hour, which signifies a roll of emotions among the traders/investors.

Finally, unlike in the first-hour chart above, there were some significant changes between the price chart and the Volume/Traded Amount chart. Price changes also reflect some kind of increase or decrease in trading volume, signifying some kind of speculative move among the token traders.

For example, when there was a significant drop in price on the 10th hour, there was a significant increase in the amount traded and the count of trade on the Volume/Traded Amount Chart. This could signify that the speculators are trying to sell their holdings and reduce loss.

![](/blog/token-success-evaluation-holder-patterns-price-changes/Elon/First%20seven%20day%20(hist).PNG)

![](/blog/token-success-evaluation-holder-patterns-price-changes/Elon/First%20seven%20days%20of%20trade%20on%20uniswap%20(elon).PNG)

Zooming further out into the daily activities of ELON traders on Uniswap DEX, we even have a more different insight to draw from the chart above.

- There were about 20,000 trades initiated with over \$40 million moving around on UniSwap on the first trading day.

- Over the next six days, we saw a significant decline in the amount traded and the trade volume.

- However, on the seventh day, there was about a 150% increase in trading activities, signifying changing investors’ sentiment concerning the token.

In conclusion, considering the number of senders/receivers to the unique transactions count on-chain, the velocity of transfer is high. Leaving us to conclude that ELON is traded by speculators who want to make the most of the investment just like any other meme token. And if you’re looking to invest for the long term, it’s important to be careful of token manipulation as eight accounts are sitting on 23% of the total market capitalization of the token which makes it easier to manipulate the market price of the token.

Overall, there seems to be no volatility issue from the look of things as the on-chain liquidity is significantly high. Although ELON is a meme that is known for price volatility, it is not a pump-and-dump token from the look of things.

2.  ### Three Protocol Token (THREE)

[Three protocol](https://explorer.bitquery.io/ethereum/token/0xa059b81568fee88791de88232e838465826cf419) is another new Ethereum token that was just deployed on the Ethereum chain. The token was deployed about 11 days ago at the time of this writing.

#### Token Holder Distribution

- With over 13,000 unique transactions on the Uniswap DEX and a total transfer of about 22,500, the token seems to have enough volume to avoid volatility.

- There are 2,279 unique token holders with a total supply of 100 million tokens minted.

![](/blog/token-success-evaluation-holder-patterns-price-changes/Three/Three%20Token%20Holder%20Distribution.PNG)

#### Trading Activity After Deployment

Looking at the token holders’ distribution chart above, we can see that the token has some kind of decentralized distribution that will prevent market manipulation by nefarious individuals. THREE seems to be an interesting token to dive deep into. So, let’s analyze the price action over the first seven days after contract deployment.

![](/blog/token-success-evaluation-holder-patterns-price-changes/Three/first%20hour%20traded%20amount.PNG)

A look at the chart above revealed that although THREE has a lower transaction volume, there is some kind of enthusiasm that comes with other token launches.

- The minimum amount traded within the first hour was about $80 and the maximum amount traded was about $546,403.

- Likewise, looking at the price chart, except for some outliers, the price of the token seems fairly consistent with a minimum quoted price of 0.000071 THREE/WETH and a maximum of 0.000103 THREE/ETH.

![](https://lh7-us.googleusercontent.com/JpaVrpgC_bEWi6cWAiXEP6a7tiarzwqlZJVxvCrNMt4XHigy-S4R8TS8UigI5r8nM9Of5KNpQISmXFzWkVs_i2xzkNIh2nT1KHZsg4NZ63JJWA9zC_QrHnF73KQ4dznYcS7AdICAm4Vnpd61FBb6f50)

![](https://lh7-us.googleusercontent.com/gy60brCNw9P6QEp-h2WGRm-G73EYKc2XdraIhvn7UV7EjTTY-Q4tklc0rL1nsLkurL6L2SOfAudBfUS1iZKaCFVX3eYgfxmb8zSo7mtRUjIvgzBjSQsDTgFamu_UeS3YbKan6SlH7LRNIK9Xa-X8w0Y)

Looking at the 24-hour chart above, the first hour showed a heavy volume.

- The count of trade was over 1400 transactions. This also reflects on the amount traded which is also over \$4 million.

- However, in the second hour, the trading volume and amount traded declined by about 80% to under 200 trade counts and \$1 million respectively.

- One insight to draw from this chart is that the highest percentage of people who buy into the token are in for the quick bucks.

The price chart seems to do the opposite of what we expect based on the traded amount and trade count chart.

- For example, instead of trending down, the price of the token seems to consistently rise until it reaches its highest of 0.000041THREE/WETH at the tenth hour before trending back down.

#### Trading Activity Overtime

![](https://lh7-us.googleusercontent.com/7tk1eRWSre4-H_cV426jABWX6zdNbgYuq_Gu8b2vmYcxa58cp4yCjQ4KXob63KZTZGV5b6UJ3juIgFrgIJzgAxKfuQl9-gVKxZxpKdeX_wWLVpTYm2s0mda2brwruxVVohejdn0d91nFQBWSmucVNSk)

![](https://lh7-us.googleusercontent.com/jH_WVZoPWffhU-yvpLpg1aVEd_Bl0yWNzq-Z73RyLk5IKrv9BYMjtFkLhUWc6Chd2f3KMiW-beSMfhYPigQVvfKbculn3kq8e1lJgtvk25SNISk2yBLotxxLisNnnFDQdjFyfvmpCXSCWsETSKNcSag)

A further look into the 7-day chart gives us a different view of what’s going on with the token on-chain.

- The first day of trade saw over \$5 million in traded volume and about 2000 transactions conducted on Uniswap DEX.

- Looking further, there was about an 80% decline on the second day in the traded amount and trading volume, which could be a result of people trying to make a profit from the significant price change.

- Over the next couple of days, there was a consistent price increase, which seemed to affect the trade volume and traded amount.

In conclusion, while the first four charts leave us with the conclusion that THREE seem to be traded by speculators, the seven-day chart left us with a different outlook — the token looks stable with a better outlook. Moreover, the tokens were distributed among holders in a way that avoids manipulation and the trading activities in the first few days have been stable and consistent.

3.  ### DogeCoin20 (DOGE20)

[DOGE20](https://explorer.bitquery.io/ethereum/token/0x2541A36BE4cD39286ED61a3E6AFC2307602489d6) is a new ERC20 token deployed on Ethereum Blockchain.

#### Token Holder Distribution

- It has a total supply of 140 billion tokens and a unique holder count of 22,564 with over 149,000 transactions conducted.

- Throughout its existence, there were 13,427 senders and 33,652 receivers of the token on the Uniswap DEX.

![](/blog/token-success-evaluation-holder-patterns-price-changes/Doge20/Token%20holders%20distribution.PNG)

#### Trading Activity After Deployment

As a meme token (based on the total token supply), the distribution of the token seems to be fairly even based on the chart above. Let’s look further into the price chart.

![](/blog/token-success-evaluation-holder-patterns-price-changes/Doge20/hour%20traded%20amount.PNG)

DOGE20 seems to be different from other tokens we’ve looked into.

- The first minute of trade has a low trading volume and the amount traded.

- Over the next 60 minutes trading volume averaged at 26 with a consistent trading volume.

- Looking at the price chart, the quoted price of the token remains consistent over the timeframe.

Even though DOGE20 is a meme token, it has fairly consistent UniSwap trading activities in the first 60 minutes.

![](/blog/token-success-evaluation-holder-patterns-price-changes/Doge20/hour%20traded%20amount.PNG)

![](https://lh7-us.googleusercontent.com/w755IbYdZ1hsA9FHPDvFfB6xNC7R9gUBg10CZdPD04cYa3JWxc8kkL_0GNAxJBsZZiueoQZAe4lR0hP1Gbv9hb240XzCyNR5pbHauq9OSh1Dd5dCU2Ox3u6FVzTU34w2A0csozFadyLDkRp7LR_WXBw)

It seems that after speculators saw the stability of the token in the first 60 minutes, they jumped on the train in the next hour.

- After a low start, the activities of the token jumped about 20x in the second hour, from under 200 trades and $500 thousand amount traded to over 1600 transactions and $2 million, before trending back down over the next 24 hours.

#### Trading Activity Over Time

![](https://lh7-us.googleusercontent.com/6-pzT7gvb20_dAQGgx269B7K_BpgACts7aFVOoLVu-WEbZlgA125V7XySqvPc6QROTBFk-dxZyPE6A4BOxncrSZIhGFKrpFxFj9Noaun-_JGsa98Qqn9JvzyQL19TLpG2P9lOI0DkgQZw8yAW0mW7nI)![](https://lh7-us.googleusercontent.com/VU5_pV4qPsAd4vDvTAyj4vl4Udr8OizpynLN7FUSRxVpgt_27CN6qFJ9ZWbA3jPBbeANU3kFITOV_T3iffVHtDLPcyQVe8nbERllNm2N8Wwn8SGYhNo-4ALmnYGjO4ExncJTsm4XYO77DOvoFInIDVM)

The daily chart above gives us insight into how activities went over the next couple of days.

- After over \$5 million was traded on the first day, the token DEX activity saw a decline over the next couple of days before trending back up from the fifth day.

- From the price chart, we saw that the minimum quote price was on the third day with a quoted price of 0.000000028 DOGE20/WETH and the maximum quote price was on the fourth day with a price of 0.0000000668 DOGE20/WETH.

4.  ### Maga VP

[Maga-VP (MVP)](https://explorer.bitquery.io/ethereum/token/0x766d2fcece1e3eef32aae8711ab886ee95fd5b2a) is a satirical token for Donald Trump’s MAGA (Make America Great Again) campaign.

#### Token Holder Distribution

- It has 50 million tokens deployed with 2.5 million tokens burned.

- As of the time of this writing, there were 875 token holders with over 7000 in total transactions on the Uniswap DEX.

![](/blog/token-success-evaluation-holder-patterns-price-changes/Maga%20VP/Token%20holders%20distribution.PNG)

Even though MVP is just a satirical token, it is well distributed among the 875 holders. The highest group of holders were averagely holding between 1,000 and 10,000 tokens. And just 88 unique addresses hold more than 100 thousand tokens.

#### Trading Activity After Deployment

![](/blog/token-success-evaluation-holder-patterns-price-changes/Maga%20VP/hour%20count%20of%20trade.PNG)

A look at the charts above gives us insight into the trading volume, the amount traded, and price action on the Uniswap exchange.

- The token started trading on-chain at 0.000037MVP/WETH and saw a decline of about 36% to its lowest of 0.000024 on the 60th minute.

- On the other hand, the trading activities were very low to the amount traded, which showed that only a few people were speculating on the price.

![](https://lh7-us.googleusercontent.com/Xjl_t_6qrda2jmWghgcZimSJ47tHo8uiFdfuHD9aRn7kpb1b_qzBOYmlj9F7hKp73kqMUw-LPvN9cJWkmzoVwzkJxhuo7H4ZartvFJetOYWy7SVEbIe9zCPIkSSjPOoT8gbpL0aroUaBmGVnOCjpAcM)![](https://lh7-us.googleusercontent.com/s1TPYYnXCXn60qL-47QeXZBiOX5Tqjo_I0fAty2qxWfB_Y2eDuwUzpT8MVFj6R5G3iaIAGwVC03ZhRXaNOvfHZHebBIwvn3ZdIPfyNS9psPU5A7nqTB6HSV2cKWg8p9XiSbmc1bvy9RLAlsggNrocp8)

Looking further into the hourly price chart, MVP also has fairly consistent pricing over the next 24 hours.

- The token started trading at 0.000038 MVP/WETH and saw about an 18% decline in quote price to about 0.000031MVP/WETH.

- Looking into the activity chart above, the token has low on-chain activities in general.

#### Trading Activity Over Time

![](https://lh7-us.googleusercontent.com/DrpwSKCeZqHjnD8MKxc0Q1CaUPyg_-puh0SmOlrFX8GCp921Ph76vuonybDwzxi70bDA1Qrf7YScSWrOsUH53pRBUuMXOUv-Pab6q0-2cYH81VHKPh9ez-qg_0wJczFET7jWNIl1Har5wEajYWysqXo)

![](https://lh7-us.googleusercontent.com/w9rRmcLWYKKwuFJd_9Tipo_zDzWcQxJwuZbF_vF2gXIAAR_0_X2Rw1Qm1PUmKwv3wmTHHGtvYOWddjn24Wu4lP4rhQpBUQrQoo89fKeSWaIE3Gck8svKg686kiEJ05v9lTCHYH9bBe-ZGDg_8ZnJeRg)

The daily price chart is congruent with the other chart in the sense that the price decline continues over the next few days with a few outliers.

- The token traded at its highest of 0.0000347MVP/WETH on the first day and traded at its lowest of 0.0000291MVP/WETH on the seventh day seeing a decline of around 11%.

The activity chart seems to be different from what we saw on the previous charts.

- Starting at around 55 trades and $37,000 in traded amount on the first day and ending the week a little above 50 trades and $42,000 in trade amount.

- However, there are a couple of activities that happened throughout the week. On the fourth day, the Uniswap activity was 10x.

- It also increased by a couple of percent on the fifth day too before declining by about 80%.

5.  ### Bonk on ETH (BONK)

[Bonk](https://explorer.bitquery.io/ethereum/token/0x4FbAF51B95b024D0d7cab575Be2a1F0afEDC9B64) on ETH is another newly launched token on the Ethereum blockchain. It started trading on the Uniswap DEX on May 1, 2024.

#### Token Holder Distribution

Based on the data retrieved using Bitquery APIs,

- BONK has a total supply of 100 trillion and unique token holders of 2,248.

- Additionally, there are over 19,000 transactions on Uniswap, with 2,466 unique token senders and 3,750 token receivers.

- Based on the chart below, we can see that 15 wallets control about 20% of the total supply of BONKs.

- Moreover, the highest category of BONK holders are between the 1 to 10 billion bonks category.

Here is a chart to visualize the unique holder distributions of the token.

![](/blog/token-success-evaluation-holder-patterns-price-changes/BONK/Token%20Holders%20Distribution.PNG)

#### Trading Activity After Deployment

Let’s go through the price action, trading volume, and amount traded chart to gain insight into how the Bonk token is faring after the token deployment.

![](https://lh7-us.googleusercontent.com/dj5HYwmHeiSE9JvFX390AUEoCxnrlcsGqc-De0opNA7WEEIExSQ3LTyMypVwKhYX4f-urTm6AC4HQpu3I-EDacHA1i14LdxklpfPzoKDlGlzwPaPhN6qhhd3TPQRvT-OePglKGGJ_yyAiyiOX3v5ptE)

![](https://lh7-us.googleusercontent.com/FWPkVTo-wHlybddRMlhDDTEwOfeHDOZ6HMR_4iJ2Qrot1agrtixFKSIY6Es8A8Aj5TDWI468Oo1sf9BkmC7eRa_6Kgsqc1PXjG5QstmzPUMyhdXDUmlIf_ocUepj4RwtqVOguhyDDzjRhOHnXJ2BEn8)

Looking at the price chart above, the token seems to be fairly stable than what’s normally expected from Memecoins. Apart from a few movements, the price seems stable over the first 60 minutes.

- The minimum average quoted price over the period was 0.0000000000044 BONK/WETH and the maximum price quoted was 0.0000000000058 BONK/WETH over the same period, a 24% price change.

- Moreover, an average of 18 trades were conducted on the Uniswap DEX every minute for 60 minutes.

![](https://lh7-us.googleusercontent.com/QWT0blonxgTxrcAfAwg315AKCJkhbA4wdxKaDno9KNJrQNifclzT2O0MLf3WSEWO_mmbQPs9PZ_5k6A8mpiKHKH12T44E-BzVPqHCO7bVJeZ5EV4bK6VZ3-sOQ5JJSdUAStQcAsRFhJi_GViwJ-Xpi8)

![](https://lh7-us.googleusercontent.com/FeRGJseM0v80T2gQ-HTDEDI1XN4n_G4ap3NnDdpjovf0aip6_Pm0dzaGw3ZJxT31EsNYma5GojAnCN4h6l_q8suYliFppWWMLdYcUQMb29AgAcP1FRKzC8WgiPkSRNUyNbkq-PDix7XSjETeOW_KWqs)

Apart from the significant price change on the 16th and the 18th-hour bar, the token price is congruent with what we saw on the first 60-minute chart.

- Moreover, the token saw a high transaction count in the first few hours before trending down over the next 24 hours.

- An average of 363 trades were conducted hourly over the 24 hours with the maximum and minimum trade counts being 1,309 and 89 respectively.

#### Trading Activity Over Time

![](https://lh7-us.googleusercontent.com/FcOKC-rnP6YHQ0wTL7M0C6BprpAXboKXx70RmIYV_c0rxWNdfu2Ve5OolKrxfD5JRvHT9fpuLgWdScxAsZlMpHIDp38DzBRGjtBqm8IMb4P4paUiY6S6dOJo2r3YuyPw7kf-Vf7mSOcXf5rUBwL5j_w)

![](https://lh7-us.googleusercontent.com/m1EnSltL7hvTLeP_b7QK1g3EycCtzvHrqBNeywKr49Uiua2sLYKmrmBJ2P-3UA-zE4IilTscGorDjqKPV65yBRxms1DuWwPZXBICNjmn9i7uac3XtjImBEnF7v_7ME3Uqjy8Qjsxcg_CLb68mcSMwS0)

Unlike the previous charts, the daily chart gives us a deep insight into how the token fared over the first seven days.

- Based on the price chart, the token started the trading week at a quoted price of 0.0000000000045BONK/WETH and ended the week on a high note at 0.0000000000082 BONK/WETH, an 86% increase.

* Looking at the transaction count, about \$5 million was traded in 5000 transactions on the first day of deployment.

* Over the next couple of days, the trade volume saw a steady decline both in transaction volume and traded amount.

* After the fourth day, there was a turn around and the transaction volume and traded amount saw an uptrend on the next couple of trades.

Though a meme token, BONK seems to have a potential for profit making over the next couple of weeks as the token seems to be gaining popularity among on-chain traders based on the chart above.

## Six Key Metrics for Token Analysis

It’s one thing to know how to retrieve data from the blockchain; it’s another thing to understand how to interpret the data and draw meaningful insights from it. Here are key metrics every on-chain analysts, investors, and traders use to analyze and draw meaningful insight from blockchain data.

1.  ### Total New Wallets for Each Token

This metric refers to the count of unique addresses/accounts created to hold the token within a specified time frame. This is a cumulative count of newly created wallets associated with the token over some time. Each wallet represents an entity/user account within the blockchain network that holds the particular token.

The total new wallets for each token metric provide insight into the adoption and popularity of a particular token among investors, traders, and on-chain users. The metric gives insight into the token's or project's adoption level and interest. It also reflects the growth of the user base and increasing activities in the ecosystem.

With this, you can assess market trends, investors' sentiments, and potential for network expansion, which would contribute to understanding the token's performance and relevance in the crypto market.

2.  ### Token Price

Price reflects market demand, investors' sentiment, and the perceived value of the token. When assessing a new token, price indicates the initial market acceptance or resistance and the token’s potential for growth.

Patterns and trends affect market analysis. A rising token price indicates market reception and token growth potential. It suggests strong demand and investor confidence, potentially attracting more attention.

For example, price trending down could signal investors are losing interest in the token's utility and security/market viability. When you compare the token price to the listing price, you gain insight into the performance of the token sales/ICO/IDOs.

Note: Price shouldn’t be analyzed as a standalone metric, i.e., it should complement other metrics like trading volume, market capitalization, tokenomics, and other fundamentals.

3.  ### Market Capitalization

Market Capitalization (MC) is the total value of all circulating tokens for a given crypto token. It provides a numerical snapshot of its standing in a broader market and also reflects the token's value. MC is determined by multiplying the circulating supply of the token by the current price of the token in USD.

i.e.

MC = Circulating supply x Token Price (USD)

MC lets you assess the token’s risk profile and indicate the crypto’s liquidity — the ease at which the token can be traded for other crypto assets or fiat currency.

This metric helps to measure and gauge a crypto token's dominance and popularity. And it reflects the popularity of a token over the long term. It reflects the importance of the token in terms of the investors’ optimism and pessimism.

A token with a high market cap is usually seen as a more solid/trustworthy token that provides confidence for investors and shareholders. While a low market cap token faces skepticism about growth that impedes adoption and investors’ trust.

Moreover, high market cap tokens are more stable and less volatile because they often have more liquidity (more buyers and sellers), reducing price fluctuation and market manipulation. They also indicate that the token has a strong community, a solid development team, and widespread adoption. So, they are perceived as legitimate and trustworthy.

MC provides valuable insight into token size, stability, and potential impact on the market. To get the best of MC, it should be cross-analyzed with the other metrics.

4.  ### Fully Diluted Valuation (FDV)

FDV is used to calculate the total theoretical value of a crypto token if the total token supplied is in circulation at the current price. With the FDV, investors understand the overall/maximum market capitalization a token could achieve if all are in circulation. It helps investors understand the total dilution of the value when maximum supply is reached. This metric is relevant for tokens with ongoing release and inflation mechanisms.

When the FDV is compared with the market cap, investors can assess the potential for future growth or dilution of a token. A higher FDV to market capitalization indicates growth potential. So, most investors see the token as undervalued. A low FDV to market capitalization indicates limited growth potential or the token is overvalued, which raises concerns about the potential dilution.

Overall, this metric affects investors' sentiments by providing a clear overview of the token potential value. It also helps to analyze if the project launch or presale is under or overvalued to determine investment strategy.

5.  ### Total Token Transfers

The total token transfer metric is the total volume/quantity of tokens transferred by different addresses/wallets in a certain period. It measures the activity level and movement of the particular token in the ecosystem. It’s used to analyze the distribution of transfers across different wallet addresses. For example, large transfers between wallets held by exchanges, whales, or major stakeholders can signal significant market movements of investors’ activities.

A high token transfer indicates increased trading/usage activities and a low transfer metric indicates reduced activity around the token. High volume and frequent transfer indicate active trading/usage of the token.

Moreover, it can also indicate usage or the purpose of use. High transfer can indicate speculative trading or holdings. Comparing the token with similar tokens in the ecosystem can provide contexts and help identify trends and outliers. You would also gain an understanding of the market dynamics around the token.

6.  ### Total Token Holders Metrics

This metric is the number of unique addresses/entities holding a particular token. It’s used for gauging the level of decentralization and token distribution among investors. A high token holder indicates broader ownership and resistance to market manipulation. It also suggests a broad support community.

Monitoring changes in the total number of token holders over time gives you insight into whether the project supports the ethos of web3, which is decentralization. A decentralized distribution across significant holder counts indicates a healthier ecosystem and stability.

A high number of holders suggest growing adoption of the token and resistance to market manipulation. A lower count of token holders can indicate a red flag, which could suggest a waning interest and a shift in investors’ sentiments.

Then, what’s the significance of a growing token holder base?

Token holders metric gives insight into decentralization level, market stability, and high community engagement. A robust holder base will correlate with a vibrant and engaged community.

A growing token holder also indicates perceived value, which signals increasing interest and confidence in the project, and this influences attractiveness to investors and users alike.

## What’s Next?

With this analysis, we show a real-world demonstration of how to conduct an on-chain analysis on any token. The on-chain analysis gives you insight into tokens you don’t even know have a community behind them.

For example, looking back at our token holder analysis, we discovered that Elon(ELON) and Dogecoin20 (DOGE20), even though they are meme coins, are well distributed among the holders, which helps prevent manipulations. Also, price-wise, the tokens seem to be stable with little volatility.

As a crypto investor, trader, or analyst, it’s also important to know that the blockchain industry is a dynamic niche, so it requires continuous assessment and analysis of tokens to stay atop of information. With this, you can continue to make informed decisions based on the current situation of things in the industry.



----

*The information provided in this material is published solely for educational and informational purposes. It does not constitute a legal, financial audit, accounting, or investment advice. The article's content is based on the author's own research and, understanding and reasoning. The mention of specific companies, tokens, currencies, groups, or individuals does not imply any endorsement, affiliation, or association with them and is not intended to accuse any person of any crime, violation, or misdemeanor. The reader is strongly advised to conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery shall not be liable for any losses or damages arising from the use of this material.*


--

Written by Emmanuel M]]></description>
        </item>
        <item>
            <title><![CDATA[The Rise and Fall: A Deep Dive into the Phenomenon of Crypto Rug Pulls​]]></title>
            <link>https://bitquery.io/blog/crypto-rug-pulls-rise-fall-deep-dive</link>
            <guid>https://bitquery.io/blog/crypto-rug-pulls-rise-fall-deep-dive</guid>
            <pubDate>Mon, 06 May 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
In the world of cryptocurrencies, where the thrill of astronomical gains can sometimes cloud the judgment of the most prudent investors, there exists a nefarious scam known as the "rug pull."

This term describes a scenario where developers abruptly withdraw their support from a project, taking with them investors' funds, leaving nothing but a shell of broken dreams and worthless tokens.

Let's dissect the anatomy of rug pulls, understand their impact, identify the warning signs, and explore their various forms. Buckle up, for this is a tale of caution, curiosity, and crypto conundrums!

## The Great Disappearing Act: Definition and Explanation

A rug pull in the cryptocurrency universe occurs when the creators of a crypto project suddenly "pull the rug out" from under investors, either by draining the liquidity pool (the reservoir of funds that facilitates trading on decentralized exchanges) or by selling off a massive stash of the project's tokens, resulting in the token's value plummeting to zero. This act is not just a breach of trust; it's a meticulously planned betrayal that can leave investors in financial ruin.

## The Fallout: Impact on Cryptocurrency Investors

The [impact of rug pulls](https://bitquery.io/blog/nea-openai-rugpull-investigation) extends beyond the immediate financial loss. They erode trust in the flourishing crypto ecosystem, deter new investments, and fuel regulatory scrutiny. For the individual investor, the consequences can be devastating, ranging from significant financial losses to a complete erosion of faith in decentralized finance (DeFi). On a larger scale, these scams can trigger market-wide panic, leading to increased volatility and a tarnishing of the cryptocurrency market's reputation.

## How Do We Identify a Rug Pull?

Identifying a rug pull before it happens is akin to finding a needle in a haystack, yet not impossible. Here are a few red flags:

- Anonymous Developers: If the project's creators are shrouded in mystery, proceed with caution.

- Lack of Code Transparency: Projects that do not have their code audited or made publicly available for scrutiny are more susceptible.

- Unrealistic Promises: Sky-high returns promised in a short period can be a telltale sign of a scam.

- Sudden Spike in Token Value: A rapid increase in the token's price without any substantial project development might indicate manipulation.

- Hidden Clause: If withdrawing your investment is subject to conditions, it's time to reconsider your investment.

## Different Types of Rug Pulls

Rug pulls can manifest in various forms, each with its unique method of execution:

- Liquidity Stealing: The most common form, where developers drain the liquidity pool, leaving the token worthless.

- Dumping: Developers or early investors sell off a massive amount of tokens all at once, drastically dropping the token price.

- Scam Tokens: Creating a token that mimics a legitimate one, tricking investors into buying worthless copies.

- Hard Fork Scams: Announcing a hard fork (a significant change to the network's protocol) to create hype and boost token prices, only for the developers to sell off their holdings and vanish.

### Rug Pulls and Short Lifetime Tokens

Last year, rug pulls and related scams [totaled up to \$760 million](https://quantstamp.com/). During a year(2023) marked by the theft of \$1.7 billion in cryptocurrency by malicious individuals, rug pulls constituted a substantial portion of the incurred losses.

A particularly insidious form involves tokens that live for less than a day, often referred to as 1-day rug pulls. These flash-in-the-pan tokens are minted, hyped, and then disappear within 24 hours, leaving little more than a digital ghost town.

You can track them by checking the [change in prices over a short period of time.](https://ide.bitquery.io/find-tokens-with-max-change)

###

The Mechanism Behind the Mirage

The lifecycle of a 1-day rug pull can be broken down into a few key stages:

- Creation and Hype: A new token is created and listed on decentralized exchanges like PancakeSwap or Uniswap. The creators then generate buzz through social media, often using fake endorsements or manipulated trading data.

- Investment Influx: Drawn by the hype, investors start buying the token, driving up its price.

- The Pull: At the peak of the frenzy, the creators sell off their holdings, often removing the liquidity pool entirely, causing the token's value to plummet to zero.

- The Ghost Town: The token is abandoned, and investors are left with worthless digital assets.

Let’s see this example of SQUID token: A token that went from a couple of cents to over \$3100 in a week, before falling to zero in a matter of seconds.

![](/blog/crypto-rug-pulls-rise-fall-deep-dive/tradingview_squid.png)

Creation and Hype: A cryptocurrency inspired by the popular South Korean Netflix series Squid Game on November 1, 2021, became the most hyped digital token when its valuation shot up to $2,861 per coin. It is possibly one of the fastest, if not the fastest, rug pull in crypto history. In a matter of a week, scammers escaped with around $3 million. Using the popular Netflix show, a poorly made website with a bunch of errors, typos, and a whitepaper that was also filled with errors, typos and mistakes, going on BSC - Binance Smart Chain - scammers succeeded in giving people hope that they are earning a lot of money, before taking all of it with them. They were listed on Pancakes Wap and had some small, poor liquidity on 26th October. Over the weekend the price went up to $38. In six days it kept going up, hitting ATH of $3100 and then it just went down in a matter of seconds.

The Pull: The whitepaper noted that they implemented an anti-dump mechanism like in BTC, and that users have to collect some "Marbles" in order to sell SQUID, without explaining what Marble is, and how you get it. However, the token appreciated so much (over 100,000%) that at its peak, the combined entry fees were near \$500K. People didn't care much given the hype and continued to invest.

The idea was that people would be able to earn SQUID by playing the game, they needed some SQUID to register before the tournament started. When the coin’s price was sky high, the developers ran off with ~$3.3 million from the project. One of the addresses swapped $3.38 million of SQUID to BNB before sending the funds through crypto mixer Tornado Cash.

The Ghost Town: From that moment, the token collapsed to almost 0 after the smart contract administrator sold all the tokens and disappeared. The scammers were tracked but never caught. The website went down, and a telegram channel where stated that "someone is trying to hack them, and their smart contract, Twitter account as well" and it was clear that investors were rug pulled.

The exact message put up on their Telegram channel:

“Squid Game Dev does not want to continue running the project as we are depressed from the scammers and is (sic) overwhelmed with stress. We have to remove all the restrictions and the transaction rules of Squid Game. Squid Game will enter a new stage of community autonomy.

Sorry again for any inconvenience been made for you. If any strange starts coming out of it, ignore it. Thanks!”

### Notorious Examples of 1-Day Rug Pulls

While many such incidents have plagued the crypto world, a few stand out for their audacity and the scale of their impact.

- URF meme coin: Investments in the URF meme coin worth about \$450,000 disappeared, as did the project team after the presale of the coin. The developers performed a rug pull less than 24 hours after the launch of the URF meme cryptocurrency. The last activity of the project on social networks was recorded on March 26. In addition to the funds raised from the sale, the team also used the funds to trade other meme tokens on the Solana platform.![](/blog/crypto-rug-pulls-rise-fall-deep-dive/tweet.png)

* AnubisDAO: This dog coin project raised \$60 million in ETH (13,597 ETH) from investors in return for native ANKH tokens. Not even 24 hours into the project, funding and [the funds in the investment pool were sent to a different address](https://ide.bitquery.io/AnubisDAO-Liquidity-Rug-3-Heist-Transactions) and were never recovered. With no liquidity left for trading the coin, the rug pull crashed the price of the ANKH token to zero.

Outbound transactions through Tornado Cash:

![](/blog/crypto-rug-pulls-rise-fall-deep-dive/outbound.png)

- AEVO token: $AEVO a fake token for the [DEX](https://twitter.com/aevoxyz) was created on BNBChain. The $AEVO deployer dumped tons of $AEVO on #BNBChain for $612K. Its price dropped 98% on March 8th, 2024.

  ![](/blog/crypto-rug-pulls-rise-fall-deep-dive/poocoin_aevo.png)

On March 7, there appears to be no significant amount of AEVO transferred as indicated by the absence of a bar in the graph. However, on March 8, there was a massive spike in the transfer amount, showing approximately 55 million AEVO tokens transferred.

[![](/blog/crypto-rug-pulls-rise-fall-deep-dive/transfers.png)](https://explorer.bitquery.io/bsc/token/0xf9d7f2211a26b09c921f4716eeb327e976defc5c/transfers_v2)

*Low Transfer Count with High Transfer Amount* : If on a certain day, the number of transactions (transfer count) is significantly low, but the amount transferred is extremely high, it suggests that a small number of transactions involved very large amounts of tokens

On March 7, there was a moderate number of transfers, but virtually no AEVO tokens are reported as transferred.

On March 8, the transfer count drops to zero (no transactions recorded), yet there is a massive spike in the token amount transferred.

## DEXs and Rug Pull

Decentralized exchanges like PancakeSwap and Uniswap have become hotspots for these types of scams due to their open and permissionless listing policies, especially with 1-day tokens. An alarming number of these tokens list on these platforms, exploit the automated market maker (AMM) mechanism, and vanish. Monitoring the proportion of these tokens can offer insights into the prevalence of rug pulls in the ecosystem.

### Case Studies of Extreme Rug Pull Scenarios

For a deeper dive, let's examine two notorious cases: OneCoin and Thodex. Both involved elaborate schemes that promised revolutionary platforms but ended in billions of dollars in losses for investors. These cases serve as stark reminders of the potential dangers lurking in the crypto shadows.

As we saw before, SQUID game was one of the worst rug-pulls in crypto. Capitalizing on the popularity of the eponymous Netflix series, the Squid Game token raised \$3.3 million from investors. The developers then drained SQUID's liquidity pools and ran off with users' funds.

There’s another interesting story from the year 2017. Founded in 2017, Thodex was a Turkish crypto exchange that went missing in April 2021 with investors' funds worth over $2 billion. The exchange orchestrated a [massive rug pull by halting all trading and withdrawals](https://ide.bitquery.io/BSC-Liquidity-Pool-Inspection-for-Rug-Pull), then fleeing with $2 billion in investors' funds. The aftermath was catastrophic, with thousands of investors left in financial ruin.

## Safeguarding Against Rug Pulls

Protecting yourself from rug pulls requires vigilance, research, and a healthy dose of skepticism. Always investigate the project's team, whitepaper, and community feedback. And remember, if something seems too good to be true in the crypto world, it probably is.

As we navigate the high seas of cryptocurrency investment, let us arm ourselves with knowledge and caution. Rug pulls, though daunting, serve as valuable lessons in the importance of due diligence and the relentless pursuit of transparency in this digital age. Stay informed, stay skeptical, and may your crypto journey be prosperous and secure.

### Protecting Yourself from 1-Day Rug Pulls

The best defense against 1-day rug pulls is vigilance and education. Here are a few tips:

- Research Thoroughly: Look into the token's creators, the project's feasibility, and its community engagement.

- Beware of Unrealistic Promises: If it sounds too good to be true, it probably is.

- Monitor the Liquidity: Be wary of tokens with low liquidity or if the liquidity is not locked.

- Use Trusted Platforms: While not foolproof, using well-regarded exchanges can offer some level of protection.

## The Takeaway: A Cryptocurrency Cautionary Tale

Rug pulls serve as a stark reminder of the risks inherent in the cryptocurrency market. While the allure of quick gains can be tempting, it's crucial for investors to conduct thorough due diligence, remain skeptical of too-good-to-be-true promises, and diversify their investments to mitigate risks. Remember, in the digital gold rush of our era, not every shiny token holds value, and not every project is woven on a loom of integrity. Stay curious, cautious, and informed, and you may just navigate the treacherous waters of cryptocurrency with your investments intact.

In the grand tapestry of cryptocurrency investments, understanding the warp and weft of rug pulls is essential for every investor. By staying informed and vigilant, you can avoid falling victim to these digital disappearing acts and help weave a more secure and trustworthy crypto ecosystem.


----

*The information provided in this material is published solely for educational and informational purposes. It does not constitute a legal, financial audit, accounting, or investment advice. The article's content is based on the author's own research and, understanding and reasoning. The mention of specific companies, tokens, currencies, groups, or individuals does not imply any endorsement, affiliation, or association with them and is not intended to accuse any person of any crime, violation, or misdemeanor. The reader is strongly advised to conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery shall not be liable for any losses or damages arising from the use of this material.*


---

Written by Laisha
]]></description>
        </item>
        <item>
            <title><![CDATA[Bitcoin Stolen? Here's How You Might Get It Back!]]></title>
            <link>https://bitquery.io/blog/recover-stolen-bitcoin-guide</link>
            <guid>https://bitquery.io/blog/recover-stolen-bitcoin-guide</guid>
            <pubDate>Mon, 29 Apr 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Bitcoin theft involves stealing or tricking others into getting their Bitcoin unfairly. This can happen through hacking, tricking people into sending Bitcoin to fake addresses, or running schemes promising high returns but disappearing with investors' money. Moreover, its decentralized nature, combined with the pseudonymous nature of transactions, creates vulnerabilities to various forms of exploitation, including hacking, and phishing attacks leading to theft or scams.

In this blog, we'll delve into Bitcoin scams and thefts, exploring the actors, tactics, and notable cases. We'll also see some measures for staying safe and protecting your investments. We aim to empower you with the knowledge needed to navigate the cryptocurrency landscape securely and potentially recover stolen assets.

Let's dive in and learn how to safeguard your Bitcoin from thefts.

## Common Methods Used to Steal Bitcoin

- Private Keys Theft: Storing private keys in online cloud drives can lead to hacking and theft. When thieves obtain these keys, they gain access to Bitcoin holdings, causing the rightful owners to lose their funds.

- Copying the Keys: Bitcoin is a public ledger system that keeps track of an ever-expanding list of addresses and how many units of Bitcoin are at those addresses. If you own Bitcoin, what you own is the private cryptographic key to unlock a specific address. The private key looks like a long string of numbers and letters. You may choose to store your key in several places, including a paper printout, a metal coin, a hard drive, an online service, or a tattoo on your body. All methods can be protected with various levels of security, but all methods are vulnerable to theft since the robbery simply depends on gaining access to the string

- Wallet Vulnerability Exploitation: Hackers target Bitcoin wallets with security flaws, sometimes storing private keys for convenience. Exploiting these vulnerabilities allows hackers to steal both access and funds in one go.

- Phishing Scams: Thieves use phishing scams to steal Bitcoin. They lure users with promises of free tokens for rewards, appearing legitimate. Users are directed to fake websites where they're asked to connect their digital wallets. This lets thieves compromise wallet security or make unauthorized transactions. Read more on how you can avoid such incidents [here](https://bitquery.io/blog/identify-duplicate-tokens-scam-contracts).

- Ponzi Schemes: Fraudulent investment schemes promise high returns but use new investors' funds to pay returns to earlier investors, eventually collapsing and causing significant losses.

## Biggest Bitcoin Thefts and Scams in History

This section gives a detailed exploration of significant incidents within the cryptocurrency space where theft and fraudulent activities have occurred. Each subsequent point is a specific case, offering insights into the scale, impact, and aftermath of these high-profile events. Through these examples, readers gain a deeper understanding of the vulnerabilities present in cryptocurrency exchanges and dark web marketplaces, as well as the challenges associated with recovering stolen assets.

### Mt. Gox Bitcoin theft

Mt. Gox was the biggest crypto exchange globally, handling over 70% of Bitcoin transactions. However, it faced serious cybersecurity problems, making it vulnerable to attacks. [In 2011, a group of hackers used stolen information to move Bitcoin](https://en.wikipedia.org/wiki/Mt._Gox). That year, flaws in the website’s security led to the loss of thousands of Bitcoin sent to the wrong addresses. Hackers even manipulated the Bitcoin price to one cent, causing a rush of fake purchases.

The big hit came in February 2014 when hackers stole 740,000 Bitcoin from customers and 100,000 from Mt. Gox, totaling roughly $460 million at that time, but would be worth around $4.6 billion today. Mt. Gox shut down and filed for bankruptcy. However, after the hack, efforts were made to recover some of the stolen Bitcoin through liquidation proceedings. Approximately 200,000 bitcoins were recovered by liquidators, but a substantial amount remained unrecovered. The hack caused a drop in Bitcoin's value and highlighted the unique risks of cryptocurrencies.

### Silk Road Bitcoin Theft

In 2012, 50,000 bitcoins were stolen from the Silk Road, a dark web marketplace. Over time, the value of the stolen Bitcoin surged to over $3 billion. The thief remained elusive for almost a decade. Eventually, a critical mistake led the IRS-CI to crack the case. The investigation traced back to a 911 call made by Jimmy Zhong in March 2019, reporting the theft of hundreds of thousands of dollars in cryptocurrency from his home.

Despite initial police failure, a private investigator eventually linked Zhong to the theft. Zhong's extravagant lifestyle, fueled by his alleged early involvement in Bitcoin and significant wealth, drew suspicion. Subsequent investigations revealed Zhong's involvement in the theft and his substantial holdings of stolen bitcoin. Ultimately, Zhong was convicted of wire fraud and sentenced to federal prison. [The stolen bitcoin was seized by the U.S. government](https://bitquery.io/blog/bitcoin-seized-us-government), with no victims coming forward to claim the loot.

### Sheep Marketplace Bitcoin Theft

In 2013, Sheep Marketplace, a darknet market launched soon after Silk Road's closure, garnered attention. Yet, in December of the same year, it shut down due to a vendor exploiting a vulnerability. This resulted in the [theft of 5,400 bitcoins, valued at roughly $6 million.](https://en.wikipedia.org/wiki/Sheep_Marketplace)

Victims sought the thief by tracking tagged bitcoins, revealing a significant transaction of 96,000 bitcoins through Bitcoin Fog, a Bitcoin mixer. The perpetrator's last known wallet was linked to BTC-e, hinting at efforts to trade or conceal the stolen funds.

In 2016, Florida students Sean Mackert and Nathan Gibson were arrested for the theft. Their detection came through tracing Bitcoin transactions via Coinbase. They later confessed to Bitcoin wire fraud in 2018, facing a potential twenty-year prison sentence. Authorities have seized about $4 million worth of the stolen bitcoins.

### DEX Hack: The $50 Million Uranium Finance Exploit

One of the most significant decentralized exchange (DEX) hacks in recent times occurred on Uranium Finance, resulting in the loss of over $50 million worth of cryptocurrencies. In April 2021, Uranium Finance, a decentralized exchange running on the Binance Smart Chain (BSC), fell victim to a sophisticated exploit. The attackers exploited a vulnerability in the smart contract code, allowing them to drain funds from the exchange's liquidity pools and users' wallets. Despite efforts to trace the perpetrators, their identities remain undisclosed.

Tracing the hack with Bitquery [Coinpath®](https://bitquery.io/products/coinpath) , we see that one address has been reported to be involved with an exploit sending funds to a [tornado cash to use its’ anonymity.](https://bitquery.io/blog/track-money-tornado-cash-bitquery)

![](/blog/recover-stolen-bitcoin-guide/tracing.png)

The [Uranium Finance hack highlights](https://explorer.bitquery.io/ethereum/address/0xc47bdd0a852a88a019385ea3ff57cf8de79f019d) the evolving risks decentralized exchanges face. Utilizing tools like Bitquery Explorer gives stakeholders vital insights into blockchain data, aiding proactive risk management and response strategies against future exploits.

### Gummy Airdrop Event

In the event described in the [Reddit post](https://www.reddit.com/r/solana/comments/1cb6p68/was_i_scammed_with_gummy/?rdt=37987&onetap_auto=true&one_tap=true), an individual fell victim to a cryptocurrency theft involving a fake airdrop. The user received a message from what appeared to be an admin on Telegram, claiming to offer an airdrop of Gummy tokens. Without verifying the authenticity of the message, the user clicked on a link provided and subsequently had their wallet drained. This incident serves as a stark reminder of the prevalence of scams in this space and underscores the importance of exercising caution and due diligence at all times.

Users should be wary of unsolicited messages, especially those offering free tokens or rewards, and should refrain from clicking on suspicious links or sharing sensitive information such as wallet seed phrases. These experiences also present an opportunity for individuals to learn and strengthen their security practices in order to better protect themselves from future scams.

**What is an Airdrop?**

An airdrop in the cryptocurrency world is like getting free coins or tokens dropped into your digital wallet. It's when a project or company decides to give away their tokens to people for free, usually as a way to promote their project or reward their community.

**Essential precautions to take:**

- Verify Sources: Double-check the legitimacy of messages and links claiming to offer rewards or promotions.
- Exercise Caution: Avoid clicking on unsolicited links and sharing sensitive information.
- Research Projects: Thoroughly investigate new projects before participating or investing.
- Secure Your Wallet: Use reputable wallets with robust security features and enable two-factor authentication.
- Practice Wallet Hygiene: Consider using separate wallets for different purposes to mitigate risks.
- Stay Informed: Educate yourself about common scams and emerging threats in the crypto space.
- Seek Community Support: Reach out to trusted members of the crypto community for guidance and verification.

## Essential Security Standards to Safeguard Against Exchange Theft

## Key Recommendations

1) Maintain a balance between hot and cold storage to survive potential losses.

Cold storage: A method of storing cryptocurrency offline, typically on hardware devices or paper wallets, to enhance security by reducing exposure to online threats.

Hot storage: Refers to storing cryptocurrency funds in online wallets or servers that are connected to the internet, allowing for easier and faster access but also increasing vulnerability to hacking attacks.

2) Direct deposits to cold storage: Send incoming cryptocurrency deposits directly to secure offline storage.

3) Manual transfers from cold to hot storage: Move funds from offline to online wallets manually to reduce the risk of unauthorized transactions.

4) Prevent disguised theft: Implement measures to detect and stop attempts to disguise theft as legitimate customer withdrawals.

5) Delay for large withdrawals: Introduce a delay for withdrawals exceeding the hot wallet balance to enhance security.

6) Secure database backups: Store backups in inaccessible locations to prevent unauthorized access.

7) Provide signed account statements: Regularly furnish customers with digitally signed account statements for transparency.

## Signs that you may have fallen victim to a Bitcoin Theft

- Unsolicited Offers: Beware of unexpected messages promising high returns or free giveaways for Bitcoin.

- Pressure to Act Quickly: Watch out for people who create urgency, pressuring you to make decisions hastily.

- Requests for Private Information: Be cautious of anyone asking for your private keys or sensitive data.

- Fake Websites or Emails: Stay vigilant against fake websites or emails impersonating legitimate businesses.

- Unverified Transactions: Be wary if your Bitcoin transaction remains unverified or untrackable for an extended period.

- Lack of Transparency: Red flags include entities unwilling to provide verifiable information about their business.

- Phishing Attempts: Be cautious of phishing scams where scammers impersonate trusted entities to steal your information.

- Difficulty Withdrawing Funds: Obstacles or delays when withdrawing funds could indicate a scam.

- Absence of Regulation or Protection: Understand that cryptocurrency transactions lack the regulation and protection of traditional financial systems

## How Does Bitquery Help Track Stolen Bitcoin?

Bitquery specializes in [tracking stolen digital assets](https://bitquery.io/products/crypto-investigation-services), including Bitcoin. They employ skilled investigators and advanced blockchain analysis tools to trace stolen funds efficiently. Additionally, they help build reports that you can use as proof with cryptocurrency exchanges and law enforcement agencies to facilitate asset recovery. Clients only incur charges for successful tracing, ensuring cost-effectiveness. Overall, it offers a comprehensive solution for tracing stolen Bitcoin, maximizing the chances of successful retrieval.

### Systematic Approach

- Consultation: Understanding your unique situation

([Submit your case](https://share.hsforms.com/1JFHb2vpNSnGYa5y6F8S1gw3rc4g))

- Investigation: Deploying advanced tools for tracing assets

- Resolution: Working towards asset recovery and legal closure

## Ways to Report a Scam

Anyone who believes they have seen a cryptocurrency scam or was part of a scam should report it immediately. Here are [some organizations](https://www.investopedia.com/articles/forex/042315/beware-these-five-bitcoin-scams.asp) you can report to:

1.  Commodity Futures Trading Commission ([CFTC](http://cftc.gov/complaint))
2.  Federal Trade Commission ([FTC](http://reportfraud.ftc.gov))
3.  Internet Crime Complaint Center ([IC3](http://ic3.gov))
4.  U.S. Securities and Exchange Commission ([SEC](http://sec.gov/tcr))

The individual should also report right away to the cryptocurrency exchange that was used for the transaction, in addition to the organizations mentioned previously.

## Conclusion

To protect against Bitcoin theft and scams, it is essential to take necessary precautions, such as using a trustworthy network connection, turning on two-factor authentication (2FA), using a VPN to avoid a man-in-the-middle attack, and keeping your funds in a secure wallet. Additionally, it is crucial to remain vigilant and educate yourself on the latest threats, as cybercriminals are always on the lookout for ways to steal your digital assets.

---

The information provided in this material is published solely for educational and informational purposes. It does not constitute a legal, financial audit, accounting, or investment advice. The article's content is based on the author's own research and, understanding and reasoning. The mention of specific companies, tokens, currencies, groups, or individuals does not imply any endorsement, affiliation, or association with them and is not intended to accuse any person of any crime, violation, or misdemeanor. The reader is strongly advised to conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery shall not be liable for any losses or damages arising from the use of this material.

---

Written by Dheeraj M
]]></description>
        </item>
        <item>
            <title><![CDATA[The Mechanics of zkEVM: How It Works and Why It Matters]]></title>
            <link>https://bitquery.io/blog/zkevm-how-works-why-matters</link>
            <guid>https://bitquery.io/blog/zkevm-how-works-why-matters</guid>
            <pubDate>Wed, 24 Apr 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
There has been a lot of research and development on various Ethereum scaling solutions because of the [high network fees](https://ide.bitquery.io/Average-Gas-fee-past-month-ETH) and slow transaction speed. Enter Zero Knowledge Rollups (ZK Rollups) which is the best scaling solution right now because of its high transaction throughput and reduced gas costs.

Zk rollups batch multiple transactions in a single block, execute them, and generate a proof which is verified by the smart contract deployed on the mainnet. So the smart contract only needs to verify the generated proof and apply the updated state, without the need to re-execute all of the batched transactions, thus saving gas fees and time!

Although Zk rollups are very efficient, it's hard to build general-purpose apps on them because different Zk rollup apps can’t interact with each other in layer-2 (Composability). But why’s that a problem you ask? This is a serious issue because if you want to develop an app on Zk rollup, you need to write the smart contract in R1CS, not only the syntax is complicated but it also demands a strong knowledge of Zk proofs.

There are two approaches to solve this: creating special circuits for each Dapps or building a universal EVM circuit for smart contract execution. (circuit refers to a program in zero-knowledge proofs). The first approach needs every Ethereum Developer to have knowledge of Zk rollups but it lacks composability. So, it's obvious that we are not going to use the first approach and that’s where ZkEVM comes into the picture.

## What is ZkEVM?

ZkEVM stands for Zero-knowledge Ethereum Virtual Machine. It executes the smart contract transactions in such a way that they are compatible with Zero Knowledge Proof Computations and the EVM. This helps the transactions to be executed in Zero Knowledge Rollups, which are a layer-2 scaling solution that reduces gas costs and increases transaction speed.

## Architecture of ZkEVM

Before understanding how ZkEVM works, let’s get a brief idea of how an EVM (Ethereum Virtual Machine) works.

After deploying your contract on ethereum, the contract bytecode is stored in EVM storage and executed in the peer-to-peer network with the same input data to reach consensus. The EVM opcodes present in the bytecode are responsible for changing the EVM’s state as they are capable of performing read, compute and write operations.

A ZkEVM’s architecture can be divided into 3 parts:

1.  Execution layer

It functions similar to EVM, i.e. it executes the smart contract and generates a new state.

2.  Proving Circuit

The proving circuit is responsible for producing zero-knowledge proof of the state changes, not only that but it also verifies if the previous computation led to the current state changes. This helps to verify and validate the updated state.

3.  Verifier Contract

In Ethereum every smart contract is executed in a peer-to-peer network to reach a consensus, similarly, here a validity proof is submitted to the verifier contract, to validate the state changes produced by the execution environment.

[Subscribe to Matic (Polygon) on-chain information in real-time](https://docs.bitquery.io/docs/examples/Matic/matic-dextrades/) including transactions, dex trades, NFT, and balance updates.

## Challenges in building a ZkEVM

That’s it, that's the architecture of ZkEVM, seems simple doesn’t it then why are gas fees still so high? Well that’s because it is not easy of build a ZkEVM it requires very good knowledge of cryptography and of course EVM too. So let’s understand what are the challenges while designing one.

1.  Special Opcodes

The EVM wasn’t designed keeping zero-knowledge computation in mind and therefore it has features that make proving a circuit very difficult. For example, opcodes like CALL, DELEGATECALL, REVERT, and INVALID are very difficult to design for proving circuits for such EVM operations.

2.  Storage Overhead

EVM uses Keccak hashing functions and Merkle Patricia Trie, both of which are not zk-friendly and have high computational costs when proving the validity of data. For example, Keccak hash is a thousand times larger than poseidon hash in circuit. ZkSync solves this problem by replacing the Keccak function, although this can break the compatibility with the existing Ethereum infrastructure.

3.  Stack-based Architecture

EVM has a stack-based architecture (LIFO - last in first out) which is simple but increases the difficulty of proving computation and that’s most of the ZkEVM’s use a register-based model where data is stored in virtual CPU registers which leads to high performance computing. This approach is language compatible instead of EVM compatible.

4.  Proving Costs

Even if we solve all of the above-mentioned problems, the process of generating a zero-knowledge proof is resource intensive and requires specialized hardware.

## Types of ZkEVM

Ethereum’s founder [Vitalik Butarin](https://vitalik.eth.limo/general/2022/08/04/zkevm.html) categorized EVM’s into these types:

1.  Fully Ethereum Equivalent (Consensus level equivalence)

These ZkEVM can be considered equivalent to Ethereum as they don’t make any changes at the consensus level to make the proof generation process easier and that’s why they require longer proving times compared to other types. Projects building these types of ZkEVM are Taiko

2.  EVM Equivalent (Bytecode level equivalence)

Type 2 EVMs are completely equivalent to EVM but not Ethereum because it introduce some modifications that are ZK-friendly like deleting some stack operations and different data structures compared to Ethereum. Although it is compatible with the existing Dapps, it is still slower than the succeeding types. Consensys ZkEVM and Linea are good examples of type 2 ZkEVMs.

3.  Almost EVM Equivalent

Type 3 ZkEVMs are those which are almost EVM equivalent meaning they sacrifice EVM compatibility to improve ZK efficiency. It removes precompiles, VM memory, Stack. This may require rewriting your smart contracts. Although this type exists today, the end goal is to switch to type 2, because it not only hurts developer experience but also users will have to interact with different versions of the same Dapp. Type 3 ZkEVMs include Polygon ZkEVM and Scroll, although this might change in near future.

4.  High-level language equivalent to EVM

These types of ZkEVMs compile the solidity code to their own designed language which is more ZK-friendly resulting in faster proof generation. Examples include ZkSync Era, Nethermind’s Warp.

## Advantages of ZkEVM over EVM

1.  Secure Scalability

All Ethereum computations must be executed on the validator nodes resulting in slow finality but with ZkEVM we don’t need to rely on other participants for verifying the transactions, the Zk-rollup does that for us while maintaining the same security.

2.  Reduced Costs

Since ZkEVM’s are capable of verifying transactions on their own, they don’t need to publish all transactional data onchain which results in reduced gas costs

3.  Faster Finality

Zk-Rollups can bundle multiple transactions and verify them as soon as they are posted resulting in faster finality

4.  Network Effects

Ethereum is the most widely used smart contract platform and has a lot of existing Dapps, EVM compatibility enables zkEVMs to leverage Ethereum’s existing developer ecosystem, extensive tooling, documentation, code libraries, and battle-tested infrastructure.


---
Blog written by Deepak Shah
]]></description>
        </item>
        <item>
            <title><![CDATA[You Won’t Believe Why Transactions Are Failing on Solana and Base!]]></title>
            <link>https://bitquery.io/blog/reasons-transactions-fail-solana-base</link>
            <guid>https://bitquery.io/blog/reasons-transactions-fail-solana-base</guid>
            <pubDate>Fri, 19 Apr 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
<head>

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />

<meta property="og:title" content="You Won’t Believe Why Transactions Are Failing on Solana and Base!" />

<meta property="og:description" content="In this blog we will investigate the reasons why Solana transactions fail, attempting to understand the high rate of transaction failures on this chain. Most transactions are not failing because of problems in blockchain; they’re failing because of the way users and developers are sending these transactions." />

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />

<meta property="twitter:title" content="You Won’t Believe Why Transactions Are Failing on Solana and Base!" />

<meta property="twitter:description" content="In this blog we will investigate the reasons why Solana transactions fail, attempting to understand the high rate of transaction failures on this chain. Most transactions are not failing because of problems in blockchain; they’re failing because of the way users and developers are sending these transactions." />
</head>

Solana’s failed transactions have recently been the subject of intense debate on Crypto Twitter ( X ). People are comparing Base and Solana regarding TPS (Transactions per second) and transaction success ratio (TSR).

Today, we will investigate the reasons why Solana transactions fail, attempting to understand the high rate of transaction failures on this chain.

**Note** — We have only taken 17th April (Partial) data for Solana and 15–17 April.

**TL;DR**

- Solana and base have almost the same transaction success rate, which is around 75–80%. This means every 1 transaction out of 5 is failing on these chains.
- Most of the failed transactions are related to DEXs on both chains.
- Solana is processing around **200k successful trades per hour**; however, on average per hour, there are **more than 300k failed trades**.
- Compared to Solana, Base blockchain is processing, [on average, 90k successful trades per hour and 5k failed trades per hour](https://ide.bitquery.io/BASE-transaction-failure-rate-and-trades-stats_1).

## Digging in Solana

Solana has around [75–80% Transaction success rate (TSR)](https://ide.bitquery.io/Solana-transaction-failure-rate), which means around 20–25% of transactions fail daily.

We first look at the [program and methods behind these failed transactions](https://ide.bitquery.io/Most-failed-instructions-on-Solana) to understand the reason for the failure.

![](/blog/reasons-transactions-fail-solana-base/instruction.png)

As you can see, there are many transactions for which we can’t recognize the method name. However, we can still find them by [understanding which programs have these methods](https://ide.bitquery.io/Most-failed-instructions-on-Solana-where-we-do-not-recognise-method-name).

![](/blog/reasons-transactions-fail-solana-base/program.png)

As you can see, the picture is getting more evident, and DEXs and arbitrage bot programs have the most failures.

![](/blog/reasons-transactions-fail-solana-base/charts.png)


### Analysing Swap Method

Now, let’s move on to the most obvious DEX failures by digging deeper into transactions where the method name is “swap.”

The following image shows the top failure reasons related to the “Swap” method.

![](/blog/reasons-transactions-fail-solana-base/tx_errorcount.png)

By digging into the [transactions with these errors](https://ide.bitquery.io/Transaction-example-of-top-error-message_1), we found the following primary reason for errors.

- **_Slippage error is caused when the token price changes between the time the transaction is submitted and_** _processed by the blockchain._ For example, a wallet like Phantom has a default [slippage setting of 0.3%](https://help.phantom.app/hc/en-us/articles/5985106844435-Why-did-my-swap-fail). Therefore, if the price of the swap differs by more than 0.3% from the presented price, the swap will fail to prevent you from losing value. Here is an [example of such a transaction](https://solscan.io/tx/3w4spKJyEnckEJfVBCnMyVjXwxHHzwWvt6T5RVfQZQvn6uHudYdWVCeJ2UqGbZWqhvdQHTWucu3bFy8egNm9JYQA) on Jupiter and [another on Raydium](https://solscan.io/tx/3w4spKJyEnckEJfVBCnMyVjXwxHHzwWvt6T5RVfQZQvn6uHudYdWVCeJ2UqGbZWqhvdQHTWucu3bFy8egNm9JYQA).

- **Transactions trying to trade before Pool creation is Finalized** are the second most common error when trading bots try to get into the first few trades of a new pool. They see the pool creation transaction and send their trades, but the pool is still not finalized. This throws an “_Amm account owner is not matched with this program_” error. Here is an [example of such a transaction](https://solscan.io/tx/5Ahc68xDc1h7girBCTt4BFRDBLUHLMRYGpjubCr4BFzen8rupjSjg2BxP6z26kS5gxq38ocnJ61pTe3UtXeXGwzr).

- **Out-of-Memory Error —** Many transactions fail because of this error. It’s more related to how developers pass data to other programs. Read more about it here; here is an example of such a transaction. However**,** most of these transactions are executed on DEXs.

In addition, if we look into the [transfer method errors](https://ide.bitquery.io/Solana-Error-message-in-most-of-Transfer), we see that most of them were caused by the above two reasons. There were also errors related to other DEXs, such as [the Invalid Tick error](https://solscan.io/tx/3GNBboXuCkkURQL3VciRS6hyNyrjtxYH3vQGY9eC2poY8KwWCUPpoeGSCXoyF8rdEJ1SaqUd5YKWiekfjRFbgPNs) for Orca.

We also check other processes, such as Rount, CreateAcount, or initializeAccount3. Most errors are caused by trading activity.

## What are the key takeaways from all this analysis?

It shows that **these errors are not the problem of Solana but, instead, the developers and applications built on it**.

However, this begs the question: if most transactions are trade-related, **how many trades is Solana processing?**

Solana is [processing around](https://ide.bitquery.io/Solana-transaction-failure-rate-and-trades-stats_1) **[200k successful trades per hour](https://ide.bitquery.io/Solana-transaction-failure-rate-and-trades-stats_1)**; however, on average per hour, there are **more than 300k failed trades**.

The base blockchain’s transaction success rate (TSR) is 77–80%. Note that I have checked only the 15–17 April data to understand the transaction failure stories of these chains.

Compared to Solana, Base blockchain is processing, [on average, 90k successful trades per hour and 5k failed trades per hour](https://ide.bitquery.io/BASE-transaction-failure-rate-and-trades-stats_1).

Similar to Solana, Looking deeper into [overall transaction failures on the Base blockchain](https://ide.bitquery.io/top-base-blockchain-failure_1), we found that most are related to DEX.

![](/blog/reasons-transactions-fail-solana-base/address_count.png)

As you can see, most transactions fail not because of problems in blockchain, but due to the way users and developers send these transactions.
]]></description>
        </item>
        <item>
            <title><![CDATA[How to Use Bitquery to Follow the Money in Tornado Cash]]></title>
            <link>https://bitquery.io/blog/track-money-tornado-cash-bitquery</link>
            <guid>https://bitquery.io/blog/track-money-tornado-cash-bitquery</guid>
            <pubDate>Thu, 18 Apr 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
We've previously discussed the [appeal of Tornado Cash](https://bitquery.io/blog/tornado-cash), despite US sanctions. For newcomers, let's explore how it works using Alice as an example:

- Alice wants to transact anonymously. She's tried different methods without success. She discovers Tornado Cash for more privacy.
- Alice decides to anonymize her funds with Tornado Cash. She picks an anonymity set - a pool of funds with choices like 0.1 ETH, 1 ETH, 10 ETH, or 100 ETH. Imagine she opts for 1 ETH.
- She deposits 1 ETH into the mixing pool. Tornado uses an incremental Merkle Tree to hide the transaction's origin. A note is created representing her share in the pool.
- To withdraw, Alice uses the note (a ZK proof) as a secret "handshake" with the pool, proving her participation anonymously.
- Alice can use relayers to submit the note for her, adding another layer of anonymity.
- Once she proves her participation with the "handshake," the Tornado smart contract sends the funds to a new address.

In this blog, we will go one step further and learn how to track money that was deposited or withdrawn from tornado cash wallets.

## Initial Deposit

To identify the initial deposit, you can start by looking for transactions where funds are sent to a Tornado Cash smart contract. This indicates the beginning of the mixing process. Additionally, you can check for distinctive deposit amounts that stand out. Even though Tornado Cash supports multiple denominations, specific amounts may repeat. For instance, if you notice multiple deposits in denominations of "10, 10, 10 and 1, 1, 1," the total deposit amount would be 33. For this blog, we retrieve all the [latest deposits made to the ETH 10 Tornado Cash address](https://ide.bitquery.io/TornadoCash-10-ETH-Deposits).

## Withdrawal Transactions

Monitor withdrawal transactions: Track transactions from Tornado Cash smart contracts to user addresses. Note the amounts and addresses involved.

Observe withdrawal patterns: Analyze withdrawal transactions for recurring patterns, such as specific amounts, withdrawal frequencies, or common destinations. If the amount is the same (or a little bit less due to relayer fees) it is possible these transactions are connected. If the deposit and withdrawal is around the same time and amounts match, these transactions could be connected.

So we will get all [withdraw calls made to ETH 10 and ETH 0.1 contracts](https://ide.bitquery.io/TornadoCash-ETH-Withdraw).

## Timestamp Analysis

Analyze transaction timestamps: Consider the timing of transactions. Clusters of deposits or withdrawals around the same time may indicate related activities.

After getting the [latest activity on Tornado Cash Wallets](https://ide.bitquery.io/TornadoCash-ETH-Withdraw), at the time of writing, we observe the following:

-  Daily Transaction Activity

Some days show higher transaction volumes, such as March 23 and March 27 with 8 transactions each, indicating potential clusters of activity.

Most days have fewer transactions, often just 1 or 2.

- Hourly Transaction Activity:

On March 23, there are multiple transactions throughout the day, particularly at 10:00 and 14:00, with 2 transactions each hour.

This kind of clustering at specific hours might be indicative of patterns or scheduled activities, especially on days with higher total volumes.

## Relayer Transactions

Examine transactions involving relayers: Sometimes relayers are used, if that is the case, look for patterns in the relayer's interactions with Tornado Cash.

## Check for Reused Addresses

Reusing addresses can compromise privacy or unintentionally reveal the user's identity. Analyze addresses that appear in multiple transactions to uncover possible connections. For instance, an address may participate in the transaction chain both before depositing into and after withdrawing from Tornado Cash.

Explore further details on reused addresses and their transaction histories [here](https://ide.bitquery.io/Tornado-Cash-frequent-wallets).

Example: Running the above query, we see that address 0x7d3bb46c78b0c4949639ce34896bfd875b97ad08 has been involved in numerous transactions, including airdrops, totaling 38,465 transactions.

## Network Analysis

It's important to conduct network analysis when tracking money that was deposited or withdrawn from Tornado Cash wallets. By exploring transaction flows and connections between addresses, we can identify commonalities or clustering of addresses engaging with Tornado Cash.

Instead of analyzing one particular wallet and its transaction, we should look at all the addresses that interacted with Tornado Cash on the same network around the same time (or within a span of 2 weeks) and try to look at commonalities between input and output transactions to Tornado Cash. This can help us understand the flow of funds and potentially identify patterns or connections between different addresses.

## Root Changes

Explore root history: Tornado Cash keeps a history of Merkle tree roots. Investigate changes in roots to understand the evolution of the Merkle tree.

Look for significant root changes: Identify transactions or events leading to substantial shifts in the Merkle tree roots.

1.  [Bitquery Explorer](https://explorer.bitquery.io/) allows you to view the transaction history of Tornado Cash smart contracts. Locate the relevant smart contract address associated with the Tornado Cash instance of interest.
2.  Look for events related to root changes: Tornado Cash emits events or logs when there are updates to the Merkle tree roots. These events are often named or labeled accordingly. Identify events that indicate changes in the Merkle tree structure.
3.  Cross-reference root changes with deposit and withdrawal transactions: Look for correlations between root changes and user activities, such as deposits or withdrawals. Understanding how user interactions coincide with root updates provides context to the changes.
4.  Correlate root changes with external events: Consider external factors or events in the blockchain ecosystem that might coincide with root updates. Changes in the broader Ethereum network could influence Tornado Cash dynamics.


--

## **About Bitquery**

[**Bitquery**](https://bitquery.io/?utm_source=blog&utm_medium=about_coinpath "https://bitquery.io/?source=blog&utm_medium=about_coinpath") is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

-   **APIs** - [Explore API](https://ide.bitquery.io/streaming "https://ide.bitquery.io/streaming"): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

-   **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=about "https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=about"): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

-   **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/cloud-products?utm_source=blog&utm_medium=about "https://bitquery.io/products/data-on-demand?utm_source=blog&utm_medium=about"): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

-   **Explorer** - [Try Explorer](http://explorer.bitquery.io/ "http://explorer.bitquery.io"): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info "https://t.me/Bloxy_info"). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.
]]></description>
        </item>
        <item>
            <title><![CDATA[The Essentials of the Ethereum DeFi Ecosystem]]></title>
            <link>https://bitquery.io/blog/understanding-ethereum-defi-ecosystem</link>
            <guid>https://bitquery.io/blog/understanding-ethereum-defi-ecosystem</guid>
            <pubDate>Thu, 18 Apr 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
On the internet, you will find so many articles talking about how the Ethereum DeFi ecosystem is growing day by day with tens of billions of dollars in total value locked (TVL) and more projects launched in the ecosystem,

By leveraging the freely available data of [Ethereum blockchain](https://bitquery.io/blockchains/ethereum-blockchain-api), you can gain a bird's-eye view of DeFi activity. Every trade, every interaction with a lending protocol, every shift in liquidity pool composition – it's all meticulously recorded.

Crypto markets move fast, and price fluctuations can emerge between DEXes. By querying the latest trade data for a specific token pair, you can identify these arbitrage opportunities. Imagine buying WBTC on a DEX where it's cheaper and selling it on another for a quick profit!

In this blog, we'll explore the various facets of the Ethereum DeFi ecosystem, analyzing data to understand its impact on the market's overall health. Join us as we dissect how each component plays a critical role in shaping the future of finance.

## 1.  Decentralized Exchanges (DEXes):

Uniswap, Sushiswap, PancakeSwap; are popular DEXes built on Ethereum. They use automated market maker (AMM) protocols, where liquidity pools are created by users who deposit their crypto holdings. Users can then swap tokens directly from these pools.

Let’s explore some of the [top DEXes running on the Ethereum](https://ide.bitquery.io/Top-DEXes-on-Ethereum) network in detail:

- [Uniswap v3](https://explorer.bitquery.io/ethereum/dex_protocol/uniswap_v3): Uniswap revolutionized DEXes with its automated market-making (AMM) model. Liquidity providers earn fees by staking their tokens in liquidity pools. Uniswap v3 introduced concentrated liquidity, allowing more efficient capital utilization2.
- [SushiSwap](https://explorer.bitquery.io/ethereum/token/0x6B3595068778DD592e39A122f4f5a5cF09C90fE2): Forked from Uniswap, SushiSwap adds community governance and additional features. It’s like Uniswap with a twist of sushi flavor.
- dYdX: dYdX is not just a DEX—it’s a decentralized derivatives platform. Trade perpetual swaps, futures, and options directly from your wallet. Balancer: Balancer is a liquidity pool manager. It allows users to create and manage token pools with varying weights. Think of it as a self-adjusting index fund.
- [Curve](https://explorer.bitquery.io/ethereum/dex_protocol/curve_v1): Curve specializes in stablecoin swaps. It’s perfect for low-slippage exchanges between stablecoins like DAI, USDC, and USDT.
- [PancakeSwap (BSC):](https://explorer.bitquery.io/ethereum/dex_protocol/pancake_swap_v3) While not on Ethereum, PancakeSwap operates on the Binance Smart Chain (BSC). It’s a popular alternative for lower gas fees.

At the time of writing this article, we see that the original Uniswap exchange has a significantly higher volume of trades and trade amounts compared to other platforms for the current year, indicating its dominant position in the Ethereum DEX ecosystem. With over 23 million trades, it far surpasses others in terms of activity and liquidity.

![](/blog/understanding-ethereum-defi-ecosystem/charts.png)

## 2. Lending and Borrowing Platforms:

ETH lending involves making your Ethereum available for others to borrow. If you hold ETH, you can lend it out and earn a yield. The interest you receive from lending ETH can even compound, enhancing your returns. Borrowers pay interest on these ETH loans, which contributes to the yield you earn.

These lending platforms cut out the middleman (banks) and allow users to lend or borrow crypto from each other. Compound, Aave , MakerDAO: These are leading Ethereum-based lending platforms. Users can earn interest by lending their crypto assets or borrow funds for various purposes by putting up collateral. Interest rates are determined by supply and demand within the platform.

How Does Ethereum Lending Work?

- Peer-to-Peer System: Ethereum loans operate on a peer-to-peer basis. Lenders provide funds, and borrowers pay interest. Simple, right?

- Centralized vs. Decentralized: You have two options:Centralized Lending Platforms: These platforms, like Nexo (not available in the US), offer a straightforward way to lend ETH. They guarantee a base Annual Percentage Yield (APY) and often provide additional features.

- DeFi (Decentralized Finance) Protocols: Platforms like Aave or Compound fall into this category. They connect borrowers and lenders directly, allowing the market to determine real-time APYs. DeFi protocols are transparent, open, and trustless.

- Fixed Lending Interest Rates: Many lending platforms set fixed interest rates to simplify the process. The interest earned is your APY, accounting for compounding.

- Over-Collateralization: Unlike traditional loans, crypto loans are almost always over-collateralized. Borrowers must provide collateral exceeding the borrowed amount. This ensures security without credit checks.

Using [Bitquery Aave APIs,](https://bitquery.io/blog/aave-data) we see that for the lending platform Aave ( Aave v3), the "Supply" event has the highest count at the time of writing, indicating that users are actively depositing or providing assets to the platform.

![](/blog/understanding-ethereum-defi-ecosystem/charts_1.png)

ETH lending platforms allow users to lend their Ethereum (ETH) to borrowers, earning interest in return. These platforms can be centralized (CeFi) or decentralized (DeFi), and they often involve over-collateralization and real-time Annual Percentage Yields (APYs). Some key Aspects of ETH Lending Platforms are:

- Fixed Interest Rates: Many platforms set fixed lending interest rates to simplify the process.
- Annual Percentage Yield (APY): When you see “ETH lending rates,” think APY. It accounts for compounding.
- Over-Collateralization: Unlike traditional loans, crypto loans are over-collateralized. Borrowers provide collateral exceeding the borrowed amount.
- Decentralized (DeFi): Protocols connect borrowers and lenders, allowing the market to determine APYs dynamically.

## 3. Derivatives:

Ever heard of options trading or futures contracts? DeFi derivatives offer similar functionality for crypto assets. These protocols allow users to speculate on price movements of cryptocurrencies, forex, or even traditional assets like stocks or commodities, without directly owning the underlying asset. This can be risky but also offers opportunities for advanced users.

For [BTC options contracts](https://www.delta.exchange/app/options_chain/trade/BTC/P-BTC-61000-180424), the index is calculated by combining BTC/USDT prices from Binance, OKEx, and Bybit.

![](/blog/understanding-ethereum-defi-ecosystem/wbtc-usdt.png)

Now, You can also analyze the [realtime trading data](https://explorer.bitquery.io/bsc/token/0x55d398326f99059fF775485246999027B3197955/token_dex_trades_v2?theme=light) to identify trading patterns, liquidity changes, and arbitrage opportunities. When analyzing derivative trading data, you can pay attention to recurring patterns such as Price Trends and Volume Spikes. Observe whether certain tokens consistently exhibit high demand or selling movement. You can look for sudden increases in trading volume, which may indicate significant market activity. Similarly, compare prices for the same asset across multiple DEXs. If there’s a significant gap, consider arbitrage.

## 4. Stablecoins:

Stablecoins are Ethereum tokens designed to maintain a fixed value, even when the price of ETH fluctuates. Unlike volatile cryptocurrencies, stablecoins offer stability akin to traditional fiat currencies.

Traditional finance relies on currencies with stable values. DeFi uses stablecoins to achieve a similar level of stability.These cryptocurrencies are pegged to external assets like the US dollar or gold. This means their price fluctuates less compared to other cryptocurrencies.

Popular examples include [DAI (pegged to USD](https://explorer.bitquery.io/ethereum/token/0x6b175474e89094c44da98b954eedeac495271d0f)) and [USDC (also pegged to USD)](https://explorer.bitquery.io/ethereum/token/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48). Stablecoins are widely used as collateral for borrowing and lending activities within DeFi. Some of the types of stable coin are:

- DAI: Think of DAI as the community-driven stablecoin. It's not controlled by any one company, but relies on a system of crypto collateral and smart contracts to stay pegged to the US dollar. This makes it popular in the world of decentralized applications (dApps) built on Ethereum.
- USDC: USDC is the reliable friend of the stablecoin world. Each USDC is backed by a real US dollar held in reserve by a trusted company, so its value is always rock-solid at $1. This makes it a favorite for beginners who want a stable way to store value in the crypto space.
- Tether: Tether is the heavyweight champ of stablecoins – it's the biggest one by market cap. It also claims to be pegged to the US dollar with reserves, but the details haven't always been clear. Despite some mystery, Tether remains widely used due to its high liquidity.
- Frax: Frax uses a fancy algorithm and some real-world money to try and maintain its $1 peg. This approach is still being tested, so Frax comes with a bit more risk than the others. However, it offers exciting possibilities for the future of stablecoins.

Let's look into : [Selling USDC in exchange for other crypto currency](https://ide.bitquery.io/buy-USD-coin-query) using Bitquery. These queries can be used to find the total supply of popular stablecoins like [DAI](https://ide.bitquery.io/DAI-total-supply_1) and [USDC](https://ide.bitquery.io/buy-USD-coin-query) and its trading volume on DEXs, which can indirectly shed light on the ease of acquiring USDC using other cryptocurrencies. Similarly you can query the trading volume of stablecoins on different DEXs. This can be done by querying DEX smart contracts for trades involving these tokens.

By analyzing the total supply and trading volume, you can make informed decisions about buying and selling USDC on DEXs If USDC supply is abundant and trading volume is high, it might suggest a more liquid market for acquiring USDC with other tokens on DEXs. Conversely, a low USDC supply or low trading volume might indicate difficulty finding someone willing to sell USDC for your desired cryptocurrency on a DEX.

## 5. Yield Aggregators:

Yield aggregators play a pivotal role in the yield farming economy by leveraging various DeFi protocols and strategies to maximize user profits. DeFi offers a variety of opportunities to earn returns on your crypto holdings. But with so many protocols, it can be overwhelming to find the best yields. Yield aggregators like Yearn Finance and Curve simplify this process. They automatically move your crypto assets between different DeFi protocols to optimize your returns.

Through yield aggregators users lock up or stake funds, receiving variable or fixed ROI in return. Aggregators then automatically optimize yield by distributing assets across different pools.

Some of the Popular Yield Aggregators are:

- Lido: Provides staked ETH (stETH) with over $34.7 billion worth of ETH staked and with 3.3% APR.
- Beefy Finance: A multi-chain yield optimizer that simplifies asset management and maximizes returns.
- Convex Finance: Allows depositing Curve LP tokens to earn trading fees, CRV, and CVX tokens.
- Yearn.finance: Automates yield-maximizing profit switching for liquidity providers and farmers.

Read more on [liquid staking data analysis in this blog](https://bitquery.io/blog/ethereum-liquid-staking-ecosystem-overview).

## 6. Liquid Staking:

Liquid staking enables users to unlock their staked ETH via derivatives, allowing reinvestment elsewhere. Ethereum uses a Proof-of-Stake consensus mechanism. Users can stake their ETH (Ethereum tokens) to help secure the network and earn rewards. However, traditionally staked ETH becomes locked up. Liquid staking platforms like Diva or Lido address this by offering derivative tokens representing your staked ETH. These tokens remain liquid, allowing you to trade them while still earning staking rewards.

Before moving forward, let’s take a look into [Diva Early Stakers stETH Vault (DSTVL)](https://explorer.bitquery.io/ethereum/token/0x1ce8aAfb51e79F6BDc0EF2eBd6fD34b00620f6dB) ![](https://lh7-us.googleusercontent.com/81390wQM78bHeG-zy7vRz87Uic5tad1gUKs2GyzX-AnV1YrWmKqJ3M8erOS38TBUYdD47598M5TX9YzuRUULv8wcq06hHy34QUZiU1if4FiU415mLGleXIfjh8xCa5GTZIX_H6ART1U3lG5spxY4gJU)

At the time of writing this article on April 2024 and Based on data from Bitquery data, there are 12716.34 stETH held by 691 DIVA depositors, and the top depositors own 3007.56 (in Diva Early Stakers stETH Vault). Similar to DIVA, other liquidity platforms and protocols like Compound, Aave, and Uniswap are on the rise.

If a user needs access to their ETH before the staking period ends, they can easily sell their stETH on an exchange. This provides flexibility and avoids users being locked into long positions. By selling stETH, they can lock in profits or reduce their exposure to ETH while still benefiting from staking rewards.

In essence, these liquidity features woven into the fabric of Ethereum's DeFi ecosystem have transformed it into a robust and dynamic financial landscape.

## 7. Prediction Markets:

Want to put your future forecasting skills to the test? Prediction markets allow you to do just that. Prediction markets allow trading outcomes of events. Market prices reflect crowd sentiment on event probabilities. Platforms like Augur and Gnosis function like online betting exchanges. Users can create and participate in markets where they wager on the outcomes of real-world events, from elections to sports games.

Some of the Key players in these category are:

- Augur: A decentralized oracle and peer-to-peer protocol for prediction markets.
- Omen.eth: Uses Gnosis conditional tokens for creating prediction markets across various domains.
- Polymarket: Enables betting on highly debated topics and rewards correct predictions.

## 8. KYC & Identity Solutions:

Decentralization doesn't mean ignoring regulations altogether. KYC (Know Your Customer) solutions help ensure compliance within DeFi. Blockchain-based identity solutions are being developed to manage user data securely and facilitate safe transactions while adhering to KYC regulations. However, Decentralized identity removes reliance on centralized third parties. Users control their identifiers and attestations.

Benefits:

- Privacy: Users can manage identity-related information without intermediaries.
- Trustless Verification: Blockchain-based attestations provide cryptographic guarantees.
- Portability: Identity data becomes portable, not locked into issuing organizations.

## 9. Infrastructure and Crypto Primitives:

DeFi infrastructure includes blockchain, smart contracts, oracles, stablecoins, and dApps. Think of these as the building blocks for creating DeFi applications. Smart contracts are self-executing code that automates agreements within DeFi protocols. The Ethereum Virtual Machine (EVM) is a virtual computer that executes these smart contracts. Additionally, consensus mechanisms like Proof-of-Stake ensure the security and reliability of the network.

Blockchains mechanisms create trustless transactions and data storage. Smart Contracts will execute predefined actions based on conditions. Oracles help fetch external data for smart contracts. Stablecoins provide price stability. And Decentralized applications built on blockchain networks.

These components work together to create a vibrant DeFi ecosystem on Ethereum. Understanding their functionalities is crucial for navigating this exciting new world of decentralized finance.

For better understanding lets explore [Ethereum Mainnet DEX Trades.](https://explorer.bitquery.io/ethereum/dex_trades)

![](https://lh7-us.googleusercontent.com/pNP-tEnHgQ11mSHsLJfBOmVIAcwDef5W0Q0TMqm93oE6--jLk3-CfF1_HT_cbLA1DAyVkMeaEJuBXXbvv_oW2Un_KsQRuNN70CjXZu1VORRBSXCxZOPB4LvKgFcAOQsnswTkXYWCjJ-Un9PgxMI7qEQ)

You can leverage Bitquery to explore this data for in-depth analysis.

Breaking Down the Data Structure:

- TimestampBlock: This indicates the block number on the Ethereum blockchain where the trade was recorded. Each block contains a specific set of transactions, and the block number acts as a unique identifier for that group of transactions.
- Sell amountSell currency: This represents the amount of the crypto asset being sold (sell amount) and the specific currency involved (sell currency). For instance, it could be "100 ETH".
- Buy amountBuy currency: This signifies the amount of the cryptocurrency being bought (buy amount) and the corresponding currency involved (buy currency). An example could be "2 BTC".
- Protocol Exchange: This identifies the specific DEX where the trade occurred. Popular DEXes on Ethereum include Uniswap, SushiSwap, and Curve.
- Smart ContractHash: Every DEX operates on a smart contract, a self-executing program on the blockchain that governs the trading rules. This hash code uniquely identifies the smart contract involved in the particular DEX trade.

## Potential future developments in DeFi and the Ethereum ecosystem.

The Ethereum DeFi space is constantly evolving, with new projects tackling various challenges and expanding possibilities. Here are a few exciting areas where future projects are brewing:

1.  Layer 2 Scaling Solutions: Ethereum's scalability limitations are well-known. Layer 2 solutions address this by providing faster and cheaper transaction processing on secondary blockchains that connect back to the main Ethereum network for security. Future advancements will focus on even faster and more secure Layer 2 solutions to definitively unclog the Ethereum network.

2.  Interoperability Bridges: Currently, DeFi applications built on different blockchains operate in isolation, hindering seamless asset movement. Interoperability bridges function as gateways, allowing users to transfer crypto assets (tokens and NFTs) across blockchains. Future developments will focus on building stronger and more user-friendly bridges to create a truly interconnected DeFi ecosystem.

3.  Decentralized Identity (DID): DID projects aim to empower users with complete control over their digital identities on the blockchain. This eliminates reliance on centralized identity management systems. Users can selectively share verified data with DeFi applications, similar to using login services across websites. Future efforts will target improving user experience and widespread adoption of DID solutions.

4.  On-chain Options and Derivatives: Options contracts, currently prevalent on centralized exchanges, allow users to speculate on the future price of an asset. On-chain options and derivatives bring these contracts onto the blockchain, enhancing transparency and potentially improving security. Future advancements will focus on simplifying on-chain options trading for everyday users.

5.  Real-World Asset Integration: Integrating real-world assets like stocks and real estate into DeFi opens doors for innovative applications. Future projects will explore ways to tokenize real-world assets on the blockchain, enabling fractional ownership and easier access to financial products through DeFi applications.

6.  Improved User Experience: DeFi platforms can be quite complex for newcomers. Future projects will focus on streamlining user interfaces and functionalities. This might involve implementing intuitive interfaces, clear navigation, and potentially even voice commands to make DeFi features like borrowing and lending crypto more accessible.

7.  Enhanced Security: DeFi protocols are inherently vulnerable to hacks due to their open nature. Future projects will prioritize robust security measures to make DeFi platforms less susceptible to exploits. This could involve implementing advanced security protocols, smart contract audits, and bug bounty programs.

These trends highlight the continuous innovation within DeFi and its potential to reshape the future of finance. This is just a glimpse into the future. The possibilities for DeFi are vast and constantly evolving!


---

*Written by Pratik Khanal*]]></description>
        </item>
        <item>
            <title><![CDATA[Exploring the Ethereum Liquid Staking Ecosystem: A Detailed Overview]]></title>
            <link>https://bitquery.io/blog/ethereum-liquid-staking-ecosystem-overview</link>
            <guid>https://bitquery.io/blog/ethereum-liquid-staking-ecosystem-overview</guid>
            <pubDate>Mon, 15 Apr 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Staking is a game-changing concept that lets you contribute to network security by locking up your token for a certain period to earn rewards over the lockup period.

With this concept, once you lock up your token, you won’t have access to the token until you unstake your investment. In other words, your staked tokens become illiquid until you unstake the token.

However, in the ever-evolving DeFi niche, a new concept has been introduced: Liquid Staking.

**What’s Liquid staking?**

[Liquid staking](https://bitquery.io/blog/exploring-new-liquid-staking-protocol) lets you retain liquidity while your token is locked up. When you stake your token, you receive a derivative of the same amount of the token staked, which you can use for other activities, like trading, lending, participating in governance activities, and restaking (if supported). And you continue to receive rewards on your primarily staked token.

For example, let’s say you’re interested in Ethereum staking and decided to stake 20ETH with Lido Finance. Once you stake your ETH, you receive 20stETH (Lido’s liquid staking derivative (Liquid Staking Derivatives) pegged to Ether), which you can use for trading, lending, and participating in governance activities on supported DeFi Protocols. Moreover, the 20ETH you staked is still yielding rewards.

With Liquid staking, even though you locked up your token, you’ll enjoy the benefits of locking up your token to support the network and still have the flexibility to use the asset for other rewarding purposes.

Liquid staking was popularized by the transition of Ethereum from Proof of Work (POW) to Proof of Stake (POS). As a result of the low barrier to entry, the liquid staking derivative (Liquid Staking Derivatives) sub-section has gotten a lot of interest from DeFi investors and traders.

Ethereum liquid staking has attracted over $40 billion in total value locked (TVL). And it accounted for about 80% of the total staked Ether. Overall, liquid staking introduces a flexible approach to earning passive income in DeFi.

In this article, we’ll go through everything you should know about liquid staking and the benefits of this game-changing concept.

## Benefits of Liquid Staking Derivatives

Liquid staking derivative is a DeFi instrument that opens new opportunities and possibilities to investors. It solves some of the limitations of traditional staking strategy. Liquid staking unlocked the inherent value of staked tokens, allowing them to be traded and used as collateral in protocols.

Now, let’s check some of the benefits of Liquid Staking Derivatives.

1.  ### Capital Efficiency

Liquid staking improves the efficiency of your token. In traditional staking, once you lock up your token, you only receive rewards, but your token remains dormant and illiquid until you unstake. However, liquid staking lets you use your token for other activities instead of locking it up in some smart contracts vaults.

Moreover, when you stake your token, you get an equivalent of the token derivatives, which you can use for other income-generating activities while you’re still earning rewards from the staked tokens. This lets you earn on both tokens, which maximizes your profit.

2.  ### Lowers the Barrier to Entry

You need to meet some requirements to become an Ethereum staker, but Liquid staking Derivatives have lowered the barrier to entry for Ethereum staking.

For example, to be an Ethereum validator, you need a minimum of 32 ETH, but with Liquid Staking Derivativess, there is no barrier to entry — some Liquid Staking Derivativess, as we’ll see below, even let you stake as low as 0.01 ETH on their platform.

Apart from staking 32 ETH, you still need to participate in several activities like proposing, attesting, and validating blocks or risk getting slashed (losing a percentage of your staked Ether). With Liquid Staking Derivatives, you don’t have to know the technical side of things. The Liquid Staking Derivatives protocol handles the technical difficulties and only pays you your percentage of yield.

3.  ### Risk Management

Ethereum staking also requires you to lock up your Ether for a certain period. Your token stays dormant for a certain period, but with Liquid Staking Derivativess, you can maximize your profit and withdraw your staked ETH anytime you want.

Receiving an equivalent number of tokens you staked in derivatives can also help you manage risk. Instead of your token staying illiquid and dormant in a vault somewhere, you can use the derivatives to invest and maximize your return by trading and speculating to hedge against risk from your staked tokens, thereby minimizing loss.

4.  ### Foster Market Participation and Innovation

The lower barrier to entry provides more accessibility and flexible options for staking and earning rewards. It allows investors who are skeptics to get involved and participate.

Liquid staking also creates new opportunities for financial products and also encourages innovation. Liquid Staking Derivativess let investors try out new innovative ways of increasing their income.

For instance, investors can re-stake their derivatives on any other acceptable platform. Also, you can use the derivative tokens as collateral on lending platforms to borrow tokens you can further invest on other DeFi platforms. The earning possibilities are truly endless.

5.  ### Increased Liquidity

Unlike the traditional staking processes, Liquid Staking Derivativess allow investors to trade the derivatives they receive when they stake their tokens on exchanges, which facilitates efficient market opportunities.

For example, the top Liquid Staking Derivatives tokens are traded on CEX, like Binance, Kraken, etc, which is another earning opportunity for experienced crypto traders.

Instead of the limitation that comes with the traditional staking strategy, liquid staking offers the flexibility for traders and investors to earn more without risk.

## Ethereum Liquid Staking Derivatives Protocols Overview

Liquid Staking Derivatives is an innovative way to maximize revenue in DeFi. In this section, we’ll go through some of the popular Liquid Staking Derivativess on ETH. Without ado, let’s get started.

1.  ### LIDO Finance (stETH)

Lido finance is a liquid staking protocol that allows users to earn staking rewards by pooling their funds to be staked on the Ethereum Beacon chain. The protocol provides users with secure and automated methods to earn yield on their staked Ether.

As a liquid staking protocol, users deposit their Ether into the protocol’s smart contract and receive an equal amount of stETH (a derivative pegged to the price of Ether) in return. The Lido DAO then stakes the tokens with the node operators.

Lido is a significant player in the Liquid Staking Derivatives realm. With over $30 billion in Total Value Locked (TVL), the protocol currently dominates the market with an impressive market share of over 70%.

Based on the data obtained from [Bitquery Ethereum APIs](https://bitquery.io/blockchains/ethereum-blockchain-api), as of the 3rd of April 2024, there were about [12 million stETH in circulation with over 188,000 holders of the derivatives](https://explorer.bitquery.io/ethereum/token/0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84) — an average of 63 stETH per unique wallet. Throughout the protocol's existence, there have been over 268,000 unique senders and 395,976 unique receivers.

![](/blog/ethereum-liquid-staking-ecosystem-overview/steth.PNG)

Moreover, the protocol’s validators control over 30% of the Ether staked on the Ethereum beacon chain. So, to decentralize risk, Lido adopts a multi-validator system. And so, their over 220,000 validators were distributed across 37 nodes.

Finally, this DeFi protocol uses the DAO governance structure for its operations, which means you can vote on proposals and determine the direction of the Liquid Staking Derivatives protocol when you hold LDO, the protocol’s native token. Moreover, the DAO handles the pooling and staking of the users' funds. So, the node operators do not have direct access to the user's staked token.

Lido Finance has extended its services to several other chains, including Polygon, Solana, Polkadot, and Kasuma.

2.  ### RocketPool (rETH)

Rocket Pool is considered the first truly decentralized liquid staking protocol in the Liquid Staking Derivatives sub-niche. It's a permissionless proof of stake pool that emphasizes decentralization and security. This DeFi protocol utilizes a dual-token model (RPL and rETH). RPL is the native token of the protocol, while the rETH is the Liquid Staking Derivatives you receive when you stake your Ether. For every Ethereum you stake on Rocketpool, you get an equal amount of rETH in return, which you can use for other activities.

It allows users to pool together their Ether to meet the 32ETH staking requirement on the Ethereum beacon chain. You can stake with as low as 0.01 ether and receive an equivalent amount of the derivative rETH to use as liquidity for other activities.

With a TVL of $4 bln, RocketPool is the second largest Liquid Staking Derivatives after LIDO finance and the 9th largest protocol by TVL in the entire DeFi ecosystem. Unlike the 32 Ether required for solo stakers to become validators in the Ethereum beacon chain, Rocketpool only requires 16 Ether to be part of the validators in the pool.

Based on the data retrieved using the [Bitquery explorer](https://explorer.bitquery.io/ethereum/token/0xae78736Cd615f374D3085123A210448E74Fc6393/holders), there were currently 813,280 ETH staked on the protocol and over 3,620 node operators. There was a total supply of 525,046 rETH in circulation and 17,823 holders — 29rETH per unique holder.

![](/blog/ethereum-liquid-staking-ecosystem-overview/reth%202.PNG)

Moreover, the top three wallets hold over 26% of the total rETH in circulation. There are 41,079 unique senders and 53,318 unique receivers, with a [total transfer](https://explorer.bitquery.io/ethereum/token/0xae78736Cd615f374D3085123A210448E74Fc6393) count of 288,762.

![](/blog/ethereum-liquid-staking-ecosystem-overview/rocketpool%201.png)

3.  ### Frax Ether

Frax is another liquid staking protocol that maximizes yields and simplifies the Ethereum staking process for non-technical investors. It lowers the barrier to entry and leverages the Frax finance ecosystem to maximize DeFi investors’ profit.

Unlike the previously discussed Liquid Staking Derivatives protocols, Frax does not only focus on Liquid Staking Derivatives. It offers many DeFi products like stablecoin (FRAX and FPI), a Decentralized Exchange (FraxSwap), a lending protocol (FRaxlend), and a bridge (Fraxferry).

Frax adding an Liquid Staking Derivatives to its array of DeFi products is to be a one-stop shop for everything DeFi. This derivative aims to help investors remain liquid and earn revenue while staking on the Frax ecosystem. This means even if you stake your token, you can receive a Frax Liquid Staking Derivatives and use the token for other activities like lending, trading, and so on in the ecosystem while maximizing your profit.

However, unlike other Liquid Staking Derivativess we’ve talked about, [FRAX Liquid Staking Derivatives](https://explorer.bitquery.io/ethereum/token/0x5E8422345238F34275888049021821E8E08CAa1f?from=2024-01-01&till=2024-04-05) is a multi-token system with two separate derivative tokens (sFRXETH for staking and frxETH for farming and withdrawing back to ETH).

The two tokens issued by FRAX are aimed at isolating the earning tokens from the volatile ones. The frxETH is loosely pegged to Ether, and you receive no staking yield. While the sfrxETH is the derivative token you receive when you stake your frxETH.

From the data pulled using the Bitquery API, Frax is among the top 5 Liquid Staking Derivatives protocols by TVL. with a TVL of $880 million and 5,392,641.8 frxETH in circulation. Moreover, as of the 3rd of April 2024, there were 4,801 unique senders and 5,184 unique receivers of the frxETH token. The total transfer count since the inception of the protocol is 85,585.

![](/blog/ethereum-liquid-staking-ecosystem-overview/frxth2.PNG)

There were also 1507 [unique token holders](https://explorer.bitquery.io/ethereum/token/0x5E8422345238F34275888049021821E8E08CAa1f/holders?from=2024-01-01&till=2024-04-05) and a token supply of 264,814 frxETH. Based on this data, there is an average of 175frxETH per unique address.

![](/blog/ethereum-liquid-staking-ecosystem-overview/frxETH.PNG)

## DAO Token and Governance in Liquid Staking

DAO token and governance in liquid staking play a significant role in controlling the dynamics of the liquid staking protocol. Just as governance affects other sectors of DeFi, it also affects the Liquid staking sector.

A decentralized liquid staking protocol ensures that the protocol is more secure and limits the power of individuals or groups to control the locked asset. It also allows participants to collectively decide the direction and evolvement of the protocol, which aligns with the ethos of web3.

Moreover, a governance token allows a collective decision to be made on the parameters of the staking protocols, such as inflation rate, reward distribution, slashing conditions, and so on. Anyone who holds a protocol governance token will have the power to vote on proposals to make updates and changes.

So DAO tokens and governance in liquid staking shouldn’t be overlooked.

## Conclusion

You can see that the emergence of liquid staking derivatives (Liquid Staking Derivativess) has significantly affected the evolution of DeFi, particularly within the Ethereum ecosystem. Liquid staking gives investors the power to retain liquidity while their token is locked away in a vault.

With this article, you now understand the significance of Liquid staking protocols and how it has benefited the DeFi ecosystem.


----

Written by Emmanuel Ajala]]></description>
        </item>
        <item>
            <title><![CDATA[A Deep Dive into Crypto Money Laundering and How Analytics Can Help]]></title>
            <link>https://bitquery.io/blog/crypto-money-laundering-advanced-analytics</link>
            <guid>https://bitquery.io/blog/crypto-money-laundering-advanced-analytics</guid>
            <pubDate>Fri, 12 Apr 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Crypto money laundering embodies the digital evolution of financial crime, using the anonymity and global reach of cryptocurrencies to obscure illicit gains. Unlike traditional methods that navigate through banks and casinos, crypto laundering thrives in a decentralized network, complicating tracking and regulation. The opacity of blockchain and the mix of centralized (CEXs) and decentralized exchanges (DEXs) challenge the identification of illicit flows.

[A report by Nasdaq](https://www.nasdaq.com/global-financial-crime-report) highlighted over $3.1 trillion in illicit funds circulating globally in 2023, underlining the magnitude of financial crime from activities like drug trafficking and terrorist financing.

Centralized exchanges (CEXs) present a structured yet vulnerable landscape for money laundering, where sophisticated multi-stage processes are employed to obscure the origins of illicit funds, despite regulatory efforts to enhance transparency and security. Decentralized exchanges (DEXs) make it difficult to reduce money laundering, by offering greater anonymity and minimal oversight, thereby enabling tactics to blur the lines between legitimate and illicit financial activities.

# Decoding Crypto Money Laundering

The fight against crypto money laundering requires a nuanced understanding of the methods utilized across both centralized and decentralized platforms

## Money Laundering on Centralized Exchanges (CEXs)

- Placement: Introducing illicit funds into the system via cryptocurrency purchases or deposits.

- Layering: Executing complex transactions to disguise fund origins, using trade-based techniques and high-frequency trading to muddle traceability.

- Integration: Withdrawing laundered funds to external wallets or converting them into fiat, appearing as legitimate assets.

## Money Laundering on Decentralized Exchanges (DEXs)

Swap and Mix: Using DEXs to exchange illicit tokens for other cryptocurrencies or stablecoins, employing automated market makers (AMMs) for trade execution.

Cross-Chain Hopping: Moving funds across blockchains to exploit varying anonymity levels and security protocols, further complicating tracking.

Tornado Cash facilitates laundering by breaking the on-chain link between source and destination addresses through deposit pooling, zero-knowledge proofs for anonymous withdrawals, and the use of relayers to further anonymize transactions.

### The Scale of Laundering

[Chainalysis reported](https://www.chainalysis.com/blog/2024-crypto-money-laundering/) that illicit addresses sent $22.2 billion in cryptocurrency to services in 2023, down from $31.5 billion in 2022. This decline indicates the impact of regulatory and law enforcement efforts but also underscores the adaptability of laundering techniques in response to these pressures.

The technical sophistication and rapid evolution of laundering methods in the cryptocurrency space demand equally advanced and dynamic countermeasures. This includes the development of more nuanced analytical tools capable of detecting and analyzing the complex patterns of illicit transactions, as well as a collaborative effort between regulatory bodies, financial institutions, and technology providers to address the challenges posed by these decentralized and often borderless financial activities.

# Real-World Examples of Laundering in Crypto

Several high-profile cases illustrate the scale and sophistication of crypto money laundering:

- The Lazarus Group: This North Korean state-sponsored hacking group is implicated in numerous cyber heists, including the infamous $281 million theft from the KuCoin exchange and the $600 million Ronin Hack. Laundering tactics involved moving stolen assets through a series of wallets and exchanges, eventually utilizing mixers like Tornado Cash to obfuscate the funds' origins.

- The Silk Road: This dark web marketplace facilitated over $1 billion in illegal transactions, primarily in cryptocurrencies. [Law enforcement's efforts to trace and seize these funds](https://bitquery.io/blog/bitcoin-seized-us-government) highlighted the early challenges and the eventual advancements in blockchain analysis techniques.

- The PlusToken Scheme: One of the largest Ponzi schemes in history, PlusToken scammed billions of dollars worth of cryptocurrency from investors. The subsequent laundering of these funds involved sophisticated techniques, including the use of dummy accounts and a web of transactions across multiple platforms.

## The Largest Breach

In March 2022, the Ronin Network, associated with the popular blockchain-based game Axie Infinity, fell victim to a sophisticated hack, leading to a staggering loss of approximately $622 million in Ethereum (ETH) and USDC.

This breach is attributed to the Lazarus Group, a notorious collective with ties to North Korea, known for their advanced cyber capabilities and involvement in significant global cyberattacks.

## Tracking the Trail

The technical sophistication of the Ronin Network hack lies in its exploitation of the network's validator nodes. The Ronin Network operates on a set of nine validators, with a transaction requiring the approval of a majority (five) of these nodes. The attackers managed to gain control over five validators, four of which were directly controlled by Sky Mavis, the creators of Axie Infinity, and one belonging to a third-party Axie DAO. This was achieved through a combination of social engineering and exploiting security vulnerabilities, including the use of compromised private keys.

The compromised keys allowed the attackers to authorize two fraudulent withdrawals, effectively draining the Ronin bridge of 173,600 ETH and 25.5 million USDC. The breach went unnoticed for six days until a user's attempt to withdraw 5,000 ETH from the bridge revealed the shortfall, prompting an investigation that uncovered the extent of the theft.

## Visualizing the Breach

Below is a Sankey Diagram for the Ronin Bridge Exploiter Wallet. The various funding sources can be seen. The distribution of the stolen eth into various intermediary wallets can be seen in the next layer of the diagram after which the eth in sent to mixers in various batches.

[https://explorer.bitquery.io/ethereum/address/0x098B716B8Aaf21512996dC57EB0615e2383E2f96/graph](https://explorer.bitquery.io/ethereum/address/0x098B716B8Aaf21512996dC57EB0615e2383E2f96/graph)

(Asset- ETH, Depth Level : Inbound- 1 Outbound- 1, Detail Level- 10, Sankey)

![](/blog/crypto-money-laundering-advanced-analytics/img1eth.png)


Below is a Graph for the Ronin Bridge Exploiter Wallet. The various funding sources for [the wallet](https://explorer.bitquery.io/ethereum/address/0x098B716B8Aaf21512996dC57EB0615e2383E2f96) can be seen as incoming transactions to the wallet. The distribution of the stolen eth into various intermediary wallets can be seen as outgoing transactions from the wallet.

![](/blog/crypto-money-laundering-advanced-analytics/img2eth.png)

[https://explorer.bitquery.io/ethereum/address/0x098B716B8Aaf21512996dC57EB0615e2383E2f96/graph](https://explorer.bitquery.io/ethereum/address/0x098B716B8Aaf21512996dC57EB0615e2383E2f96/graph)

(Asset- ETH, Depth Level : Inbound- 1 Outbound- 1, Detail Level- 10, Graph)

Below is a Sankey Diagram for the Ronin Bridge Exploiter Wallet. The distribution of the stolen USDC into various intermediary wallets can be seen in this diagram.

![](/blog/crypto-money-laundering-advanced-analytics/img4.png)

[https://explorer.bitquery.io/ethereum/address/0x098B716B8Aaf21512996dC57EB0615e2383E2f96/graph](https://explorer.bitquery.io/ethereum/address/0x098B716B8Aaf21512996dC57EB0615e2383E2f96/graph)

(Asset- USDC, Depth Level : Inbound- 1 Outbound- 1, Detail Level- 10, Sankey)

The distribution of the stolen USDC into various intermediary wallets can be seen in this diagram. The last layer of graph shows the wallets from which the USDC was converted to Bitcoin and subsequently passed through tumblers to make it difficult to track.

![](/blog/crypto-money-laundering-advanced-analytics/img3usdc.png)

[https://explorer.bitquery.io/ethereum/address/0x098B716B8Aaf21512996dC57EB0615e2383E2f96/graph](https://explorer.bitquery.io/ethereum/address/0x098B716B8Aaf21512996dC57EB0615e2383E2f96/graph)

(Asset- USDC, Depth Level : Inbound- 1 Outbound- 1, Detail Level- 10, Graph)

Initially, assets were possibly moved through crypto mixers like Tornado Cash, which disrupts the traceability by mixing the stolen funds with others. Subsequently, these mixed funds might have been transferred to centralized exchanges (CEXs) for further obfuscation and possibly exchanged for different cryptocurrencies or fiat currency. The final step often involves withdrawing these assets to off-ramp points or into new, unconnected wallets, further complicating the tracking efforts.

## The Ripple Effect

Approximately $35 million was recouped through asset seizures, employing sophisticated tracing methods to track the stolen funds to their withdrawal points. This collaboration with law enforcement and industry stakeholders enabled the quick freezing of assets. These recoveries account for about 10% of the total value stolen from Axie Infinity, adjusted for price fluctuations from the time of theft to recovery. This success underscores the increasing challenges that malicious actors face in converting their stolen cryptocurrency into cash. Effective collaboration between top-tier blockchain analysts, investigators, and compliance experts is proving crucial in thwarting the efforts of advanced hackers and money launderers.

## Using the Bitquery’s Coinpath Tool to Analyze Money Flow

Coinpath addresses this need with its advanced set of API endpoints designed for blockchain money flow analysis.Coinpath APIs provide a powerful solution for tracing cryptocurrency transactions across more than 40 blockchains and their tokens. By offering detailed insights into money trails, Coinpath enables users to build a myriad of applications, from compliance tools to sophisticated investigation platforms, without the burden of maintaining extensive data warehouses.

**Key Use Cases**

Compliance: Essential for building KYT (Know Your Transactions) tools and adhering to Travel rules, Coinpath APIs facilitate the deanonymization of addresses, transaction monitoring, and risk analysis, enabling robust compliance solutions.

Investigation: Revolutionizing the approach to investigating cryptocurrency-related crimes (e.g. wallet thefts, scams), Coinpath APIs offer advanced capabilities for tracing money flows, proving indispensable for crypto investigation firms.

**Getting Started**

Bitquery Explorer: A beginner-friendly platform to explore blockchain data, allowing users to search addresses or transactions and view money flow data, just select an address or a token and click on the money flow tab. It's an ideal starting point to understand Coinpath APIs in action.

[Bitquery Explorer](https://explorer.bitquery.io/)

![](/blog/crypto-money-laundering-advanced-analytics/bitquery%20explorer%20example%204.png)

Let’s look at an example of the GraphQL IDE utilizing Coinpath

[Example query UTXO coinpath with TX in/out values](https://ide.bitquery.io/d0er7Fa9hZ)

![](/blog/crypto-money-laundering-advanced-analytics/graphql%20query%20example%205.png)

This query output reveals detailed transaction flows for a specific address, showcasing both incoming (inbound) and outgoing (outbound) transactions over a specified time frame.

## How It Works

By using such a query, users can:

- Trace Fund Origins and Destinations: It identifies where funds are coming from and where they are being sent to, making it crucial for transparency and accountability in financial transactions.

- Investigate Financial Crimes: The data aids in the investigation of suspicious activities, such as money laundering or fraud, by revealing the flow of funds and connecting dots between different transactions and addresses.

- Compliance Monitoring: For businesses and regulatory bodies, it's instrumental in ensuring compliance with KYC (Know Your Customer) and AML (Anti-Money Laundering) regulations by tracking the movement of funds to and from known addresses.

- Risk Analysis: By analyzing the depth and count of transactions, companies can assess the risk profile of certain addresses or transactions, crucial for financial institutions and crypto exchanges.

[Coinpath](https://bitquery.io/products/coinpath) is designed to enhance and streamline the development of compliance tools, investigative applications, or any blockchain data project. Supporting over 24 blockchains, it offers a ready-to-use data infrastructure, saving time and resources for its users. For a detailed look at Coinpath MoneyFlow and its capabilities, visit the official page at Bitquery​.

At the core of Bitquery's [Crypto Investigation services](https://bitquery.io/products/crypto-investigation-services) is a comprehensive approach to the investigation and recovery of stolen cryptocurrencies. Recognizing the unique nature of each case, Bitquery tailors its services to address the specific needs of each client. These services include:

- Funds Tracking: Leveraging their proprietary blockchain analysis tools, Bitquery excels in tracing stolen funds across the digital landscape. This capability is pivotal in the recovery process, providing a clear pathway to the assets' current location.
- Legal Support: Bitquery's team includes seasoned crypto-lawyers adept at navigating the complex legal framework surrounding digital assets. Their expertise ensures that all necessary legal actions are taken to support the recovery efforts.
- Recovery Assistance: Coordinating with cryptocurrency exchanges and law enforcement agencies is a critical step in the recovery process. Bitquery facilitates these interactions, advocating on behalf of their clients to ensure the best possible outcome for asset retrieval.

Bitquery's process is designed to be straightforward and transparent, providing clients with a sense of security and clarity throughout what can be a stressful experience. The process unfolds in three key stages:

Consultation: Initially, Bitquery focuses on understanding the client's unique situation. This initial consultation is critical for identifying potential recovery options and planning the investigation strategy.

Investigation: With a strategy in place, Bitquery's expert investigators use their [advanced tracking tools and techniques.](https://bitquery.io/products/crypto-investigation-services) Their diligent approach ensures a thorough search for the stolen assets.

# The Cat-and-Mouse Game

The battle against crypto money laundering is a dynamic and evolving challenge. As regulatory bodies and law enforcement agencies enhance their tools and techniques, so too do the criminals in their methods to evade detection. Bitquery's solutions, like Coinpath and Crypto Investigation Services, stand at the forefront of this battle, offering powerful weapons in the ongoing fight for financial transparency and integrity. These tools not only illuminate the dark corners of the blockchain but also serve as a deterrent to those who would use cryptocurrencies for illicit purposes.

The development and refinement of blockchain analytics tools are critical in tipping the balance toward a secure and transparent digital financial ecosystem. As the blockchain continues to mature, the collaboration between technology providers, regulators, and the global financial community will be paramount in safeguarding the promise of cryptocurrencies while mitigating their potential misuse.

---

Written by Anish Majumdar
]]></description>
        </item>
        <item>
            <title><![CDATA[Understanding Tokenized US Bonds]]></title>
            <link>https://bitquery.io/blog/understanding-tokenized-us-bonds</link>
            <guid>https://bitquery.io/blog/understanding-tokenized-us-bonds</guid>
            <pubDate>Wed, 10 Apr 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
The process of turning physical assets like stocks, commodities, and real estate into digital tokens on a blockchain is called tokenization of traditional assets, or crypto [RWAs](https://bitquery.io/blog/decoding-franklin-templeton-tokenized-funds) (Real World Assets). In comparison to conventional paper-based methods, this procedure offers increased transparency, security, and efficiency by allowing ownership and rights to be permanently recorded on the blockchain.

Conventional asset classes are progressively moving onto the blockchain, such as business loans, commercial and residential mortgages, and sovereign debt. The goal of streamlining procedures, cutting expenses, and improving investor accessibility is what is driving this change. Issuers may take use of blockchain technology's advantages, including improved liquidity, automated compliance, and real-time settlement, by tokenizing these assets.

#### Why are Conventional Asset Originators Take Into Account On-chain Financing ?

For fiduciary and strategic reasons, traditional asset originators are increasingly taking on-chain financing into consideration. From a strategic perspective, on-chain financing presents the chance to improve market liquidity, attract a larger pool of investors, and get access to international financial markets. Fiduciary motivations include lowering transaction costs, enhancing transparency, and automating smart contracts to reduce counterparty risk.

## Overview of Tokenized US Bonds

Tokenized US bonds, represents a modernized approach to traditional fixed-income securities, leveraging blockchain technology to digitize ownership and facilitate seamless trading. Tokenization essentially turns traditional bonds into digital assets, allowing for improved accessibility, better liquidity, and fractional ownership for investors.

It simply refers to the process of converting a traditional bond, which represents a debt instrument issued by a government or corporation, into tokens that are issued on a blockchain.

### Emergence in the Digital Era

The rise of tokenized US bonds is indicative of the expanding convergence between blockchain technology and conventional banking. There is an increasing need for alternative investment alternatives that provide transparency, efficiency, and security as financial markets adopt digitization and decentralized technologies. These needs are met by tokenized US bonds, which act as a link between established financial institutions and the digital economy.

Propelled by developments in blockchain technology and regulatory policies, tokenized US bonds have numerous significant benefits in comparison to their conventional counterparts. These consist of lower transaction costs, more efficient issuing procedures, and access to a worldwide investor base. Tokenization also opens up new opportunities for fractional ownership, real-time settlement, and automatic compliance, which democratizes access to fixed-income investments.

### Introduction of tokenized assets on public blockchain networks

The emergence of tokenized assets signifies a fundamental change in the way we view and engage with conventional financial instruments and physical assets. Tokenization increases liquidity, simplifies trading procedures, and democratizes access to investment opportunities by digitizing ownership and permitting fractional ownership.


Public blockchain networks are basically decentralized platforms that make it easier to issue, transfer, and manage digital tokens which is essential to the spread of tokenized assets. Public blockchains promote inclusivity and interoperability globally since they are open and available to everybody with an internet connection, in contrast to private or permissioned blockchains, which are limited to authorized participants.

# Understanding how tokenized bonds are created

An easy way of demonstrating how this traditional bonds transition to blockchain will be this below ⤵️

1.  Selecting the desired bond: This is the first step in which the bond issuer (government, corporate entity or financial institution) selects a bond to be tokenized. This can be a traditional debt instrument with a fixed interest rate and maturity date.

2.  Creating a blockchain token : The issuer can work with any public blockchain network or service provider to create a token that will represent the ownership of the bond. In most cases, the token typically corresponds to a fraction of the total value of the bond.

3.  Issuance on the blockchain: The issuer deploys the token on-chain which ensures transparency and tamper-proof record keeping of ownerships and transactions related to the bond.

4.  Smart Contract Integration: This involves the automation of various aspects of bond issuance and trading. A smart contract, which is a self executing code will be written where the terms of the agreement on the bond are directly written into the code and verified before deploying on-chain.

This can include things such as interest payments, redemption at maturity, and compliance with regulatory requirements.

5.  Compliance and Regulation: In this step, everything is thoroughly checked to ensure regulatory compliance with the applicable securities regulations and legal requirements. This may involve obtaining regulatory approvals, conducting investor due diligence, and adhering to Know Your Customer (KYC) protocol and Anti-Money Laundering (AML) guidelines.

6.  Distribution and Trading: The tokens can now be distributed to investors through several channels such as token sales, initial coin offerings, or even using a traditional securities exchange. Investors can now trade these tokens on secondary markets, which allows for increased liquidity and accessibility.

# Differentiating Tokenized Funds from Onchain Assets and Tokens

Tokens, on-chain assets, and tokenized money are all significant parts of the developing blockchain ecosystem, but they have different uses and special qualities.

Tokenized funds:

Also known as investment vehicles are those that are represented on a blockchain as digital tokens. They are typically managed by an investment or fund manager; these funds might include equities, bonds, commodities, and crypto, among other assets. Tokenized funds provide investors with access to a variety of asset classes and the advantages of blockchain technology, including enhanced accessibility, liquidity, and transparency.

On-chain Assets:

Digitized physical assets that are registered on a blockchain are referred to as on-chain assets, or crypto RWAs (Real World Assets). Real estate, commodities, securities, and other physical financial or monetary assets might be included in this category. Compared to paper-based systems, tokenizing assets on the blockchain results in permanent record-keeping of ownership and rights, increasing efficiency, security, and transparency.

Tokens:

Tokens are digital assets on a blockchain that stand in for rights or ownership. Tokens are different from tokenized funds and on-chain assets in that they do not always have intrinsic value or reflect ownership of underlying assets, even if they can represent a broad range of assets, including cryptocurrency and digital collectibles. Tokens may be used for a number of things, such as access to decentralized apps (DApps), voting, payments, and governance.

### Significance of Tokenized US Bonds in the Financial Industry

1.  Enhanced Accessibility: Fractional ownership is made possible by tokenizing US bonds, this allows investors to buy smaller bond units. This makes it available to a wider variety of investors who might not have had access to traditional bond markets.

2.  Enhanced Liquidity: Digitizing bonds as tokens on public blockchain networks, it is easier to tap into existing crypto markets and boost overall liquidity.

3.  Global Accessibility: Tokenized assets on chain are much easier to access for investors around the globe, as there are less middlemen, no legal hassles, and geographical constraints to participate.

4.  Efficiency and Automation: Blockchain automates many of the processes involved in bond issuance, trading, and settlement. Smart contracts also simplify operations and save administrative costs by automating regulatory compliance, interest payments, and maturity redemptions all written in code.

5.  Transparency: Leveraging blockchain's immutability, transactions and ownership of these tokenized bonds are made transparent, boosting investors' confidence.

6.  Cost Savings: By removing the need for middlemen like custodians, brokers, and clearinghouses, tokenization of US bonds decreases investor transaction costs. This cost decrease might lead to increased returns for bond holders.

# Performance Analysis Using Bitquery Data

Let’s analyze the top tokenized assets on chain with [Bitquery](https://bitquery.io/)

## [BlackRock USD Institutional Digital Liquidity Fund](https://explorer.bitquery.io/ethereum/token/0x7712c34205737192402172409a8f7ccef8aa2aec) ($BUIDL)

For the purpose of this blog, we will be using [BlackRock USD Institutional Digital Liquidity Fund](https://explorer.bitquery.io/ethereum/token/0x7712c34205737192402172409a8f7ccef8aa2aec) ($BUIDL) by [Blackrock](https://www.blackrock.com/cash/en-de/products/229261/blackrock-ics-us-dollar-liquidity-premier-acc-fund)

This fund seeks to provide high current income while protecting capital and liquidity, by maintaining a portfolio of superior short-term "money market" instruments. Its principal investments are in fully collateralized repurchase agreements and premium securities such as variable rate notes, commercial paper, and certificates of deposit.

![](/blog/understanding-tokenized-us-bonds/blackrock.png)

The above page indicates the basic metrics which are transfer count of the token, the unique senders and receivers, total amount of token created, first and last transfer date (as at writing) and the average transfer amount.

Diving deeper, we can start checking out the token holders [here](https://explorer.bitquery.io/ethereum/token/0x7712c34205737192402172409a8f7ccef8aa2aec/holders)

![](/blog/understanding-tokenized-us-bonds/blackrock_holders1.png)
![](/blog/understanding-tokenized-us-bonds/blackrock_holders2.png)


The page shows the total token holders with links to the addresses, total supply, holders count and the amount held by each holder address, with the largest token holder being this address [here](https://explorer.bitquery.io/ethereum/address/0x72be8c14b7564f7a61ba2f6b7e50d18dc1d4b63d) with 94768886.59 of the token.

Parameters we can also check out includes [token transfers](https://explorer.bitquery.io/ethereum/token/0x7712c34205737192402172409a8f7ccef8aa2aec/transfers_v2), [events](https://explorer.bitquery.io/ethereum/token/0x7712c34205737192402172409a8f7ccef8aa2aec/events), [senders](https://explorer.bitquery.io/ethereum/token/0x7712c34205737192402172409a8f7ccef8aa2aec/senders_v2) , [receivers](https://explorer.bitquery.io/ethereum/token/0x7712c34205737192402172409a8f7ccef8aa2aec/receivers_v2) , and [contract calls](https://explorer.bitquery.io/ethereum/token/0x7712c34205737192402172409a8f7ccef8aa2aec/calls_contracts)

Other tokenized assets worth taking a look at on-chain via Bitquery are:

##  [Ondo Short-Term US Government Bond Fund ($OUSG)](https://ondo.finance/ousg)

This asset provides liquid exposure to short-term US Treasuries with 24/7 stablecoin subscriptions and redemptions.

The significant majority of this portfolio is currently in the BlackRock USD Institutional Digital Liquidity Fund (BUIDL), with the remainder in BlackRock’s FedFund (TFDXX), bank deposits, and USDC for liquidity purposes. The portfolio may, in the future, include other US Treasury funds and/or direct investments in US Treasuries according to [Ondo Finance](https://ondo.finance/).

Contract Address - 0x1b19c19393e2d034d8ff31ff34c81252fcbbee92 (Ethereum)

[https://explorer.bitquery.io/ethereum/token/0x1b19c19393e2d034d8ff31ff34c81252fcbbee92](https://explorer.bitquery.io/ethereum/token/0x1b19c19393e2d034d8ff31ff34c81252fcbbee92)

![](/blog/understanding-tokenized-us-bonds/ondo.png)

##  [Superstate Short Duration US Government Securities Fund (USTB)](https://superstate.co/ustb)

The Superstate Short Duration U.S. Government Securities Fund (the “Fund”) offers Qualified Purchasers access to short-duration Treasury Bills and Agency securities. The Fund’s investment objective is to seek current income as is consistent with liquidity and stability of principal, targeting returns in line with the federal funds rate. Ownership in the Fund is represented by an ERC-20 token, USTB. Subscriptions and redemptions are facilitated through USD or USDC, with liquidity each market day.

Contract Address - 0x43415eb6ff9db7e26a15b704e7a3edce97d31c4e (Ethereum)

Link to token on Bitquery : [https://explorer.bitquery.io/ethereum/token/0x43415eb6ff9db7e26a15b704e7a3edce97d31c4e](https://explorer.bitquery.io/ethereum/token/0x43415eb6ff9db7e26a15b704e7a3edce97d31c4e)

![](/blog/understanding-tokenized-us-bonds/ustb.png)

##  [Ondo U.S. Dollar Yield](https://ondo.finance/usdy)

Contract Address - 0x96f6ef951840721adbf46ac996b59e0235cb985c (Ethereum)

Link to token on Bitquery: [https://explorer.bitquery.io/ethereum/token/0x96f6ef951840721adbf46ac996b59e0235cb985c](https://explorer.bitquery.io/ethereum/token/0x96f6ef951840721adbf46ac996b59e0235cb985c)

![](/blog/understanding-tokenized-us-bonds/usdy.png)

# Conclusion

Tokenization essentially converts conventional fixed-income securities into digital assets that provide investors more transparency, liquidity, and accessibility. The motivating forces behind this transition between blockchain technology and traditional banking are the objectives of expediting processes, reducing constantly rising expenditures, and improving investor access.

For fiduciary and strategic reasons, traditional asset originators are increasingly taking on-chain financing into consideration. From a strategic perspective, on-chain financing presents chances to expand the investor base, improve market liquidity, and get access to international financial markets. Reducing transaction costs, boosting transparency, and automating smart contracts to reduce counterparty risk are examples of fiduciary objectives.

Tokenized US bonds are significant because they provide automatic compliance, real-time settlement, fractional ownership, and democratize access to fixed-income assets.

---

Written by Eugene Nnmadi]]></description>
        </item>
        <item>
            <title><![CDATA[The Future of Funds: Analyzing Franklin Templeton's Tokenized Ventures on Polygon]]></title>
            <link>https://bitquery.io/blog/decoding-franklin-templeton-tokenized-funds</link>
            <guid>https://bitquery.io/blog/decoding-franklin-templeton-tokenized-funds</guid>
            <pubDate>Tue, 09 Apr 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
In the traditional setting, the centralized bodies govern the behavior of these assets. For example, for sovereign debt governments issue bonds to raise funds for various purposes, such as infrastructure projects or financing budget deficits and investors purchase these bonds, effectively lending money to the government. The terms and conditions of these bonds, like interest rates, debt management, regulation, and issuance, are all controlled by the government itself.

Similarly, banks provide loans to individuals and businesses for purchasing real estate which are secured by the property itself and involve fixed or variable interest rates. Borrowers make regular payments to repay the principal and interest over the loan term. Mortgages can be securitized into mortgage-backed securities (MBS), which are then traded on financial markets.

This blog will provide an in-depth analysis of the gradual migration of traditional asset classes, such as sovereign debt, commercial and residential mortgages, and corporate loans, onto the blockchain. It highlights the benefits of this transition, including enhanced liquidity and reduced administrative overhead, explores how blockchain technology is reshaping the financial landscape, and discusses Franklin Templeton tokenized funds in-depth, using data from Bitquery.

In the context of this blog, it's essential to establish a clear understanding of the term RWA, which will be frequently referenced throughout our discussions. RWA stands for Real World Asset, which means something that in the current financial landscape falls under the control of traditional financial institutions like Banks or Government, for example, sovereign debt, commercial and residential mortgages, and corporate loans.

## Involvement of blockchain technology

The involvement of blockchain technology in the tokenization of Real World Assets represents a significant evolution in the financial industry. Blockchain's integration into this space has been encouraged by several key factors.

1.  Enhanced Liquidity: By tokenizing RWAs on the blockchain, these assets become divisible into smaller units, allowing for fractional ownership. This fractionalization increases liquidity by enabling investors to trade fractions of assets, thus expanding the pool of potential buyers and sellers. Additionally, blockchain-based trading platforms facilitate 24/7 trading, reducing barriers to entry and enhancing market efficiency.

2.  Reduced Administrative Overhead: Traditional processes for issuing, trading, and managing RWAs involve substantial administrative burdens, including paperwork, intermediaries, and reconciliation processes. Blockchain technology streamlines these processes by automating tasks such as asset transfer, ownership verification, and transaction settlement through smart contracts. This automation reduces administrative overhead, eliminates intermediaries, and accelerates transaction times, resulting in cost savings and improved efficiency.

3.  Increased Transparency and Security: Blockchain's decentralized and immutable ledger provides transparent and tamper-proof records of asset ownership, transactions, and historical data. This transparency enhances trust and confidence among market participants, as they can independently verify the authenticity and integrity of asset information. Additionally, blockchain's cryptographic security features protect against fraud, manipulation, and unauthorized access, safeguarding the integrity of asset transactions and data.

Due to these benefits offered by the on-chain tokenization of RWA, many traditional asset originators are considering on-chain financing for both strategic and fiduciary reasons, thus re-ledgering assets or issuing them natively on-chain.

Also, we have to note that although both tokenized funds and NFTs are a representation of ownership, they differ greatly in terms of basic implementation and use cases.

## Case study of Franklin Templeton tokenized funds

Franklin Templeton is a subsidiary of Franklin Resources, Inc. that offers boutique specialization on a global scale.

The Franklin OnChain U.S. Government Money Fund is the first U.S. registered [mutual fund to use a public blockchain to process transactions and record share ownership](https://www.sec.gov/Archives/edgar/data/1786958/000137949121001250/filing222856581.htm), with one share denoted by one BENJI token, i.e. they bought the bonds issued by the U.S. government, which are the RWAs here, and tokenized them on public blockchains like Ethereum and Polygon, with one BENJI token equivalent to one share of the RWA.

Although the Fund’s transfer agent will maintain the official record of share ownership in book-entry form, the ownership of the Fund’s shares will also be recorded on the blockchain network and in the event of a conflict between the blockchain record and the record held by the transfer agent, the transfer agent’s record will be determinative.

Referring to the website of the company, we see that there are two portfolio managers, Shawn Lyons and Johnson Ng.

![](/blog/decoding-franklin-templeton-tokenized-funds/managers.png)

Figure 1: Source: [Franklin Templeton Website](https://www.franklintempleton.com/investments/options/money-market-funds/products/29386/SINGLCLASS/franklin-on-chain-u-s-government-money-fund/FOBXX)

Because the fund is new, it has no performance history. Once the Fund has commenced operations, you can obtain updated performance information by accessing the information through their App or website.

Here is a snippet for understanding the annual expenditure of the fund.

![](/blog/decoding-franklin-templeton-tokenized-funds/expenses.png)

Figure 2: Source: [sec.gov](https://www.sec.gov/Archives/edgar/data/1786958/000137949121001250/filing222856581.htm)

The contract address of the BENJI token on Polygon Mainnet network is: “0x408a634b8a8f0de729b48574a3a7ec3fe820b00a"

We are running the following queries using Bitquerry APIs:

1.  To get some basic information about the token, such as name, symbol, decimal places and current matic balance, we are running the following query.

[https://ide.bitquery.io/BENJI-token-info](https://ide.bitquery.io/BENJI-token-info)

```
query ($network: EthereumNetwork!, $address: String!) {
  ethereum(network: $network) {
    address(address: {is: $address}) {
      annotation
      address
      smartContract {
        contractType
        currency {
          symbol
          name
          decimals
          tokenType
        }
      }
      balance
    }
  }
}
{
  "network": "matic",
  "address": "0x408a634b8a8f0de729b48574a3a7ec3fe820b00a"
}
```

2.  Next we query the transaction details of the BENJI token smart contract.

[https://ide.bitquery.io/BENJI-token-transactions](https://ide.bitquery.io/BENJI-token-transactions)

```
query ($network: EthereumNetwork!, $token: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transfers(
      currency: {is: $token}
      amount: {gt: 0}
      date: {since: $from, till: $till}
    ) {
      currency {
        symbol
      }
      median: amount(calculate: median)
      average: amount(calculate: average)
      amount
      count
      days: count(uniq: dates)
      sender_count: count(uniq: senders)
      receiver_count: count(uniq: receivers)
      min_date: minimum(of: date)
      max_date: maximum(of: date)
    }
  }
}
{
  "network": "matic",
  "token": "0x408a634b8a8f0de729b48574a3a7ec3fe820b00a"
}
```

The result shown gives us some good insights of how the Franklin OnChain U.S. Government Money Fund functions and operates on the blockchain and also gives us an idea about the average size and count.

![](/blog/decoding-franklin-templeton-tokenized-funds/token_transfers.png)

Figure 4: Result of second query(token transaction details)

From these results we have got some insights that are mentioned in the next section.

### Insights from the token activity

Based on the query results shown above we can say that:

1.  The number of unique senders is only one, which could be the issuer of the token, the address with the permission to mint, burn and distribute these BENJI tokens. This is a standard practice followed in most of the tokenization or token related projects.

2.  One thing that stood out was that there were only 2 unique wallet addresses to which the tokens were sent. It is possible that it belongs to the portfolio team at Franklin Templeton.

3.  Now, as for why the Polygon network is chosen it could be due to the reason that Polygon provides a layer 2 implementation over ethereum blockchain thus providing the security of ethereum along with additional speed and most importantly way less gas fee.

4.  Getting to the numerical data, for the span of around 121 days with 256 transfer transactions the average transfer amount was around 8186 BANJI tokens however the median transfer amount was around 31 tokens.

## Conclusion

With over $1B worth of U.S. treasury being tokenized and available for sale to common man in the form of tokens on blockchain, we could say tokenization is the need of the hour and Franklin OnChain U.S. Government Money Fund with its head start in the race is still leading as the biggest player of the space with around $360M from the total pool. An end user must know that these projects would continue to grow in future and should have some surface level knowledge of these projects, regardless of whether they invest in them or not.

---

Written by Kshitij Mahajan
]]></description>
        </item>
        <item>
            <title><![CDATA[From Uniswap to SushiSwap: A Deep Dive into Ethereum's DEX Ecosystem]]></title>
            <link>https://bitquery.io/blog/uniswap-sushiswap-ethereum-dex-ecosystem-deep-dive</link>
            <guid>https://bitquery.io/blog/uniswap-sushiswap-ethereum-dex-ecosystem-deep-dive</guid>
            <pubDate>Thu, 04 Apr 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Decentralized exchanges (DEXs) have emerged as a fundamental component within the Ethereum ecosystem, revolutionizing the way digital assets are traded. Unlike centralized exchanges, which rely on a central authority to match buyers and sellers and hold users' funds in centralized wallets, DEXs operate on a distributed network of nodes. This allows users to retain ownership of their assets throughout the trading process and execute transactions directly from their digital wallets.

Let’s take a look at how the DEX space plays out in the Ethereum ecosystem.

## Top 5 Decentralized Exchanges (DEXs): A Comparative Overview

Decentralized exchanges (DEXs) are disrupting the traditional model of cryptocurrency trading. Unlike centralized exchanges, DEXs facilitate peer-to-peer trading without intermediaries, offering greater control over your assets and potential anonymity. If you're venturing into the realm of DEXs, here's a breakdown of the top 5 players and what sets them apart.

### 1. Uniswap: The Established Giant

Uniswap stands as a titan in the DEX landscape, particularly on the Ethereum network. Its core strength lies in its Automated Market Maker (AMM) model, where liquidity pools replace traditional order books. This enables seamless token swaps without relying on buyers and sellers directly matching orders. Uniswap boasts a vast selection of tokens and significant trading volume, contributing to its often competitive pricing.

### 2. SushiSwap: Fork with a Twist

SushiSwap began as a fork of Uniswap, but it has carved its own niche. SushiSwap incentivizes liquidity providers with its native SUSHI token. Holders also gain a voice in governance decisions. SushiSwap often offers a wider range of less-established tokens, attracting those seeking exposure to newer crypto projects.

### 3. PancakeSwap: The Binance Smart Chain Heavyweight

PancakeSwap is the dominant DEX of the Binance Smart Chain (BSC). Similar to Uniswap, it utilizes an AMM model for smooth trades. PancakeSwap distinguishes itself through features like yield farming, lotteries, and NFT integrations. While BSC-based, PancakeSwap often has lower fees compared to the Ethereum-focused DEXs.

### 4. Curve Finance: Stablecoin Specialist

Curve Finance zeroes in on providing deep liquidity and efficient swaps for stablecoins (e.g., USDC, DAI) and other pegged assets. Its specialized algorithm is tailored for maintaining minimal price slippage during stablecoin trades. If your trading strategy centers around stablecoins, Curve Finance is likely top of the list.

### 5. Balancer: The Customizable AMM

Balancer extends the AMM (Automated Market Maker) concept with greater flexibility. Liquidity providers can create pools with up to eight tokens instead of the standard two-token model. They can also customize the weighting of tokens within the pool. This functionality opens up possibilities for sophisticated liquidity provision strategies.

### DEX Trading Comparison by Number of Trades and Trade Growth over 24 hrs

![](/blog/uniswap-sushiswap-ethereum-dex-ecosystem-deep-dive/table_24h_tradeGrowth.png)

The above table shows [trades done over 24 hours in the top 5 DEXs](https://explorer.bitquery.io/ethereum/dex_protocols_v2). We see that Uniswap v2 has the most growth exceeding 3,147 % with the largest trading volume in that period followed by Curve.

![](/blog/uniswap-sushiswap-ethereum-dex-ecosystem-deep-dive/24hrtrade.png)

Moreover, while looking at comprehensive stats, the following plot depicts the [number of trade takers recorded over seven days](https://ide.bitquery.io/dex-trades-over-24-hrs), from March 5th, 2024 to March 11th, 2024, suggesting a general increase from around 55,000 trade takers on March 5th to nearly 75,000 on March 11th.

![](/blog/uniswap-sushiswap-ethereum-dex-ecosystem-deep-dive/daily%20trade.png)

### DEX Trading Volumes in Two Months

![](/blog/uniswap-sushiswap-ethereum-dex-ecosystem-deep-dive/table_tradingVolume.png)

Using [Bitquery DEX API](https://ide.bitquery.io/Amount-of-dex-trades-over-2-months), we can analyze top 5 decentralized exchange (DEX) platforms by trading volume. Uniswap leads the list with over 1.5 million trades and a staggering [trade amount](https://ide.bitquery.io/top-exchanges-by-traded-amount-over-two-months) of $94.27 billion, experiencing a trade growth of 389,547.25%. SushiSwap follows closely with 22,527 trades and $105.72 billion in trade volume. PancakeSwap, Balancer, and Zerox Exchange also demonstrate significant trading activities. These DEX platforms play a crucial role in the decentralized finance (DeFi) ecosystem, providing users with decentralized trading options for various cryptocurrencies and tokens.

The growth trend is also in favor of UniswapV3. Nonetheless, SushiSwap and Curve Finance exhibit significant trading volume. This indicates they are strong contenders attracting a sizeable portion of DEX users.

![](/blog/uniswap-sushiswap-ethereum-dex-ecosystem-deep-dive/volumetrend.png)

### Dex Daily User Activity: A Snapshot of a Week

Decentralized Exchanges (DEXs) are becoming increasingly popular for trading cryptocurrencies without relying on centralized platforms. Understanding user activity across different DEXs can be insightful for investors and developers. This analysis dives into the estimated total number of users on various DEXs in the last 24 hours,

![](/blog/uniswap-sushiswap-ethereum-dex-ecosystem-deep-dive/totaluser.png)

The dominance of PancakeSwap with an estimated 1.8 million users in the last 24 hours. SushiSwap follows with a significant presence at 420,000 users. Uniswap (v3) and Quickswap hold positions as established players with user bases exceeding 200,000 in this hypothetical day. Curve and Theta round out the chart with user estimates of 110,000 and 75,000 respectively.

![](/blog/uniswap-sushiswap-ethereum-dex-ecosystem-deep-dive/table_users.png)

While this data offers a snapshot, it highlights potential trends. PancakeSwap's substantial user base suggests it caters to a broader audience or offers features attractive to a larger user pool. SushiSwap's strong presence indicates its continued relevance in the DEX landscape. Notably, Uniswap (v3) figures suggest healthy user adoption despite being a newer version of the popular Uniswap protocol.

Upward trends are present but not as significant as those of Uniswap v2. Events such as the launch of Uniswap v3 in the past and Pancakeswap version 4 could be contributing factors.

Examining various metrics like user growth, trading volume, and trade count provides a multi-faceted view of Decentralized Exchange (DEX) popularity. While Uniswap v2 emerges as a leader in several aspects, with the highest user growth and potentially the most trade volume and taker activity within the analyzed periods, other DEXes like SushiSwap, PancakeSwap, and Curve Finance showcase significant presence as well.

The dominance of DEXs in the trade count metric further suggests a potential shift in user preference towards decentralized trading platforms. It's important to remember that the data represents limited timeframes, and long-term analysis would be crucial for solidifying these trends. Additionally, factors like specific DEX features, external market conditions, and user behavior should be explored for a more comprehensive understanding of the evolving DEX landscape.


-----

Blog written by Kshitij M]]></description>
        </item>
        <item>
            <title><![CDATA[How to Find Ethereum Whales and Follow Their Money]]></title>
            <link>https://bitquery.io/blog/how-to-find-ethereum-whales-follow-money</link>
            <guid>https://bitquery.io/blog/how-to-find-ethereum-whales-follow-money</guid>
            <pubDate>Thu, 28 Mar 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Crypto whales are influential entities in the cryptocurrency ocean. Seasoned investors understand that whale watching is a necessary tool they need in their toolbox. Although whales do not control the crypto space, they wield a significant power that affects market dynamics.

They are individuals or entities that hold a significant amount of a crypto token, either fungible or non-fungible. Their large holding gives them the power to influence market sentiment and move the market however they want. Any activity can cause a ripple effect on the price of the token they are holding.

### How do you identify a Crypto Whale?

Being identified as a whale is subjective to your portfolio and the token's market cap. That is, the requirement differs based on the market capitalization of the token you hold.

The requirement to be referred to as a crypto whale in the Bitcoin or Ethereum community isn't the same as any low-cap token. But the benchmark is that a crypto whale should hold at least 10% of a small market cap token or a minimum of $10 million for a large market cap token.

For example, an individual with $1 million in a $100 million market cap token has the power to influence the market dynamics of the token. However, an individual that holds the same amount ($1 million) of a token with a market cap of $20 billion isn't a whale because their portfolio can’t influence the market dynamics.

### Who, then, is an Ethereum Whale?

An Ethereum whale holds a significant amount of the Ethereum token enough to influence the market dynamics of the Ethereum ecosystem.

Although some crypto whales are known, most of them are usually anonymous. However, with the blockchain's decentralization, openness, and immutability, you can see their total holdings and follow their activities.

In this article, we’ll walk you through how to discover Ethereum whales and follow their activities. Without further ado, let’s get started.

## Top Five Reasons to Follow Whale Activities : How do I see what crypto whales are buying?

Ethereum whales with sizable holdings can influence market sentiments and direction with their buy and sell actions. While it’s not all you should focus on, monitoring whale activities can be a significant part of your crypto investment research toolbox.

Sometimes, deciding profitable trades can be challenging, but with whale tracking, you can identify market trends and make reasonable decisions with ease.

Here are reasons to follow whale activities.

1.  ### Gain Market Insighs

Experienced cryptocurrency investors and traders believe that crypto whales, because of their holdings, have access to market insights and insider knowledge. So, they usually make decisions that maximize their profit and reduce their loss.

When you track whales and follow their activities, you have first-hand information to make decisions that give you advantages over others and enable you to maximize your profit and minimize your loss.

For instance, when you monitor a whale’s wallet activities, you can easily time your entry and exit into a trade.

2.  ### Vigilance in Trading: Recognizing Market Manipulation

Market manipulation is, no doubt, one of the viruses that's plaguing web3 and the crypto world at large. With Whale watching, experienced crypto traders and investors can research projects and activities of whales that might seem like market manipulation.

Because of whales' sizable holdings, they often make significant trades that easily stand out from regular market activities. However, with the transparency and immutability of the blockchain, you can see activities and trace them back to their origin.

And by this, you can check their past activities, observe their moves, analyze their intentions, and check what other whales are up to.

3.  ### Network Health

The ethos of the crypto world is decentralization. But whales can be a threat to it because of their sizable holdings. Monitoring the activities of whales can give you insight into the health of a token or crypto network.

Most blockchain projects are community-governed, and your holding determines the strength of your votes and the power you wield in decision-making. The more the concentration of whales in a project, the more centralized the project decision-making can be.

Moreover, if a whale sits on a large percentage of a token, they can influence the price movements through their actions.

For example, say ten wallets hold 40% of a token. These ten accounts can direct the movement of a token.

4.  ### Trading Signal

Crypto whales have a lot in common with large owners of company shares — they both have the power to influence the market. A whale’s action or movement of their holdings can spark a ripple effect among other investors. They usually carve the part for smaller investors to navigate.

When you follow their activities, you can predict what the market sentiment will look like. And being early to the show can put you ahead of others. When you see a large buy or sell order, you can follow suit to maximize your profit or minimize your loss.

For instance, seeing several Ethereum whales moving a large percentage of their portfolio from their decentralized wallet to exchanges signifies that they’ll likely dump the token. Seeing this can help you make a reasonable decision to avoid loss.

5.  ### Portfolio Management

The crypto world is vast, and researching a promising project can be overwhelming to investors and traders. Watching whales can help you make reasonable portfolio management decisions.

While monitoring whales' activities, don't just follow their activities stone-blind. Always remember to Do Your Own Research(DYOR).

## How to Find Ethereum Whales and Follow Their Money?

We assume you now understand who a crypto whale is. And so, they're easier to detect and track.

However, for emphasis, a whale is an individual who holds about $10 million worth of a particular token or about 10% of a token, depending on the token market cap. With this definition in mind, our next objective is to identify these whales' wallets. This is achieved by accessing data from the Ethereum blockchain.

You can track and analyze crypto whale activities on the blockchain via blockchain explorers and/or data analytics platforms like Bitquery.

In this article, we’ll track whales and follow their activities using Bitquery APIs.

Bitquery is a data infrastructure company that indexes, analyzes, and provides blockchain data. With access to over 40 popular chains and 100+ DEXes, you can retrieve needed information from any supported chains or DEXes.

This API-first data product firm makes it easier for investors, traders, and analysts to track whale wallets and monitor their activities.

![steps](/blog/how-to-find-ethereum-whales-follow-money/1.png)

### Filter Ethereum Wallets

The first step to whale-watching is having a definite description of who a crypto whale is. And from previous sections, we’ve identified who a whale is — an individual or entity who holds either 10% or more of the total market cap of a token in circulation or over $10 million of a token with a large market cap.

So, in this article, because of Ethereum's large market cap, we’ll consider anyone with $10 million or more worth of TetherUSD in their wallet as a whale.

Now that we’ve defined our mark, let's find their wallet. We will pull data based on our requirement from the Ethereum blockchain using the Bitquery Token Holder API. To get started on using the APIs, [sign up for free here](https://account.bitquery.io/auth/signup). Full docs available [here](https://docs.bitquery.io/docs/intro/).

The Bitquery Token Holder API lets you track the information of both Ethereum fungible and non-fungible token holders. This API provides you access to the current holder data for the Ethereum token and their wallet information.

The [query](https://ide.bitquery.io/Token-Holders-API_1) below retrieves information about the holders of Ethereum tokens (ETH) with wallet balances equal to or greater than $10 million as at 20th March, 2024. This query returns the top 20 accounts in descending order based on their wallet balance. You can adjust the parameters to get the latest data. 

```
query MyQuery {
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2024-03-20"
      tokenSmartContract: "0xdAC17F958D2ee523a2206206994597C13D831ec7"
      where: {Balance: {Amount: {ge: "10000000"}}}
      limit: {count: 20}
      orderBy: {descending: Balance_Amount}
    ) {
      Balance {
        Amount
      }
      Holder {
        Address
      }
    }
  }
}

```

### Tracking the Whales Account Activities

The purpose of monitoring a whale’s wallet is to track their activities and gain insight into their strategies and moves. So, finding and identifying a whale's wallet is just one-quarter of what’s needed to build your whale-tracking toolkit.

Tracking whales’ account activities will give you insight into their interests and sentiments about a particular token. The Bitquery Address Balance History API is the best tool for this job. You’d learn to analyze their portfolio and understand how it has evolved.

The Address Balance History API lets you retrieve detailed information about your selected wallet. With this API, you gain access to their different portfolios and balances.

Knowing what they hold gives you insight into their beliefs and sentiments. You’d also gain a deep insight into how their wallet has evolved. Tracking the balance update over time will give you insight into their activities over a certain period.

The query below allows you to [monitor significant balance updates](https://ide.bitquery.io/wallet-balance-update) (exceeding 100,000) over time for a specific whale wallet (address: 0x66e092fd00c4e4eb5bd20f5392c1902d738ae7bc).

```
query MyQuery {
  EVM(dataset: combined, network: eth) {
    BalanceUpdates(
      where: {BalanceUpdate: {Address: {is: "0x66e092fd00c4e4eb5bd20f5392c1902d738ae7bc"}}}
      orderBy: {descendingByField: "balance"}
    ) {
      Currency {
        Name
      }
      balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "100000"})
      BalanceUpdate {
        Address
      }
    }
  }
}

```

The query below gives you insight into the [frequency of balance updates](https://ide.bitquery.io/whale-balance-updates)  by the whale with this address. You retrieve an aggregate figure to know if you need to further your analysis into the Whale activities.

```
query MyQuery {
  EVM(dataset: archive, network: eth) {
    BalanceUpdates(
      where: {BalanceUpdate: {Address: {is: "0x66e092fd00c4e4eb5bd20f5392c1902d738ae7bc"}}}
      limit: {count: 10}
      orderBy: {descendingByField: "no_of_updates"}
    ) {
      Currency {
        Name
        SmartContract
      }
      no_of_updates:count
    }
  }
}

```

### Tracking Frequency of Trades and Transfer Activities

Gaining insight into their wallet holding lets you understand the way they think. You also learn more about their strategies and if their beliefs align with your investment goals. While that’s great, you also need to check the activity level of the whale.

The DEXTrades API enables you to track the whale's frequency of trades and their activity level. With this API and queries, you learn about their activities.

The [DEX Trades API](https://ide.bitquery.io/count-of-transaction) below gives you insight into the frequency of trade activities by the whale with this address. You retrieve an aggregate figure to know if you need to further your analysis into the Whale activities.

```
{
  EVM(dataset: combined, network: eth) {
    buyside: DEXTrades(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Buy: {Buyer: {is: "0x66e092fd00c4e4eb5bd20f5392c1902d738ae7bc"}}}}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        From
        To
        Hash
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Seller
          Price
        }
      }
    }
    sellside: DEXTrades(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Buy: {Buyer: {is: "0x66e092fd00c4e4eb5bd20f5392c1902d738ae7bc"}}}}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        From
        To
        Hash
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Seller
          Price
        }
      }
    }
  }
}


```


This [query](https://ide.bitquery.io/amount-transacted-onchain) also retrieves information about the total amount received and sent out by the whale.

```
{
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2024-03-22"
      tokenSmartContract: "0xdAC17F958D2ee523a2206206994597C13D831ec7"
      where: {Holder: {Address: {is: "0x66e092fd00c4e4eb5bd20f5392c1902d738ae7bc"}}}
    ) {
      BalanceUpdate {
        InAmount
        OutAmount
      }
      Holder {
        Address
      }
    }
  }
}

```

The above queries provide an insightful analysis of the frequency of trades. We saw that as at 2024-03-22, this whale has over 20,000 onchain transaction count with over six billion dollars on transacted amount. This information showed us the activity level of this whale.

### Checking Whales Activities in Realtime

You’ve gained insight into what they’re holding, their activity level, and the type of token they hold. It’s time to review their activities and analyze what they are doing to help you make insightful decisions.

The Token Transaction API lets you retrieve the whale’s on-chain transaction information.

Use the query below to [track transfers in realtime](https://ide.bitquery.io/track-whale-transfers-realtime). Gain insight into their recent activities with the USDT token.

```
subscription {
  EVM(network: eth) {
    Transactions(
      limit: {count: 100}
      where: {Transaction: {From: {is: "0x66e092fd00c4e4eb5bd20f5392c1902d738ae7bc"}}}
    ) {
      Block {
        Time
        Number
      }
      Transaction {
        Hash
        Cost
      }
    }
  }
}


```

A token transfer to an exchange wallet shows the whale is moving their funds to centralized exchanges, which could signify an exodus.

While transfer from the exchange to their DEX wallet shows a different outlook.

Note: always DYOR and never follow whales sightless.

### Monitoring Their Onchain Buy and Sell activities

Although whales might move their tokens off-chain, most whales don’t have to move their crypto holding off-chain, to CEXes, to execute trades.

Sophisticated whales decide to transact on-chain. They use DEXes to execute their trades on-chain anonymously. So this is why you should also monitor their on-chain buy/sell/mint activities.

In this section, we’ll go through ways to retrieve on-chain information about whales who decided to conduct transactions through DEXes and different decentralized platforms.

The Bitquery Address Trade API helps retrieve data about a whale's DEX activities of a whale. You can retrieve information about their buy/sell activities using the query below.

The [Wallet DEXTrades API](https://ide.bitquery.io/DEX-transaction) retrieves information where the whale is a buyer or seller of a particular token.

```
{
  EVM(dataset: combined, network: eth) {
    buyside: DEXTrades(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Buy: {Buyer: {is: "0x66e092fd00c4e4eb5bd20f5392c1902d738ae7bc"}}}}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        From
        To
        Hash
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Seller
          Price
        }
      }
    }
    sellside: DEXTrades(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Buy: {Seller: {is: "0x66e092fd00c4e4eb5bd20f5392c1902d738ae7bc"}}}}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        From
        To
        Hash
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Seller
          Price
        }
      }
    }
  }
}

```

With the query above, you gain insight into what the whale is up to On-chain. The query retrieves transactions conducted On-chain

## Case Study: How To Find Ethereum Whales and Follow Their Money

Based on the previous section, we’ve shown you how to track whales and follow their money using different Bitquery APIs.

However, to understand what whale tracking is like using Bitquery APIs, we’ll go through the processes together, analyzing an Ethereum Whale.

1.  ### Finding an Active Whale Wallet

First, we find a wallet that fits into our description of whale — a wallet with a minimum of $10,000,000 worth of Ethereum or TetherUSD (USDT). The [query](https://ide.bitquery.io/Ethereum-Whale-Wallet) below returned a wallet based on our requirements.

```
query MyQuery {
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2024-03-26"
      tokenSmartContract: "0xdAC17F958D2ee523a2206206994597C13D831ec7"
      where: {Balance: {Amount: {eq: "10000000"}}, BalanceUpdate: {Count: {ge: "100"}, LastDate: {after: "2024-03-20"}}, Currency: {}}
      limit: {count: 20}
    ) {
      Holder {
        Address
      }
      Balance {
        Amount
      }
    }
  }
}

```

The query above searched for USDT holders as at 2024-03-26,

where:

- Their USDT balance is 10,000,000USDT,
- The total Transaction count is not less than 100
- And the last transaction date is after 2024-03-20
- The limit means that only 20 wallet information should be returned.

After we run the query, it returns a single wallet information that meets all our requirements.

Here is the result returned.

```
{
  "EVM": {
    "TokenHolders": [
      {
        "Balance": {
          "Amount": "10000000.000000"
        },
        "Holder": {
          "Address": "0x3f08f17973ab4124c73200135e2b675ab2d263d9"
        }
      }
    ]
  }
}

```

Note: Changing any of the parameters above would also change the result returned. Instead of returning a single account information, it could return up to 20 accounts, giving you the flexibility to pick an account that fits you best.

2.  ### Tracking the Wallet’s account activities

It’s one thing to find an account, it’s another thing for the whale to be recently active on the chain. So, our next step is to check the activity level of the wallet address that the previous query returned.

Note: if we have more than one wallet address returned, we’ll go through each wallet to find one that meets our requirements.

With the Address Balance History API, we’ll track the whale’s account activities. With this query, we’ll be able to understand their sentiments, beliefs, and model of the crypto world. We also answer questions concerning their investment strategies.

Here is the query used to pull their [account activity from the blockchain](https://ide.bitquery.io/whale-account-activities).

```

query MyQuery {
  EVM(dataset: archive, network: eth) {
    BalanceUpdates(
     where: {BalanceUpdate: {Address: {is: "0x3f08f17973ab4124c73200135e2b675ab2d263d9"}}}
     limit: {count: 3}
     orderBy: {descendingByField: "balance"}
    ) {
      Currency {
        Name
      }
      balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "50000"})
      BalanceUpdate {
        Address
      }
    }
  }
}

```

The query above will return the list of the account transactions, currency name, token balance, and the smart contract of the token. A little research into the results and the token names, their smart contracts returned showed that the whale invested most of their funds in meme tokens.

However, if your sentiment aligns with the whales, you can go ahead with your research, else go back and look for another account.


3.  ### Track the Frequency of Trades and Activities

Once we went through the wallet activities and realized the whale believes and sentiment aligns with ours, our next process is to analyze the wallet further for a deeper insight into the activity level of the wallet.

With this query to [track frequency of trade](https://ide.bitquery.io/insight-into-the-whale-wallet), you can gain insight into the wallet's behaviour.

```

{
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2024-03-26"
      tokenSmartContract: "0xdAC17F958D2ee523a2206206994597C13D831ec7"
      where: {
        Holder: {
          Address: { is: "0x3f08f17973ab4124c73200135e2b675ab2d263d9" }
        }
      }
    ) {
      BalanceUpdate {
        FirstDate
        InAmount
        LastDate
        OutAmount
      }

      BalanceUpdate {
        transactions: Count
      }

    }
  }
}

```

The query above returns all transactions where the whale is the sender. It’d return the receiver of the token, the block hash, the value of the token sent, and the gas used. With this information, we can gain insight into the movement of the whale funds on- and off-chain.

Here is the result returned:

```
{
  "EVM": {
    "TokenHolders": [
      {
        "BalanceUpdate": {
          "FirstDate": "2021-12-30",
          "InAmount": "318907385.671756",
          "LastDate": "2024-03-25",
          "OutAmount": "308907385.671756",
          "transactions": "627"
        }
      }
    ]
  }
}
```

The information above showed us that the first transaction date on the account was on 30th of December 2021, and the last date is 25th March, 2024. The total amount received and sent over the lifespan of the account is over 318 million USDT and 308 million USDT respectively. The total transaction count over the course of the account is 627.

The result above showed us the activity level of the account.

4.  ### Keeping up with the Whale in Realtime

After a little research, we’ve learned a lot about our whale account. Even though we don’t know the individual behind the account, we’ve learned a lot about their beliefs, sentiments, and investment strategies. Now let’s track their in realtime activities to make investment decisions we’d like to make.

```
subscription {
  EVM(network: eth) {
    Transactions(
      where: {Transaction: {From: {is: "0x3f08f17973ab4124c73200135e2b675ab2d263d9"}}}
      limit: {count: 40}
      orderBy: {descending: Transaction_Value}
    ) {
      Transaction {
        To
        Hash
        Value(selectWhere: {gt: "1000"})
      }
      Receipt {
        GasUsed(selectWhere: {le: "30"})
      }
    }
  }
}

```

The [query](https://ide.bitquery.io/reviewing-whale-activities) above returns all transactions where the whale is the sender. It’d return the receiver of the token, the block hash, the value of the token sent, and the gas used. With this information, we can gain insight into the movement of the whale funds on- and off-chain.

You can look through the result returned and do further research into any transaction that piques our interest using the block hash, or the receiver’s wallet address.

5.  ### Monitoring Whale’s On-Chain Activities

Some whales are so sophisticated that they transact on-chain using DEXes. This is why we should also monitor the on-chain transactions of this whale. This lets you gain insight into their activities on-chain — the type of tokens they buy or sell on DEXes.

The query below will return the DEX transactions where the whale is a seller. The [query](https://ide.bitquery.io/onchain-activities-monitoring) will return the amount transacted, currency name and smart contract, and the buyer's information.

```
query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Sell: {Seller: {is: "0x3f08f17973ab4124c73200135e2b675ab2d263d9"}}}}
    ) {
      Trade {
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
          }
        }
      }
    }
  }
}

```

After running this query, we discovered that the whale with the wallet address(0x3f08f17973ab4124c73200135e2b675ab2d263d9) doesn’t trade onchain.

However, if after running the query above for a different wallet address, and it returns a list of transactions, you should go through the transactions to discover the pattern of their money flow and recent transactions that could signify trading signals.

## Conclusion

Whale Tracking should be an important tool in your toolkit. Apart from helping you make informed decisions, it’s even a great tool to know what’s trending in the fast track crypto world. While this tool is important, you should also be careful with your discoveries. Always do extensive research before implementing strategies. Use your whale tracking discoveries as a starting point, rather than end point, for your strategies.


## About Bitquery

[Bitquery](https://bitquery.io/) is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

- APIs - [Explore API](https://ide.bitquery.io/streaming): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

- Coinpath® - Try [Coinpath](https://bitquery.io/products/coinpath): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

- Data in Cloud - Try [Demo Bucket](https://bitquery.io/products/data-on-demand?): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

- Explorer - Try [Explorer](http://explorer.bitquery.io/): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.



---

*Blog Written by Emmanuel*]]></description>
        </item>
        <item>
            <title><![CDATA[Understanding Solana: A Comprehensive Exploration of Instructions and its Types]]></title>
            <link>https://bitquery.io/blog/inside-solana-instructions-types-exploration</link>
            <guid>https://bitquery.io/blog/inside-solana-instructions-types-exploration</guid>
            <pubDate>Mon, 25 Mar 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Solana is a blockchain platform designed for high-speed and low-cost transactions, making it ideal for decentralized applications (DApps). We need Solana because it addresses scalability issues faced by other blockchain networks, allowing for faster and cheaper transactions. In the blockchain space, Solana's significance lies in its ability to support a wide range of DApps while maintaining efficiency and security.

[Bitquery Solana APIs](https://bitquery.io/blockchains/solana-blockchain-api) help analyzing Solana instructions, enabling developers and researchers to explore and understand transactional data on the Solana blockchain easily. In this blog, we will use these APIs to see in detail about the nature of Solana instructions and their types.

## Overview of Solana’s transactions and instructions.

### What are Solana Instructions?

Solana Instructions are commands or operations that dictate specific actions within the Solana blockchain, such as transferring tokens, executing smart contracts, or updating data.

### Why do we need Solana Instructions?

We need Solana Instructions to interact with and utilize the functionalities provided by the Solana blockchain. They serve as the fundamental building blocks for performing various tasks and transactions within decentralized applications (DApps) and smart contracts.

We use Solana Instructions wherever there is a need to execute specific actions on the Solana blockchain. This could include sending tokens, deploying smart contracts, interacting with decentralized finance (DeFi) protocols, or any other activity that requires blockchain-based computation.

To utilize Solana Instructions, developers typically engage with the Solana blockchain via its software development kits (SDKs), command-line interfaces (CLIs), or directly through smart contracts. Through these interfaces, users provide the necessary parameters and invoke specific instructions to execute desired actions on the Solana network.

### What is a transaction and how is it related to instruction?

A transaction is like a complete package of actions or operations that a user wants to perform on the Solana blockchain. It typically includes multiple instructions bundled together. For example, if you want to send tokens and update some data on the blockchain, you would combine these actions into a single transaction.

It is made up of one or more instructions, and each instruction represents a specific action or task within that transaction.

As transactions occur on the Solana blockchain, data is recorded in tables. Raw Solana tables initially present this data in an encoded format, which can be complex for human users to decipher. However, by decoding these tables, the information is transformed into a more human-readable format, facilitating easier interpretation and understanding. This decoding process ensures that users can effectively analyze and extract meaningful insights from Solana transactional data, aiding in various development, research, and analytical endeavors.

![](/blog/inside-solana-instructions-types-exploration/inst.png)

We require raw and decoded Solana tables for effective analysis and comprehension of Solana transactions and instructions. Raw tables offer a detailed view of the underlying data structure, while decoded tables simplify the information for easier interpretation, aiding developers, researchers, and analysts in understanding transactional data and identifying relevant details.

### Introduction to Solana's instruction columns

Solana's instruction column is a key component of its blockchain technology. It's like a set of instructions that tell the Solana network what actions to take. Think of it as a recipe book for the blockchain.

We need this instruction column because it helps the Solana network understand what users want to do. Whether it's transferring tokens, executing a smart contract, or any other action on the blockchain, these instructions guide the network in performing those tasks efficiently.

We use the instruction column whenever we interact with the Solana blockchain. For instance, when you send tokens to someone, your wallet sends an instruction to the Solana network through this column, telling it to deduct tokens from your account and add them to the recipient's account.

Now, let's break down the meanings of some common instruction types in Solana:

**Solana Transfer Info**

This instruction tells the network to move tokens from one account to another. It's like transferring money from one bank account to another.

The query below retrieves detailed information about a single transfer instruction executed on the Solana blockchain at a specific block height. It fetches data such as the block height, timestamp, transaction details including signature, fee payer, and success status, program information including ID, name, and parsed name, and log details such as the total gas consumed during the transaction. The query is limited to fetching the transfer instruction at the specified block height.

open this [query](https://ide.bitquery.io/Single-Transfer-Instruction-Details-at-Block-Height) in IDE

```
{
  solana(network: solana) {
    instructions(
      options: {limit: 1, desc: "block.timestamp.time"}
      parsedActionName: {in: ["transfer"]}
      height: {is: 254313029}
    ) {
      block {
        height
        timestamp {
          time
        }
      }
      transaction {
        signature
        feePayer
        success
      }
      program {
        id
        name
        parsedName
      }
      log {
        totalGas
      }
    }
  }
}

```

**Delegate**

With this instruction, you're assigning someone else to handle certain tasks or decisions on your behalf. In Solana, it's often used for staking or voting.

This query aims to retrieve the signature and success status of the most recent successful "Delegate" instruction on the Solana blockchain occurring after March 20, 2024.

open this [query](https://ide.bitquery.io/Delegation_for_Voting) in IDE

```
{
  solana(network: solana) {
    instructions(
      options: {limit: 1, offset: 1, desc: "block.height"}
      parsedActionName: {in: ["delegate"]}
      success: {is: true}
      time: {after: "2024-03-20"}
    ) {
      transaction {
        signature
        success
        transactionIndex
      }
      externalAction {
        name
        type
      }
      external
      block {
        height
      }
    }
  }
}


```

**Create Account**:

This instruction tells the network to create a new account. Just like opening a new bank account, but on the blockchain.

This query retrieves the signature and success status of the second most recent "createAccount" instruction on Solana occurring at a block height.

Open this [query](https://ide.bitquery.io/create-account-instruction) in IDE

```
{
  solana(network: solana) {
    instructions(
      options: {limit: 1, offset: 1}
      parsedActionName: {in: ["createAccount"]}
      height: {is: 255934467}
    ) {
      transaction {
        signature
        success
      }
      accountsCount
      action {
        name
        type
      }
      externalAction {
        type
        name
      }
      externalProgram {
        parsedName
        name
        parsed
        id
      }
    }
  }
}

```

**Close Account**
Opposite of "Create Account," this instruction tells the network to close an existing account.

Open this [query](https://ide.bitquery.io/Close-account-instruction) in IDE

```
{
  solana(network: solana) {
    instructions(
      options: {limit: 1, offset: 1, desc: "block.height"}
      parsedActionName: {in: ["delegate"]}
      success: {is: true}
      time: {after: "2024-03-20"}
    ) {
      transaction {
        signature
        success
        transactionIndex
      }
      externalAction {
        name
        type
      }
      external
      block {
        height
      }
    }
  }
}

```

**Token Minting**

This query retrieves Solana instructions related to token minting operations within a specified time range. It filters instructions associated with actions like initializing a mint, minting tokens, creating accounts, and more. Additionally, it only considers successful instructions from the "spl-token" program. The query returns details such as block height, program ID, transaction signature, and external program ID.

open this [query](https://ide.bitquery.io/New-Programs---Tokens---Solana) in IDE

```
query ($network: SolanaNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  solana(network: $network) {
    instructions(
      options: {desc: "block.height", limit: $limit, offset: $offset}
      time: {since: $from, till: $till}
      parsedActionName: {in: ["initializeMint", "mintTo", "create", "initializeImmutableOwner", "createAccount"]}
      success: {is: true}
      parsedProgramName: {is: "spl-token"}
    ) {
      block {
        height
      }
      program {
        id
      }
      transaction {
        signature
      }
      externalProgram {
        id
      }
    }
  }
}
{
  "limit": 100,
  "offset": 0,
  "network": "solana",
  "from": "2024-03-11T13:57:23.000Z",
  "till": "2024-03-11T18:12:23.999Z",
  "dateFormat": "%Y-%m-%d"
}
```

These instructions are the building blocks of interactions on the Solana blockchain, allowing users to perform various actions securely and efficiently.

Other important queries to understand Solana’s instructions.

1.  Retrieve Successful Transactions within a Time Range:

This query fetches data about recent instructions on the Solana mainnet blockchain during a specific timeframe. It targets transactions and includes details like transaction signatures and whether they were successful

open [this](https://ide.bitquery.io/Retrieve-Successful-Transactions-within-a-Time-Range) query in IDE

```
{
  solana(network: solana) {
    instructions(
      options: {limit: 10, desc: "block.timestamp.time"}
      time: {since: "2024-01-01T00:00:00Z", till: "2024-01-02T00:00:00Z"}
    ) {
      transaction {
        signature
        success
      }
      accountsCount
      action {
        name
        type
      }
      externalAction {
        type
        name
      }
      externalProgram {
        parsedName
        name
        parsed
        id
      }
      block {
        timestamp {
          time
        }
      }
    }
  }
}


```

2.  Recent Solana Instructions Analysis

This query fetches data about recent instructions on the Solana mainnet blockchain during a specific timeframe. It captures information about programs involved in these instructions and includes transaction signatures associated with them.

open this [query](https://ide.bitquery.io/Recent-Solana-Instructions-Analysis#) in IDE

```
{
  solana(network: solana) {
    instructions(
      options: {limit: 2}
      time: {since: "2024-01-01T00:00:00Z", till: "2024-01-02T00:00:00Z"}
    ) {
      program {
        id
      }
      transaction {
        signature
      }
    }
  }
}

```

3.  Solana Financial Transaction Details

This query focuses on retrieving specific details of financial transactions within the Solana network. It captures transaction signatures, fee payers, and success statuses, providing developers with essential insights into recent financial activities on Solana.

open this [query](https://ide.bitquery.io/Solana-Financial-Transaction-Details_1) in IDE

```
{
  solana(network: solana) {
    instructions(options: {limit: 2}, height: {gt: 254067096}) {
      transaction {
        signature
        feePayer
        success
      }
    }
  }
}

```

4. Retrieve Token Transfer Transactions

This query fetches information about the last 10 transfers of the SOL token on the Solana network after a specific block height. It includes details such as the sender's and receiver's addresses, transaction signature and fee, date of the transaction, and the timestamp of the block in which the transaction occurred.

Open this [query](https://ide.bitquery.io/Retrieve-Token-Transfer-Transactions) in IDE

```

{
  solana(network: solana) {
    transfers(
      currency: {in: "SOL"}
      height: {gt: 254073030}
      options: {limit: 10, desc: "block.timestamp.time"}
    ) {
      sender {
        address
      }
      receiver {
        address
      }
      transaction {
        recentBlockHash
        signature
        fee
      }
      date {
        year
      }
      block {
        timestamp {
          time
        }
      }
    }
  }
}

```

5. Solana Instruction Accounts Snapshot

The query helps users understand the state of instruction accounts and associated activity at that particular block height.It includes details such as action names, parsed program names, account information (index, name, owner, type), block details (height, hash, previous block hash, and timestamp), and transaction details (fee payer, signature, success status, and transaction index).

open this [query](https://ide.bitquery.io/Solana-Instruction-Accounts-Snapshot) in IDE

```

{
  solana(network: solana) {
    instructionAccounts(
      height: {is: 254292327}
      options: {limit: 10, desc: "block.timestamp.time"}
    ) {
      instruction {
        action {
          name
        }
        program {
          parsedName
        }
      }
      account {
        index
        name
        owner
        type
      }
      block {
        height
        hash
        previousBlockHash
        timestamp {
          time
        }
      }
      transaction {
        feePayer
        signature
        success
        transactionIndex
      }
    }
  }
}

```

6. External Program and Log Retrieval

This query retrieves specific details about an instruction executed on the Solana blockchain. It's focused on a particular transaction, identified by its unique signature. The query aims to shed light on what happened within this transaction, providing insights into the external program involved and the action it performed. By examining the external program's ID and name, as well as details about the action, such as its type and name, developers can gain a deeper understanding of the transaction's purpose and functionality. Additionally, the query captures log data related to the instruction's execution, including gas consumption, resulting logs, and overall outcomes.

open this [query](https://ide.bitquery.io/External-Program-and-Log-Retrieval) in IDE

```
{
  solana(network: solana) {
    instructions(
      signature: {is: "5H7YVPqpwiXXNXXgSpYeZpoBko7BmUmjG2yvwBgcSrCDaUCJX9S48FK6o8CgQCrCh74yRd8AospkEQT2Vpa4SJPu"}
    ) {
      externalProgram {
        id
        name
        parsed
        parsedName
      }
      externalAction {
        type
        name
      }
      log {
        consumed
        logs
        result
        totalGas
        instruction
      }
    }
  }
}

```

7. Latest Solana Swap Instruction Details

This query fetches detailed information about the most recent swap instruction executed on the Solana blockchain. It provides data on the block height, timestamp, transaction details, program information, external action, and log details related to the swap instruction. The query is limited to return only one instruction also can be modified as per the use case.

open this [query](https://ide.bitquery.io/Latest-Solana-Swap-Instruction-Details) in IDE

```
{
  solana(network: solana) {
    instructions(
      options: {limit: 1, desc: "block.timestamp.time"}
      parsedActionName: {in: ["swap"]}
      height: {is: 254311197}
    ) {
      block {
        height
        timestamp {
          time
        }
      }
      transaction {
        signature
        feePayer
        success
      }
      program {
        id
        name
        parsedName
      }
      externalAction {
        name
        type
      }
      log {
        totalGas
        instruction
      }
    }
  }
}


```

### Understanding Different Types of Solana Programs

Solana ecosystem hosts various types of programs that interact with its blockchain. These programs can broadly be categorized into non-native, native, and Anchor programs. Understanding these distinctions is crucial for developers working on Solana.

- Non-Native Programs:

Non-native programs on Solana are typically written in languages other than Rust, which is the primary language for Solana development. They are compiled to run on Solana's BPF (BPF) virtual machine. These programs leverage Solana's capabilities while allowing developers to use their preferred programming languages.

- Native Programs:

Native programs, on the other hand, are written in Rust and compiled directly into Solana's bytecode. They are optimized for performance and efficiency on the Solana blockchain. Native programs have direct access to Solana's core functionalities and can interact closely with the network.

- Anchor Programs:

Anchor is a framework for building Solana programs in Rust. It simplifies the development process by providing high-level abstractions and tooling. Anchor programs are native programs written using the Anchor framework. They offer a more developer-friendly experience and streamline the deployment and management of Solana smart contracts.

Developers can utilize Bitquery to gain insights into Solana's program ecosystem. By leveraging it’s capabilities, developers can discern program types, from non-native solutions in diverse languages to native Rust-based programs and Anchor frameworks for streamlined development.To identify the type of program used on Solana, developers can inspect the source code or documentation associated with the program. Non-native programs may mention the use of languages like C, C++, or JavaScript. Native programs are typically written in Rust and compiled using Solana's toolchain. Anchor programs are identified by the use of the Anchor framework in Rust projects.

## Conclusion:

Solana's rapid growth in the blockchain space is fueled by its ability to overcome scalability challenges, offering high-speed, low-cost transactions for decentralized applications (DApps). With Solana APIs and Bitquery, developers gain powerful tools to analyze transactional data efficiently. By understanding Solana's diverse program ecosystem, developers can maximize the platform's potential for innovation and decentralized solutions.


## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/moneyflow) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

]]></description>
        </item>
        <item>
            <title><![CDATA[UTXO vs. Account-Based Blockchains: A Comparative Analysis]]></title>
            <link>https://bitquery.io/blog/utxo-account-based-blockchain</link>
            <guid>https://bitquery.io/blog/utxo-account-based-blockchain</guid>
            <pubDate>Fri, 22 Mar 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Imagine a marketplace where everyone trades using gemstones. Each gemstone represents a certain amount of value, just like digital coins in a blockchain network.

Now, in one part of the marketplace, there's a group of traders using the UTXO (Unspent Transaction Output) system. These traders carry around a sack full of gemstones, each labeled with the amount they're worth. Whenever they want to buy something, they simply reach into their sack and pick out gemstones whose total value equals or exceeds the cost of what they're buying. Transactions are created by consuming existing UTXOs and producing new ones in their place. This is like how UTXO-based blockchains work.

On the other side of the marketplace, there's another group of traders using the Account-Based system. Instead of carrying around a sack of gemstones, each trader has an account where their gemstone balance is recorded. When they want to buy something, they simply tell the marketplace how much they want to spend, and the marketplace updates their account balance accordingly. It's like having a bank account where you can transfer money back and forth. This is similar to how account-based blockchains, like Ethereum, keep track of balances.

So, basically in UTXO-based blockchains for example Bitcoin, the ledger keeps track of individual transaction outputs. Every transaction consumes one or more UTXOs and creates one or more new UTXOs as outputs.

Each UTXO can only be spent once, and the sum of the values of the inputs of a transaction must equal or exceed the sum of the values of the outputs. UTXOs are not directly associated with accounts; rather, they represent unspent funds that are available for spending. This model offers some advantages like increased privacy and scalability, as well as easier parallelization of transaction validation.

Whereas, in account-based blockchains for example Ethereum, the ledger keeps track of account balances. Each account has a balance associated with it, and transactions involve transferring value between accounts. Instead of UTXOs, account-based blockchains maintain a state of account balances. Transactions involve updating the state of account balances according to the rules of the blockchain protocol.

Both approaches have their own set of trade-offs and are suitable for different use cases. UTXO-based blockchains are often preferred for systems where scalability and privacy is critical.

while account-based blockchains may be favored for applications that require

- more complex smart contract capabilities
- flexibility in managing the state.

# Comparison between UTXO and Account Based Networks

By understanding the strengths and capabilities of each type of network, developers and businesses can choose the most suitable architecture for their specific use case, driving innovation and adoption in the blockchain ecosystem. Both UTXO and Account-Based systems have their own strengths and are suited for different situations.

 ## Transaction Structure

### UTXO-Based Transaction Structure:

In UTXO-based blockchain networks, transactions consist of inputs and outputs. Each input refers to a specific unspent transaction output (UTXO) from a previous transaction. These inputs are then consumed or spent in the current transaction. The outputs represent new UTXOs that are created as a result of the transaction, specifying the amount of cryptocurrency being transferred and the recipient's address.

Importantly, each UTXO can only be spent once, and the sum of the inputs must equal or exceed the sum of the outputs, ensuring that transactions are valid. Other UTXO-based blockchain networks can be accessed [here](https://explorer.bitquery.io/platform/bitcoin)

![](/blog/utxo-account-based/1.png)

Fig: UTXO-based blockchain networks on Bitquery platform

More resources regarding various UTXO-based networks can be accessed [here](https://bitquery.io/).

![](/blog/utxo-account-based/2.png)

Fig: Bitquery Platform with UTXO-based network options

### Account-Based Transaction Structure:

In contrast, account-based blockchain networks track account balances directly. Transactions in these networks involve debiting and crediting account balances. When a user initiates a transaction, they specify the recipient's address, the amount of cryptocurrency to transfer, and any additional data required by the transaction.

The sender's account balance is debited by the specified amount, while the recipient's account balance is credited accordingly. Unlike UTXO-based transactions, there are no explicit inputs and outputs; instead, the transaction updates the account balances directly. One of the examples Ethereum can be accessed [here](https://explorer.bitquery.io/ethereum).

![](/blog/utxo-account-based/3.png)

Fig: Account-based blockchain network, Ethereum on Bitquery platform

 ## Data Representation

### UTXO-Based Data Representation:

In UTXO-based blockchain networks, data is represented primarily by unspent transaction outputs (UTXOs). Each UTXO consists of two main components: an amount of cryptocurrency and a locking script that specifies conditions for spending the UTXO.

These UTXOs form the basis of the blockchain's transaction history and are used as inputs in subsequent transactions. By tracking the history of UTXOs, users can determine the ownership and transaction history of each unit of cryptocurrency.

This can be briefly understood by running this [query](https://ide.bitquery.io/DataRep_Example).

![](/blog/utxo-account-based/4.png)
Fig: Data represented for Bitcoin Address over Bitquery Platform

The information that we get from this is:

- Transactions: Each transaction entry contains details about a specific Bitcoin transaction.
- Block: Indicates the block in which the transaction was recorded. It includes the timestamp of the block and its height (block number).
- Hash: Unique identifier for each transaction, generated using cryptographic hashing algorithms.
- Fee Value: Represents the transaction fee paid by the sender to incentivize miners to include the transaction in a block.
- Mined Value: Indicates the total value of bitcoins mined in the block containing this transaction. In these transactions, the mined value is zero, suggesting that no new bitcoins were generated as block rewards.
- Input Count: Specifies the number of inputs (sources of funds) involved in the transaction.
- Output Count: Specifies the number of outputs (destinations of funds) generated by the transaction.
- Fee Value USD: Indicates the estimated value of the transaction fee in US dollars, based on the prevailing exchange rate at the time of the transaction.

### Account-Based Data Representation:

In contrast, account-based blockchain networks represent data primarily through account balances. Each user account on the network has an associated balance, which represents the amount of cryptocurrency owned by that account. Transactions in these networks involve updating account balances directly, with debits and credits reflecting transfers of cryptocurrency between accounts.

Additionally, account-based networks maintain a state trie or Merkle tree structure to efficiently store and retrieve account information, including balances and transaction history. This data structure enables quick access to account information and facilitates efficient transaction processing.

This can be understood by running this [query](https://ide.bitquery.io/DataRep_ExampleEthereum).

![](/blog/utxo-account-based/5.png)

Fig: Data represented for Ethereum Address over Bitquery Platform

- Smart Contract Calls: Each entry contains details about a specific smart contract call.
- Block: Indicates the block in which the smart contract call was executed. It includes the timestamp of the block and its height (block number).
- Smart Contract Method: Specifies the name of the method called in the smart contract and its signature hash.
- Address: Indicates the address of the smart contract involved in the call. It may include an annotation to provide additional context about the contract's purpose.
- Transaction: Specifies the hash of the transaction that triggered the smart contract call.
- Gas Value: Represents the amount of gas consumed by the smart contract call. Gas is a unit used to measure the computational work required to execute operations on the Ethereum network.
- Gas Value USD: Indicates the estimated value of the gas consumed in US dollars, based on the prevailing gas price at the time of the call.
- External: Indicates whether the smart contract call is external (initiated by an Ethereum account) or internal (triggered by another smart contract).

  ## Privacy and Traceability

### UTXO-Based Privacy and Traceability:

In UTXO-based blockchain networks privacy is enhanced due to the independent nature of each unspent transaction output (UTXO). Since UTXOs are not directly linked to user accounts, it becomes challenging to trace the flow of funds across the network.

This makes it more difficult for observers to identify the parties involved in a transaction and track their transaction history. However, while UTXOs provide a level of privacy, the transparency of the blockchain still allows for some degree of traceability through sophisticated analysis techniques.

This can be better understood with the help of a [query](https://ide.bitquery.io/Moneyflow-Example).

The provided JSON data represents the movement of Bitcoin between different addresses, categorized into inbound and outbound transactions.

- Inbound Transactions (Money Received):

These transactions represent instances where Bitcoin is received into a particular address. This can be likened to money flowing into a wallet or account. In the provided data, inbound transactions include Receiving certain Bitcoins from an unknown sender into the receiver address and receiving a small amount of Bitcoin from a specific sender address into the same receiver address.

- Outbound Transactions (Money Sent):

These transactions represent instances where Bitcoin is sent from a particular address to another address. This can be likened to money flowing out of a wallet or account. In the provided data, outbound transactions include sending Bitcoin from the sender address to the receiver address and sending varying amounts of Bitcoin from the same sender address to different receiver addresses.

![](/blog/utxo-account-based/6.png)
Fig: Moneyflow represented in Bitcoin Address over Bitquery Platform

### Account-Based Privacy and Traceability:

In account-based blockchain networks transaction history and account balances are publicly accessible, offering less privacy compared to UTXO-based networks. Each account's balance and transaction history are visible on the blockchain, allowing observers to trace the flow of funds between accounts.

This can be better understood with the help of a [query](https://ide.bitquery.io/MoneyFlow_ExampleEthereum).

This data represents transactions on the Ethereum blockchain involving inbound and outbound flows of Ether (ETH), the native cryptocurrency of the Ethereum network. Each transaction involves a sender and a receiver, along with the amount of ETH transferred. In terms of money flow, here's a breakdown of the transactions:

- Inbound Transactions:

These transactions involve the movement of ETH into the specified Ethereum addresses.

The total inbound ETH received by the receiver address is calculated by summing up the amounts from each inbound transaction. These transactions often represent deposits or transfers of ETH from external sources into Ethereum addresses, such as exchanges or wallets. From the below given moneyflow diagram, the inbound is with Binance 14.

- Outbound Transactions:

These transactions involve the movement of ETH out of the specified Ethereum addresses.

The total outbound ETH sent by the sender address is calculated by summing up the amounts from each outbound transaction. These transactions often represent withdrawals or transfers of ETH from Ethereum addresses to external sources, such as exchanges, wallets, or other Ethereum addresses. From the below-given moneyflow diagram, the outbound is with Kraken 4 and others.

![](/blog/utxo-account-based/7.png)

Fig: Moneyflow represented in Ethereum Address over Bitquery Platform

 ## Scalability

### UTXO-Based Scalability:

UTXO-based blockchain networks potentially offer scalability advantages due to their ability to process transactions in parallel. Since each unspent transaction output (UTXO) represents a separate unit of currency and transactions consume and create UTXOs independently, the validation of transactions can be parallelized.

This parallel processing capability allows UTXO-based networks to handle a large number of transactions concurrently, potentially leading to higher throughput and improved scalability.

### Account-Based Scalability:

Account-based blockchain networks may face scalability challenges, especially as the number of accounts and transactions on the network grows. Since transactions involve updating account balances directly, the processing of transactions may become bottlenecked as the network becomes more congested.

Additionally, account-based networks typically maintain a global state of account balances, which can become increasingly unwieldy to manage as the network scales.

5.  ## Smart Contract Capabilities

### UTXO-Based Smart Contract Capabilities:

UTXO-based blockchain networks typically have limited or more complex smart contract capabilities compared to account-based networks. While Bitcoin's scripting language allows for basic smart contract functionality, it has certain limitations and is not as expressive as the programming languages used in account-based networks.

Smart contracts on UTXO-based networks often involve constructing complex transaction scripts to implement desired functionalities, which can be more challenging for developers.

### Account-Based Smart Contract Capabilities:

Account-based blockchain networks offer robust smart contract capabilities, allowing developers to create and deploy complex decentralized applications (DApps). Ethereum's Turing-complete scripting language enables the creation of highly expressive and flexible smart contracts, which can execute arbitrary code and interact with other smart contracts and external systems.

Smart contracts on account-based networks enable a wide range of use cases, including decentralized finance (DeFi), tokenization, gaming, and supply chain management, among others.

 ## Ease of Use

### UTXO-Based Ease of Use:

UTXO-based blockchain networks may be less intuitive for users and developers accustomed to traditional banking systems. Managing UTXOs can require a deeper understanding of the underlying mechanics of the blockchain, including concepts like transaction inputs and outputs, change addresses, and transaction fees.

As a result, interacting with UTXO-based networks may involve a steeper learning curve for users and developers, particularly those unfamiliar with the intricacies of blockchain technology.

### Account-Based Ease of Use:

Account-based blockchain networks offer a more familiar model for users and developers, resembling typical financial operations. Transactions involve updating account balances directly, without the need to manage individual transaction outputs (UTXOs). This simplifies the user experience and makes it easier for users to understand and interact with the blockchain.

Additionally, account-based networks typically provide more developer-friendly tools and resources for building decentralized applications (DApps), further enhancing ease of use for developers.

  ## State Management

### UTXO-Based State Management:

UTXO-based blockchain networks primarily focus on managing the state of individual transaction outputs (UTXOs). Each UTXO represents a specific amount of cryptocurrency that has not been spent and is available for future transactions.

The state of the network is determined by the set of unspent UTXOs, which are collectively maintained and updated by the network's participants. Managing the state of UTXOs involves tracking their ownership, verifying transactions, and ensuring that double-spending does not occur.

This can be understood with the help of a [query](https://ide.bitquery.io/Transaction_Example).

Sample response

```

"outbound": [

{

"sender": {

"address": "bc1qxhmdufsvnuaaaer4ynz88fspdsxq2h9e9cetdj",

"annotation": null

},

"receiver": {

"address": "3KmNWUNVGoTzHN8Cyc1kVhR1TSeS6mK9ab",

"annotation": null

},

"amount": 213.82217731999867,

"depth": 1,

"count": 8

},]

```

The information conveyed through this query is that the data represents transactions involving Bitcoin, categorized into inbound and outbound transactions. Each transaction includes information about the sender's address, the receiver's address, the amount of Bitcoin transferred, transaction depth, and count.

- Inbound Transactions (Money Received):

The inbound transaction involves receiving certain Bitcoin into the receiver address. The sender's address is not specified. The second inbound transaction involves receiving a small amount of Bitcoin from the sender address into the same receiver address. As seen from the moneyflow diagram below, the inbound transaction is recorded with [Binance 14](https://explorer.bitquery.io/bitcoin/address/bc1qxhmdufsvnuaaaer4ynz88fspdsxq2h9e9cetdj/graph) address.

- Outbound Transactions (Money Sent):

The outbound transactions involve sending various amounts of Bitcoin from the sender address to different receiver addresses. Each outbound transaction specifies the amount of Bitcoin sent and the respective receiver address. As seen from the moneyflow diagram below, the outbound transaction is recorded with Kraken 4 and various others.

Overall, the data provides a detailed view of the movement of Bitcoin funds, with inbound transactions representing money received into specific addresses and outbound transactions representing money sent from specific addresses to other addresses. This information can be useful for tracking financial activities and analyzing the flow of funds within the Bitcoin network.

![](/blog/utxo-account-based/8.png)

Fig: Transaction represented in Bitcoin Address using Bitquery Explorer

### Account-Based State Management:

In contrast, account-based blockchain networks manage the state of user accounts directly. Each user account on the network has an associated balance, which represents the amount of cryptocurrency owned by that account. Transactions involve updating account balances directly, with debits and credits reflecting transfers of cryptocurrency between accounts.

Additionally, account-based networks typically maintain a global state of account balances, which includes information such as account balances, contract code, and storage data. This global state is stored and updated by network nodes, ensuring consistency and integrity across the network.


# Use Cases

## UTXO-Based Networks

1.  Peer-to-Peer Transactions: They are well-suited for peer-to-peer transactions, allowing users to send and receive digital currency without the need for intermediaries.

2.  Privacy-Centric Transactions: They provide enhanced privacy features, making them suitable for use cases where privacy is a primary concern. Cryptocurrencies like Monero and Zcash leverage UTXO-based architectures to implement advanced privacy techniques.

3.  Scalable Microtransactions: The UTXO model enables efficient parallel validation of transactions, making UTXO-based networks suitable for handling large volumes of microtransactions at scale.

## Account-Based Networks

1.  Decentralized Finance (DeFi): They have become the foundation for the burgeoning DeFi ecosystem, enabling a wide range of financial applications such as decentralized exchanges (DEXs), lending platforms, and automated market makers (AMMs).

2.  Tokenization and Asset Management: They facilitate the creation and management of digital assets and tokens, making them ideal for use cases such as tokenization of real-world assets, tokenized securities, and non-fungible tokens (NFTs).

3.  Decentralized Applications (DApps): They provide a robust platform for building decentralized applications (DApps) with programmable features and logic.

In conclusion, the comparison between UTXO-based and account-based blockchain networks highlights the distinct characteristics and use cases of each architecture. By understanding the strengths and capabilities of both types of networks, developers and businesses can make informed decisions when choosing the most suitable architecture for their specific use case.

UTXO-based networks offer advantages in terms of enhanced privacy, scalability potential, and efficient handling of microtransactions. On the other hand, account-based networks provide robust smart contract capabilities. They offer a more familiar model for users and developers, resembling traditional banking operations and providing ease of use.

---

**Blog written by Nikita M**]]></description>
        </item>
        <item>
            <title><![CDATA[Blockchain Data Observability: Bridging the Gap Between Data and Decisions]]></title>
            <link>https://bitquery.io/blog/blockchain-data-observability</link>
            <guid>https://bitquery.io/blog/blockchain-data-observability</guid>
            <pubDate>Thu, 21 Mar 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Understanding blockchain data can be confusing, but it's simpler than it sounds. Basically, it means keeping track of and analyzing all the information that's generated on-chain. By interpreting this data, it's possible to turn it into something meaningful and derive useful insights. This blog explains what blockchain data observability is and how you can use on-chain data to improve your observability of any ecosystem.

In short, blockchain data is made up of raw facts that need to be transformed into understandable information.

Now, let's break down the term "Blockchain Data Observability".

We would divide it into three components.

1. Blockchain: A decentralized and permissionless DLT (distributed ledger technology) that records transactions across multiple networks of computers otherwise known as nodes in a secure, immutable, and secure manner.

2. Data : In the context of blockchain, data refers to information stored on a chain within blocks. This data can be transaction details, assets, smart contract addresses, and code.

3. Observability: This is the ability to gain insights and understand any system's internal state, analyzing outputs, operation, and performance.

Now combining all components, we can say that Blockchain Data Observability involves monitoring and analysis of data stored within a blockchain to understand its functions, detect anomalies, ensure compliance with industry standards, and gain additional information that can be used for auditing and optimization.

## Introducing Observability in Web3

When we talk about decentralized apps (dApps), smart contracts, trading protocols, and interoperability, we need to have strong observability tools. Blockchain observability helps us understand any project or ecosystem built on-chain. For those new to the technology, investing in a bad project can be risky, and the learning curve for web3 is steep. However, using observability tools can help reduce the learning curve and avoid these risks. Without proper observability, we can only guess how the system works, which can lead to poor decision-making

To get a better example and overview, let’s imagine you have some coins or tokens that you have already purchased from a centralized exchange like Binance and then you want to make use of that token to perform functions like providing liquidity to a DeFi platform or even simple swaps (from one token to another). All these involve transactions that range from simple to complex as they can also take different routes to complete, and the transactions contain logs or details that you can further trace with an analysis tool or explorer.

Unlike traditional centralized tools used for observation that can access comprehensive logs and metrics from a single source which is equally controlled by the powers that be, monitoring tools in Web3 present a better use case due to their decentralized nature and ability to source data and information from multiple networks in real time.

## What can be observed in Web3?

The beautiful thing about blockchain is that all information is available for anyone to view. With new on-chain data tools being developed, blockchain data observability has become simpler.

Let's start with Tracing and Tracking Events.

These events play a crucial role in any existing blockchain ecosystem, as they provide mechanisms for communications and interaction between smart contracts and decentralized applications, especially when it comes to interoperability systems and bridging. These events exist in some actions you perform, for example, swapping tokens, adding liquidity positions, locking tokens in smart contract vaults which most DAOs (Decentralized Autonomous Organizations) use, and staking.

Smart contract events are also employed in auditing, integration with off-chain systems, decentralized oracles, and overall user experience.

A typical example of a smart contract event is an Approval Event,

Now, in a blockchain like Ethereum, tokens are created with the ERC-20 or ERC-721 standards. When you are building a platform or system that allows users to approve an entity to spend tokens on its behalf, then approval events are utilized. For instance, the ERC-20 standard defines an event named `Approval(address indexed owner, address indexed spender, uint256 value)` to signal token approval.

![](/blog/blockchain-data-observability/0.png)

A powerful tool that you can use for getting call traces and tracking events in most blockchain networks is Bitquery.

Using Bitquery's API and explorer, you can get a ton of perfectly curated information on

Before we get started, let's understand the concept of tracing and event tracking.

Tracing refers to the ability to track and verify the origin, transfers, and other transaction details regarding an asset across a blockchain network. This is really important as it proves transparency, provides authenticity of data (which is immutable), and verification of assets. The Supply Chain Industry employs tracing a lot since the mechanism ensures and validates its processes.

The two most important things in implementing tracing in blockchain are

1. Unique Identifier: Every token or asset entry on the blockchain is assigned a unique identifier which is known as transaction hash. This is important as it is very unique and holds a permanent record of such transactions.

2. Timestamping: This establishes a chronological order of transactions, prevents double spending, and ensures the integrity of the blockchain by recording the exact time each transaction occurs.

## Using Bitquery's Explorer to trace transactions

Let’s make use of this address on Ethereum for transaction tracing

[https://explorer.bitquery.io/ethereum/address/0xbfb16fdae67627bc1c3b2cdf719b8e50c76f0f91](https://explorer.bitquery.io/ethereum/address/0xbfb16fdae67627bc1c3b2cdf719b8e50c76f0f91)

Before we proceed, note that you can equally perform the same actions as you go through this article

Follow this [documentation](https://docs.bitquery.io/explorer/docs/Tracing/) on tracing transactions on the explorer

Now, let’s begin ⬇

This is the account on the Explorer, note we have selected the Transaction tab to view txns on the address

![](/blog/blockchain-data-observability/1.png)

Note on the Transactions tab, we have the Timestamp and the Hash which is the unique identifier as we mentioned earlier, which are the basic elements involved in implementing transaction tracing.

We can click on any hash to dive deeper into the transaction details, upon getting into the transaction hash, we will get to the tracing by tapping on the [Tracing tab](https://explorer.bitquery.io/ethereum/tx/0x9172a0e330944425ff1c12f6ea3c8ea230328bb690044cb86ad0b73e7e2c1b91/tracing)

![](/blog/blockchain-data-observability/2.png)

With this, you can fully see what occurred in the transaction as we can see the “approve” calls that triggered an expense on the address. 

![](/blog/blockchain-data-observability/0.png)

### Why is it important to monitor blockchain calls and events? How can we improve observability to track events?

Every transaction results in some kind of change in a state for example, an `Approval` event is emitted when "allowance of a spender for an owner is set by a call to approve".
 
On the blockchain, when you make a transaction, it can either go through successfully or not at all. There's no halfway. To help us understand what changes after a transaction, events can be sent out. These events emitted tell us what changes occured because of the transaction, giving us important information about how things work.

We can also use another address with a complex transaction hash to trace the details existing in the transaction.

Using this hash for tracing below

[https://explorer.bitquery.io/ethereum/tx/0x64319c1c3db12b41c7ac0fb5d0e06c443181ef95948ea08dab310f77998e7e9b/tracing](https://explorer.bitquery.io/ethereum/tx/0x64319c1c3db12b41c7ac0fb5d0e06c443181ef95948ea08dab310f77998e7e9b/tracing)

We can see that this transaction hash 0x64319c1c3db12b41c7ac0fb5d0e06c443181ef95948ea08dab310f77998e7e9b has a lot of things going on under the hood as you can see the log in the image below

![](/blog/blockchain-data-observability/3.png)

Now, let us try to interpret some of the complexities in the log.

On a surface level , what you need to understand is that the above transaction log contains information like "execute", which represents the execution of transactions which can be either send/receive commands on chain, others include function calls, transfers, approvals, and other interactions with smart contracts.

Let’s try to explain what some of these functions or commands mean.

- When you see "execute" it indicates a beginning of a new transaction or action.

- The "inputs" part holds the details needed for the transaction, including commands and deadline. This is likely to involve the approval of specific tokens.

- The section which is labeled "permit" or "permitSingle" usually deals with allowing certain actions to happen, often related to approving transactions involving tokens.

- "transferFrom" or "transfer," refers to moving tokens from one address to another.

- "balanceOf" is about checking how many tokens a specific address has.

- If you see "getReserves," it's likely fetching data about the available funds in a pool or pair of tokens.

- "Swap" indicates an exchange or trade, probably on a decentralized exchange like Uniswap or Kyberswap.

- "Sync" means updating or adjusting, often related to keeping track of available funds.

- "Withdrawal" involves taking tokens out of a contract or pool.

- "[Return: ...]" shows what happened after a certain action, like if it succeeded or failed.

We can also use the explorer to get information about the movement of funds in a particular transaction. A transaction can be complex and requires funds or tokens to move through routes, liquidity pools or even contracts before arriving at a destination (recipient's wallet address).

On the Bitquery Explorer, the tool we can use to do this is Money Flow which visualizes the events or calls made during the transaction process.

### Using Money Flow Trace on the Explorer

The Money Flow Diagram illustrates the transfer of tokens between different addresses during that transaction.

It aims to simplify and make users understand complex fund movement by visualizing the transaction.

Below is an example of a money flow diagram on this [transaction hash](https://explorer.bitquery.io/bsc/tx/0x5d5d4cce6aa98b045202acae69c2cab13c99c3368c27a9ec808f8ca598a98858/tracing).

![](/blog/blockchain-data-observability/4.png)

## Conclusion

Getting blockchain data and observing it to gather detailed information can sometimes be challenging, but with tools like Bitquery, we can explore any data and gain insights into any transaction on-chain. Also adding that becoming a pro at observing blockchain data is way easy with Bitquery’s explorer which gives you real-time and archived datasets and reliable information. You can use the links in the Helpful Resources below to get started.

Helpful Resources

- Bitquery V1 API docs: [https://docs.bitquery.io/v1/docs/intro](https://docs.bitquery.io/v1/docs/intro)
- Bitquery V2 API docs: [https://docs.bitquery.io/docs/intro/](https://docs.bitquery.io/docs/intro/)
- Bitquery blog: [https://bitquery.io/blog](https://bitquery.io/blog)
- V1 API - examples: [https://docs.bitquery.io/v1/docs/category/examples](https://docs.bitquery.io/v1/docs/category/examples)
- V2 API - examples: [https://docs.bitquery.io/docs/category/examples/](https://docs.bitquery.io/docs/category/examples/)

- [https://docs.bitquery.io/explorer/docs/Tracing/](https://docs.bitquery.io/explorer/docs/Tracing/)
]]></description>
        </item>
        <item>
            <title><![CDATA[Deep Dive into GMX: Exploring Arbitrum's Leading DeFi Protocol]]></title>
            <link>https://bitquery.io/blog/gmx</link>
            <guid>https://bitquery.io/blog/gmx</guid>
            <pubDate>Fri, 08 Mar 2024 22:00:00 GMT</pubDate>
            <description><![CDATA[
When exploring the Arbitrum ecosystem, you will undoubtedly encounter a particular name: GMX.

GMX (V2) is one of the most popular decentralized finance (DeFi) projects on [Arbitrum](https://bitquery.io/blockchains/arbitrum-blockchain-api), with more than $450 million of total value locked (TVL). Moreover, GMX V1 still has a TVL of almost $100 million.

In this article, we want to explore GMX in-depth, from basic introduction to the internal workings of the protocol. We will also learn how to get trading data from GMX using the Bitquery API.

Let's dive in and first learn the basics about GMX.


## What is GMX?

According to the [GMX documentation](https://gmx-docs.io/docs/intro), "GMX is a decentralized spot and perpetual exchange that supports low swap fees and low price impact trades."

The spot exchange is similar to any other decentralized exchange (DEX) on the market, like Uniswap or Sushiswap. However, an interesting part that we will be talking about is the perpetual exchange. But what is a perpetual exchange?


## Perpetual Exchanges

Perpetual exchanges allow users to trade perpetual futures. Perpetual futures are very similar to regular futures contracts we are familiar with, but the perpetual futures don't have any expiration dates. This allows traders to hold those contracts far into the future.

In the regular financial markets, implementing these futures contracts would be simple. However, how do these perpetual futures contracts work in the DeFi market? That's the question we will answer in the next section.

One thing to note is that different perpetual exchanges might have different mechanisms that they use to achieve the same thing. As we are exploring GMX, we will try to understand how GMX allows users to trade perpetual futures.


## How does GMX work?

For any kind of trade, whether it be spot, futures, or perpetual, there needs to be a counterparty to that trade who will take the other side. The same applies to GMX. Whenever a trader opens a position (long or short), the counterparty for that position is the GMX liquidity pool. To understand GMX, we need to understand how the GMX liquidity pool works.

### Liquidity Pool

Unlike liquidity pools of Uniswap or any AMM, which has separate liquidity pools for every single pair, GMX has a liquidity pool that allows liquidity providers to deposit their assets into it and receive GLP tokens back. All assets from all LPs are in this pool, and profits or losses for LPs depend on the net profits or losses of the traders on the platform.

The GLP pool also earns fees when traders borrow assets for opening long or short positions. There are also other fees that the GLP pool (and in turn, the LPs) will earn from traders using the GMX platform.

### LPs and Traders

We have learned how the GLP pool works, but we didn't get into how traders or LPs actually use the pool or how their assets are used in the trading process. Let's try to dive into that and go over each step that both parties take in the process.

Liquidity Providers (LPs) and Their Assets:

LPs deposit their assets (e.g., ETH and stablecoins) into the GLP pool.
In exchange for their deposits, LPs receive liquidity provider (LP) tokens representing their share of the pool.
As traders open and close positions in the pool, the value of the pool fluctuates based on the profits and losses of those positions.

LPs earn a share of the trading fees and funding rates paid by traders, which are added to the pool.
If a trader's position becomes undercollateralized, it is liquidated, and the remaining collateral is added to the pool, benefiting the LPs.

LPs can monitor the performance of the pool and the value of their LP tokens.
When LPs want to withdraw their liquidity, they redeem their LP tokens, receiving their share of the pool's assets (plus or minus any profits or losses).

Traders and Their Positions:

While placing an order, traders have to deposit their collateral (e.g., stablecoins or the asset) into the GMX platform.
Traders place orders to open long or short positions in a particular market (e.g., ETH/USDC) with their desired leverage.

For a long position: 
a. The trader's collateral is added to the pool. 
b. The pool "lends" the trader the required amount of the asset (e.g., ETH) to open the leveraged long position.

For a short position: 
a. The trader's collateral (stablecoins) is added to the pool. 
b. The pool "borrows" the asset (e.g., USDC) from the trader and adds it to the pool's asset balance. 
c. The pool provides the trader with the stablecoin value of the borrowed asset to open the leveraged short position.

As the market moves, the trader's position is marked-to-market, and profits or losses are reflected in the value of the pool.
Traders pay trading fees and funding rates, which are added to the pool.

If a trader's position becomes undercollateralized due to adverse price movements, their position can be liquidated, and the remaining collateral is added to the pool. Traders can monitor their positions and adjust them as needed by adding or removing collateral or closing their positions.

## GMX Trading Data

We have seen the technical workings of GMX. Let's try to see the whole process through data. This will help you get trading data from GMX for your trades or some other traders.

To get the GMX trading data, we need to parse the events emitted by the GMX smart contract. For each step, a particular event is emitted. Let's go through each and understand how to fetch those events.

Here are the actions and the events emitted for those actions:

To open or increase a position: IncreasePosition Event
Decrease a position: DecreasePosition Event
Close a position: ClosePosition Event
Liquidate a position: LiquidatePosition Event

With all these actions, there is one more event being emitted called UpdatePosition. This event tracks all the changes in a position. From this event, we can also get details about all the actions taken related to a particular position.

Whenever a new position is created, we can track it with its unique id, which we can find in all the events. The id for each position is called the key.

You can check the details about each event in the GMX GitHub repo in the Vault.sol file. The address of the vault on the Arbitrum network is [0x489ee077994B6658eAfA855C308275EAd8097C4A](https://explorer.bitquery.io/arbitrum/smart_contract/0x489ee077994B6658eAfA855C308275EAd8097C4A)

### Querying Trading Data

Let's say you want to get trading data for all positions a particular trader has created. We can query all the IncreasePosition events and filter the first instance of each key. That's how we can get all the positions opened by traders. Let's see the query, and note that you need to filter the keys with regards to the first instance of the key.

You can try the following [query](https://ide.bitquery.io/GMX-Increase-Position-Event_1) in the Bitquery IDE.

```
{
  EVM(dataset: archive, network: arbitrum) {
    Events(
      where: {Log: {SmartContract: {is: "0x489ee077994B6658eAfA855C308275EAd8097C4A"}, Signature: {Name: {is: "IncreasePosition"}}}, Arguments: {includes: {Name: {is: "account"}, Value: {Address: {is: "0x92812499fF2c040f93121Aab684680a6e603C4A7"}}}}}
      orderBy: {descending: Block_Time}
    ) {
      Log {
        Signature {
          Name
          Parsed
          Signature
        }
      }
      Arguments {
        Name
        Type
        Value {
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
        }
      }
      Block {
        Time
      }
    }
  }
}
```

We have arranged all the increase position events in descending order using block time. This will help you filter the event where each key appeared first.

Now that we see an open position, how can we calculate profits or losses for each position? 

If the position is closed, we can get the pnl for that position from the ClosePosition event, which has a realized pnl field in it. One caveat is that the ClosePosition event doesn't have a field called account, so we can't directly get all closed positions for a particular trader. Instead, we have to filter it for each position by using the value of the key.

We have seen how to get all trades in the above query, which provides us with the value of the key using which each position is identified. Let's use one of the keys from the result of the above query to see if that position is closed, and if it is, what is the realized pnl.

We are going to use the above query with changed filters. We need to use the event name as ClosePosition, and to filter using the key value, we can change the argument filter accordingly.

You can try the following [query](https://ide.bitquery.io/GMX-Close-Position-Event-for-particular-position) in the Bitquery IDE.

```
{
  EVM(dataset: archive, network: arbitrum) {
    Events(
      where: {Log: {SmartContract: {is: "0x489ee077994B6658eAfA855C308275EAd8097C4A"}, Signature: {Name: {is: "ClosePosition"}}}, Arguments: {includes: {Name: {is: "key"}, Value: {Bytes: {is: "37e9c03e31d64c92f3fc9f4a443f7918a163b0698364c96c48cb59ab201911b7"}}}}}
      orderBy: {descending: Block_Time}
    ) {
      Log {
        Signature {
          Name
          Parsed
          Signature
        }
      }
      Arguments {
        Name
        Type
        Value {
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
        }
      }
      Block {
        Time
      }
    }
  }
}
```
 
From on-chain data, we can only see the pnl for closed positions. However, if you want to see the unrealized pnl, which will be for open positions, you need the current price of the asset along with the details of the position, and you can calculate that on your machine.

## Conclusion

Analyzing and understanding the vast trading data on GMX is crucial for traders, analysts and researchers alike. This is where services like Bitquery's blockchain API come into play. By providing a GraphQL interface to directly query the GMX contract events and data on-chain, Bitquery empowers users to extract valuable insights.

Whether you want to track open positions, monitor liquidations, analyze trader behavior or calculate profit/loss, Bitquery's API lets you construct custom queries tailored to your needs. The ability to filter, sort and transform this on-chain data programmatically opens up new possibilities for building trading dashboards, alerts, analysis tools and more on top of the innovative GMX protocol. As the DeFi ecosystem evolves, leveraging robust data APIs will be key to unlocking the full potential of these decentralized markets.

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/moneyflow) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.
]]></description>
        </item>
        <item>
            <title><![CDATA[Binance Smart Chain: Bitquery's BSC GraphQL API]]></title>
            <link>https://bitquery.io/blog/bsc-api</link>
            <guid>https://bitquery.io/blog/bsc-api</guid>
            <pubDate>Wed, 06 Mar 2024 22:00:00 GMT</pubDate>
            <description><![CDATA[
Launched in September 2020 by the renowned cryptocurrency exchange Binance, BSC represents a groundbreaking development in decentralized finance (DeFi) and blockchain ecosystems.

At its core, [BSC](https://bitquery.io/blockchains/bnb-blockchain-api) is a blockchain platform designed to facilitate the creation and execution of decentralized applications (DApps) and smart contracts. What sets BSC apart is its compatibility with the Ethereum Virtual Machine (EVM), allowing developers to easily port their Ethereum-based projects to the BSC network. 

This interoperability opens doors for seamless migration and expansion of existing dApps, leveraging the advantages of BSC's high throughput and low transaction fees.

BSC provides a lot of advantages to developers for building applications. Let’s discuss how you can leverage Bitquery APIs to extract BSC network’s real-time data for easy implementation. 

## BSC Overview

BSC stands for Binance Smart Chain and uses a proof-of-stake algorithm. It has a double-chain architecture, which makes it compatible with Ehtereum, while allowing it to process transactions faster and at lower fees. 

BSC can provide both historic and real-time data. Historic data can be obtained starting from the very first block (29th August 2020) to the latest; however, certain block data during April 2021 to June 2022 is not accessible. 

BSC's native token is the Binance Coin (BNB). 

### Key Features/Advantages

BSC offers key advantages for developers, such as:

- Performance, Cost-effectiveness: With significantly lower transaction fees compared to Ethereum, BSC offers users a cost-effective solution for executing transactions and interacting with DApps.It can run a high volume of transactions per second, through DPoS (delegated proof-of-stake).

- Established community and ecosystem: Through on-chain governance mechanisms, BSC community members can participate in protocol upgrades, fee adjustments, and other critical decisions, fostering a decentralized and community-driven ecosystem. With comprehensive documentation, developer resources, and support from the Binance ecosystem, building and deploying DApps on BSC has never been easier. Active promotions of the blockchain by the community has fast-tracked the growth and adoption by developers. 

- Interoperability: Porting applications from Ethereum to Binance is very easy. 

- Tokens: Both BSC and Ethereum have similar token standards, which enables developers to seamlessly work on both the blockchains. 

- NFTs: BSC’s vibrant NFT marketplace further showcases its versatility, enabling creators and collectors to tokenize and trade digital assets seamlessly.

## BSC Explorer API from Bitquery

### Overview of  Binance (BNB) Smart Chain Mainnet

Here’s the [BSC Smart Contract Explorer](https://explorer.bitquery.io/platform/smart_contract) data that gives you a quick overview of the number of transactions on the BSC network during a time period, as shown here. 

![Transaction Count Graph from Bitquery BSC Explorer](/blog/bsc-api/bitquery-bsc-explorer-transactions-count.png)

To embed queries in your applications, simply click the Get API on the bottom right of the screen (check the above image). To write your own queries, use Bitquery’s in-built [GraphQL IDE](https://ide.bitquery.io/). 

## Obtaining Real-Time BSC Data 

Bitquery  provides a variety of streaming APIs to extract real-time or historic BSC chain data. Here are some examples that showcase how to get real-time data on the BSC network using Bitquery’s APIs. 

### NFT API

#### **Fetching NFT Holders**

This API retrieves BSC addresses that hold NFT tokens related to smart contracts. 

In this [query](https://ide.bitquery.io/Bsc---NFT-holders_1), let’s check the NFT holders for a specific smart contract, [0xDf7952B35f24aCF7fC0487D01c8d5690a60DBa07](https://explorer.bitquery.io/bsc/token/0xDf7952B35f24aCF7fC0487D01c8d5690a60DBa07) (as above). Specify the network as “bsc” and the smart contract address as given. Set the dataset parameter to “realtime” to get the latest data on NFT holders. This query returns NFT tokens and their balances in descending order.

```
{
  EVM(network: bsc, dataset: realtime) {
    BalanceUpdates(
      limit: {count: 100}
      orderBy: {descendingByField: "balance"}
      where: {Currency: {SmartContract: {is: "0xDf7952B35f24aCF7fC0487D01c8d5690a60DBa07"}}}
    ) {
      BalanceUpdate {
        Address
      }
      balance: sum(of: BalanceUpdate_Amount)
    }
  }
}
```

#### **Obtaining All NFTs of an Address**

You can get the details of all NFTs of a specific address on the BSC network using this API. For example, to get all the NFTs of the same smart contract as above, [0xDf7952B35f24aCF7fC0487D01c8d5690a60DBa07](https://explorer.bitquery.io/bsc/token/0xDf7952B35f24aCF7fC0487D01c8d5690a60DBa07), use this [query](https://ide.bitquery.io/Bsc---NFTs-of-smart-contract_1). Specify the network as “bsc” and the smart contract address as above. Set the dataset parameter to “combined” to get both archive and real-time data on the given smart contract NFTs.

```
{
  EVM(network: bsc, dataset: combined) {
    BalanceUpdates(
      limit: {count: 100}
      orderBy: {descending: BalanceUpdate_Amount}
      where: {BalanceUpdate: {Address: {is: "0xDf7952B35f24aCF7fC0487D01c8d5690a60DBa07"}}, Currency: {Fungible: false}}
    ) {
      Currency {
        Fungible
        Symbol
        SmartContract
        Name
        HasURI
        Delegated
        Decimals
      }
      BalanceUpdate {
        Id
        Amount
        Address
        URI
      }
    }
  }
}
```

#### **Obtaining Recent NFT Trades**

Now, let’s try to use the NFT API to obtain the latest NFT trades on BSC DEX for a given address or project. For example, in [this query](https://ide.bitquery.io/bsc-nft-trades_1), we will retrieve the NFT DEX trades for the same smart contract, 0xDf7952B35f24aCF7fC0487D01c8d5690a60DBa07. Specify the network as “bsc” and the address (Buy Currency) as given.

```
{
  EVM(network: bsc) {
    DEXTrades(
      orderBy: {descending: Trade_Dex_Pair_SmartContract}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xDf7952B35f24aCF7fC0487D01c8d5690a60DBa07"}}}}}
    ) {
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Dex {
          ProtocolFamily
          ProtocolName
          ProtocolVersion
          SmartContract
        }
        Buy {
          Price
          Buyer
          Ids
          URIs
        }
        Sell {
          Seller
          Amount
          Currency {
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}
```

### NFT Ownership API

#### **Tracking NFT owners**

Use this API to get the latest data on NFT owners on the BSC network. For example, let’s get the latest NFT owner on BSC for this address 0xd17584633bc8d190e5a14502976dad9640456d6d using this [query](https://ide.bitquery.io/bsc-nft-owner). Specify the network as “bsc” and set the dataset parameter to “combined”. Also, set the parameter Fungible to “false” to get the NFT owner.

```
{
  EVM(dataset: combined, network: bsc) {
    BalanceUpdates(
      orderBy: {descending: Block_Time}
      limit: {count: 1}
      where: {BalanceUpdate: {}, Currency: {Fungible: false, SmartContract: {is: "0xd17584633bc8d190e5a14502976dad9640456d6d"}}}
    ) {
      Currency {
        Name
        SmartContract
      }
      BalanceUpdate {
        Address
        Amount
        Id
      }
      Block {
        Number
        Date
      }
    }
  }
}
```

#### **Obtaining NFT Creator Address**

Even though you cannot query for the NFT creator address directly, you can obtain the same by inferring the sender of the first transfer. For this, we will use the Transfers parameter as shown in this [query](https://ide.bitquery.io/bsc-NFT-creator-address). Specify the network as “bsc” and set the dataset parameter to “archive” (to get the first sender). And, set the smart contract address as required, in this case, we’ll use 0xd17584633bc8d190e5a14502976dad9640456d6d.

```
{
  EVM(dataset: archive, network: bsc) {
    Transfers(
      limit: {count: 1}
      orderBy: {ascending: Block_Time}
      where: {Transfer: {Currency: {SmartContract: {is: "0xd17584633bc8d190e5a14502976dad9640456d6d"}}}}
    ) {
      Block {
        Time
      }
      Transfer {
        Amount
        Currency {
          Symbol
          SmartContract
          ProtocolName
          Native
          Name
          HasURI
          Fungible
          DelegatedTo
          Delegated
          Decimals
        }
        Data
        Id
        Receiver
        Success
        Type
      }
    }
  }
}
```

### NFT Transfers API

#### **Tracking daily NFT transfers**

Let’s check the number of daily NFT transfers on BSC using this [query](https://ide.bitquery.io/bsc-nft-daily-transfers). Here, we’ll get data on NFT transfers for the period of 1 week (15-22 February 2024). Specify the network as “bsc” set the dataset parameter to “combined”, Fungible as “false” and dates as given.

```
{
  EVM(dataset: combined, network: bsc) {
    Transfers(
      orderBy: {ascending: Block_Date}
      where: {Block: {Date: {since: "2024-02-15", till: "2024-02-22"}}, Transfer: {Currency: {Fungible: false}}}
    ) {
      Block {
        Date
      }
      count
    }
  }
}
```

#### **Frequently Transferred NFTs on BSC**

By using this [query](https://ide.bitquery.io/bsc-nft-most-transferred-NFT), you can fetch the most transferred NFTs on the BSC blockchain. Specify the network as “bsc” set the dataset parameter to “combined”, Fungible as “false” and dates from 15-22 February as shown here.  

```
{
  EVM(dataset: combined, network: bsc) {
    Transfers(
      orderBy: {descendingByField: "count"}
      limit: {offset: 10, count: 0}
      where: {Block: {Date: {since: "2024-02-15", till: "2024-02-22"}}, Transfer: {Currency: {Fungible: false}}}
    ) {
      Transfer {
        Currency {
          Symbol
          SmartContract
        }
      }
      count
      senders: uniq(of: Transfer_Sender, method: approximate)
      receivers: uniq(of: Transfer_Receiver, method: approximate)
      ids: uniq(of: Transfer_Id, method: approximate)
    }
  }
}
```

Similarly, you can obtain more NFT data using various NFT APIs by Bitquery. To learn more, refer to this [page](https://docs.bitquery.io/docs/category/nft/). 

### DEX Trades API

#### Obtaining token trades

To see details of all the token trades including the protocol used, DEX exchanges, currency traded etc. on a particular day, check this [query](https://ide.bitquery.io/bsc-token-trades). Specify the network as “bsc” and set the dates as required.

```
query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: $limit, offset: $offset}
      time: {since: $from, till: $till}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      buyAmount
      buyCurrency {
        address
        symbol
      }
      buy_amount_usd: buyAmount(in: USD)
      sellAmount
      sellCurrency {
        address
        symbol
      }
      sell_amount_usd: sellAmount(in: USD)
      transaction {
        hash
      }
    }
  }
}
```

#### **Checking DEX Smart Contract Protocols**

You can get a list of all smart contract DEX protocols on BSC during a 1-week period, with this query. Specify the network as “bsc”, set the dataset parameter to “combined”, and dates equal to 21-28 February as shown here.

```
query ($network: evm_network, $limit: Int!, $offset: Int!, $from: String, $till: String) {
  EVM(dataset: combined, network: $network) {
    DEXTrades(
      limit: {count: $limit, offset: $offset}
      where: {Block: {Date: {since: $from, till: $till}}}
      orderBy: {descending: Trade_Dex_ProtocolName}
    ) {
      ChainId
      currencies: uniq(of: Trade_Buy_Currency_Name)
      contracts: uniq(of: Trade_Dex_SmartContract)
      trades: count
      Trade {
        Dex {
          ProtocolName
          ProtocolFamily
          ProtocolVersion
        }
      }
    }
  }
}
```

### Pools API

#### **Latest pools for a specific DEX**

Use this [query](https://ide.bitquery.io/BSC-latest-pools_1) to get recent data on pools on BSC including trading volume, fees and other metrics.

```
{
  EVM(dataset: combined, network: bsc) {
    Events(
      orderBy: {descending: Block_Number}
      limit: {count: 10}
      where: {Log: {SmartContract: {is: "0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7"}, Signature: {Name: {is: "PoolCreated"}}}}
    ) {
      Log {
        Signature {
          Name
          Parsed
          Signature
        }
        SmartContract
      }
      Transaction {
        Hash
      }
      Block {
        Date
        Number
      }
      Arguments {
        Type
        Value {
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
        }
        Name
      }
    }
  }
}
```

Monitoring pool liquidity

You can also get the liquidity of a specific pool using the Pool API. Let’s find out token details in the a random pool which has following address, 0xb4c7e9f5ea5e79a66cc93a198c605f1ba9478138, in this [query](https://ide.bitquery.io/bsc-pool-liquidity_1). Specify the network as “bsc”, and address as specified here.

```
{
  EVM(dataset: combined, network: bsc) {
    BalanceUpdates(
      where: {BalanceUpdate: {Address: {is: "0xb4c7e9f5ea5e79a66cc93a198c605f1ba9478138"}}}
      orderBy: {descendingByField: "balance"}
    ) {
      Currency {
        Name
      }
      balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
      BalanceUpdate {
        Address
      }
    }
  }
}
```

Learn more about extracting pool data [here](https://docs.bitquery.io/docs/examples/dextrades/pools-api/). 

### Smart Contracts API

#### **Tracking Smart Contract Creation**

Another cool thing you can explore on BSC through this API is monitoring how many smart contract calls are created in real-time. For this, we will use the “subscription” parameter. Specify the network as “bsc” in this [query](https://ide.bitquery.io/bsc-smart-contract-creation). You can obtain all the details of the smart contracts created and monitor them through this subscription. 

```
subscription {
  eth_creates: EVM(network: bsc) {
    creates: Calls(where: {Call: {Create: true}}) {
      Block {
        Time
      }
      Transaction {
        Hash
        From
      }
      Call {
        Input
        To
        Output
      }
    }
  }
}
```

### Smart Contract Calls API

#### **Fetching latest smart contract calls**

To obtain all the latest (last 10 days or so) smart contract calls on BSC, use this [query](https://ide.bitquery.io/BSC-latest-smart-contract-calls). This query returns 10 recent smart contract calls made on BSC for the last 10 days, in this case, after 20th of February 2024. Specify the network as “bsc”,  set the dataset parameter to “realtime”, and date after to “2024-02-20” (or, as required).

```
query MyQuery {
  EVM(dataset: realtime, network: bsc) {
    Calls(
      limit: {count: 10}
      orderBy: {descending: Block_Date}
      where: {Block: {Date: {after: "2024-02-20"}}}
    ) {
      Call {
        LogCount
        InternalCalls
      }
      Transaction {
        Gas
        Hash
        From
        To
        Type
        Index
      }
      Block {
        Date
      }
    }
  }
}
```

### Events  API

#### **Tracking Recent Events**

With Events API, you can track the latest events and other statistics on the BSC blockchain. Let’s obtain the latest (last 2 weeks, in this case) 10 events on BSC in this [query](https://ide.bitquery.io/BSC-latest-events). Specify the network as “bsc”,  set the dataset parameter to “realtime”, and date after to “2024-02-15” (or, as required)

```
query MyQuery {
  EVM(dataset: realtime, network: bsc) {
    Events(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Block: {Date: {after: "2024-02-15"}}}
    ) {
      Block {
        Number
      }
      Call {
        CallPath
        InternalCalls
      }
      Topics {
        Hash
      }
      Receipt {
        CumulativeGasUsed
      }
      Transaction {
        From
        To
        Type
      }
      Log {
        Signature {
          Signature
        }
        SmartContract
      }
    }
  }
}
```

### Transfers API

#### **Retrieving Highest BNB Transfer on BSC**

BNB is the native token of BSC. So, to analyze the highest transactions of BNB on BSC, for a specified time period, use this [query](https://ide.bitquery.io/bsc-highest-bnb-transfer). Here, we are getting the largest transactions of  the BNB token in February 2024. Specify the network as “bsc”, and dates as specified here.

```
query ($network: EthereumNetwork!, $token: String!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transfers(
      currency: {is: $token}
      height: {gt: 0}
      date: {since: $from, till: $till}
    ) {
      date {
        date(format: $dateFormat)
      }
      max_amount: maximum(of: amount, get: amount)
    }
  }
}
```

### Transactions API

#### **Latest Transactions**

Transactions API lets you fetch the latest transactions on the BSC chain. This [query](https://ide.bitquery.io/BSC-Last-transactions) fetches the latest 20 transactions on BSC in real-time. Specify the network as “bsc”,  set the dataset parameter to “realtime”, and the count parameter to “20”. 

```
query {
  EVM(dataset: realtime network: bsc) {
    Transactions(limit: {count: 20}
    orderBy: [{descending: Block_Number} {descending: Transaction_Index}]) {
      Block {
        Time
        Number
      }
      Transaction {
        Hash
        Cost
      }
    }
  }
}
```

### Token Holders API

#### **Listing unique token holders**

This API lets you obtain data on the number of unique token holders on BSC. For example, [here](https://ide.bitquery.io/BSC-top-token-holders) we are retrieving the most recent number of unique holders of USDT token on BSC. Specify the network as “bsc”,  set the dataset parameter to “archive”, and the smart contract address as “0x55d398326f99059ff775485246999027b3197955” (USDT).

```
{
  EVM(dataset: archive, network: bsc) {
    TokenHolders(
      date: "2024-02-01"
      tokenSmartContract: "0x55d398326f99059ff775485246999027b3197955"
      where: {Balance: {Amount: {gt: "0"}}}
    ) {
      uniq(of: Holder_Address)
    }
  }
}
```

This API also enables you to track other token related information, such as balance, transfers, holder activity and more. To learn more, refer to the [documentation](https://docs.bitquery.io/docs/examples/token-holders/token-holder-api/).

### Mempool API

This API enables real-time data retrieval from the mempool of EVM chains. With this API, you can track token trades, simulate pending transactions, obtain fee information, track transfers etc., stored in the mempool.

Mempool API is not yet available for the BSC network. It’s expected to come soon. Stay tuned for more information.

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

This article has been written by guest writer [Aparna Sridhar](https://www.linkedin.com/in/aparna-sridhar-0a09b03/)]]></description>
        </item>
        <item>
            <title><![CDATA[ERC vs. SPL Token Standards: A Comparative Analysis]]></title>
            <link>https://bitquery.io/blog/erc-vs-spl</link>
            <guid>https://bitquery.io/blog/erc-vs-spl</guid>
            <pubDate>Wed, 06 Mar 2024 22:00:00 GMT</pubDate>
            <description><![CDATA[
In the dynamic world of blockchain, the recent surge in cross-chain interoperability and decentralized finance (DeFi) applications underscores the critical role of token standards. Among these, the Ethereum Request for Comments (ERC) and Solana Program Library (SPL) standards stand out, not just for their technological innovation but for their pivotal role in shaping the future of digital transactions and asset management. As we delve into the intricacies of SPL and ERC, we highlight their unique features, applications, and potential to revolutionize blockchain technology, guided by the analytical prowess of Bitquery API.

## The Backstory of SPL and ERC Standards

### **Enter ERC – The Standardization Protocols within Ethereum**

ERCs are pivotal in defining Ethereum's core protocols, client APIs, and contract standards. Born from the Ethereum Improvement Proposals (EIPs), ERC standards, particularly ERC-20, ERC-721, and ERC-1155, have become the backbone of Ethereum's digital asset ecosystem, ensuring consistent behaviour and interoperability of tokens, since the adoption of ERC20 in 2017.

The [Ethereum blockchain](https://bitquery.io/blockchains/ethereum-blockchain-api)'s ERC token standards, offer a comprehensive framework for digital assets, ranging from fungible tokens like UNI and SHIB that facilitate utility and governance, to unique non-fungible tokens (NFTs) represented by ERC-721, enhancing the digital art, collectibles, and virtual assets market with examples like CryptoKitties and CryptoPunks. ERC-777 and ERC-1155 further evolve these concepts by introducing transactional 'Hooks' for more complex interactions and a unified standard for managing diverse asset types within a single contract, respectively, showcasing Ethereum's versatility and innovation in blockchain tokenization.

Read more about ERC token standards here: [https://ethereum.org/developers/docs/standards/tokens](https://ethereum.org/developers/docs/standards/tokens)

### **Introduction to SPL Standards**

In contrast, the SPL standard of the [Solana](https://bitquery.io/blockchains/solana-blockchain-api) blockchain offers a unified approach to token management, accommodating both fungible and non-fungible tokens under a single protocol. This reflects Solana's architectural ethos of efficiency and scalability, catering to the high-performance demands of modern blockchain applications. It was launched alongside the Solana mainnet in 2020.

Read more about SPL token standards here: [https://spl.solana.com/token](https://spl.solana.com/token)

**SPL Tokens: Unveiling Unique Features**

SPL tokens distinguish themselves through several key features that deviate from the Ethereum-centric standards like ERC-20:

- Unified Standard for Fungibility: SPL tokens can be either NFTs or fungible tokens, with differences primarily defined at the minting stage. This contrasts with Ethereum's separate standards for fungible (ERC-20) and non-fungible tokens (ERC-721 and ERC-1155).
  
- Composability: Leveraging Solana's composability, SPL tokens can easily reuse code to facilitate rapid development and deployment of new tokens, enhancing the ecosystem's flexibility and developer efficiency.
  
- Efficiency: Reflecting the high-speed transaction processing of the Solana network, SPL tokens offer a more efficient transaction experience compared to their Ethereum counterparts.

**Solana's Token-2022 Enhancements**

In response to the complexities of crafting transactions with multiple token programs on the Solana blockchain, and the need for wallets and on-chain programs to trust supported token programs, a new solution named Token-2022 has been introduced. Deployed to a unique address, Token-2022 is designed to add new token functionalities with minimal disruption to users, wallets, and dApps, while ensuring the safety of existing tokens. This initiative promises new minting functions, including interest-bearing tokens and enhanced transfer capabilities, further solidifying SPL's position as a versatile and dynamic standard.

## SPL vs. ERC-20 Tokens: A Comparative Overview

The main technical divergence between SPL and ERC standards lies in their architectural design and blockchain foundation. Ethereum's ERC standards, including ERC-20, ERC-721, and ERC-1155, provide specialized protocols for different token functionalities. This specialization allows for a broad range of applications but can lead to increased complexity and gas costs associated with deploying and interacting with multiple token types.

Conversely, the SPL standard on Solana streamlines token management by incorporating fungible and non-fungible token functionalities within a single protocol. This unified approach, combined with Solana's efficient consensus mechanism, offers lower transaction fees and faster settlement times, making it particularly advantageous for applications requiring high transaction throughput.

The ERC and SPL token standards both facilitate innovative blockchain applications but face distinct challenges, particularly regarding cross-chain interoperability. While ERC tokens benefit from Ethereum's extensive ecosystem and established standards, they are often criticized for high gas fees and network congestion. In contrast, SPL tokens offer efficiency and scalability but must overcome challenges in achieving widespread adoption beyond the Solana ecosystem, service failures and validator decentralisation. 

The evolving landscape of blockchain technology, with emerging solutions like blockchain bridges and layer 2 scaling, suggests a future where SPL and ERC standards might increasingly interoperate or influence the development of new, more versatile standards. The blockchain community continues to debate the trade-offs between scalability, security, and decentralization, indicating that the evolution of token standards will remain a dynamic area of innovation.

## Leveraging Bitquery API for Token Analytics

Bitquery API offering deep insights into token transfers, dApp interactions, and more. Bitquery indexes data from 40+ blockchains and provides GraphQL APIs and additional interfaces, including WebSocket. 

With its comprehensive support for Ethereum's ERC and SPL tokens in V1 and the upcoming inclusion of Solana's SPL tokens in V2, the Bitquery API represents a crucial tool for developers, analysts, and enthusiasts seeking to navigate the complexities of the blockchain space. To get started for free, please create an account here with your email (https://ide.bitquery.io/) to get your API key and access to the bitquery IDE.

In the next seciton, we are going write GraphQL queries to fetch transfers data from both Ethereum and Solana.

If you're new to GraphQL or Bitquery, please check [our documentation](https://docs.bitquery.io/v1/docs/category/quick-start) which shows how to get started with our IDE.

### Fetching ERC20 Transfers

We will explore a simple query to fetch ERC20 token from Ethereum mainnet on 2nd March. You can try [the query](https://ide.bitquery.io/ethereum-transfers-v1-on-March-2nd-2024) in the IDE.

```
{
  ethereum {
    transfers(
      date: {is: "2024-03-02"}
      options: {limit: 10, desc: "block.timestamp.iso8601"}
    ) {
      amount
      receiver {
        address
      }
      sender {
        address
      }
      transaction {
        hash
      }
      currency {
        name
        symbol
        address
      }
      block {
        timestamp {
          iso8601
        }
      }
    }
  }
}
```

### Fetching SPL Transfers

We will explore a simple query to fetch ERC20 token from Ethereum mainnet on 2nd March. You can try [this query](https://ide.bitquery.io/Solana-SPL-transfers-on-March-2nd-2024-between-2345-to-2350) in the IDE.

```
{
  solana {
    transfers(
      options: {limit: 10, desc: "block.timestamp.iso8601"}
      time: {after: "2024-03-02T23:45:00Z", before: "2024-03-02T23:50:00Z"}
    ) {
      amount
      block {
        timestamp {
          iso8601
        }
      }
      currency {
        address
        name
        symbol
      }
      receiver {
        address
      }
      sender {
        address
      }
      transaction {
        signature
      }
    }
  }
}
```

## Conclusion

To sum things up, we looked at the key differences and similarities between the ERC and SPL token standards. While they both ultimately let you create and use digital assets, their approaches vary quite a bit because Ethereum and Solana have pretty different blockchain architectures and design goals. The ERC standards are more specialized for different token types, giving developers flexibility for all sorts of apps. But SPL takes a unified approach, prioritizing efficiency and scalability.

At the end of the day, it'll be up to projects and users in the space to decide which standard works best for their needs and use cases. No matter which way things go, Bitquery's API is super useful for deep analytics and monitoring across these standards. More than just tracking transfers, their API unlocks a ton of possibilities - compliance tools, custom dashboards, you name it. That versatility could be a game-changer for devs, analysts, and enthusiasts trying to make sense of this constantly evolving blockchain landscape.

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/moneyflow) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

This article has been written by guest writer Anish Majumdar]]></description>
        </item>
        <item>
            <title><![CDATA[Cosmos API: Access Blockchain Data Seamlessly]]></title>
            <link>https://bitquery.io/blog/cosmos-api</link>
            <guid>https://bitquery.io/blog/cosmos-api</guid>
            <pubDate>Tue, 05 Mar 2024 22:00:00 GMT</pubDate>
            <description><![CDATA[
[Cosmos](https://cosmos.network/) is a decentralized network of independent parallel blockchains, each powered by consensus algorithms like Tendermint. It's often called the "Internet of Blockchains" because its primary goal is to enable different blockchains to communicate in a decentralized way, thereby solving the interoperability problem in the blockchain space. Cosmos aims to create an ecosystem of blockchains that can programmatically share data and tokens without intermediaries.

## How Is Cosmos Different from Bitcoin and Ethereum?

The [Cosmos API](https://bitquery.io/blockchains/cosmos-blockchain-api), as part of the Cosmos blockchain ecosystem, differs significantly from [Bitcoin](https://bitquery.io/blockchains/bitcoin-blockchain-api) and [Ethereum](https://bitquery.io/blockchains/ethereum-blockchain-api) in several key aspects, mainly due to its underlying architecture, purpose, and capabilities. Here’s a breakdown of these differences:

- Purpose and Design Philosophy
  - Cosmos: Designed to solve scalability and interoperability issues in the blockchain space. Cosmos enables different blockchains to communicate and transact with each other seamlessly through the Inter-Blockchain Communication (IBC) protocol. It’s a network of blockchains that can scale and interoperate while maintaining sovereignty.
  - Bitcoin: Primarily serves as a decentralized digital currency. Its main goal is to enable peer-to-peer transactions without a central authority. Bitcoin uses a proof-of-work (PoW) consensus mechanism, focusing on security and decentralization.
  - Ethereum: Aims to be a global, decentralized platform for smart contracts and decentralized applications (DApps). Ethereum introduces the concept of a programmable blockchain that can execute scripts using an international network of public nodes.

- Consensus Mechanism
  - Cosmos: Utilizes Tendermint BFT, a proof-of-stake (PoS) based consensus mechanism that is fast, scalable, and energy-efficient. Tendermint allows for instant finality, meaning it cannot be reversed once a block is created.
  - Bitcoin: Uses a proof-of-work (PoW) consensus mechanism, which requires miners to solve complex mathematical puzzles to validate transactions and create new blocks. This process is energy-intensive and can lead to slower transaction times during periods of congestion.
  - Ethereum: Currently transitioning from PoW to a PoS consensus mechanism with its Ethereum 2.0 upgrade. The shift aims to improve scalability, security, and sustainability.

- Scalability
  - Cosmos: Designed with scalability in mind. By allowing each blockchain in the network (Zones) to process transactions independently and communicate via IBC, Cosmos can handle more transactions across its ecosystem without the bottlenecks in singular, monolithic blockchains.
  - Bitcoin and Ethereum: Both suffered from scalability issues initially due to their consensus mechanisms and the single-chain architecture. Ethereum’s transition to Ethereum 2.0 with shard chains attempts to address these issues.

- Interoperability
  - Cosmos: The core feature of Cosmos is its built-in interoperability, facilitated by IBC. This allows different blockchains within the Cosmos ecosystem to transfer data and tokens directly without needing a central exchange or intermediary.
  - Bitcoin and Ethereum: Native interoperability is not built into Bitcoin or the current version of Ethereum, though third-party solutions and sidechains have been developed to facilitate some level of cross-chain interaction.

- Development Framework
  - Cosmos: Offers the Cosmos SDK, a framework for building bespoke blockchains with specific use cases. This SDK simplifies the process of creating sovereign yet interoperable blockchains.
  - Ethereum: Provides a Solidity programming language and smart contract capabilities, enabling developers to build a wide range of DApps and decentralized autonomous organizations (DAOs) on a single blockchain platform.


## Building With Cosmos API

Building applications with the Cosmos API involves interacting with the Cosmos blockchain and its various functionalities. Cosmos is known for its interoperability, scalability, and customizability, offering developers the tools to create interconnected blockchains. The Cosmos SDK and Cosmos Hub (Gaia) are central components of the Cosmos ecosystem, with the SDK providing the framework for building blockchain applications and Gaia serving as the first blockchain built with the SDK, acting as the main hub of the Cosmos network.

Here's a high-level guide on how to start building with the Cosmos API:
- Cosmos SDK: Familiarize yourself with the Cosmos SDK, a framework for building blockchain applications in Go. It allows developers to create modular and interoperable blockchains.
- Tendermint Core: Learn about Tendermint Core, the consensus engine that underpins the Cosmos network, enabling high-performance, secure, and consistent blockchain states across the Cosmos ecosystem.
- Inter-Blockchain Communication (IBC): Understand the IBC protocol, which allows blockchains to communicate and transfer assets between each other, creating a network of interoperable blockchains.

## Cosmos Blockchain Explorer API

To view the key statistics of the Cosmos on the Cosmos Hub Network, use the Bitquery Explorer. It provides a user-friendly interface for retrieving data including Adress, Blocks, Attributes, and a lot more.

![Bitquery Cosmos Explorer Screenshot](/blog/cosmos-api/cosmos-bitquery-explorer-screenshot.png)

[The query](https://ide.bitquery.io/cosmos-query) is displayed in the GraphQL IDE as follows:
```
query ($network: CosmosNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  cosmos(network: $network) {
    blocks(
      options: {desc: "height", limit: $limit, offset: $offset}
      time: {since: $from, till: $till}
    ) {
      timestamp {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      height
      hash
      proposer {
        address
      }
    }
  }
}
```

In the upcoming sections, let’s discuss how we can use the BitQuery API to retrieve more information about the Cosmos API.

## Cosmos API - Address

The Cosmos Address API from the BitQuery API provides information about a specific address on the Cosmos blockchain, like balance, token info, annotation etc.

Open the [query](https://ide.bitquery.io/cosmos-address) in the IDE, and replace the address with a specific address, let’s say,
cosmos1cx82d7pm4dgffy7a93rl6ul5g84vjgxk8xxrnv, and the network variable with “cosmoshub” as shown.
```
query MyQuery {
  cosmos(network: cosmoshub) {
    address(address: {in: "cosmos1cx82d7pm4dgffy7a93rl6ul5g84vjgxk8xxrnv"}) {
      address
      balance
      annotation
    }
  }
}
```

## Cosmos API - Attributes

You can retrieve all the information about the attributes from the cosmos network using the attribute field in the query.
Let’s try getting the attribute information over the cosmos newtork after the date, for example 1st January 2024.

Open the [query](https://ide.bitquery.io/attributes-api) in the IDE, and add the date in the date parameter and add the “desc” parameter with “"block.timestamp.iso8601". You can also filter the attributes by the even type as well.

```
query MyQuery {
  cosmos(network: cosmoshub) {
    attributes(date: {after: "2024-01-01"}, options: {desc: "block.timestamp.iso8601", limit: 10}) {
      attribute
      block {
        timestamp {
          iso8601
        }
      }
      eventType
      message {
        index
        senders
        success
        type
      }
      transaction {
        hash
        signer {
          address
        }
      }
    }
  }
}
```

The query is gives the  details about specific attributes from the Cosmos blockchain (Cosmos Hub) for events that occurred after January 1, 2024. It returns information such as the attribute's type, related block timestamp in ISO 8601 format, event type, and the associated message and transaction details, including message index, senders, success status, message type, transaction hash, and signer's address.

## Cosmos API - Blocks

You can easily retrieve specific details according to your needs about the blocks produced over the Cosmos Netwrok,  from the Cosmos API. 

Opne the IDE and write the [query](https://ide.bitquery.io/blocks-api) as shown below. Let’s search the block data after 1st January 2024 and limit our search to 10 results by putting the “limit” argument to 10.
```
query MyQuery {
  cosmos(network: cosmoshub) {
    blocks(
      date: {after: "2024-01-01"}
      options: {desc: "timestamp.iso8601", limit: 10}
    ) {
      hash
      header
      metadata
      proposer {
        address
      }
      timestamp {
        iso8601
      }
    }
  }
}
```

This query provides a snapshot of the most recent activity on the Cosmos blockchain, focusing on the latest 10 blocks added after January 1, 2024, including their hashes, headers, heights, metadata, the addresses of their proposers, etc. This information can be useful for tracking blockchain activity, understanding the sequence of block proposals, and analyzing the blockchain's current state.


## Cosmos API - Coinpath

This Cosmos API helps you to study the money flow of a specific address on the Cosmos Blockchain.
If you want to study the money flow according to your projects, you can make your own query.

Open the [query](https://ide.bitquery.io/coinpath-api_1) in the IDE, and replace the address with the one shown.

```
query MyQuery {
  cosmos(network: cosmoshub) {
    coinpath(initialAddress: {is: "cosmos1cx82d7pm4dgffy7a93rl6ul5g84vjgxk8xxrnv"}) {
      amount(in: USD)
      any(of: time)
      block {
        height
        timestamp {
          iso8601
        }
      }
      receiver {
        address
      }
      sender {
        address
      }
    }
  }
}
```

This query is designed to extract detailed transaction data for a specific address on the Cosmos Hub, including the transaction amounts in USD, block height and timestamp, as well as the sender and receiver addresses for each transaction. This could be useful for analyzing a specific address's transaction history and patterns, tracking fund flows, or auditing purposes.

## Cosmos API - Messages

The Cosmos Message API in Bitquery allows you to query message-related data on the Cosmos blockchain. It enables access to detailed information about messages, including senders, types, success status, and other attributes associated with transactions and events on the Cosmos network. This API is crucial for developers and analysts looking to extract and analyze specific message data, facilitating a deeper understanding of transaction dynamics and interactions within the Cosmos ecosystem.

To receive the messages within a specific block, open the IDE and use the following [query](https://ide.bitquery.io/message-api), as shown below.

```
query MyQuery {
  cosmos(network: cosmoshub) {
    messages(blockHeight: {is: 16494924}) {
      index
      json
      senders
      success
      transaction {
        hash
        signer {
          address
        }
      }
      type
    }
  }
}
```

You can also retrieve messages based on the specific address, by entering your desired address and using the “transactionSigner” argument of the query.

## Cosmos API - Transactions

Use the Cosmos Transactions API to retrieve the information related to the transactions created on the Cosmos Blockchain.

For example, let’s retrieve the details on the specific hash. Open the IDE, and use the following [query](https://ide.bitquery.io/transactions-api).

```
query MyQuery {
  cosmos(network: cosmoshub) {
    transactions(
      hash: {is: "028b49185b0be6adf7b24804a3c28cd3a0a01c9b0ce0c6eb2e7dce1f5c0dc6b2"}
    ) {
      block {
        height
        timestamp {
          iso8601
        }
      }
      fee
      feeCurrency {
        name
        address
      }
      gasUsed
      index
      rawTx
      signer {
        address
      }
      type
    }
  }
}
```

This query is structured to provide a detailed view of recent transactions on the Cosmos Hub, focusing on their block placement, timing, fees, and the currency used for those fees. It's a targeted way to understand transaction dynamics, costs, and activities on the Cosmos Hub for a specific recent timeframe.

## Cosmos API - Transfers

The Transfers API returns information about the transfers taking place over the Cosmos Network according to your needs.
To retrieve information about the latest transfers that have taken place over the Cosmos Network, aftera particular date, let’s say 2nd February, consider the following [query](https://ide.bitquery.io/transfers-api), in the IDE.

```
query MyQuery {
  cosmos(network: cosmoshub) {
    transfers(
      date: {after: "2024-02-05"}
      options: {desc: "block.timestamp.iso8601", limit: 10}
    ) {
      block {
        height
        timestamp {
          iso8601
        }
      }
      currency {
        address
        name
      }
    }
  }
}
```

## Conclusion

Building with the Cosmos API using BitQuery involves utilizing GraphQL queries to access a wide range of data from the Cosmos blockchain, such as transactions, messages, blocks, and attributes. This process enables developers to create applications with real-time and historical blockchain data, enhancing their capabilities with detailed insights into blockchain events and entities. The API supports the development of various blockchain-based products by providing structured, reliable data from the Cosmos network, essential for analysis, monitoring, and integration into decentralized applications (dApps).

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/moneyflow) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Blockchain Transaction Simulation: Insights and Applications]]></title>
            <link>https://bitquery.io/blog/transaction-simulation</link>
            <guid>https://bitquery.io/blog/transaction-simulation</guid>
            <pubDate>Mon, 04 Mar 2024 22:00:00 GMT</pubDate>
            <description><![CDATA[
Transaction simulation refers to the process of emulating the execution of transactions within a blockchain network without broadcasting them, offering developers a sandbox environment to test their applications. Think of transaction simulation in blockchain networks like a developer sandbox where you can test your code without affecting the live system, similar to how a virtual machine lets you experiment with software configurations without impacting your main operating system.

It is crucial for developers to validate smart contracts, optimize gas usage, and ensure the reliability of their applications before deployment. Let’s discuss a few applications briefly.

- **Smart Contract Development:** Testing computer programs (smart contracts) on the blockchain before officially using them.
- **Scalability Testing:** Checking how well the blockchain handles a lot of transactions.
- **Security Testing:** Making sure the blockchain is safe from hackers or mistakes.
- **Protocol Optimization:** Tweaking the rules of the blockchain to make it work better.
- **DApp Testing:** Trying out apps built on the blockchain to see if they work right.
- **Gas Optimization:** Figuring out the cheapest way to use the blockchain.
- **Fork Testing:** Seeing what happens if the blockchain splits into different versions.

## How does Transaction Simulation work?

### Input Parameters:
Simulation typically starts with defining input parameters such as the transaction type (e.g., transfer, contract execution), sender address, receiver address, gas limit, gas price, etc.

### Validation:
Initial validation ensures that the provided input parameters are valid and feasible for the simulation. This involves verifying the integrity of addresses, the validity of the transaction type, and adherence to protocol-specific constraints.

### State Initialization:
The simulation initializes the state based on the current state of the blockchain. This includes fetching the latest balances, contract codes, and other necessary data.

### Gas Estimation:
Gas estimation is crucial to determine the computational cost of executing the transaction. Each operation within the transaction is evaluated to determine its gas consumption based on factors such as opcode cost, memory usage, and storage access.

Terminologies used:
- **Opcode:** EVM Opcodes are the fundamental instructions understood and executed by the Ethereum Virtual Machine (EVM) during the processing of smart contracts. They dictate specific operations such as arithmetic calculations, data manipulation, and control flow within the smart contract bytecode. Each opcode has an associated gas cost, which determines the computational resources required for its execution on the Ethereum network.

### Execution:
The transaction is simulated by executing the operations specified in the input parameters. This involves updating the state according to the transaction logic, such as transferring funds, updating contract storage, etc.

### Gas Consumption:
During execution, the gas consumed by each operation is tracked. If the gas limit specified in the input parameters is exceeded, the simulation halts, and the transaction is considered invalid.

### Output Evaluation:
This includes checking for errors, verifying that the transaction was successful, and determining the resulting state changes.

### Reversibility Check:
In testing environments where transaction reversibility is critical, a reverse simulation may be conducted to assess the impact of undoing the transaction. This involves rolling back state changes and evaluating the consistency of the blockchain state post-reversion.

Terminologies used:
- **Rollback State:** Rollback state means going back to how things were before a transaction happened. It's like pressing an undo button to reverse any changes made.
- **Post-Reversion:** Post-reversion refers to the state of things after the rollback has been done. It's the situation or condition after everything has been reverted to its previous state.

## Role of Bitquery Mempool API

Bitquery Mempool API helps to perform in-depth analysis, validate transaction patterns, and identify potential bottlenecks in their applications. Additionally, it provides developers with access to simulated transactions over raw mempool data, offering a comprehensive suite of tools for analysis and optimization.

Terminologies used:
- **Raw:** Unprocessed or unrefined data in its original form, often referring to data directly obtained from the source without manipulation.
- **Mempool Data:** Data related to the transactions present in the memory pool of a blockchain network.
- **RPC:** Stands for Remote Procedure Call, a protocol that allows a program to execute code on a remote server.
- **Providers:** Entities or services that offer RPC interfaces to access blockchain data and perform operations remotely.

## Streamlining Simulation Processes with the help of Bitquery Mempool API

### Data Validation and Integrity Checks:
Transaction simulation in a virtual environment requires accurate mirroring of real-world scenarios. Bitquery Mempool API enables robust data validation and integrity checks, making it possible through:
- Comprehensive Data Access
- Rich Data Insights
- Customizable Queries
- Error Handling Mechanisms

### Performance Optimization Techniques:
Optimizing transaction simulation performance is crucial for efficiency and accuracy. Bitquery Mempool API facilitates this through:
- Real-Time Data Updates
- Query Optimization
- Scalable Infrastructure
- Integration with Analytical Tools

## Case Studies of Successful Transaction Simulations with the help of Bitquery Platform

### DeFi Protocol Optimization:
- **Problem:** A decentralized finance (DeFi) protocol faced performance issues and high gas fees due to inefficient smart contract execution.
- **Solution:** Leveraging Bitquery's transaction simulation capabilities, the protocol's developers analyzed transaction patterns and identified optimization opportunities.
- **Outcome:** By fine-tuning smart contracts and optimizing gas usage based on simulation results, the DeFi protocol achieved significant performance improvements, reduced transaction fees, and enhanced user experience.

### Optimizing Gas Usage for a Decentralized Exchange (DEX)
- **Problem:** A decentralized exchange (DEX) on the Ethereum network faced high gas fees and slow transaction processing times, impacting user experience and adoption rates.
- **Solution:** Leveraging Bitquery's transaction simulation capabilities, the development team conducted in-depth analysis of transaction patterns and gas usage within the DEX platform.
- **Implementation and Outcome:**
    - Gas Optimization
    - Transaction Prioritization
    - Protocol Enhancement
    - Cost Reduction
    - Improved User Experience
    - Increased Adoption

## Challenges and Solutions

- **Scalability:** Ensuring scalability, especially when testing applications with a large user base, is a challenge. Bitquery addresses this by providing access to real-time mempool data and offering tools for analyzing transaction throughput and performance metrics.
- **Accuracy:** Achieving accurate transaction simulations is crucial for identifying potential issues and validating application functionality. Bitquery Mempool API offers reliable data sources and advanced simulation tools, enabling developers to simulate real-world transaction scenarios with precision and confidence.

## Future Trends in Transaction Simulation

Transaction simulation is bound to evolve significantly in the coming years, driven by advancements in technology and increasing demand for secure and user-friendly tools in the blockchain ecosystem. Some potential future trends in transaction simulation include:
- Enhanced Security Measures
- Integration of Machine Learning and AI
- Deeper Integration with Blockchain Networks
- Cross-Chain Compatibility
- User-Friendly Interfaces and Educational Resources
- Integration with Decentralized Finance (DeFi) Protocols
- Regulatory Compliance Features

In conclusion, Bitquery Mempool API offers invaluable insights that can help you navigate the complexities of blockchain technology. From real-time monitoring to predictive analytics, this powerful tool equips you with the information you need to stay ahead of the curve and make smarter decisions. Dive into the possibilities with Bitquery Mempool API today.

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

---
**Written by Dheeraj M**]]></description>
        </item>
        <item>
            <title><![CDATA[Bid, Win, Own: Understanding the Process of NFT Auctions]]></title>
            <link>https://bitquery.io/blog/nft-auction-track</link>
            <guid>https://bitquery.io/blog/nft-auction-track</guid>
            <pubDate>Mon, 04 Mar 2024 06:35:07 GMT</pubDate>
            <description><![CDATA[
Imagine having the ability to anonymously create an art or a collection of art pieces, auction it, view bids in real-time and transfer its ownership to probably an anonymous user halfway around the world.

This has been achieved in significant events like [Beeple’s Everydays: The First 5000 Days](https://www.theverge.com/2021/3/11/22325054/beeple-christies-nft-sale-cost-everydays-69-million) . This was and is currently the most famous NFT sale ($69.3 million/38525 ETH) which closed on 11th March 2021. This sale created a widespread effect on how people viewed NFTs with the news buzzing all around popular social media platforms.

All this is made possible with the right tools, user interface and real-time data which can be sourced from a real-time & historical blockchain data provider which provides the token analytics, metadata, historical pricing and trading data from all top NFT marketplaces.

In this detailed blog post, we are going to dive into auctioning, how it works for NFTs and how to analyze it's statistics, events and properties with one of the most powerful blockchain data provider, Bitquery.


## How does an auction work in traditional finance?

### Traditional Auctioning

Now, traditional auctions work in a very simple principle which is a competitive bidding where interested and potential buyers bid against each other with the minimum price (also known as the reserve price) set by the auctioneer. This goes on till someone bids the highest amount and no further bid is made which results in closing the bidding and the art or item going to the highest bidder after payment is made.

## How does an NFT auction work ?

Introducing auctions in web3 will obviously work in a different way but with the same principle with traditional auctioning.

The significant advantages of conducting an auction for NFTs using blockchain technology includes the introduction of decentralization as it leverages smart contracts to facilitate the auction process. This also has to be done on a smart contract platform or network such as Ethereum, Cardano or Solana.

### Steps required

This is a step-by-step method of how NFT auctions typically work in Web3

1. Creating the smart contract: This involves the initial creation of the smart contract (writing the code) and deployment on a network like Ethereum or Solana. You can create the initial NFT contract easily with a less technical tool like [OpenZeppelin Contract Wizard](https://wizard.openzeppelin.com/) with its standard features.

Now let’s continue with the auction contract. By default, it should specify the following:

- Accepted Payment Type ( ETH or any ERC-20 token if deploying on Ethereum)
- Minimum Price - when this is met, the auction begins
- Buy Now Price - which when met by a buyer will automatically conclude the auction.
- Auction Bid Period - specifies the amount of time the auction will last after the minimum price is met.
- Fees percentage

The smart contract should also include a transfer, transferFrom, start, bid, withdraw and end functions. The events under the auctions should also include a Start(), End(), Bid(), Withdraw()

Additional functions or events can be added, but the following above are just the basics.

2. Minting the NFT (Tokenization): This process ensures that the necessary metadata and attributes for the NFT, are stored on-chain with a unique token ID.

3. Initializing the Auction: The creator or seller can invoke the start function on the auction smart contract to which the start/minimum price and any other rules is set.

4. Placing Bids: In this step, potential buyers can now interact with the smart contract through a decentralized application interface by connecting their wallet and submitting a transaction (indicating the amount they are willing to purchase the item). This step also progresses to validation, as the smart contract validates each individual bid to make sure that it meets the set rules.

5. Completing the Auction: This occurs when the time expires or if the seller manually ends the auction by invoking the end function. The highest bidder is now declared the winner of the auction.

6. Transfer of assets: Upon completion, payment is made to the smart contract and it transfers the ownership of the NFT from the seller to the winner of the auction.

7. Distribution/Settlement: The proceeds of the auction are now splitted between the seller and any relevant parties, for example a platform that might be hosting the auction or providing the tools for the auction process as they will equally take a percentage as fees.

Finally, the events of the auction are logged on-chain and all transactions can be viewed through a blockchain explorer or data source like Bitquery.

### Platforms used

Most NFTs that undergo the auction process always do so on a platform which is also known as NFT Marketplaces which offers the creators or original owner the tools and always charges a percentage or a fee before initiating the process.

Some popular ones include the following:

- Opensea
- Rarible
- Nifty Gateway
- SuperRare
- Magic Eden
- Zora
- Foundation
- Binance Marketplace

## Tracking & Analysis of an auctioned NFT with Bitquery

In case you’re new and reading this piece, let me give a short overview of what Bitquery does and how its services are critical in the blockchain industry.

Bitquery is a blockchain data provider with a wide range of API products and solutions which includes NFT Marketplaces and data sourcing in this context. Also to mention that it supports over 40+ blockchains and provides GraphQL APIs and additional interfaces, including WebSocket.

Now, the real question is how does Bitquery help you to analyze or track an auctioned NFT?

Very simple,

Let's take a sample auctioned NFT and throw some analytics prowess via queries with the platform.

In this case, we will be using Fidenza #725, which was one of the NFTs belonging to bankrupt cryptocurrency hedge fund Three Arrows Capital. The NFT sold for over [$1 million fetching the highest price at the auction house Sotheby](https://economictimes.indiatimes.com/tech/technology/nfts-belonging-to-bankrupt-crypto-firm-fetch-nearly-2-5-million-at-auction/articleshow/100368614.cms).

The auctioned NFT also known as [Fidenza by Tyler Hobbs](https://opensea.io/collection/fidenza-by-tyler-hobbs) which is part of Art_Blocks Collection with over 999 items.

Plugging in the main smart contract address for the [Art Blocks NFTs] (https://explorer.bitquery.io/ethereum/token/0xa7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270/nft_smart_contract) on the explorer, we get this results below, showing the token info and the most popular NFT

![explorer](/blog/nft-auction-track/Screenshot(603).png)

![most popular nft](/blog/nft-auction-track/Screenshot(604).png)

But we are looking for Fidenza #725 which is the NFT that was auctioned with the token id (78000725)

Searching for the unique id on the Arts Block NFT collection page on the explorer we see this

![](/blog/nft-auction-track/Screenshot(606).png)

The page shows us the properties and the values and also transfers which we can also view on the [IDE](https://ide.bitquery.io/NFT-Token-Information-By-ID_6?config=9fa131&utm_source=explorer.bitquery.io&utm_medium=referral&utm_campaign=ethereum&utm_content=nft%20id)

Now let’s get more deeper by writing queries for further analysis on the Art Blocks NFT collection.

1.  ### NFT Collection Trade Volume

Let’s get the trade volume of the collection (in ETH) with the query below

```
{
  EVM(network: eth, dataset: combined) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {Fungible: false, HasURI: true, SmartContract: {is: "0xa7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270"}}, Dex: {ProtocolName: {is: "seaport_v1.4"}}, Side: {Currency: {Name: {is: "Ethereum"}}}}}
    ) {
      sum(of: Trade_Side_Amount)
    }
  }
}

```
We get this result

```
{
  "EVM": {
    "DEXTradeByTokens": [
      {
        "sum": "24419.215181700253849799"
      }
    ]
  }
}
```

This shows that 24146.65 ETH has been traded on the NFT collection

You can run the already saved query [here](https://ide.bitquery.io/Arts-Block-NFT-Trade-Volume-for-Collection)

2.  ### NFT Collection Sales

Let us check for NFT sales on the collection after Jan 1st 2024. You can also edit this code in the IDE and set it to any date you desire.

```
{
  EVM(network: eth, dataset: combined) {
    DEXTradeByTokens(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Currency: {Fungible: false, SmartContract: {is: "0xa7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270"}}, Dex: {ProtocolName: {is: "seaport_v1.4"}}}, Block: {Date: {after: "2024-01-01"}}}
    ) {
      Block {
        Time
      }
      Trade {
        Amount
        Buyer
        Currency {
          Name
          ProtocolName
          SmartContract
        }
        Dex {
          ProtocolFamily
          SmartContract
          ProtocolName
          ProtocolVersion
        }
        Ids
        Price
        Seller
        Side {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Type
        }
        URIs
      }
      Transaction {
        Hash
      }
    }
  }
}

```

You can also run the already saved query [here](https://ide.bitquery.io/Arts-Block-NFT-Sales)

3.  ### Fetching Owner

Let us write a query to fetch the owner of the Fidenza #725 NFT that was auctioned.

```
query MyQuery {
  EVM(dataset: combined, network: eth) {
    BalanceUpdates(
      orderBy: {descending: Block_Time}
      limit: {count: 1}
      where: {BalanceUpdate: {Id: {eq: "78000725"}}, Currency: {Fungible: false, SmartContract: {is: "0xa7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270"}}}
    ) {
      Currency {
        Name
        SmartContract
      }
      BalanceUpdate {
        Address
        Amount
        Id
      }
      Block {
        Number
        Date
      }
    }
  }
}

```

This query returns an output that shows us the address that currently own the NFT as this address (0x95b9f6e91212014ed3224c8ccc17dcd5895a7f53)

You can run the already saved query [here](https://ide.bitquery.io/NFT-Owner-Address)

4.  ### NFT Metadata

Writing a query to get the metadata of the desired NFT, if you notice in the code below, the Fidenza #725 id is used to get the exact metadata with the Arts Block Collection smart contract address.

```
{
  EVM(dataset: archive, network: eth) {
    Transfers(
      where: {Transfer: {Currency: {SmartContract: {is: "0xa7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270"}}, Id: {eq: "78000725"}}}
      limit: {count: 1, offset: 0}
      orderBy: {descending: Block_Number}
    ) {
      Transfer {
        Currency {
          SmartContract
          Name
          Decimals
          Fungible
          HasURI
          Symbol
        }
        Id
        URI
        Data
        owner: Receiver
      }
    }
  }
}

```

You can run the query [here](https://ide.bitquery.io/NFT-Metadata_2)

5.  ### Explore creator's portfolio

We can identify the original owner/creator of the Fidenza #725 . So we write this query which searches for the earliest transfer.

```
query MyQuery {
  EVM(dataset: archive) {
    Transfers(
      limit: {count: 1}
      orderBy: {ascending: Block_Time}
      where: {Transfer: {Currency: {SmartContract: {is: "0xa7d8d9ef8D8Ce8992Df33D8b8CF4Aebabd5bD270"}}, Id: {eq: "78000725"}}}
    ) {
      Block {
        Time
      }
      Transfer {
        Amount
        Currency {
          Symbol
          SmartContract
          ProtocolName
          Native
          Name
          HasURI
          Fungible
          DelegatedTo
          Delegated
          Decimals
        }
        Data
        Id
        Receiver
        Success
        Type
      }
    }
  }
}

```

This query returns the creator address which is 0x429c8a65f4858ab2e6dc7112e88f0c0796a42692

You can find the saved query [here](https://ide.bitquery.io/Fidenza-725)

Now we will find the balance of the creator’s address

Writing this query to find the ETH balance of the creator’s wallet address

```
{
  ethereum {
    address(address: {is: "0x429c8a65f4858ab2e6dc7112e88f0c0796a42692"}) {
      balances(currency: {in: ["ETH", "0xdac17f958d2ee523a2206206994597c13d831ec7"]}) {
        currency {
          symbol
        }
        value
      }
    }
  }
}

```

It returns the following which shows the balance of the address as 0.38 ETH, you can find the query [here

](https://ide.bitquery.io/Address-Balance_1)

```

{
  "ethereum": {
    "address": [
      {
        "balances": [
          {
            "currency": {
              "symbol": "ETH"
            },
            "value": 0.38017523843271966
          },
          {
            "currency": {
              "symbol": "USDT"
            },
            "value": 0
          }
        ]
      }
    ]
  }
}
```

## Conclusion

This piece offers a solid knowledge about how NFTs are auctioned in a decentralized infrastructure, including its process and how you can use an advanced platform like Bitquery to dive deep and perform diligent analytics in order to make well informed decisions about assets like non-fungible tokens.

To learn more about NFTs and the underlying technology that makes everything in the decentralized web (Web3) possible, visit our [blog](https://bitquery.io/blog) to learn more about blockchain and related products. You can also sign up for our newsletter via the blog page to become an analytics pro on-chain.

Helpful Links

[https://docs.bitquery.io/docs/category/nft/](https://docs.bitquery.io/docs/category/nft/)

[https://docs.bitquery.io/docs/examples/nft/nft-api/](https://docs.bitquery.io/docs/examples/nft/nft-api/)

[https://docs.bitquery.io/docs/start/first-query/](https://docs.bitquery.io/docs/start/first-query/)

[https://docs.bitquery.io/docs/ide/login/](https://docs.bitquery.io/docs/ide/login/)


*Disclaimer : This post does not in any way or medium serve as an investment guide in NFT trading or purchasing. It only aims to explain how NFT auctioning works and how you can use Bitquery to track and analyze its events.*


---

*This blog was written by Eugene*]]></description>
        </item>
        <item>
            <title><![CDATA[A Comprehensive Guide to the Beacon Chain and How It Works]]></title>
            <link>https://bitquery.io/blog/beacon-chain-comprehensive-guide</link>
            <guid>https://bitquery.io/blog/beacon-chain-comprehensive-guide</guid>
            <pubDate>Mon, 04 Mar 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
The Beacon Chain is a fundamental component of the Ethereum blockchain. Before the merge, the Ethereum blockchain used the Proof of Work (POW) consensus mechanism — a process that requires a group of validators to solve a mathematical puzzle to win the chance to add a block to the blockchain.

Over the years, there have been a ton of issues (like scalability issues, high energy consumption, indirectly susceptible to centralization, and so on) about the POW consensus mechanism. So, the Ethereum Foundation decided to tackle this problem by changing the consensus mechanism of the blockchain to Proof of Stake (POS). POS is a consensus mechanism that allows you to stake your cryptocurrency to become a validator on the blockchain.

On September 15, 2022, [Ethereum transitioned](https://ethereum.org/roadmap/merge) from POW to POS, which is also known as the Beacon Chain.

What is the Beacon Chain, and how does it affect the stability, decentralization, and security of the Ethereum blockchain? Let’s check that out!

## What is the Beacon Chain?

Simply put, the [ETH Beacon Chain](https://bitquery.io/blog/eth2-api) is the central component of the Ethereum blockchain responsible for adding a valid block to the blockchain. The Beacon Chain maintains and coordinates the state of the Ethereum blockchain.

After the transition to POS, the Ethereum blockchain splits into two layers. In a literal sense, the blockchain is still a single blockchain. A closer look under the hood reveals that Ethereum contains two interdependent layers (the execution and the consensus layer).

The Execution Layer known as Ethereum 1.0 is usually referred to as the ‘Brain' of the blockchain. The Consensus Layer is the Beacon Chain, which is also known as the ‘Heart’ of the Ethereum blockchain. Just as the human heart coordinates blood production and maintains the heartbeat, the Beacon Chain coordinates the creation, validation, and addition of blocks to the blockchain.

The Beacon Chain doesn’t process any smart contract transaction, but it validates transactions and coordinates the behavior of the network validators. It also handles the block and consensus logic and deals with network validation.

## Why Does Ethereum Transition to POS

In the introduction, we've seen an overview of what led to Ethereum transitioning from POW to POS. Now let’s go through some of the reasons for the transition.

1.  ### Energy Efficiency

The POW consensus mechanism requires miners (validators) to compete with other miners to solve complex mathematical puzzles. The first to correctly solve the problem will be assigned to add a new block to the blockchain. This consensus mechanism is resource-intensive and environmentally unfriendly because it consumes a lot of energy. Therefore, it receives a lot of backlash from environmentalists.

On the other hand, however, the POS uses a different mechanism to assign block production. Instead of running energy-intensive hardware, the POS system requires anyone who wants to become a validator on the network to stake a certain amount as collateral. The validators are randomly selected to create new blocks, which will only be added to existing blocks and finalized if two-thirds of the validators guarantee that the block created correctly aligns with the existing blocks in the chain. This system of mechanism consumes less energy when compared to the POW mechanism.

2.  ### Scalability and Transaction cost

Pre-merge, when Ethereum still runs on the POW mechanism, the blockchain can only process 15 transactions per second (tps) — that’s even when the blockchain is running at optimal performance. This performance can’t meet the demand of real-life (financial or technological) use cases if compared to the efficiency of Visa, which claims to process 50k tps.

While the transaction processing and scalability haven’t been solved, the Ethereum blockchain transitioning to POS has started on the path to reaching that high scalability and efficiency. With the Beacon Chain, Ethereum is on the path that will improve the scalability of the chain and reduce the transaction cost (gas fee) paid for processing a transaction.

3.  ### Security and Decentralization

The immutability of the blockchain makes it a great tool with great potential in the real world. Over the years, as technology and knowledge increase, the security of the blockchain is becoming more and more threatened by centralization.

The introduction of mining pools and farms led to the centralization of the miners (validators), which makes blockchain susceptible to censorship. You know POW is energy-intensive, and as a way to reduce energy costs, mining farms moved to regions with sufficient energy production and low energy cost.

On the other hand, the difficulty of the mathematical puzzles reduces the probability of individual miners winning a reward. So, those interested in blockchain validation usually pool their resources together to increase their odds against institutional miners. And this leads to the centralization of power.

But with the introduction of the Eth Beacon Chain, validators can’t pool their resources together to gain a higher chance to create a block — you only need 32ETH to be a validator — nothing more, nothing less.

Finally, as a security measure, POS promotes responsible behavior while it discourages bad actors through economically disincentivizing them. Validators risk losing their staked ETH if they work against the system.

## The Feature of the Beacon Chain

The Beacon Chain is the core component of the Ethereum network, and it manages the consensus layer. In this section, let's look at the features of the Beacon Chain that qualify it as the backbone or the heart of the system.

1.  ### Slot

The slot is a unique time when a validator is assigned the responsibility of proposing a new block and attesting to the validity of the block. If the Beacon Chain is the heart, the slot is the heartbeat. Each slot is usually a 12-second window.

This strict time window enables validators (proposers) to propose and propagate a block to the selected validators (attesters), who vote on the block and propagate all slot activity to the next slot’s block proposal.

2.  ### The Epoch

An Epoch is a bundle of 32 slots, which the validator proposes and attests. It represents the complete round of the POS protocol. A complete epoch usually takes 6.4 minutes (32 slots and 12sec each per slot). The Epoch determines the schedule of events on the blockchain network.

Each Epoch (bundle of 32 slots) is usually finalized after the progression of two more Epoches after it. The first slot of every Epoch is like a checkpoint where previous blocks are justified and then finalized.

3.  ### Committee

The committee is a group of validators randomly selected to reach a consensus on a slot to add a block to the blockchain. In the Eth Beacon Chain, each slot usually has a committee of a minimum of 128 validators. This means that an attacker has less than a one in a trillion probability of controlling the two-thirds of the selected committee.

The committee is an integral part of the Ethereum consensus layer and plays a significant role. The group of validators is randomly split across the slots to form a committee. The committee members are only allowed to vote once and get disbanded immediately.

Moreover, the committee members are pseudo-randomly selected to ensure decentralization and to prevent predictability.

The committee is divided into two roles —- the Block Proposer and the Attester

1.  The Block Proposer

As the name implies, the block proposer proposes new blocks to the committee during their assigned slot. A block proposer's job is to create and broadcast the blocks to the Beacon Chain network for attestation.

2.  The Attesters

These groups are responsible for attesting to the validity of blocks proposed by the block proposer. Their job is to confirm the correctness of the block by voting for the blocks that should be the new head of the block.

Their job is to finalize blocks and contribute to network security. This group signs and broadcasts an attestation that expresses support for a block. An attester's vote is weighed by their staked balance.

## How to Monitor the Beacon Chain Data Using Bitquery

[Bitquery](https://bitquery.io/) is a blockchain data company that indexes, parses, and stores blockchain data. Blockchain data are usually transparent, immutable, and openly accessible. Bitquery helps you index and transform data into useful information to make informed decisions. The data tool offers access to over 40 blockchains, offering you access to unlimited possibilities.

Monitoring the Beacon Chain should be important to persons who work with data. With Beacon Chain analysis, you can identify trends and patterns and make informed decisions. In this section, we’ll get familiarized with the Beacon Chain data using the Bitquery [Beacon Chain APIs](https://bitquery.io/blockchains/eth2-blockchain-api).

1.  ### Attestation API

Attestation is the process where validators agree on the state of the block by signing and broadcasting their attestation. It’s a vote made by each validator to reach a consensus or to approve a transaction backed up by their staked balance. Attestation plays a vital role in achieving consensus and maintaining the integrity of the Ethereum blockchain.

The [Bitquery Attestation API](https://docs.bitquery.io/v1/docs/Schema/ethereum2/attestations) helps analysts gain insight into the attestation submitted to the Beacon Chain. You can get information about the epoch, slot number, community index, and attestation. You can also gain detailed information about the block where the attestation was included.

This query below gives you access to information about the Attestation Slot index 5593804

The [slot_Attestation_info query](https://ide.bitquery.io/slot-attestation-info-query) below pulls the block proposer (index and public key) information, ParentRoot hash, committee Index, deposit count, and the specific date of proposal and Attestation of slot 5593804.

```
query slot_Attestation_info {
  ethereum2(network: eth2) {
    attestations(attestationSlot: {is: 5593804}) {
      proposer {
        index
        pubkey
      }
      parentRoot
      committeeIndex
      eth1 {
        depositCount
      }
      date {
        date(format: "%y-%m-%d")
      }
    }
  }
}
```

The [attestation_committee_info query](https://ide.bitquery.io/Attestation-Committee_Info) below pulls committee information (committee index, total attestations submitted, total validators, and the total attestation slots) created between Jan 1 and February 23, 2024.

```
query Attestation_committee_info {
  ethereum2(network: eth2) {
    attestations(
      options: {desc: "attestations", limit: 10}
      date: {since: "024-01-01", till: "024-02-23"}
    ) {
      committeeIndex
      attestations: count(uniq: attestations)
      validators: count(uniq: validators)
      attestation_slots: count(uniq: attestation_slots)
    }
  }
}

```

You can also pull several other data from the Ethereum Beacon chain using different available information (including block proposer index, blockroot hash, committee index, and so on).

2.  ### AttesterSlashing API

Attester slashing is the penalty imposed on validators who work against the goodwill of the chain. If the attester violates the protocol's rule, their staked balance is usually slashed (i.e. they lose a percentage of their money for breaking the rule).

The [Bitquery attestation slashings API](https://docs.bitquery.io/v1/docs/Schema/ethereum2/attesterSlashings) allows you to query for validators who have been slashed. You gain in-depth information about who they are — The API helps you retrieve data about the validator’s parent root, validator’s index and public key, deposit count, and so on.

The [count_of_slashings query](https://ide.bitquery.io/Count_of_slashings) below returns the total number of epochs that were slashed after the merge. (For context, the merge occurred on 16 September 2022)

```
query Count_of_Slashings {
  ethereum2(network: eth2) {
    attesterSlashings(date: {after: "2022-09-15"}) {
      count(uniq: attestation_epochs)
    }
  }
}

```

The [attester_slashing_info query](https://ide.bitquery.io/Attester-slashing-count) pulls information about all attesters that were slashed after the merge. The query below pulls the validators’ information (index and public key), total slashings per validator, and their first and last block as attesters.

```
query Attester_slashing_count {
  ethereum2(network: eth2) {
    attesterSlashings(
      options: {desc: "count", limit: 10, offset: 0}
      date: {after: "022-09-16"}
    ) {
      validator {
        index
      }
      validator {
        pubkey
      }
      count: count
      min_date: minimum(of: date)
      max_date: maximum(of: date)
    }
  }
}

```

3.  ### Validator API

With this metric, you gain insight into the beacon chain validators’ information, including their statuses.

The [Validator Updates API](https://docs.bitquery.io/v1/docs/Schema/ethereum2/validatorUpdates) allows you to query data relating to the validators. You can use this API to get information about their deposit, token unlock, balance, withdrawal information, etc.

This [validator_balance_change query](https://ide.bitquery.io/validator-balance-change) returns the validator’s public key, index, and the balance change of the top 10 validators with the most balance change since the start of 2024.

```
query Validator_balance_change {
  ethereum2(network: eth2) {
    validatorUpdates(
      options: {desc: "validatorBalanceChange", limit: 20, offset: 0}
      date: {since: "2024-01-01"}
    ) {
      validator {
        index
        pubkey
      }
      validatorBalanceChange
    }
  }
}

```

4.  ### Deposit API

With this metric, you gain insight into the deposit made into the Beacon Chain. You gain insightful information about the deposit made, validator information blocks, etc.

The [ETH2 deposits API](https://docs.bitquery.io/v1/docs/Schema/ethereum2/deposits) lets you access data on the top validators based on the deposited amount.

With this query, you can learn about the [total count of deposits](https://ide.bitquery.io/validators-deposit-count) made in 2024 by validators.

```
query Validators_count {
  ethereum2(network: eth2) {
    deposits(date: {since: "2024-01-01"}) {
      count: count(uniq: validators)
    }
  }
}

```

5.  ### Proposer Slashing API

A proposer is a validator assigned to create and broadcast new blocks. This validator is chosen in a pseudo-random process. They are responsible for creating blocks and broadcasting them to the attesters who validate and attest to the correctness of the block if it adheres to the consensus rule.

Proposer slashing is a penalty mechanism in the Beacon Chain that deters nefarious activities by block proposers. When a validator violates the protocol rule, their staked ETH will be slashed i.e. a certain percentage of their staked Ethereum will be confiscated.

The [proposer slashing API](https://docs.bitquery.io/v1/docs/Schema/ethereum2/proposerSlashings) returns information about the proposer slashing, the block height, the Validator index, and other information about the proposer slashing.

## Conclusion

No doubt, the Beacon Chain is a significant part of the Ethereum blockchain and a source of information for developers, analysts, and even traders. But the most crucial point is that the information is only useful if you can access it. With this article, you’ve gained a wealth of experience in the capabilities of Bitquery Beacon Chain APIs.


#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.





*Blog written by Emmanuel*


]]></description>
        </item>
        <item>
            <title><![CDATA[Bitcoin Halving and its imapct​]]></title>
            <link>https://bitquery.io/blog/bitcoin-halving</link>
            <guid>https://bitquery.io/blog/bitcoin-halving</guid>
            <pubDate>Tue, 27 Feb 2024 22:29:00 GMT</pubDate>
            <description><![CDATA[
[Bitcoin](/blockchains/bitcoin-blockchain-api) operates on a unique monetary policy known as “halving”. This mechanism, designed by the elusive “Satoshi Nakamoto”, has significant implications for miners and the entire Bitcoin ecosystem. To truly understand Bitcoin, delving into the intricacies of halving is essential. Let’s begin. 

## **What is the Bitcoin Network?**

Understand the Bitcoin network before diving into Bitcoin halving. Imagine a financial system without middlemen, where trust and power are distributed across a global network of individuals. That's the core principle of the Bitcoin network. It is based on the underlying blockchain technology, a decentralised ledger where every transaction is publicly verified and recorded in a block. Instead of relying on a single entity, the miners are individuals who dedicate their computational power to solve complex puzzles and secure the network. By solving these complex problems, miners earn newly minted Bitcoins. This proof-of-work mechanism ensures the accuracy and security of transactions. It's called proof-of-work because solving the encrypted hash takes time and energy, which acts as proof that work was done. The process is called mining, which confirms the legitimacy of the transactions in a block and opens a new one. Nodes then verify the transactions further in a series of confirmations. This process creates a chain of blocks containing information, forming the blockchain.



## **What is Bitcoin halving?**

Imagine Bitcoin's block rewards as newly minted coins, distributed to miners for their invaluable service of validating transactions and securing the network. Every four years, the Bitcoin ecosystem experiences a pivotal event known as "halving", a pre-programmed mechanism that cuts the block reward for miners in half. Think of it as periodically squeezing the faucet of newly minted Bitcoins entering the circulation. Initially, in 2009, miners earned a generous 50 BTC per block, incentivizing participation and securing the network. However, this reward gets halved approximately every 210,000 blocks mined, roughly every four years. Currently, it stands at a mere 6.25 BTC per block, and the halving cycle will continue until the total supply of 21 million Bitcoins is mined by 2140.

![Bitcoin Miner Reward Graph](/blog/bitcoin-halving/bitcoin-rewards.png)

As you can see in the data by Bitquery plotted above, after the last halving, which took place on May 11, 2020, the average reward of all miners was cut to half. Try the above [query](https://ide.bitquery.io/bitcoin-mining-rewards) in the IDE.

## **Why Satoshi Implemented Halving**

Satoshi Nakamoto incorporated the halving mechanism into Bitcoin's protocol for several reasons. Firstly, it ensures scarcity by gradually decreasing the rate at which new bitcoins are introduced into circulation. This mirrors the supply curve of precious metals like gold, fostering a sense of digital scarcity and potentially increasing Bitcoin's value over time. Secondly, halving acts as a countermeasure against inflation, safeguarding the purchasing power of existing bitcoins. Lastly, it provides an incentive for miners to participate in securing the network while maintaining a balance between miners' rewards and Bitcoin's long-term sustainability.

The halving stands as a cornerstone in Bitcoin tokenomics, governing the dynamics and valuation of the cryptocurrency by ensuring a steady issuance of Bitcoin into circulation while capping the total supply at 21 million. Currently, with 19.53 million BTC (93%) mined, only 1.47 million BTC remain to be mined over the next 116 years

## **Bitcoin halving’s effect on miners**

Previous halving events have been pivotal moments in Bitcoin's history. The reduction of block rewards has a direct impact on miners, as it decreases their profitability unless accompanied by an increase in the price of Bitcoin. 

Every 2,016 blocks (roughly two weeks), the network recalculates the mining difficulty based on the actual time it took to mine the previous 2,016 blocks. If the average time was less than 10 minutes, the difficulty increases proportionally. Conversely, if it is more than 10 minutes, the difficulty decreases. This way, the network self-regulates to maintain the desired block creation time. 

As the technology becomes better at solving these problems, the difficulty of mining also increases with time, which is why some miners may be forced to shut down operations if the cost of electricity and equipment outweighs the rewards. This has led to concerns about centralization, as smaller miners may be squeezed out by larger, more efficient operations, potentially compromising the decentralisation of the network.

Security concerns also arise due to the reduction in miner rewards. With fewer bitcoins awarded per block, miners may seek alternative revenue streams, such as transaction fees. However, if transaction fees alone are insufficient to sustain mining operations, there's a risk that some miners may prioritise transactions with higher fees, leading to potential delays and congestion in the network. This underscores the importance of balancing incentives for miners to ensure the security and efficiency of the Bitcoin network.

## **Impact of halving**

The impact of halving extends beyond miners to the entire Bitcoin ecosystem. Reduced miner rewards may lead to increased competition among miners, driving innovation and efficiency in mining operations. Additionally, halving events often generate significant media attention and speculation and serve as a reminder of Bitcoin's deflationary nature and its potential as a store of value.

Moreover, If the amount of rewards given to the miners starts to decrease, the security of the network might also decrease. If the security decreases significantly, there could be large-scale double-spend attacks on exchanges. This could lead exchanges to increase their confirmation times. Eventually, the attackers might have so much hashpower that even a significant number of confirmations might not be enough to guarantee security.
On the other hand, fees tend to increase as the value of the network and its usage rise, reflecting a balance between the block reward (newly minted BTC and fees) and adoption. This indicates that financial incentives drive participants' actions, rather than altruism. If Bitcoin's adoption continues to grow, its security will also increase.

After the last Bitcoin Halving, which is assumed to occur in 2140, significant changes are expected:

- **Miner Rewards**: Miners currently receive newly minted bitcoins as rewards. After all 21 million bitcoins are mined, there will be no more block rewards. Miners will rely on transaction fees instead.
  
- **Transaction Fees**: With no new supply, transaction fees become the primary income for miners. Higher demand may lead to high transaction fees, influencing network security and decentralization.
  
- **Ecosystem Adaptation**: Miners may explore new revenue streams, affecting network stability and processing times. Innovations may emerge to sustain operations in a fee-based model.

## History of Bitcoin Halving

Each halving has been a pivotal moment in Bitcoin's history, leaving indelible marks on the ecosystem. While not always immediate, significant changes have followed:

**November 28, 2012** - First Halving: The first halving event occurred after 210,000 blocks were mined, reducing the block reward from 50 BTC to 25 BTC.
**July 9, 2016** - Second Halving: The second halving event took place after another 210,000 blocks, reducing the block reward from 25 BTC to 12.5 BTC.
**May 11, 2020** - Third Halving: The third halving event reduced the block reward from 12.5 BTC to 6.25 BTC..


## **Next Bitcoin Halving**

The exact date depends on the block mining rate, but it's estimated to occur between mid-March and mid-April 2024. Currently, the block reward is 6.25 BTC, and it will be reduced to 3.125 BTC per block.

## **Potential Impacts**

Some of the potential impacts can be:

- Reduced block rewards could impact some miners, especially those with less efficient hardware. 
- Larger mining pools might become more dominant. 
- Strong overall network security due to difficulty adjustments, but concerns about long-term incentives need monitoring. 

While past Bitcoin halvings have coincided with price changes, expecting a repeat is not a guarantee. Even though Bitcoin thrived during low interest rates (2020-2021), attributing its success solely to this factor is misleading. Market forces and other factors beyond historical trends will be influencing future performance.

## **Conclusion**

Bitcoin halving, a periodic event slashing block rewards in half, ignites a fiery debate across the cryptocurrency landscape. While some laud its virtues, others raise cautious eyebrows. While being intriguing as a concept, it is a double-edged sword. It bolsters scarcity and network security and curbs inflation, potentially benefiting long-term value and investor strategies. However, it can squeeze miner profitability, raising concerns about centralization and the need for future incentive solutions. Ultimately, halving is a fundamental part of Bitcoin’s monetary policy and its impact depends on your perspective and the evolving landscape of Bitcoin and digital currencies.

This article’s purpose was to educate you and not to give you an investment strategy. Stay informed and approach predictions with nuance!

## **About Bitquery**

[**Bitquery**](https://bitquery.io/?utm_source=blog&utm_campaign=cardano_api) is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

-   **APIs** - [Explore API](https://ide.bitquery.io/streaming?utm_source=blog&utm_campaign=cardano_api): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

-   **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=blog&utm_campaign=cardano_api): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

-   **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/data-on-demand?utm_source=blog&utm_campaign=cardano_api): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

-   **Explorer** - [Try Explorer](http://explorer.bitquery.io?utm_source=blog&utm_campaign=cardano_api): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info?utm_source=blog&utm_campaign=cardano_api). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.

This article has been written by guest writer [Kshitij Chandrachoor](https://www.linkedin.com/in/kshitij-chandrachoor/)]]></description>
        </item>
        <item>
            <title><![CDATA[Does Arbitrum have a Mempool?]]></title>
            <link>https://bitquery.io/blog/does-arbitrum-has-mempool</link>
            <guid>https://bitquery.io/blog/does-arbitrum-has-mempool</guid>
            <pubDate>Mon, 26 Feb 2024 22:29:00 GMT</pubDate>
            <description><![CDATA[
As blockchain technology continues to transform, scalability has been a focal point in achieving mainstream adoption. This has led to the birth of some unique Layer 2 scaling solutions that resolve these limitations and [Arbitrum](/blockchains/arbitrum-blockchain-api) is one the prominent L2 solutions among them. 

Unlike Layer 1 blockchains, which rely on a [mempool](/products/mempool-api) (a holding area for pending transactions), Arbitrum has adopted a unique architecture that **does not utilize a traditional mempool**. Instead, it improves the scalability problems by processing transactions in batches and broadcasting them to [Ethereum](/blockchains/ethereum-blockchain-api). Further, it uses optimistic roll-up technology to enhance the overall transaction throughput and efficiency.

This leaves us with the exciting question of how arbitrum processes transactions without a mempool. Let's explore it in more detail.

## **How Arbitrum Works?**

Arbitrum utilizes a single sequencer model over mempool for transaction processing. Think of sequencer as a single program in the Arbitrum Ecosystem that keeps track of all the transactions and processes them seamlessly before sending them to the Ethereum chain. 

The single sequencer model queues and processes the transactions in a first-come, first-serve manner. As soon as the sequencer receives a transaction it is added to the transaction queue awaiting processing. **Importantly, this queue is not limitless, and transactions can timeout if not processed quickly, creating an urgency for rapid execution**.  

Further, all the transactions get bundled into different batches which improves the efficiency of processing them.

Soon after bundling, the Arbitrum sequencer starts processing them “off-chain” using the concept of “optimistic rollup”. [Optimistic rollup](/blog/understanding-optimistic-rollups) is the technology where transactions are executed in a trustless manner assuming they are valid until someone proves otherwise. Arbitrum has achieved low transaction fees and computational overhead by processing transactions off-chain.



After processing transactions, the sequencer sends the batches to the Ethereum mainnet layer 1 chain, which ensures the immutability and security of the transaction history.

## **Advantages and Disadvantages of Single Sequencer Model**

Unlike other decentralized transaction processing frameworks, the single sequencer model is quite an efficient and structured framework for processing transactions. A few of the key advantages and disadvantages are listed below.

### **Advantages**

- With a single sequencer model, transaction processing becomes quite straightforward and streamlined,  as there is one single node, it eliminates challenges like the use of high computational power and simplifies the overall transaction management process. This efficiency translates into lower overhead and faster transaction confirmation times for users.

- By doing off-chain computation, it lowers the transaction cost and amount of gas required to process the transaction. This makes it quite affordable for developers and users to interact with decentralized applications, potentially driving wider adoption.

- Centralized transaction processing using a sequencer maintains consistency in the order of transaction execution and reduces the risk of any transaction conflicts or errors such as double-spending. This enables the predictability and reliability of transaction processing. 

### **Disadvantages**

- One of the major concerns with a single sequencer model is a potential single point of failure. Since all the transactions are processed in one single entirety, the breakdown or disruption of the sequencer could impact the functionality of the full ecosystem resulting in downtime or loss of funds.

- The sequencer holds complete authority and power over the network that could potentially censor or process certain transactions over others based on any biases or factors. 

- It has a low degree of decentralization, which deviates from the blockchain ethos. Having no decentralization introduces risk to potential network attacks and threats. 

## **Distributed Sequencer Technology**

To overcome the challenges of the single sequence model, various researchers and technologists have proposed a solution to decentralize transaction sequencing on L2 chains by developing distributed sequencer technology. 

Distributed Sequencer Technology consists of a group of network validators (individuals, communities, or groups of operators) that come together to act as a single validator. This helps to address the drawbacks of a single sequencer model like a single point of failure. 

In the DST framework, all the validators are responsible for validating the same set of transactions, reducing the overall risk of manipulation or bias. Additionally, having multiple validators improves the security and reliability of the network by preventing any malicious actor from compromising the network. 

Under the hood, it uses the Proof of Authority consensus mechanism to incentivize validators for their honest and fair act and ensure that all the validators are from known and trusted entities to prevent anyone from getting control over the network. Using this mechanism, if any validator is not performing fairly then they need to face some consequences like no rewards or paying penalty. 

Overall, DST has the great potential to reduce different geographic, financial, and technical barriers. It can play a great role in decentralizing L2 solutions by replacing a single point of failure with multiple nodes spread across the globe working together to validate and process transactions. 

## **Examples and Use Cases**

SafeStake, a leading blockchain technology company is leveraging DST to transform Ethereum staking. At the core level, it utilizes distributed validator technology to enhance the overall security and reliability of the Ethereum validator. Further, it has also achieved a way to maximize the staking rewards and minimize the penalties of validators using DST.

Similarly, there are a lot of other aspects in various industries where one can leverage Arbitrum and Distributed Sequencer Technology.  This includes use cases in gaming and decentralized finance (DeFi), among others. 

For example, a decentralized exchange (DEX) could use DST to reduce Ethereum gas fees associated with order execution and settlement. This could lead to more cost-effective trades and faster order completion, attracting users seeking alternatives to high-cost platforms. 

## **Conclusion**

In a nutshell, Arbitrum is an innovative solution to solve the scalability problem in the web3 ecosystem by leveraging a single sequencer model. 

While this model offers advantages in terms of transaction fees and throughput, it also poses some flaws like centralization.

However, with ongoing research and technical advances, including DST ( Distributed validator Technology), these risks could mitigate and enhance the reliance and decentralization of the blockchain ecosystem. 

As the Layer 2 scaling solutions continue to transform, Arbitrum remains at the forefront of innovation and improvisation constantly. 

## **About Bitquery**

[**Bitquery**](https://bitquery.io/?utm_source=blog&utm_campaign=cardano_api) is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

-   **APIs** - [Explore API](https://ide.bitquery.io/streaming?utm_source=blog&utm_campaign=cardano_api): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

-   **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=blog&utm_campaign=cardano_api): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

-   **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/data-on-demand?utm_source=blog&utm_campaign=cardano_api): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

-   **Explorer** - [Try Explorer](http://explorer.bitquery.io?utm_source=blog&utm_campaign=cardano_api): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info?utm_source=blog&utm_campaign=cardano_api). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.

This article has been written by guest writer [Vishal Saha](https://www.linkedin.com/in/vishalthevaxus)]]></description>
        </item>
        <item>
            <title><![CDATA[A Comprehensive Guide to UTXO-based Networks]]></title>
            <link>https://bitquery.io/blog/utxo-comprehensive-guide</link>
            <guid>https://bitquery.io/blog/utxo-comprehensive-guide</guid>
            <pubDate>Mon, 26 Feb 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
UTXOs (Unspent Transaction Outputs) represent unspent portions of digital currency on a blockchain, like coins within a digital wallet. Tracking them is crucial for understanding financial flows and blockchain network activity.

Think of UTXOs as digital coins, each representing a specific amount of cryptocurrency. These coins are created when you receive crypto and remain "unspent" until you use them again. Each coin has a unique identifier and is linked to your public key, ensuring only you can spend it.

In this blog, we'll discuss UTXOs (Unspent Transaction Outputs) and explore their significance in understanding financial flows and blockchain network activity. We'll cover various aspects, including how UTXOs function, their strengths and disadvantages, popular UTXO-based blockchains, accessing UTXO data, analyzing UTXO distribution and transaction patterns, and exploring the future of UTXO-based networks.

### Spending and Receiving UTXOs:

Imagine paying for coffee with UTXOs:

1.  Spending: You send the barista several UTXOs with a total value exceeding the coffee's price. This is your transaction's input.
2.  Change: The barista receives the coffee's worth and returns any remaining UTXO value (your "change") as new UTXOs, now owned by you. These are your transaction's outputs.

![coffee UTXO example](/blog/utxo-comprehensive-guide/coffee_example.png)

This way, each transaction uses existing UTXOs and creates new ones, keeping track of ownership changes without "double-spending" the same coin twice.

Each UTXO has a unique ID and is linked to your public key, ensuring only you can use it. They track who owns what in the crypto world, similar to physical coins but digitally and more complex. Transactions use existing UTXOs and create new ones, preventing "double-spending" the same coin twice.

### Strengths of UTXO-based networks:

- Privacy: Individual UTXOs provide more granular control and anonymity compared to account-based models. Using different addresses for each transaction makes it harder to track your activity, offering enhanced privacy compared to account-based models.
- Scalability: Transactions can be processed independently, making networks like Bitcoin faster and more scalable, especially during high demand.
- Security: The UTXO model inherently prevents double-spending.
- Simplicity: The model is relatively easy to understand and implement.

### Disadvantages of UTXO:

- Less user-friendly: Transactions can be more complex with multiple UTXOs involved, compared to the simpler account-based system.
- Limited programmability: Standard UTXOs don't support complex smart contracts, although newer variations like Nervos' "cell model" aim to address this.
- Scalability: While improvements are being made, achieving mass adoption requires efficient on-chain and off-chain solutions.

### Popular UTXO Blockchains:

- Bitcoin: The OG cryptocurrency, built on the UTXO model, prioritizing security and decentralization.
- Litecoin: Designed to be faster and cheaper than Bitcoin, leveraging the UTXO model for similar benefits.

### Accessing UTXO using Bitquey for a Bitcoin Transaction

![](/blog/utxo-comprehensive-guide/explorer.png)

In Bitcoin and other UTXO-based blockchains, every transaction involves unspent transaction outputs (UTXOs). Let's break down the process using the example, Bitcoin Mainnet transaction [3020676ba29d2fee01e4666a5f5071f6a917b8b5922f4520c788d5d082615c92](https://explorer.bitquery.io/bitcoin/tx/3020676ba29d2fee01e4666a5f5071f6a917b8b5922f4520c788d5d082615c92):

- Initial State: You have a UTXO containing 0.0082 BTC. Think of this as a digital coin with that specific value and a unique identifier.
- Transaction Creation: You initiate a transaction to send 0.0050 BTC to another recipient.
- UTXO Consumption: To spend the 0.0082 BTC UTXO, you "consume" it as an input to the transaction. This UTXO is no longer considered unspent.
- Output Creation: The transaction generates two new UTXOs:

- Payment Output: This UTXO holds the exact amount sent to the recipient (0.0050 BTC).
- Change Output: This UTXO represents the remaining balance from the original UTXO (0.0032 BTC). It is essentially "change" returned to you, similar to using a physical bill and receiving smaller denominations in return

![](/blog/utxo-comprehensive-guide/output_scripts.png)

Querying UTXO data for specific Bitcoin Transaction

```
query MyQuery {
  bitcoin(network: bitcoin) {
    inputs(date: {is: "2022-02-02"}) {
      count(height: {is: 721435})
      value(calculate: sum)
    }
    outputs(date: {is: "2022-02-02"}) {
      count(height: {is: 721435})
      value(calculate: sum)
    }
  }
}


```

Output:

```
{
  "bitcoin": {
    "inputs": [
      {
        "count": 6334,
        "value": 3335091.3185786
      }
    ],
    "outputs": [
      {
        "count": 7931,
        "value": 3335079.0414781
      }
    ]
  }
}


```

What's happening here:

The query essentially asks for transaction activity details at a specific point in time (February 2nd, 2022) on a specific block within the Bitcoin blockchain (height 721435). It retrieves both input and output data, providing:

- Number of transactions: Counts the total number of transactions (inputs and outputs) that occurred at that block height and date.
- Total value: Calculates the combined value of all Bitcoin involved in those transactions (both spent as inputs and received as outputs).

This information can be useful for various purposes, such as:

- Analyzing historical network activity: Studying transaction volume and value at specific points in time can provide insights into Bitcoin usage trends and economic activity.
- Investigating specific events: If you have a particular date or block height in mind related to a known event (e.g., a major price movement), this query can help you understand the on-chain transaction activity associated with it.
- Building applications: Data retrieved through this query could be used as input for various applications, such as charting tools, analytics dashboards, or research projects.

Analyzing UTXOs provides several possibilities beyond the information directly retrieved in your query. Here are some potential insights you can gain:

### UTXO distribution and size:

- You can analyze the distribution of UTXO sizes to understand the concentration of wealth and spending habits on the network. For example, are there many small UTXOs, indicating frequent microtransactions, or are there fewer large UTXOs, suggesting holding behavior?
- You can identify the largest UTXOs and explore their history or potential ownership, although privacy considerations come into play here.

Transaction patterns:

- By delving deeper into individual transactions, you can identify patterns of UTXO spending and creation. Look for trends in the number of inputs and outputs per transaction, their sizes, and potential clustering (e.g., if multiple transactions appear related).
- This can reveal insights into spending behavior, and mixing techniques, and potentially identify exchanges or other services based on their characteristic transaction patterns.

## Popular UTXO-based Projects

While Bitcoin may be the grandfather of UTXO-based blockchains, a vibrant ecosystem of other projects leverages this model with unique twists and exciting applications. Let's dive into three noteworthy examples:

1.  [Litecoin (LTC)](https://explorer.bitquery.io/litecoin): Nicknamed "silver to Bitcoin's gold," Litecoin was created in 2011 with the aim of faster and cheaper transactions compared to its predecessor. Think of it as Bitcoin's faster, cheaper cousin. It uses UTXOs just like Bitcoin, but with bigger blocks and faster processing, making transactions zippier. It's like using quarters instead of dollars – smaller units for quicker spending.

2.  [Zcash:](https://explorer.bitquery.io/zcash) Zcash's UTXO-based privacy sets it apart, attracting users who value anonymity and transaction confidentiality. While it might be a bit more complex than its UTXO counterparts, understanding how it works allows you to appreciate its unique contribution to the cryptocurrency landscape. Imagine UTXOs as regular coins, but some wear special black masks that hide their value and sender/receiver information. These are "shielded" UTXOs, the cornerstone of Zcash's privacy magic. Transactions involving them utilize advanced cryptography (zk-SNARKs) to prove their validity without revealing any details. It's like showing someone you paid your bill without revealing the amount or your identity

3.  [Dogecoin (DOGE):](https://explorer.bitquery.io/dogecoin) The internet's favorite Shiba Inu-faced cryptocurrency, might seem like all fun and memes, but under the hood, it operates using the same UTXO-based system as Bitcoin! But what exactly does that mean? When you spend DOGE, you're not sending a chunk of your balance; you're handing over specific UTXOs ([Unspent Transaction Outputs](https://explorer.bitquery.io/dogecoin/transactions)) like physical coins. These UTXOs are used up in the transaction, and new ones are created as "change" or sent to the recipient. This system keeps track of ownership transparently and prevents double-spending (using the same coin twice).

These are just a few examples among the diverse landscape of UTXO-based projects. Each offers unique features and approaches, showcasing the potential of this model beyond its initial use case in Bitcoin. As development continues, UTXO-based networks have the potential to play a significant role in decentralized finance (DeFi), non-fungible tokens (NFTs), and other emerging blockchain applications.

## Future of UTXO-based networks

UTXO (Unspent Transaction Output) is a way of keeping track of "coins" on blockchains like Bitcoin. Instead of accounts with balances, each coin is tracked individually. Now, let's dive into some cool things happening in the UTXO space:

1. Enhanced Scalability and Efficiency:

- Schnorr Signatures and Taproot: These cryptographic advancements are being implemented in Bitcoin and other UTXO blockchains. They improve transaction efficiency and privacy by reducing transaction size and enabling complex spending conditions without revealing them publicly.
- UTXO Commitment Aggregation (UTXO-CA): This is a scalability solution being explored by Cardano. It allows for aggregating multiple UTXOs into a single, smaller unit, reducing storage requirements and improving transaction speeds.

2. Smart Contracts and DeFi on UTXO:

- [Cardano's Plutus and Marlowe](https://marlowe.iohk.io/): These smart contract languages are designed specifically for the UTXO model, allowing for secure and scalable smart contract development.
- RSK Infrastructure Framework (RIF): This platform provides bridges between Bitcoin and Ethereum, enabling developers to leverage the security of Bitcoin with the flexibility of Ethereum's smart contract functionalities.
- Stacks: This protocol allows developers to build smart contracts and decentralized applications (dApps) on top of Bitcoin without modifying the original blockchain.

3. Interoperability and Cross-chain Solutions:

- Cosmos Inter-Blockchain Communication (IBC): This protocol enables communication between different blockchains, including UTXO and account-based systems. This allows for the transfer of assets and data across different chains.
- Chainlink oracles: These decentralized oracles are being integrated with UTXO-based blockchains to allow smart contracts to access off-chain data and trigger actions based on real-world events.

4. Privacy-focused Projects:

- Monero RingCT: This privacy technology is constantly evolving to enhance transaction anonymity on the Monero blockchain.
- Grin: This privacy-focused UTXO-based blockchain uses Mimblewimble, a technology that allows for compact and confidential transactions.

5. Emerging Applications:

- Supply Chain Management: UTXO's inherent traceability makes it suitable for tracking the movement of goods and materials through supply chains, ensuring transparency and security.
- Identity Management: Secure storage and management of digital identities can be achieved using UTXO, offering individuals greater control over their personal data.

These are just a few examples of the exciting developments happening in the UTXO space. As the blockchain space matures and new projects emerge, we can expect to see further advancements in scalability, smart contracts, interoperability, privacy, and a wider range of applications built on UTXO-based blockchains.

---

_Blog written by Pratik_
]]></description>
        </item>
        <item>
            <title><![CDATA[Arbitrum NFT APIs - A Comprehensive Guide to Bitquery's Arbitrum NFT APIs​]]></title>
            <link>https://bitquery.io/blog/arbitrum-nft-api</link>
            <guid>https://bitquery.io/blog/arbitrum-nft-api</guid>
            <pubDate>Sat, 24 Feb 2024 22:29:00 GMT</pubDate>
            <description><![CDATA[
[Arbitrum](https://bitquery.io/blockchains/arbitrum-blockchain-api) is a layer 2 scaling solution built on Ethereum, specifically designed to alleviate Ethereum's congestion issues by increasing scalability and reducing transaction costs. As a result, compared to the [Ethereum mainnet](https://bitquery.io/blockchains/ethereum-blockchain-api), transactions on Arbitrum are completed more quickly and for less money. Because of its increased scalability, Arbitrum is now a desirable choice for NFT (Non-Fungible Token) projects that want to avoid the high gas costs and network congestion that come with putting NFTs on the Ethereum blockchain. Additionally, Arbitrum makes NFT development and trading activities more productive and economical, which is part of the reason for its growing acceptance in the NFT industry.

To see live Arbitrum’s NFT updates, you can check out our [Arbitrum explorer](https://explorer.bitquery.io/arbitrum/nft).

Accessing NFT data from Arbitrum is crucial for market analysis, research, and development efforts, enabling stakeholders to gain insights into NFT trends, track ownership, and innovate within the NFT ecosystem. Leveraging Bitquery API simplifies this process, offering a powerful tool for querying blockchain data efficiently and effectively.

Bitquery API is a powerful tool for accessing blockchain data through GraphQL queries which offers comprehensive data retrieval capabilities, allowing users to extract specific information from blockchain networks like Arbitrum.

This article will demonstrate how to effectively utilize the Bitquery API to fetch NFT data from the Arbitrum blockchain.This article will demonstrate how to effectively utilize the Bitquery API to fetch NFT data from the Arbitrum blockchain.This article demonstrates a step-by-step process, providing readers with a clear understanding of accessing and analyzing NFT-related data on Arbitrum through Bitquery API.

[Transfers API](https://docs.bitquery.io/docs/schema/evm/transfers/) allows us to get NFT (ERC721) Transfers. In this section, we will write some queries to get data related to [Arbitrum NFT](https://bitquery.io/products/nft-api).

## Total Token Transfer Count by Date 

The query retrieves the total count of token transfers by date on the Arbitrum Mainnet, excluding transfers involving fungible currencies. It organizes the data by block date and includes the count of transfers along with the corresponding chain ID.

Open this [query](https://ide.bitquery.io/NFT-Token-Transfers-By-Date-Arbitrum) in the IDE.

```
query($network: evm_network,$from: String, $till: String) {
  EVM(dataset: combined network: $network){
    Transfers(
      orderBy: {ascending: Block_Date}
      where: {
        Block: {Date: {since: $from till: $till }}
        Transfer: {Currency: {Fungible: false}}}
    ){
      Block {
        Date
      }
      count
      ChainId
    }
  }
}
```

## Top traded NFT tokens in Arbitrum Mainnet

This query aims to retrieve data on token transfers within the Arbitrum Mainnet. It specifies that the data should be ordered by block date, filtering for transfers involving non-fungible tokens. The query selects the block date, the count of transfers, and the chain ID for analysis.

Open this [query](https://ide.bitquery.io/Top-traded-NFT-tokens-in-network_5) in the IDE.

```
 {
  EVM(dataset: combined, network: arbitrum) {
    DEXTrades(
      orderBy: {descendingByField: "count"}
      limit: {offset: 1, count: 10}
      where: {Block: {Date: {since: "2020-01-10", till: "2024-01-10"}}, Trade: {Buy: {Currency: {Fungible: false}}, Sell: {Currency: {Fungible: true}}}}
    ) {
      Trade {
        Buy {
          Currency {
            Symbol
            SmartContract
          }
          min_price: Price(minimum: Trade_Buy_Price)
          max_rice: Price(maximum: Trade_Buy_Price)
        }
        Sell {
          Currency {
            Symbol
            SmartContract
          }
        }
      }
      buy_amount: sum(of: Trade_Buy_Amount)
      sell_amount: sum(of: Trade_Sell_Amount)
      count
      ChainId
    }
  }
}
```

## Get newly minted NFTs

Numerous NFTs are minted daily; let's aim to retrieve data on newly minted NFTs using our Events API.When an NFT is minted, each smart contract emits Transfer event. Transfer event has 3 field: From, To and Value.

For newly minted NFTs, the From value will be 0x0000000000000000000000000000000000000000.

With all the above details, we can write the query to get newly minted NFTs.

Open this [query](https://ide.bitquery.io/ARB-Streaming-Get-Newly-Minted-NFTs-from-Arbitrum) in the IDE.

```
{
  EVM(dataset: combined, network: arbitrum) {
    Events(
      where: {Log: {Signature: {Name: {is: "Transfer"}}}, Block: {Date: {after: "2023-09-11"}}, Arguments: {startsWith: {Value: {Address: {is: "0x0000000000000000000000000000000000000000"}}}}}
      orderBy: {descending: Block_Time}
      limit: {count: 10}
    ) {
      Arguments {
        Name
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
      Block {
        Time
      }
      Log {
        Signature {
          Name
          Signature
          SignatureHash
          SignatureType
        }
        Index
        ExitIndex
        EnterIndex
        LogAfterCallIndex
        Pc
      }
      LogHeader {
        Address
        Data
        Index
      }
      Topics {
        Hash
      }
      Transaction {
        From
        To
        Type
      }
    }
  }
}
```

This data about newly minted NFTs may help you in analyzing NFT minting trends or from which NFT marketplaces these NFTs are getting minted.

### Fetch NFT MarketPlace Data

This query retrieves data on the top DEX trades on the Arbitrum Mainnet, focusing on trades occurring between fungible and non-fungible tokens. It filters transactions by date and selects the top 10 trades ordered by count. Additionally, this query includes details such as the protocol used, unique NFTs traded, unique currencies involved, unique buyers, the count of trades, and the chain ID for analysis.

Open this [query](https://ide.bitquery.io/Copy-of-NFT-Marketplace-Data) in the IDE.

```
 {
  EVM(dataset: combined, network: arbitrum) {
    DEXTrades(
      orderBy: {descendingByField: "count"}
      limit: {offset: 1, count: 10}
      where: {Block: {Date: {since: "2020-01-12", till:"2024-01-12"}}, Trade: {Buy: {Currency: {Fungible: false}}, Sell: {Currency: {Fungible: true}}}}
    ) {
      Trade {
        Dex {
          ProtocolName
          ProtocolFamily
          ProtocolVersion
        }
      }
      nfts: uniq(of: Trade_Buy_Currency_SmartContract, method: approximate)
      currencies: uniq(of: Trade_Sell_Currency_SmartContract, method: approximate)
      buyers: uniq(of: Trade_Buy_Buyer, method: approximate)
      count
      ChainId
    }
  }
}
```

## Show the Current Trades in the Network

This query fetches DEX trades data from the combined dataset on the Arbitrum network, ordering by block number and limiting results by count. It filters trades based on specific criteria including non-fungible tokens and excludes certain smart contract addresses within a provided date range. Selected details include block time, transaction hash, DEX protocol info, trade details like buy/sell currencies, prices, amounts, sellers, buyers, and associated chain ID.

Open this [query](https://ide.bitquery.io/Latest-Trades-of-NFT-Tokens-in-Network_4) in the IDE.

```
 {
  EVM(network: arbitrum, dataset: combined) {
    DEXTrades(
      orderBy: {descending: Block_Number}
      limit: {count: 10}
      where: {Trade: {Buy: {Currency: {Fungible: false, SmartContract: {not: "0x"}}}, Sell: {Currency: {SmartContract: {not: "0x"}}, Seller: {not: "0x"}}}, Block: {Date: {till: "2024-01-10", since: "2020-01-10"}}}
    ) {
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        Dex {
          ProtocolFamily
          ProtocolName
          ProtocolVersion
          SmartContract
        }
        Buy {
          Currency {
            SmartContract
            Symbol
          }
          Price
          Amount
          Seller
          Buyer
          Ids
          URIs
        }
        Sell {
          Amount
          Currency {
            Symbol
            SmartContract
          }
        }
      }
      ChainId
    }
  }
}
```

## DEX Trades by Protocols by Date involving NFTs

This query fetches data on DEX trades from the combined dataset on the specified network. It retrieves information such as the block date, DEX protocol details, trade count, and associated chain ID. The query filters trades by date and ensures that only trades involving non-fungible tokens are included.

Open this [query](https://ide.bitquery.io/NFT-Token-Trades-By-Date_6) in the IDE

```
{
  EVM(dataset: combined, network: arbitrum) {
    DEXTrades(
      orderBy: {descending: Block_Date}
      where: {Block: {Date: {since: "2020-01-10", till: "2024-01-10"}}, Trade: {Buy: {Currency: {Fungible: false}}}}
    ) {
      Block {
        Date
      }
      Trade {
        Dex {
          ProtocolFamily
          ProtocolVersion
          ProtocolName
        }
      }
      count
      ChainId
    }
  }
}
```

## Get the Metadata of an NFT on Arbitrum Network

This GraphQL query retrieves transfer NFT information from the "combined" dataset on the Arbitrum network, targeting the most recent transfer with empty filter criteria for currency smart contract address and transfer ID. It fetches details about the currency involved, including its name, decimals, and symbol, as well as the receiver's address for the selected transfer. The query is designed to return only one result, ordered by descending block number, providing concise insight into the latest transfer activity within the specified network.


Open this [query](https://ide.bitquery.io/Get-the-Metadata-of-an-NFT-on-Arbitrum-Network) in the IDE.

```
{
  EVM(dataset: combined, network: arbitrum) {
     Transfers(
      where: {Transfer: {Currency: {SmartContract: {}}, Id: {}}}
      limit: {count: 1, offset: 0}
      orderBy: {descending: Block_Number}
    ) {
      Transfer {
        Currency {
          SmartContract
          Name
          Decimals
          Fungible
          HasURI
          Symbol
        }
        Id
        
        owner: Receiver
      }
    }
  }
}
```

## Get the creator of NFT on Arbitrum Network

The query returns details about the creator (sender) of the contract creation call, whether it was a contract creation, and the transaction hash associated with the call.

Open this [query](https://ide.bitquery.io/Get-the-creator-of-NFT-ON-Arbitrum-Network) in the IDE.

```
{
  EVM(dataset: combined, network: arbitrum) {
    Calls(
      limit: {count: 1}
      orderBy: {descending: Block_Time}
      where: {Call: {To: {}, Create: true}}
    ) {
      Call {
        creator: From
        Create
      }
      Transaction {
        Hash
      }
    }
  }
}
```

## Latest Non-Fungible Token Balance Update Lookup

The query filters for non-fungible currencies and retrieves details about the currency involved, the balance update itself (including address, amount, and ID), and information about the block when the update occurred (number and date).

Open this [query](https://ide.bitquery.io/Latest-Non-Fungible-Token-Balance-Update-Lookup) in the IDE

```
{
  EVM(dataset: combined, network: arbitrum) {
    BalanceUpdates(
      orderBy: {descending: Block_Time}
      limit: {count: 1}
      where: {BalanceUpdate: {}, Currency: {Fungible: false}}
    ) {
      Currency {
        Name
        SmartContract
      }
      BalanceUpdate {
        Address
        Amount
        Id
      }
      Block {
        Number
        Date
      }
    }
  }
}
```

## Total Buy-Sell of an NFT Token on Blur(Arbitrum Network)

The query aims to provide insights into the trading activity, including the total trade volume, the count of trades, unique buyers and sellers, as well as the number of distinct non-fungible tokens (NFTs) traded. Additionally, it retrieves details about the bought currency, such as its name, symbol, and protocol name.

Open this [query](https://ide.bitquery.io/Total-Buy-Sell-of-an-NFT-Token-on-BlurArbitrum-Network#) in the IDE

```
{
  EVM(dataset: combined, network: arbitrum) {
    DEXTrades(
      where: {Trade: {Dex: {ProtocolName: {in: "seaport_v1.4"}}, Buy: {Currency: {Fungible: false, SmartContract: {}}}}, Transaction: {To: {}}}
      limit: {count: 10}
    ) {
      tradeVol: sum(of: Trade_Buy_Amount)
      count
      buyer: count(distinct: Trade_Buy_Buyer)
      seller: count(distinct: Trade_Buy_Seller)
      nfts: count(distinct: Trade_Buy_Ids)
      Trade {
        Buy {
          Currency {
            Name
            ProtocolName
            Symbol
            Fungible
            SmartContract
          }
        }
      }
    }
  }
}
```

##  Identifying Top NFT Buyers on Blur(Arbitrum Network)

This GraphQL query retrieves trading data from the "seaport_v1.4" protocol on the Arbitrum network, focusing on non-fungible token (NFT) trades where the recipient is specified. It sorts the results by the count of trades in descending order and limits the output to the top 3 trades. The query provides statistics such as the total count of trades, the number of unique transactions, the earliest and latest block dates, the count of distinct NFTs traded, the count of distinct smart contracts involved in trades, and the total amount of money paid. Additionally, it retrieves information about the buyer involved in each trade.

Open this [query](https://ide.bitquery.io/Identifying-Top-NFT-Buyers-on-Blur-Arbitrum-Network) in the IDE.

```
{
  EVM(dataset: combined, network: arbitrum) {
    DEXTrades(
      where: {Trade: {Dex: {ProtocolName: {in: "seaport_v1.4"}}, Buy: {Currency: {Fungible: false}}}, Transaction: {To: {}}}
      orderBy: {descendingByField: "count"}
      limit: {count: 3}
    ) {
      count
      uniq_tx: count(distinct: Transaction_Hash)
      Block {
        first_date: Time(minimum: Block_Date)
        last_date: Time(maximum: Block_Date)
      }
      nfts: count(distinct: Trade_Buy_Ids)
      difffernt_nfts: count(distinct: Trade_Buy_Currency_SmartContract)
      total_money_paid: sum(of: Trade_Sell_Amount)
      Trade {
        Buy {
          Buyer
        }
      }
    }
  }
}
```

## Conclusion

Accessing NFT data from the Arbitrum blockchain is crucial for understanding market trends, tracking ownership, and fostering innovation within the NFT ecosystem, empowering stakeholders to make informed decisions.

The article has demonstrated a comprehensive process for utilizing the Bitquery API to efficiently fetch NFT data from the Arbitrum blockchain, offering readers a practical guide to leveraging this powerful tool for blockchain data analysis.

Readers are encouraged to explore further and experiment with the Bitquery API for their own projects or research endeavors, unlocking new insights and opportunities within the rapidly growing blockchain space.

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/moneyflow) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

This article has been written by guest writer Dheeraj Maske.
]]></description>
        </item>
        <item>
            <title><![CDATA[A Guide to Bitquery's Litecoin APIs​]]></title>
            <link>https://bitquery.io/blog/litecoin-api</link>
            <guid>https://bitquery.io/blog/litecoin-api</guid>
            <pubDate>Sat, 24 Feb 2024 22:29:00 GMT</pubDate>
            <description><![CDATA[
Among various cryptocurrencies, [Litecoin](https://litecoin.org/) stands out as one of the most established and reliable digital assets. Because of its decentralized nature, it enables secure transactions for low fees. The system uses math to make sure everything is safe, and it gives people more control over their money.

The Litecoin blockchain complements Bitcoin and can process more transactions than Bitcoin because it generates blocks more frequently. This means it can handle a larger volume of transactions without any major software modifications. 

Since it’s open source, it facilitates developers to run or make changes to software as required.   

In this article, let’s discuss how developers can leverage Bitquery APIs to understand more about the Litecoin blockchain for their own applications. 

## **What is Litecoin?**


Litecoin is a peer-to-peer system of cryptocurrency and an open-source software project. It was actually forked from the Bitcoin blockchain. Inspired by and technically similar to Bitcoin,  Litecoin was created by Charlie Lee, an engineer in Google,  in 2011 as a "lite" version of Bitcoin, offering faster transaction confirmation times and a different hashing algorithm (Scrypt) for mining. 

Litecoin aims to provide a faster and more efficient alternative for everyday transactions while maintaining the principles of decentralization and security inherent in blockchain technology.

The native cryptocurrency of Litecoin is LTC, similar to Bitcoin (BTC) and it uses  a proof-of-work algorithm. The architecture of Litecoin is similar to Bitcoin, although Litecoin uses Scrypt and Bitcoin uses SHA-256. Scrypt provides speedy transactions and is more energy efficient than SHA-256.

### **Litecoin vs. Bitcoin**

Litecoin is often referred to as “silver” to Bitcoin’s “gold”. Here are some advantages of Litecoin over Bitcoin:

- Incurs less blockchain fees than Bitcoin
- Provides higher transaction speeds than Bitcoin
- Serves as a testnet for Bitcoin network
- Is used for making day-to-day micro purchases, such as gas or groceries
- Supply is capped at 84 million as opposed to Bitcoin’s supply, which is at 21 million
- Uses Scrypt, which is faster than Bitcoin’s SHA-256
- Produces more blocks (almost 4 times more) than Bitcoin 
- Applications of Litecoin


Litecoin is commonly used for:

- Digital payments
- NFTs, collectibles
- Charity donations
- Micro transactions or purchases

## **Litecoin APIs**

The [Litecoin API](https://bitquery.io/blockchains/litecoin-blockchain-api) provides developers with a comprehensive set of tools and functionalities for interacting with the Litecoin blockchain. Whether you're building a wallet application, a payment gateway, or a decentralized exchange, the Litecoin API offers a suite of functions that streamline blockchain integration. 

Here are some Litecoin APIs provided by Bitquery:

- Litecoin Blockchain Explorer API
- Litecoin Transactions API
- Litecoin Mining API
- Litecoin Coinpath API
- Litecoin AddressStats API

### **Litecoin Block Explorer API: Overview of Litecoin**

Bitquery  provides a simple and easy-to-use interface to extract real-time or historic blockchain data. Use the Bitquery Explorer to track Litecoin transactions, transfers, transaction fees, gas spent, blocks, Litecoin halving, money flow, and more.

![Screenshot of Bitquery's Litecoin Explorer](/blog/litecoin-api/explorer-screenshot.png)

To embed queries in your applications, simply click the Get API on the bottom right of the screen (check the above image). To write your own queries, use Bitquery’s in-built GraphQL IDE. 

Let’s use Bitquery APIs to check Litecoin blockchain activity. 

### **Address Stats API**

#### **Obtaining statistics of a Litecoin address**

This API retrieves statistics related to Litecoin addresses,such as the number of inbound/outbound transactions, unspent balance, unique transfers, and more.

To obtain the statistics for a specific address, use the following [query](https://ide.bitquery.io/litecoin-addressstats) in IDE. For example, let’s get the statistics of a specific address, LaYPLuQEanVCYM9TztR9FuT3ZbTJM6wHEZ. Specify the network as “litecoin” and the address as shown here.

```
{
  bitcoin(network: litecoin) {
    addressStats(address: {is: "LaYPLuQEanVCYM9TztR9FuT3ZbTJM6wHEZ"}) {
      address {
        address
        annotation
        balance
        inboundTransactions
        inflows
        outboundTransactions
        outflows
        uniqueDaysWithTransfers
        uniqueReceivers
        uniqueSenders
      }
    }
  }
}
```

### **Blocks API**

#### **Viewing details of all blocks on the Litecoin blockchain**

Get the details of all blocks on the Litecoin chain by using this API. For example, to retrieve the details of all the Litecoin blocks for a period of 15 days in February, use this [query](https://ide.bitquery.io/litecoin-blocks). Specify the network as “litecoin” and the dates as applicable (02/01 to 02/15).

```
query ($network: BitcoinNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    blocks(
      options: {desc: "height", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
    ) {
      timestamp {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      height
      difficulty
      transactionCount
      blockSizeBigInt
      blockHash
      blockSize
      blockSizeBigInt
      blockStrippedSize
      blockVersion
      blockWeight
      chainwork
      difficulty
      
    }
  }
}
```

#### **Obtaining details of a specific block**

Alternatively, if you want to check for details of a specific block, simply specify the “height” parameter with the required block ID in the above query. For example, let’s check the details of the block, 2636351 in this [query](https://ide.bitquery.io/litecoin-specific-block). Specify the network as “litecoin” and the height parameter as “2636351” as given here. 

```
query ($network: BitcoinNetwork!, $height: Int!) {
  bitcoin(network: $network) {
    blocks(height: {is: $height}) {
      timestamp {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      medianTime {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      blockHash
      blockSizeBigInt
      blockStrippedSize
      blockVersion
      blockWeight
      chainwork
      difficulty
      transactionCount
    }
  }
}
```

### **Coinpath API**

#### **Tracing money flow**

You can track the flow of funds and transactions between addresses by using the Coinpath API. This will retrieve data related to the transaction amount, number of transactions, amount sent or received, senders, and receivers.

For example, here we’ll track the inputs and outflow of money for this Litecoin address, `LUazv9uUA4rmdmm54HjzTH72vRahHaKJSc` for a period of say, 15 days in February. Check this [query](https://ide.bitquery.io/litecoin--coinpath). Specify the network as “litecoin”, address as “LUazv9uUA4rmdmm54HjzTH72vRahHaKJSc “, and the dates as applicable.

```
query ($network: BitcoinNetwork!, $address: String!, $inboundDepth: Int!, $outboundDepth: Int!, $limit: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    inbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      depth
      count
    }
    outbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      depth
      count
    }
  }
}
```

Here’s a [visual representation](https://explorer.bitquery.io/litecoin/address/LUazv9uUA4rmdmm54HjzTH72vRahHaKJSc/graph) of the same query.

### **Inputs API**

#### **Extracting input details of a transaction**

Here, we’ll obtain the inputs of a transaction on a particular Litecoin block by using this API. For example, let’s retrieve the input details including the traded value of block 2636355, after 1st of January 2024, in this [query](https://ide.bitquery.io/litecoin-inputs).

Specify the network as “litecoin, height as “ 2636355“, and the dates as applicable.

```
{
  bitcoin(network: litecoin) {
    inputs(
      options: {limit: 50, desc: "block.timestamp.iso8601"}
      date: {after: "2023-12-01T00:00:00Z"}
      height: {is: 2636355}
    ) {
      block {
        height
        timestamp {
          iso8601
        }
      }
      inputIndex
      inputScript
      inputAddress {
        address
        annotation
      }
      outputTransaction {
        hash
      }
      transaction {
        hash
      }
      value
    }
  }
}
```

### **Outputs API**

#### **Fetching output details of a transaction**

Similar to the Inputs API, the Outputs API fetches all the outputs of a transaction on the Litecoin network. Use the filters to obtain outputs of a specific block if needed. In this [query](https://ide.bitquery.io/litecoin-outputs), let’s get transaction outputs for the same block as above, 2636355, after 1st of February 2024. Specify the network as “litecoin” , height as “2636355” and the date as applicable.

```
{
  bitcoin(network: litecoin) {
    outputs(
      date: {after: "2023-02-01"}
      options: {limit: 20, desc: "block.timestamp.iso8601"}
      height: {is: 2636355}
    ) {
      block {
        timestamp {
          iso8601
        }
      }
      date {
        date
      }
      outputAddress {
        address
        annotation
      }
      outputDirection
      outputIndex
     
      reqSigs
      transaction {
        hash
        index
      }
      value
    }
  }
}
```

### **Transactions API**

This API allows you to track transactions on the Litecoin network. 

#### **Viewing daily Litecoin transaction count**

Let’s obtain the number of daily transactions on Litecoin per day, for the last 10 days, using this simple [query](https://ide.bitquery.io/Litecoin-daily-transactions). Specify the network as “litecoin” ,  and the count parameter as shown here.

```
{
  bitcoin(network: litecoin) {
    transactions(options: {desc: "date.date", limit: 10}) {
      date {
        date
      }
      count
    }
  }
}
```

#### **Checking monthly transactions on the Litecoin network**

Next, we’ll retrieve all the transactions on the Litecoin network after 1st of February 2024 using this [query](https://ide.bitquery.io/litecoin-monthly-transactions) in IDE. Specify the date parameter “after” to “2024-02-01” and set the limit to 20 or as required.

```
{
  bitcoin(network: litecoin) {
    transactions(
      date: {after: "2024-02-01"}
      options: {desc: "block.timestamp.iso8601", limit: 20}
    ) {
      block {
        height
        timestamp {
          iso8601
        }
      }
      feeValue(in: USD)
      feeValueDecimal
      hash
      index
      inputCount
      inputCountBigInt
      inputValue
      inputValueDecimal
      minedValue
      minedValueDecimal
      outputCount
      outputCountBigInt
      outputValue
      outputValueDecimal
      txCoinbase
      txLocktime
      txSize
      txVersion
      txVsize
      txWeight
    }
  }
}
```

Similarly, to get transactions on a specific block, simply specify the height parameter in the above query. 

#### **Retrieving Litecoin transactions by date**

Further, you can also get the count of transactions on a specific date. For example, let’s fetch the number of transactions on Litecoin for 19th Feb 2024. Build this [query](https://ide.bitquery.io/litecoin-transactions-by-date) in IDE as shown. Set the “from” and “till”parameters to “2024-02-19”. Specify the network as “litecoin”  to get the number of transactions on that day.

```
query ($network: BitcoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    transactions(options: {asc: "date.date"}, date: {since: $from, till: $till}) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt
      }
  }
}
```

#### **Tracking Litecoin transaction fee by date**

Let’s filter the above query to view the total transaction fees for transactions on 19th Feb 2024. Add the parameter “feeValue” to the [query](https://ide.bitquery.io/litecoin-transactions-fees) as shown. Set the date parameter as before.

```
query ($network: BitcoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    transactions(options: {asc: "date.date"}, date: {since: $from, till: $till}) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt
      feeValue
      avgFee: feeValue(calculate: average)
    }
  }
}
```

#### **Retrieving Litecoin transaction scripts**

Similar to Bitcoin, transaction scripts of Litecoin also specify how currencies are traded. These scripts are used to validate transactions on the Litecoin network. Through Bitquery’s Input and Output Scripts APIs, you can retrieve the transaction scripts of Litecoin easily.

**Input Scripts**

Let’s get the input script for a specific Litecoin transaction,  0eb381091066a31aa306737012c76f03478f31da566bc1314a7e9f6ebbeebac8.  Set the address (hash) parameter to the required one in the [query](https://ide.bitquery.io/litecoin-input-script) here as shown. Specify the network as “litecoin”.

```
query ($network: BitcoinNetwork!, $hash: String!, $limit: Int!, $offset: Int!) {
  bitcoin(network: $network) {
    inputs(
      txHash: {is: $hash}
      options: {asc: "inputIndex", limit: $limit, offset: $offset}
    ) {
      inputIndex
      address: inputAddress {
        address
        annotation
      }
      value
      value_usd: value(in: USD)
      outputTransaction {
        hash
        index
      }
      inputScriptType {
        pattern
        annotation
        type
      }
      inputScript
    }
  }
}
```

**Output Scripts**

Similarly, you can query for output scripts by using the “outputs” parameter in the [query](https://ide.bitquery.io/litecoin-output-script).

```
query ($network: BitcoinNetwork!, $hash: String!, $limit: Int!, $offset: Int!) {
  bitcoin(network: $network) {
    outputs(
      txHash: {is: $hash}
      options: {asc: "outputIndex", limit: $limit, offset: $offset}
    ) {
      outputIndex
      address: outputAddress {
        address
        annotation
      }
      value
      value_usd: value(in: USD)
      outputDirection
      outputScriptType {
        annotation
        pattern
        type
      }
      outputScript
    }
  }
}
```

#### **Extracting number of LTC transactions**

To obtain transactions of LTC, the native crypto on the Litecoin network, use this API. This [query](https://ide.bitquery.io/litecoin-LTC-sentreceived) returns the LTC transactions (both inbound and outbound) for the period from 1st Feb 2024 to 15th Feb 2024. Specify the network as “litecoin”  and the dates as shown here.

```
query ($network: BitcoinNetwork!, $address: String!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    inputs(
      date: {since: $from, till: $till}
      inputAddress: {is: $address}
      options: {asc: "date.date"}
    ) {
      date {
        date(format: $dateFormat)
      }
      value
    }
    outputs(
      date: {since: $from, till: $till}
      outputAddress: {is: $address}
      options: {asc: "date.date"}
    ) {
      date {
        date(format: $dateFormat)
      }
      value
     }
  }
}
```

#### **Getting data on inbound LTC transfers**

Similarly, you can get all inbound transfers in LTC using this [query](https://ide.bitquery.io/litecoin-inbound-LTC). Specify the network as “litecoin”  and the dates as shown here.

```
query ($network: BitcoinNetwork!, $address: String!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    outputs(
      date: {since: $from, till: $till}
      outputAddress: {is: $address}
      options: {asc: "date.date"}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt(uniq: transactions)
      value
    }
  }
}
```

#### **Tracking gas spent on transactions**

To know the amount of gas spent on transactions on Litecoin, use this [query](https://ide.bitquery.io/litecoin-gas-spent). For example, here we are retrieving gas spent on a specific Litecoin transaction, ltc1q52xhq67je0d2pq5wn52pxqrgx9mjfkuejwggf4,  during 1st February to 15th February 2024. Specify the network as “litecoin”  , address as “ltc1q52xhq67je0d2pq5wn52pxqrgx9mjfkuejwggf4” and the dates as shown here.

```
query ($network: BitcoinNetwork!, $dateFormat: String!, $address: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    transactions(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      inputAddress: {is: $address}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt
      feeValue
    }
  }
}
```

### **Mining API**

The Litecoin Mining API extracts mining information on Litecoin blockchain, including the number of miners, blocks produced by them, mining rewards and so on. 

#### **Obtaining unique miners on Litecoin**

If you want to know the number of miners or number of unique miners on Litecoin, build this query in IDE. For example, this [query](https://ide.bitquery.io/litecoin-unique-miners) retrieves the number of unique miners for a period of 1 week, from 1st Feb to 7th Feb 2024. Specify the network as “litecoin”  and the dates as applicable.

```
query ($network: BitcoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    outputs(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      txIndex: {is: 0}
      outputDirection: {is: mining}
      outputScriptType: {notIn: ["nulldata", "nonstandard"]}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt(uniq: addresses)
      value
    }
  }
}
```

#### **Checking mined value **

To get the daily mined value of blocks on Litecoin, use this [query](https://ide.bitquery.io/litecoin-mined-value). For example, let’s retrieve the daily mined value of blocks from 1st February 2024 till date.  Specify the network as “litecoin”  and the dates as shown here.

```
query ($network: BitcoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    transactions(options: {asc: "date.date"}, date: {since: $from, till: $till}) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt(uniq: blocks)
      minedValue
    }
  }
}
```

You can also obtain mined value per block by specifying “uniq: blocks”  for the count parameter in the above query. 

#### **Viewing number of mined blocks **

This API also allows you to get data on the number of blocks produced by miners over a period of time. 

To check how many blocks were mined during a specified time period, build this [query](https://ide.bitquery.io/litecoin-count-of-mined-blocks). For example,let’s get the number of blocks mined from 1st February 2024 onwards till date. Specify the network as “litecoin”  and the dates as applicable. 

```
query ($network: BitcoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    outputs(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      txIndex: {is: 0}
      outputDirection: {is: mining}
      outputScriptType: {notIn: ["nulldata", "nonstandard"]}
    ) {
      address: outputAddress {
        address
        annotation
      }
      date {
        date(format: $dateFormat)
      }
      reward: value
      count(uniq: blocks)
    }
  }
}
```

#### **Retrieving number of Litecoin block rewards**

With this API, you can also get information on Litecoin mining rewards. That is, you can get data on the number of miner rewards for each unique miner. For example, this [query](https://ide.bitquery.io/litecoin-rewards) fetches the mining reward data from 15th February 2024 till date. Specify the network as “litecoin”, and dates as applicable.

```
query ($network: BitcoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    outputs(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      txIndex: {is: 0}
      outputDirection: {is: mining}
      outputScriptType: {notIn: ["nulldata", "nonstandard"]}
    ) {
      address: outputAddress {
        address
        annotation
      }
      date {
        date(format: $dateFormat)
      }
      reward: value
      count(uniq: blocks)
    }
  }
}
```

Similarly, you can also obtain reward data for a specific block by specifying the height parameter as required. 

### **Litecoin Halving**

Litecoin's halving event occurs approximately every four years or for 840,000 blocks, reducing block rewards by 50% and impacting the issuance of new LTC. This process, integral to Litecoin's protocol, will continue until the year 2142 when all LTC coins will have been mined.

The recent Litecoin halving event took place on August 2 2023 and the next one is scheduled to occur in 2027, where the block rewards will be reduced further. 

Let’s demonstrate this using the Mining API. 

**Query 1**: In this [query](https://ide.bitquery.io/litecoin-halving-2019), let’s get the mining rewards for block 1680328 on 5th August 2019 (the 3rd halving event of Litecoin). Specify the network as “litecoin”, the height parameter as “1680328” and the date as "2019-08-05". Run the query and note the reward amount for the block as shown in the Results column.

```
query ($network: BitcoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    outputs(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      txIndex: {is: 0}
      outputDirection: {is: mining}
      outputScriptType: {notIn: ["nulldata", "nonstandard"]}
      height: {is: 1680328}
    ) {
      address: outputAddress {
        address
        annotation
      }
      date {
        date(format: $dateFormat)
      }
      reward: value
      count(uniq: blocks)
    }
  }
}
```

**Query 2**: Now, let’s run the query for the next halving event of Litecoin, which was on August 2, 2023, using the same API. For example, build this [query](https://ide.bitquery.io/litecoin-halving-2023) to obtain the mining reward for the block 2520218 on August 2, 2023. Specify the network as “litecoin”, the height parameter as “2520218”, and the date as "2023-08-02”. Run the query and note the reward amount for this block as shown in the Results column.

```
query ($network: BitcoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    outputs(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      txIndex: {is: 0}
      outputDirection: {is: mining}
      outputScriptType: {notIn: ["nulldata", "nonstandard"]}
      height: {is: 2520218}
    ) {
      address: outputAddress {
        address
        annotation
      }
      date {
        date(format: $dateFormat)
      }
      reward: value
      count(uniq: blocks)
    }
  }
}
```

These results show that the Litecoin mining rewards from 2019 to 2023 have been cut in half.

## **About Bitquery**

[**Bitquery**](https://bitquery.io/?utm_source=blog&utm_campaign=cardano_api) is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

-   **APIs** - [Explore API](https://ide.bitquery.io/streaming?utm_source=blog&utm_campaign=cardano_api): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

-   **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=blog&utm_campaign=cardano_api): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

-   **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/data-on-demand?utm_source=blog&utm_campaign=cardano_api): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

-   **Explorer** - [Try Explorer](http://explorer.bitquery.io?utm_source=blog&utm_campaign=cardano_api): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info?utm_source=blog&utm_campaign=cardano_api). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.

This article has been written by guest writer [Aparna Sridhar](https://www.linkedin.com/in/aparna-sridhar-0a09b03/)]]></description>
        </item>
        <item>
            <title><![CDATA[Understanding ZK Rollups]]></title>
            <link>https://bitquery.io/blog/understanding-zk-rollups</link>
            <guid>https://bitquery.io/blog/understanding-zk-rollups</guid>
            <pubDate>Wed, 21 Feb 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Blockchains like [Ethereum](https://bitquery.io/blockchains/ethereum-blockchain-api) are slow and expensive. To complete a transaction a user needs to pay hundreds of dollars worth of gas fees if the gas prices are high, this is not ideal and that's why scaling solutions have emerged. In this article, we will be focusing on Zero-knowledge rollups (ZK-rollups) which are layer 2 scaling solutions that increase transaction throughput (the rate of how fast a blockchain processes transactions) on Ethereum Mainnet by moving computation and state storage off-chain. For better understanding let's break this into 2 topics: ZK proofs and Rollups.

## ZK Proofs

In zero-knowledge proof systems, the prover convinces the verifier that some statement is true without revealing any other underlying information, thus the name "Zero-Knowledge". A zero-knowledge protocol should satisfy these three properties:

- **Completeness** — if the statement is true then a prover can convince a verifier
- **Soundness** — a cheating prover can not convince a verifier of a false statement
- **Zero-knowledge** — the interaction only reveals if a statement is true and nothing else

## Why are ZK Proofs Needed?

While transparency is essential for any public blockchain, it is still one of the major drawbacks because you don’t want the whole world to know your personal transactional data. Adding a privacy layer on the blockchain helps to keep your transactional data unknown. Zk-proofs can solve this problem by only publishing the validity proofs and keeping the underlying transactional data obscure. Zk Proof’s are not limited to blockchain only, it can also be used in Voting. The traditional paper based voting systems were full of flaws like time consuming, requiring a lot of people, security of ballot boxes and a lot more. To tackle this online E-Voting systems were introduced but they were still incapable of handling security attacks, but with the help of blockchain and Zk-Proofs we can create a completely secure and anonymous voting system where users can vote easily by sitting at home. This is particularly essential during pandemics like Covid-19. 

## Rollups

Roll Ups are layer-2 chains that process transactions on their network, batch them, and submit the data to the underlying blockchain thus still maintaining the security of the base-layer network. The layer-1 validates the validity proof generated by layer-2 which is a cryptographic assurance that the state change proposed by the rollup is really the result of executing the given batch of transactions. Rollups can reduce the transactional costs and increase the transaction throughput by computing the transactions and moving the state storage off-chain. 

## ZK-Rollup Architecture

The ZK-rollup's core architecture is made up of the following components:

- **On-chain contracts**: The ZK-rollup protocol is governed by the smart contracts deployed on Ethereum. The main contract stores rollup blocks, tracks deposits, and monitors state updates. Another contract - the verifier contract, verifies zero-knowledge proofs.

- **Off-chain virtual machine (VM)**: The transaction execution and state storage happen on a separate virtual machine (VM) which serves as the layer-2 for the ZK-rollup protocol. Validity proofs verified on Ethereum mainnet guarantee the correctness of state transitions in the off-chain VM.

## How do ZK Rollups work?

Let's break the flow step by step for better clarity:

- Users sign and submit transactions to the layer-2 operators for processing and batching of the transactions. These operators can be a centralized entity if only a single node or sequencer is allowed to produce blocks or decentralized if the network follows a consensus mechanism for choosing the operator node from the network. 

- The Operator compresses the data and passes it to the rollup contract deployed on layer-1, this compressed data is passed as calldata to reduce gas costs. (calldata is used to pass arguments to a function in a smart contract and it behaves similarly to memory. It is not stored as part of Ethereum’s state but persists on-chain as part of the Ethereum chain's history logs, making it a cheap way to store data on-chain.)

- ZK-rollups maintain a Merkle tree to represent the state of layer-2 accounts and balances. After every transaction, the state of the rollup changes, and the operator node is responsible for computing and submitting the new state root (cryptographic hash of the Merkle tree’s root) based on the changes resulting from the executed transactions. The operator also creates a batch root which is the root of a Merkle tree consisting of all transactions in a batch. This batch root is also provided to the rollup contract as it verifies the correctness of batched transactions without the need to re-execute them on Ethereum.

- The operator also generates a validity proof which is a cryptographic commitment verifying the correctness of batched transactions without revealing the actual data of the transactions. These are also known as Zero-Knowledge Proofs. They are sent to the verifier contract to validate the off-chain state transitions without having to re-execute transactions on Ethereum. This proof can be a ZK-SNARK or ZK-STARK, depending on the implementation. Once the validity proof is accepted, the new state root which was generated by the operator is updated in the on-chain contract.

## How to use ZK-Rollups on Ethereum?

To interact with rollups, you bridge your funds to the layer 2 network and complete the transactions you want to do on the rollup and once the transactions are done, you can port your funds back to Ethereum. Here’s a brief guide on how that works: Firstly, you should have some tokens in your Ethereum wallet. Then switch your wallet to the layer-2 network. After you’ve connected your wallet to layer-2, bridge your tokens back which will cost some transaction fees. Now you can transact on layer-2 and once you’re done, bridge your funds back to Ethereum. Now that we know how a Zk Rollup works, let's understand how a Zk proof works.

## How does a Zk Proof (Validity Proof) Work?

Now that we know what validity proof does, let's dive into how it works. Here's a step-by-step explanation of the proof generation and verification process in ZK-rollups:

### **Proof Generation**

#### **Transaction Collection and Initial Checks:** 
The operator node gathers transactions and before executing and batching them certain checks are performed to ensure:
  - Both sender and receiver accounts are present in the state tree of the rollup.
  - The sender possesses sufficient funds.
  - The transaction matches the sender’s public key.
  - The nonce (number used once) of the sender is correct.

#### **Aggregation into a Batch:**
Once enough transactions are collected, they are aggregated into a batch. This is a crucial step for efficiency, as processing transactions in batches significantly reduces the computational load and transaction costs on the blockchain.

#### **Compilation of Inputs for the Proving Circuit:**
Inputs include
  - Merkle Tree Root: A single root hash of all transactions in the batch.
  - Merkle Proofs for Transactions: To demonstrate each transaction's inclusion in the batch.
  - Account Pair Proofs: Merkle proofs showing that each sender-receiver pair is part of the rollup's state tree.
  - Intermediate State Roots: A set of intermediate state roots that are generated after applying transactions to the state tree, updating account balances accordingly.

#### **Proving Circuit Operations:**
The proving circuit then iteratively processes each transaction in the batch by:
  - Verifying sender account inclusion using its Merkle proof.
  - Adjusting the sender’s balance and nonce.
  - Hashing the updated account data and combining it with the Merkle proof to generate a new Merkle root
  - All of the above processes are repeated on the receiver's account and the state tree is updated accordingly.

### **Proof Verification**

#### **Submission to Layer-1**
After generating the ZK-proof, the operator node submits this proof to a verifier contract on the Layer-1 blockchain which consists of:
- **Pre-state Root**: The state of the rollup before the batch transactions.
- **Post-state Root**: The state after batch processing.
- **Batch Root**: The Merkle root of all transactions in the batch.
- **Transaction Inputs**: Specific data related to the transactions in the batch.

#### **Proof Validation**

The Layer-1 verifier contract checks if the sequence of transactions represented by the proof validly transitions the rollup from its pre-state to its post-state. If the proof is valid, the rollup contract updates its state to reflect the new post-state root. This ensures the integrity and finality of transactions within the ZK-rollup.

Now that we know how Zk Rollups works, let's talk about the problem while interacting with EVM. Zk Rollups face challenges in proving general-purpose EVM computation. This involves recreating the EVM's operations (opcodes) in a way that they can be proven and verified within zero-knowledge circuits. This process is resource intensive and complex as it requires proving the correctness of every step in a computation without revealing the details of the computation itself. That's why ZkEVMs are being developed which can execute smart contracts, maintain the EVM's logic and state transition mechanisms, and also add a layer of creating zero-knowledge proofs for each step. This ensures that the execution of programs is not only correct but also verifiable without revealing any sensitive information. On the other hand, Optimistic Rollups don't face this issue as it executes transactions in a similar environment to Ethereum itself.

## Pros of Zk Rollups

- **Lower Gas Fees**: By submitting minimal verifiable data to layer-1, they increase efficiency and decrease gas costs. Users benefit from greater capital efficiency and can withdraw funds from L2 without delays.	

- **Higher Throughput**: Executing and batching transactions off-chain helps to achieve faster transaction throughput and reduced block confirmation times.

- **Better security**: It Relies on cryptographic mechanisms for security and not the honesty of incentivized validators as with optimistic rollups, so users don't have to validate the chain to protect their funds.	

- **Privacy Features**: With the help of Zk-rollups you can transact on-chain without revealing any information on-chain, thus creating a trustful environment.

ZK-rollups are "hybrid scaling solutions" that operate independently but depend on Ethereum for security, scalability, and data availability.  Users need not trust any intermediaries to process their transactions or store their data, creating a safer environment.

## Cons of Zk Rollups

- Sequencers (Centralized Operators) can influence the ordering of transactions.

- Hardware requirements act as a significant barrier to running operator nodes, increasing the risk of malicious sequencers.

- Building EVM-compatible zk-rollups is difficult due to the complexity of zero-knowledge technology.

- The cost of generating a zk proof depends on the complexity of the transactions, the proof system, and the circuit design. Proof generation costs can be high for some use cases, potentially affecting zk-rollups' scalability and usability. 

Some proving systems (ZK-SNARK) require trustworthy nodes which, if misbehaved, could potentially compromise a ZK-rollup's security model.

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/moneyflow) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Arbitrum DEX APIs - A Comprehensive Guide to Bitquery's Arbitrum DEX APIs​]]></title>
            <link>https://bitquery.io/blog/arbitrum-dex-api</link>
            <guid>https://bitquery.io/blog/arbitrum-dex-api</guid>
            <pubDate>Sun, 18 Feb 2024 22:29:00 GMT</pubDate>
            <description><![CDATA[
Over the past year, the [Ethereum](https://bitquery.io/blockchains/ethereum-blockchain-api) blockchain network has faced huge network traffic which causes expensive gas and slow transaction speed. People are using a special solution called "Layer 2" or L2s to mitigate the issues with the Layer-1 Ethereum network. [Arbitrum](https://bitquery.io/blockchains/arbitrum-blockchain-api) is one of the fastest-growing layer-2 blockchain network solutions.

DEX trading data plays a crucial role in promoting transparency, accessibility, and innovation in the cryptocurrency market, ultimately empowering traders and fostering the growth of decentralized finance.

In this article,  We’re going to learn how to use Bitquery APIs to to get data from DEXes across Arbitrum Network like Uniwap, 1inch, etc.Bitquery gives us data about things like trades, pairs, pools, addresses and more.

## Bitquery APIs

Bitquery provides historical and real-time indexed data for over 40 blockchains through various interfaces such as GraphQL APIs. These APIs offer a wide range of data including:         
- Transfers
- Token trades and transfers 
- Holders 
- Transactions 
- Address balances 
- Smart contract events & calls 
- NFT trades, and transfers

This comprehensive data access enables developers to build multi-chain solutions for compliance, DEX trading, NFT marketplaces, analytics, and more. Let’s write some queries to get data from Arbitrum DEX. If you have an issue with any of the queries, you refer to our [DEX API docs](https://docs.bitquery.io/docs/category/dex-trades/) which should resolve those issues.

## Analyze DEXes on Arbitrum with Bitquery APIs

Note:- we are using Arbitrum Network governance token Arbitrum across all queries ( address: [0x912CE59144191C1204E64559FE8253a0e49E6548](https://explorer.bitquery.io/arbitrum/token/0x912ce59144191c1204e64559fe8253a0e49e6548)), you can change the address of the token according to your needs.

### Trading pairs API on Arbitrum DEX

If you want to get all trades of a token, you might want to know all its trading pairs. Protocols like Uniswap have pairs or pools.We are using [V2 IDE](https://ide.bitquery.io/?endpoint=https://streaming.bitquery.io/graphql) here Let’s see how you can fetch this data using Bitquery APIs.

#### **All Pairs for a Token on any Arbitrum DEX**

Let's get all pairs of the ARB token. In the following query, we are not defining any DEX details; therefore, we will get pairs across DEXs supported by Bitquery. We are just providing the ARB token as buy currency.

```
{
  EVM(dataset: combined, network: arbitrum) {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x912CE59144191C1204E64559FE8253a0e49E6548"}}}}}
      limit: {count: 10}
      limitBy: {by: Trade_Sell_Currency_SmartContract, count: 1}
    ) {
      Trade {
        Dex {
          ProtocolName
          OwnerAddress
          ProtocolVersion
          Pair {
            SmartContract
            Name
            Symbol
          }
        }
        Buy {
          Currency {
            Name
            SmartContract
          }
        }
        Sell {
          Currency {
            Name
            SmartContract
          }
        }
      }
    }
  }
}
```

Open the above query on GraphQL IDE using this [link](https://ide.bitquery.io/All-Pairs-for-a-Token-on-any-Arbitrum-DEX).

#### **All Pairs on a Specific Arbitrum DEX**

Now, let's see an example of getting all pairs of a token for a specific Arbitrum DEX. In this example, we will get all pairs of the [ARB token](https://explorer.bitquery.io/arbitrum) for the Uniswap v3 protocol; therefore, we will mention [Uniswap v3 factory](https://explorer.bitquery.io/ethereum/smart_contract/0x1f98431c8ad98523631ae4a59f267346ea31f984/transactions) smart contract address.

```
{
  EVM(dataset: combined, network: arbitrum) {
    DEXTrades(
      where: {
        Trade: {
          Buy: {
            Currency: {
              SmartContract: {
                is: "0x912CE59144191C1204E64559FE8253a0e49E6548"
              }
            }
          }
          Dex: {
            OwnerAddress: { is: "0x1f98431c8ad98523631ae4a59f267346ea31f984" }
          }
        }
      }
      limit: { count: 10 }
      limitBy: { by: Trade_Sell_Currency_SmartContract, count: 1 }
    ) {
      Trade {
        Dex {
          ProtocolName
          OwnerAddress
        }
        Buy {
          Currency {
            Name
            SmartContract
          }
        }
        Sell {
          Currency {
            Name
            SmartContract
          }
        }
      }
    }
  }
}
```

Open the above query on GraphQL IDE using this [link](https://ide.bitquery.io/All-Pairs-on-a-Specific-Arbitrum-DEX).

#### **Trade Metrics for a Token Pair**

This query can be used to get all trade metrics (trade amount, TX count) for a given pair ( in this case ARB/USDT) on arbitrum network over a particular time period.

```
query {
  EVM(network:arbitrum, dataset: combined) {
    Unique_Buyers: DEXTrades(
      where: {Block: {Time: {since: "2023-09-27T01:00:00Z", till: "2023-09-27T02:00:00Z"}}, Trade: {Buy: {Currency: {SmartContract: {is:"0x912ce59144191c1204e64559fe8253a0e49e6548"}}}, Sell: {Currency: {SmartContract: {is: "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"}}}}}
    ) {
      count(distinct: Trade_Buy_Buyer)
    }
    Unique_Sellers: DEXTrades(
      where: {Block: {Time: {since: "2023-08-26T01:00:00Z", till: "2023-08-26T02:00:00Z"}}, Trade: {Sell: {Currency: {SmartContract: {is: "0x912ce59144191c1204e64559fe8253a0e49e6548"}}}, Buy:{Currency:{SmartContract:{is: "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"}}}}}
    ) {
      count(distinct: Trade_Sell_Seller)
    }
    Total_Transactions: DEXTrades(
      where: {Block: {Time: {since: "2023-09-27T01:00:00Z", till: "2023-09-27T02:00:00Z"}}, Trade: {Buy: {Currency: {SmartContract: {is: "0x912ce59144191c1204e64559fe8253a0e49e6548"}}}, Sell: {Currency: {SmartContract: {is:"0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"}}}}}
    ) {
      count(distinct: Transaction_Hash)
    }
    Total_Buy_Amount: DEXTrades(
      where: {Block: {Time: {since: "2023-09-27T01:00:00Z", till: "2023-09-27T02:00:00Z"}}, Trade: {Buy: {Currency: {SmartContract: {is: "0x912ce59144191c1204e64559fe8253a0e49e6548"}}}, Sell: {Currency: {SmartContract: {is:"0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"}}}}}
    ) {
      sum(of:Trade_Buy_Amount)
    }
    Total_Sell_Amount: DEXTrades(
      where: {Block: {Time: {since: "2023-09-27T01:00:00Z", till: "2023-09-27T02:00:00Z"}}, Trade: {Buy: {Currency: {SmartContract: {is: "0x912ce59144191c1204e64559fe8253a0e49e6548"}}}, Sell: {Currency: {SmartContract: {is: "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"}}}}}
    ) {
      sum(of:Trade_Sell_Amount)
    }
  }
}
```

Open the above query on GraphQL IDE using this [link](https://ide.bitquery.io/Trade-Metrics-for-a-Token-Pair_1).

### OHLC API for Arbitrum DEXs

You can build your crypto coin ticker using our [DEX APIs](https://bitquery.io/products/dex) based on the requirements of the data field. Also, you can set any time interval you need. Let's see an example. In this example, we are getting the [Arbitrum](https://explorer.bitquery.io/arbitrum) price against [USDT](https://explorer.bitquery.io/arbitrum/token/0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9) on Arbitrum Blockchain aggregating different DEXs.

```
{
  EVM(dataset: realtime, network: arbitrum) {
    DEXTradeByTokens(
      orderBy: {ascendingByField: "Block_Time"}
      where: {Trade: {Side: {Currency: {SmartContract: {is: "0x912ce59144191c1204e64559fe8253a0e49e6548"}}}, Currency: {SmartContract: {is: "0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"}}}}
    ) {
      Block { 
        Time(interval: {in: minutes, count: 10})
        lastTradeTime: Time(maximum: Block_Time)
        FirstTradeTime: Time(minimum: Block_Time)
        LastTradeBlock: Number(maximum: Block_Number)
        FirstTradeBlock: Number(minimum: Block_Number)
      }
      volume: sum(of: Trade_Amount)
      Trade {
        Buyer
        Amount
        Currency {
          Name
          Symbol
        }
        Seller
        Price
        Sender
        Side {
          Currency {
            Name
            Symbol
          }
          Amount
        }
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Number)
        close: Price(maximum: Block_Number)
      }
      count
    }
  }
}
```

Open the above query on GraphQL IDE using this [link](https://ide.bitquery.io/OHLC-API-for-Arbitrum-DEXs_1).

### Latest trading pairs for DEX 

Let's see how we can get the latest trading pairs created on DEXs. In this example we use Smart Contract Events to track PoolCreated events for [Uniswap v3 factory](https://explorer.bitquery.io/ethereum/smart_contract/0x1f98431c8ad98523631ae4a59f267346ea31f984/events) contract.

Because whenever a new pool gets created, the Uniswapv3 factory contract emits a PoolCreated event with the details of the pool.

```
{
  EVM(dataset: combined, network: arbitrum) {
    Events(
      orderBy: {descending: Block_Number}
      limit: {count: 10}
      where: {Log: {SmartContract: {is: "0x1f98431c8ad98523631ae4a59f267346ea31f984"}, Signature: {Name: {is: "PoolCreated"}}}}
    ) {
      Log {
        Signature {
          Name
          Parsed
          Signature
        }
        SmartContract
      }
      Transaction {
        Hash
      }
      Block {
        Date
        Number
      }
      Arguments {
        Name
        Value {
          ... on EVM_ABI_String_Value_Arg {
            string
          }
        }
        Type 
      }
    }
  }
}
```

Open the above query on GraphQL IDE using this [link](https://ide.bitquery.io/Latest-trading-pairs-for-DEX).

### Token Trades API

#### **Historical Token Trades & Price API**

Let's see an example where we get trades of ARB Token in the past. As you can see, we are using Block -> Time filter, which includes the time. If you want to filter by date, then use Block -> Date. You can also use Block -> Number if you want to filter based on block height. We are setting the seller and buyer to 1inch router 0x1111111254eeb25477b68fb85ed929f73a960582 to get both buys and sells of the ARB token.

```
{
  EVM(dataset: combined, network: arbitrum) {
    buyside: DEXTrades(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"}}, Seller: {is: "0x1111111254eeb25477b68fb85ed929f73a960582 "}}}, Block: {Time: {since: "2023-03-03T01:00:00Z", till: "2023-03-05T05:15:23Z"}}}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        From
        To
        Hash
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Seller
          Price
        }
      }
    }
    sellside: DEXTrades(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Sell: {Currency: {SmartContract: {is: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"}}, Buyer: {is: "0x1111111254eeb25477b68fb85ed929f73a960582"}}}, Block: {Time: {since: "2023-03-03T01:00:00Z", till: "2023-03-05T05:15:23Z"}}}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        From
        To
        Hash
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Seller
          Price
        }
      }
    }
  }
}
```

Open the above query on GraphQL IDE using this [link](https://ide.bitquery.io/Historical-Token-Trades--Price-API).

#### **First X Buyers of a Token**

This query retrieves the first X number of buyers for a specific token within the Arbitrum network. Replace the token address of the token you want in the Currency SmartContract field.

```{
  EVM(dataset: archive, network: arbitrum) {
    buyside: DEXTrades(
      limit: {count: 10}
      limitBy: {by: Transaction_From, count: 1}
      orderBy: {ascending: Block_Time}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x912ce59144191c1204e64559fe8253a0e49e6548"}}}}}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        From
        To
        Hash
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
          }
          Seller
          Price
        }
      }
    }
  }
}
```

Open the above query on GraphQL IDE using this [link](https://ide.bitquery.io/First-X-Buyers-of-a-Token-arbitrum-network).

#### **Get Least Traded Token**

The following query gets least traded tokens within a specified time frame on the Ethereum network. By querying the DEX trades and sorting them based on the least number of trades, it provides insights into tokens with minimal trading activity during the designated period.

```
query MyQuery {
  EVM(dataset: archive, network: arbitrum) {
    DEXTradeByTokens(
      limit: {count: 10}
      where: {Block: {Time: {after: "2023-11-20T00:00:00Z", before: "2023-11-27T00:00:00Z"}}}
      orderBy: {ascendingByField: "count"}
    ) {
      Trade {
        Currency {
          Name
          SmartContract
        }
      }
      count
    }
  }
}
```

Open the above query on GraphQL IDE using this [link](https://ide.bitquery.io/Get-Least-Traded-Token).

#### **Token trade from a specific DEX**

If you are looking for token trades on a specific arbitrum dex, use the following API as an example. Here we are getting Arbitrum token trades from the Uniswap V3 DEX. To filter all trades from Uniswap V3, we can use the ProtocolName filter and pass the value of "uniswap_v3". This will give us all the trades from Uniswap V3 deployed on Arbitrum.

```
{
  EVM(dataset: archive, network: arbitrum) {
    buyside: DEXTrades(
      limit: {count: 5}
      orderBy: {descending: Block_Time}
      where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x912ce59144191c1204e64559fe8253a0e49e6548"}}}, Dex: {ProtocolName: {is: "uniswap_v3"}}}}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        From
        To
        Hash
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Seller
          Price
        }
        Dex {
          ProtocolFamily
          ProtocolName
          SmartContract
          Pair {
            SmartContract
          }
        }
      }
    }
  }
}
```

You can also use the factory contract of Uniswap-like protocols in the DEX -> OwnerAddress filter to get trades for that DEX.Open the above query on GraphQL IDE using this [link](https://ide.bitquery.io/Token-trade-from-a-specific-DEX).

### Address Trades API ( Arbitrum Mainnet )

#### **Latest Trades for a given address**

This GraphQL query retrieves the latest 10 buy-side and sell-side trades from the DEXTrades dataset on the Ethereum network for a specific buyer/seller. 

```
{
  EVM(dataset: combined, network: arbitrum ) {
    buyside: DEXTrades(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Buy: {Buyer: {is: "0x1f77dfeb0e6fed1ecf0b41d4c81330df6a6fb167"}}}}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        From
        To
        Hash
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Seller
          Price
        }
      }
    }
    sellside: DEXTrades(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Buy: {Seller: {is: "0x1f77dfeb0e6fed1ecf0b41d4c81330df6a6fb167"}}}}
    ) {
      Block {
        Number
        Time
      }
      Transaction {
        From
        To
        Hash
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            Symbol
            SmartContract
          }
          Seller
          Price
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Seller
          Price
        }
      }
    }
  }
}
```

Open the above query on GraphQL IDE using this [link](https://ide.bitquery.io/Latest-Trades-for-a-given-address).

#### **Trades Where the Address is Buyer OR Seller**

The below query gives you trades where the specified address is either as a buyer or a seller. This is achieved by utilizing the any filter, which acts as an OR condition to encompass both buyer and seller roles in the results.

```
query MyQuery {
  EVM(dataset: archive, network: arbitrum) {
    DEXTrades(
      where: {any: [{Trade: {Buy: {Buyer: {is: "0x0938C63109801Ee4243a487aB84DFfA2Bba4589e"}}}}, 
        {Trade: {Buy: {Seller: {is: "0x0938C63109801Ee4243a487aB84DFfA2Bba4589e"}}}}]}
      limit: {count: 10}
      orderBy: {descending: Block_Time}
    ) {
      Trade {
        Buy {
          Buyer
          Amount
          Currency {
            Name
          }
        }
        Dex {
          ProtocolName
        }
        Sell {
          Buyer
          Price
          Currency {
            Name
          }
        }
      }
      Transaction {
        Hash
      }
    }
  }
}
```

Open the above query on GraphQL IDE using this [link](https://ide.bitquery.io/Trades-Where-the-Address-is-Buyer-OR-Seller).

## Applications

Let’s delve into the applications of using Bitquery GraphQL APIs for Arbitrum DEX data and explore how this information can be harnessed effectively.


- **Monitoring DEX Activity**

  - Bitquery’s DEX Trades API provides real-time and historical data on decentralized exchange (DEX) trades within the Arbitrum ecosystem. By querying this API, you can track trading volumes, liquidity changes, and price movements across various DEXs.

  - Developers and traders can use this data to monitor the health and performance of different DEX protocols. For instance, you can analyze which tokens are most actively traded, identify emerging tokens across arbitrum network on different DEXes, and track liquidity pools’ dynamics.

- **Algorithmic Trading Strategies**

  - Armed with DEX trade data, you can design and optimize algorithmic trading strategies. These strategies can automate buy/sell decisions based on specific conditions, such as price fluctuations, volume spikes, or liquidity imbalances.

  - By integrating Bitquery’s APIs into your trading bots, you can execute trades on Arbitrum DEXs efficiently. For instance, you might create a strategy that rebalances a portfolio by swapping tokens across different DEXs to maintain desired weightings.

- **Market Research and Insights**

  - Researchers and analysts can leverage Bitquery’s APIs to gain deep insights into the Arbitrum DEX landscape. By querying token transfers, liquidity pools, and historical trade data, you can uncover trends, anomalies, and market behavior.

  - These insights can inform investment decisions, guide token listings, and provide valuable context for understanding the overall health of the Arbitrum DEX ecosystem.

## Conclusion

Bitquery's robust GraphQL APIs open up a treasure of data from Arbitrum's DEX ecosystem. As this layer 2 scaling solution gains traction, analyzing on-chain activity across DEX protocols like Uniswap, Sushiswap, and 1Inch becomes invaluable.

By leveraging Bitquery's APIs, developers can build tools to monitor real-time trading, research market dynamics, design algo trading systems, and more. The ability to query historical trades, liquidity pools, smart contract events, and other granular data unlocks new opportunities.

As Arbitrum cements itself as a leading layer 2 network, its DEX landscape will continue to evolve. Bitquery provides a flexible data infrastructure to keep up with this innovation. Whether you're an analyst, trader, or builder - these powerful APIs equip you with actionable data to maximize opportunities in DeFi.

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/moneyflow) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.
]]></description>
        </item>
        <item>
            <title><![CDATA[Top 10 Certifications to Learn Crypto Investigation]]></title>
            <link>https://bitquery.io/blog/crypto-investigation-courses</link>
            <guid>https://bitquery.io/blog/crypto-investigation-courses</guid>
            <pubDate>Thu, 15 Feb 2024 12:06:00 GMT</pubDate>
            <description><![CDATA[
Have you ever found yourself googling "how to become a crypto investigator" or "how to trace my money"? Whether you're a cybersecurity enthusiast, law enforcement professional, or simply someone intrigued by the intersection of technology and finance, becoming comfortable with crypto investigation can open doors to exciting and impactful career opportunities.

This article will guide you through some of the best courses offering a thorough understanding of crypto investigation. These courses, ranging from basic blockchain concepts to advanced forensic methods, give you the necessary knowledge and skills for success in this rapidly changing field of cryptocurrency investigations.

## Certified Cryptocurrency Investigator Training (Blockchain Intelligence Group)

Price: $1,990

The CCI Master Crypto Investigations Learning Path is a detailed program with 8 modules and a final test. This learning path is designed to help you with the essential knowledge needed in crypto investigations.

This course begins by introducing the fundamentals of cryptocurrency. It then progresses to understanding Bitcoin, exploring criminal activities in the digital world, and delving into the hidden areas of the dark web. It also sharpens your skills in blockchain forensics. The program concludes with an in-depth study of advanced topics like privacy-centric cryptocurrencies, decentralized exchanges, and a focused overview of Ethereum.

After successfully completing the program, learners receive the Certified Cryptocurrency Investigator (CCI) certificate. Those who specialize in Ethereum earn an additional CCIE certificate. This course is an effective way to enhance your skills in crypto investigation and excel in the fast-paced field of crypto investigations.

## Certified Digital Currency Investigator (CDCI) (McAfee Institute)

Price: $1,547

The McAfee Institute's board certification program in digital currency investigations is a pioneering course that helps you advance your investigative or intelligence career. As the first and only globally recognized certification of its kind, it responds to the growing need for digital currency expertise.

Created by industry experts and supported by national accreditation, the program provides weekly tutorials, practical investigative exercises, and access to good content on encryption techniques, anonymization networks, and tracing the money trail. It helps you navigate digital currency investigation challenges and build your reputation with skills in blockchain, mining, digital wallets, and cryptocurrency.

The course, with guidance from industry expert Josh McAfee, offers an efficient pathway to enhance your online investigation skills. It demystifies the notion that such a certification is time-consuming or overly expensive.

## Intro to Cryptocurrency Forensics & Investigation (Steven Yang)

Price: FREE

"Intro to Cryptocurrency Forensics & Investigation" is a beginner-friendly course that aims to simplify the complexities of the blockchain and provide a secure way to navigate the virtual asset economy. The course covers the basics of cryptocurrency, its history of crime and hacks, and ongoing efforts to curb illicit activities.

The course includes practical demonstrations and grants free access to a robust forensics platform provided by AnChain.AI, a prominent cryptocurrency security provider. The content includes vital skills such as tracing fund origins, conducting cryptocurrency 'background checks' and 'credit scores,' using forensics software, tracing endpoints and liquidations, attributing entities, geolocating wallets, and more. The course is divided into several parts and includes “follow-along” investigations for experience.

You can also trace money easily with Bitquery [Coinpath®](https://bitquery.io/products/coinpath) or contact the [investigation service](https://bitquery.io/products/crypto-investigation-services) if you need help tracing funds. Read more [here](https://bitquery.io/blog/recover-scammed-bitcoin).

## TRM Advanced Crypto Investigator (TRM Labs)

Price: $1,400

TRM Academy offers online certification courses in blockchain, allowing you to enhance your skills at your convenience. The course's content is spread over 16 modules and covers important topics such as tactics used in crypto crime, the Ethereum blockchain, smart contracts, decentralized exchanges, NFTs, DeFi transactions, and more.

You'll gain a deeper understanding of specific areas like Ethereum mixers, Binance chain, and TRON. You'll also learn about manual demixing, derivation paths, contract spoofing, signature application, and advanced forensics methods. Upon completion of this course, you will be well-versed in the crypto threat landscape, proficient in demixing techniques, understand contract intricacies, and be able to apply advanced forensics methods.

## Chainalysis Investigation Specialist Certification

Price: $1,349

The Chainalysis Investigation Specialist Certification (CISC) Live Course is an advanced offering for registered customers who have already achieved their Chainalysis Reactor Certification (CRC) and have at least three months of experience using Reactor. The content includes lessons on dusting, chain hopping, obfuscation techniques, and so on.

This course aims to further enhance your investigative workflows and risk assessments in Chainalysis Reactor. You'll get the opportunity to explore its advanced features, conduct an in-depth transaction analysis, identify specific wallet types, and learn how to overcome perceived limitations in blockchain analysis. There's also a 3.5-hour exam at the end of the course for you to get the certificate.

## ACAMS

Price: $1,995

The Certified Cryptoasset AFC Specialist Certification (CCAS) is an accreditation provided by ACAMS. It's intended for professionals in the crypto sector who deal with cryptocurrency compliance and risk management pertaining to cryptoasset financial crime. The CCAS was developed in collaboration with professionals from the cryptoasset sector, AML/CTF experts, and regulatory authorities.

The certification aims to update AML expertise in the dynamic crypto markets. Professionals can benefit from this certification as it meets mandated AML training requirements, validates their expertise, and improves their capacity to safeguard institutions from money laundering risks. For organizations, a CCAS-certified team symbolizes a commitment to identifying and mitigating crypto financial crime threats.

The CCAS certification is relevant for roles in AML, compliance, fraud investigation, legal, blockchain technology, and cybersecurity within the crypto sector. It includes three ACAMS online certificate courses and covers key topics related to the cryptoasset sector. To earn the certification, individuals must be ACAMS members, submit an application, accumulate 40 eligibility credits, study the provided materials, and pass the CCAS exam.

## Elliptic Certify

Price: $699

Elliptic Certify is a certification program developed in collaboration with ManchesterCF and awarded in partnership with the University of New Haven. The program provides essential knowledge about crypto assets and AML regulations. It offers insights into the virtual asset landscape, compliance frameworks, and blockchain analytics for effective risk management.

The certification signifies a dedication to learning and offers expertise in risk-based due diligence, specifically in areas like sanctions and terrorist financing. Elliptic Certify provides a flexible online learning environment with a variety of tools, including a digital textbook, interactive modules, and assessments. This allows participants to learn at their own pace.

Globally, regulators recognize the certification, providing credibility and evidence of expertise in financial crime typologies and risk controls.

## Basel Institute

Price: $883

The Basel Institute offers a four-day virtual training course focusing on the basics of cryptocurrencies, financial crime, and anti-money laundering (AML) compliance. This course is structured for professionals from sectors like law enforcement, finance, and business. The goal is to provide participants with the necessary skills to prevent, detect, and investigate illegal uses of cryptocurrencies.

The training is divided into four sessions, each lasting three hours. It includes practical exercises centered around a money laundering case scenario that involves tracing transactions through the blockchain. The course explores topics such as crypto basics, blockchain analysis, due diligence, risk management, and seizure and confiscation of crypto assets.

The course accommodates 5 to 30 participants and costs CHF 750 per person. A reduced rate of CHF 300 is available for certain organizations. After completing the course, participants receive a certificate. Private courses for organizations can also be arranged.

---

_The information provided in this material is published solely for educational and informational purposes. It does not constitute a legal, financial audit, accounting, or investment advice. The article's content is based on the author's own research and, understanding and reasoning. The mention of specific companies, tokens, currencies, groups, or individuals does not imply any endorsement, affiliation, or association with them and is not intended to accuse any person of any crime, violation, or misdemeanor. The reader is strongly advised to conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery shall not be liable for any losses or damages arising from the use of this material._
]]></description>
        </item>
        <item>
            <title><![CDATA[Understanding Wallet Classifications from Crypto Whales to Krills]]></title>
            <link>https://bitquery.io/blog/understanding-wallet-classifications</link>
            <guid>https://bitquery.io/blog/understanding-wallet-classifications</guid>
            <pubDate>Tue, 13 Feb 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
# Understanding Wallet Classifications: From Crypto Whales to Krills

Understanding how tokens are distributed among different wallet holders provides critical insights into the concentration of wealth and influence within any blockchain network. This comprehensive guide will teach you how to classify wallets, track whale activity, and analyze token distribution patterns using Bitquery's Token Holder APIs.

## What We'll Discuss In This Blog

In this guide, you'll discover:
- **Wallet Classification Systems**: How to categorize holders from whales to krills
- **Token Distribution Analysis**: Why distribution matters for project health
- **Whale Impact**: How large holders influence markets
- **Practical API Examples**: Real queries to track holder metrics
- **Distribution Statistics**: Calculate Gini coefficient, Nakamoto coefficient, and more

## Why Token Distribution Matters

Token distribution is a fundamental aspect of cryptocurrency ecosystems that directly impacts stability, decentralization, and overall network health. Understanding who holds tokens and in what quantities is often more important than simply knowing the total number of holders.

### Key Benefits of Proper Token Distribution

**Decentralization & Security**
- Prevents concentration of power in few addresses
- Enhances network resilience against attacks
- Reduces single-point-of-failure risks

**Market Health**
- Promotes liquidity and price stability
- Reduces manipulation risks
- Enables sustainable growth patterns

**Community & Trust**
- Ensures equitable participation opportunities
- Builds stakeholder confidence
- Encourages active community engagement

**Project Sustainability**
- Attracts diverse global participation
- Provides transparent allocation visibility
- Creates long-term holder alignment

## Wallet Classification System

Cryptocurrency wallets are commonly categorized based on token holdings, creating a hierarchical classification system. These thresholds vary depending on the token's value against fiat currencies, but the general framework remains consistent across the industry.

### Classification Tiers

| Category | Token Holdings | Market Influence | Typical Role |
|----------|---------------|------------------|--------------|
| **Whales** | > 1,000,000 tokens | Very High | Major investors, early adopters, institutions |
| **Sharks** | 100,000 - 1,000,000 | High | Significant traders, large investors |
| **Dolphins** | 10,000 - 100,000 | Moderate | Active traders, medium investors |
| **Seals** | 1,000 - 10,000 | Low-Moderate | Regular investors, early enthusiasts |
| **Fish** | 100 - 1,000 | Low | Small investors, retail traders |
| **Krill** | 0 - 100 | Minimal | Micro investors, new users |

> **Token Value Matters**
> 
> These thresholds are guidelines and should be adjusted based on token economics. A whale holding 1M tokens worth $0.01 each differs significantly from one holding 1M tokens worth $100 each.

## The Significance of Whales

Crypto whales—holders with 100,000+ tokens—exert disproportionate influence on market dynamics, price movements, and overall ecosystem health. Understanding whale behavior is essential for any serious market participant.

### How Whales Impact Markets

**1. Price Volatility**

Whales can trigger significant price movements through large transactions:
- **Selling Pressure**: Large sell orders create sharp downward pressure, potentially triggering panic selling
- **Buy Walls**: Substantial purchases can rapidly increase prices and spark buying frenzies
- **Psychological Impact**: Whale movements often influence retail trader behavior

**2. Market Liquidity**

Whales play a dual role in market liquidity:
- **Positive**: Provide depth to order books, enabling smoother trading
- **Market Making**: Large orders allow others to trade without excessive slippage
- **Negative**: Sudden liquidity withdrawal increases volatility and spreads
- **Concentration Risk**: Over-reliance on few holders creates instability

**3. Market Manipulation Risks**

Large holders possess tools for market manipulation:
- **Wash Trading**: Creating artificial volume through self-trading
- **Spoofing**: Placing large orders to manipulate price, then canceling them
- **Pump & Dump**: Coordinated buying followed by mass selling
- **Accumulation Games**: Suppressing prices to accumulate before major moves

**4. Investor Sentiment**

Whale activity serves as a market signal:
- **Accumulation Phases**: Large buys often indicate confidence in future price appreciation
- **Distribution Phases**: Consistent selling may signal upcoming bearish trends
- **Smart Money Indicators**: Experienced traders monitor whale wallets for strategic insights
- **Confidence Metrics**: Whale holding patterns influence overall market sentiment

> **⚠️ Monitor Whale Activity**
> 
> Tracking whale movements provides early warning signals for potential market shifts. Use Bitquery's Token Holder APIs to identify and monitor large holders in real-time.

## Analyzing Token Distribution with Bitquery APIs

Now let's explore practical examples using Bitquery's Token Holder APIs to analyze wallet classifications, track distribution patterns, and monitor whale activity across popular tokens.

### Example 1: Categorized Count of USDT Token Holders

This query retrieves USDT holder counts across different wallet classifications—whales, sharks, and dolphins—providing insights into token concentration.

Run in IDE: [USDT holder distribution by tier](https://ide.bitquery.io/Count-of-token-holders-for-a-token-on-Ethereum)

<details>
<summary>Click to expand GraphQL query</summary>

```graphql
{
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2024-02-01"
      tokenSmartContract: "0xdAC17F958D2ee523a2206206994597C13D831ec7"
      where: { Balance: { Amount: { ge: "0" } } }
    ) {
      whales: count(
        distinct: Holder_Address
        if: { Balance: { Amount: { gt: "1000000" } } }
      )
      sharks: count(
        distinct: Holder_Address
        if: { Balance: { Amount: { gt: "100000", le: "1000000" } } }
      )
      dolphins: count(
        distinct: Holder_Address
        if: { Balance: { Amount: { gt: "1000", le: "100000" } } }
      )
    }
  }
}
```

</details>

**Key Insights:**

- **Dolphins (1K-100K tokens)**: Represent the majority with 223,459 holders, indicating healthy retail participation
- **Sharks (100K-1M tokens)**: 20,288 holders form the active trading tier
- **Whales (>1M tokens)**: Only 3,753 holders, but they control significant supply

This distribution pattern suggests relatively healthy decentralization, though whales still maintain considerable influence.

### Example 2: Top Token Holders for MAYC NFT Collection

Identify the largest holders of the Mutant Ape Yacht Club (MAYC) NFT collection to understand ownership concentration patterns.

Run in IDE: [Top MAYC holders](https://ide.bitquery.io/top-token-holder-for-a-token-using-token-holders-api)

<details>
<summary>Click to expand GraphQL query</summary>

```graphql
{
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2024-02-01"
      tokenSmartContract: "0x60E4d786628Fea6478F785A6d7e704777c86a7c6"
      limit: { count: 10 }
      orderBy: { descending: Balance_Amount }
    ) {
      Holder {
        Address
      }
      Balance {
        Amount
      }
      BalanceUpdate {
        FirstDate
        LastDate
      }
    }
  }
}
```

</details>

**Analysis:**

- **Concentration Gradient**: Top holder owns 785 tokens while 10th holder owns 55 tokens, showing a natural concentration curve
- **Whale Dominance**: Top 10 holders control a significant portion but not overwhelming majority
- **Positive Distribution**: Multiple diverse holders indicate healthy decentralization rather than extreme concentration
- **Monitoring Opportunity**: Track these addresses over time to identify accumulation or distribution trends

### Example 3: Trending Tokens by Holder Growth

Discover which tokens are gaining the most holders, indicating growing community adoption and interest.

Run in IDE: [Trending tokens by holder count](https://ide.bitquery.io/Trending_Token_based_on_holders)

<details>
<summary>Click to expand GraphQL query</summary>

```graphql
{
  EVM(network: eth, dataset: combined) {
    BalanceUpdates(
      where: {
        Block: { Date: { since: "2024-02-01" } }
        BalanceUpdate: { Amount: { gt: "0" } }
      }
      orderBy: { descendingByField: "No_Holders" }
      limit: { count: 10 }
    ) {
      No_Holders: count(distinct: BalanceUpdate_Address)
      Currency {
        Name
        Symbol
        SmartContract
      }
    }
  }
}
```

</details>

**Insights:**

- **Native ETH Dominance**: Highest holder count reflects fundamental network adoption
- **Stablecoin Utility**: USDT and USDC rank high, demonstrating their role as trading pairs and value stores
- **DeFi Tokens**: Staking tokens (e.g., stETH) show growing DeFi participation
- **Ecosystem Projects**: Application-specific tokens indicate active community engagement
- **Adoption Metric**: Increasing holder count often precedes price appreciation

> **💡 Related Documentation**
> 
> For more token holder query examples, visit our [Token Holder API Guide](https://docs.bitquery.io/docs/blockchain/Ethereum/token-holders/token-holder-api)

## Advanced Token Holder Analysis

The Token Holders API provides comprehensive capabilities for analyzing wallet classifications and distribution patterns. Here's how to leverage these powerful features:

### Core Capabilities

**1. Holder Counting & Classification**
- **Total Holder Count**: Track overall token adoption and network growth
- **Categorized Counts**: Segment holders into whales, sharks, dolphins, etc.
- **Time-Series Analysis**: Monitor holder growth patterns over time
- **New vs. Existing**: Identify fresh entrants versus long-term holders

**2. Balance Tracking & Monitoring**
- **Historical Balances**: Query any address's token balance at specific dates
- **Balance Changes**: Track accumulation or distribution patterns
- **Portfolio Analysis**: Monitor multiple tokens across addresses
- **Threshold Alerts**: Identify when addresses cross classification boundaries

**3. Statistical Measures**

The API provides advanced metrics for decentralization analysis:

| Metric | Purpose | Use Case |
|--------|---------|----------|
| **Gini Coefficient** | Wealth inequality (0-1 scale) | Assess distribution fairness |
| **Nakamoto Coefficient** | Decentralization threshold | Identify minimum colluding actors needed |
| **Theil Index** | Entropy-based inequality | Advanced distribution analysis |
| **Average Balance** | Mean holder position | Understand typical holder size |
| **Median Balance** | Central tendency | True "middle" holder position |

**4. Activity Analysis**
- **Transaction Counts**: Track holder trading frequency
- **First/Last Activity**: Identify dormant vs. active wallets
- **Inflow/Outflow**: Monitor buying and selling patterns
- **Liquidation Events**: Detect complete position exits

**5. Top Holder Identification**
- **Whale Addresses**: Find largest holders by balance
- **Influential Stakeholders**: Identify major investors and institutions
- **Risk Assessment**: Evaluate concentration risks
- **Smart Money Tracking**: Monitor experienced trader movements

**6. Advanced Filtering**
- **Balance Ranges**: Filter holders within specific token amounts
- **Date Ranges**: Analyze holder behavior across time periods
- **Multiple Criteria**: Combine filters for sophisticated analysis
- **Common Holders**: Find addresses holding multiple specific tokens

## Practical Use Cases

Understanding wallet classifications enables powerful applications across the crypto ecosystem:

### For Traders & Investors
- **Whale Watching**: Monitor large holder movements for early market signals
- **Smart Money Tracking**: Follow successful traders and their strategies
- **Risk Assessment**: Evaluate token concentration before investing
- **Entry/Exit Timing**: Use distribution changes to optimize trade timing

### For Project Teams
- **Community Health**: Monitor holder diversity and growth
- **Token Economics**: Validate distribution aligns with tokenomics design
- **Vesting Tracking**: Monitor team and investor unlock schedules
- **Marketing Insights**: Identify successful holder acquisition strategies

### For Researchers & Analysts
- **Decentralization Metrics**: Calculate Gini, Nakamoto, and Theil coefficients
- **Market Research**: Compare distribution patterns across projects
- **Trend Analysis**: Identify correlation between distribution and price
- **Due Diligence**: Assess project legitimacy through holder patterns

### For DeFi Protocols
- **Governance Analysis**: Understand voting power distribution
- **Risk Management**: Monitor concentration risks in liquidity pools
- **Airdrop Planning**: Design fair distribution based on holder tiers
- **Incentive Design**: Target specific holder categories with rewards

## Key Takeaways

**Token distribution is more important than total holder count** - Understanding who holds tokens and how much reveals true project health

**Whales significantly impact markets** - Large holders influence price volatility, liquidity, and sentiment through their trading activity

**Classification enables better analysis** - Segmenting holders into tiers (whales, sharks, dolphins, etc.) provides actionable insights

**Monitor distribution changes over time** - Tracking holder patterns reveals accumulation, distribution, and trend signals

**Bitquery APIs make analysis accessible** - Comprehensive token holder data available through simple GraphQL queries

## Next Steps

Ready to start analyzing token distributions? Here's what to do next:

1. **[Try the Token Holder API](https://docs.bitquery.io/docs/blockchain/Ethereum/token-holders/token-holder-api)** - Explore comprehensive examples and queries
2. **[Get Your API Key](https://ide.bitquery.io/)** - Start with free tier access
3. **[Join Our Community](https://t.me/Bloxy_info)** - Connect with other developers and analysts
4. **[Explore More Examples](https://docs.bitquery.io/docs/examples/token-holders/token-holder-api/)** - Advanced use cases and patterns

## Related Resources

Expand your knowledge with these related guides:

### Token Holder Analytics
- **[Token Holder API Guide](https://docs.bitquery.io/docs/blockchain/Ethereum/token-holders/token-holder-api)** - Complete API reference and examples
- **[Balance Updates Cube](https://docs.bitquery.io/docs/cubes/balance-updates-cube)** - Track balance changes over time
- **[Token Holders Over Time](https://docs.bitquery.io/docs/examples/token-holders/token-holder-api/)** - Historical analysis patterns

### Distribution Metrics
- **[Statistics & Metrics](https://docs.bitquery.io/docs/graphql/metrics/statistics/)** - Gini, Nakamoto, and Theil calculations
- **[Calculations](https://docs.bitquery.io/docs/graphql/calculations)** - Custom metric computations
- **[Filtering Techniques](https://docs.bitquery.io/docs/graphql/filters)** - Advanced query filtering

### Market Analysis
- **[DEX Trades API](https://docs.bitquery.io/docs/blockchain/Ethereum/dextrades/dex-api)** - Analyze trading activity
- **[Token Trades APIs](https://docs.bitquery.io/docs/blockchain/Ethereum/dextrades/token-trades-apis)** - Track buy/sell patterns
- **[Transfers API](https://docs.bitquery.io/docs/blockchain/Ethereum/transfers/erc20-token-transfer-api)** - Monitor token movements

### Getting Started
- **[First Query Guide](https://docs.bitquery.io/docs/start/first-query)** - Learn GraphQL basics
- **[API Authentication](https://docs.bitquery.io/docs/authorisation/how-to-generate/)** - Get your API key
- **[IDE Features](https://docs.bitquery.io/docs/ide/query)** - Master the query interface

## Support & Community

Need help or have questions?

- **[Telegram Community](https://t.me/Bloxy_info)** - Get support from our team and community
- **[Documentation](https://docs.bitquery.io/)** - Comprehensive guides and references
- **[GitHub Examples](https://github.com/bitquery)** - Code samples and integrations
- **Email Support**: support@bitquery.io


]]></description>
        </item>
        <item>
            <title><![CDATA[Bitcoin API: Exploring BTC Transfers, Block Rewards, Havling and much more]]></title>
            <link>https://bitquery.io/blog/bitcoin-api</link>
            <guid>https://bitquery.io/blog/bitcoin-api</guid>
            <pubDate>Sun, 11 Feb 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
In the domain of digital finance, few innovations have captivated the world's attention like Bitcoin. Born out of the desire for decentralized currency, [Bitcoin](https://bitquery.io/blockchains/bitcoin-blockchain-api) has grown from a mere concept into a global phenomenon, challenging traditional financial systems and sparking a revolution in how we perceive and interact with money. Bitcoin is the precursor for the rapid strides in blockchain technology of today and has given rise to a number of crypto networks and currencies. 
This innovation has fueled eager developers to tap into Bitcoin’s potential and interact with the network to build smart applications. 

Bitcoin APIs, developed by [Bitquery](https://bitquery.io/) (a leading indexer and provider of crypto products), allows developers to integrate Bitcoin functionality seamlessly into their own services or applications. 

Let's delve into the origins of Bitcoin and explore the capabilities of Bitcoin APIs in this article. 

## What is Bitcoin?

[Bitcoin](https://bitcoin.org) was first discussed in a whitepaper, Bitcoin: A Peer-to-Peer Electronic Cash System, published on Bitcoin.org. Introduced by Satoshi Nakamoto (a pseudonym for an individual or a group of developers) in 2009, Bitcoin is a cryptocurrency or a digital currency that acts as a payment method for financial transactions. When divided into smaller bits known as “satoshis”, bitcoins can be enabled for payments. 

Bitcoin operates on a decentralized ledger system called the blockchain and is a proof-of-work consensus system. This is the first ever decentralized cryptocurrency that uses the blockchain technology. Because of this, Bitcoin enables safe and secure transactions on the network.

The Bitcoin network is open source, which means it’s publicly accessible and open for contributions. The currency native to the network is known as bitcoin (note the lowercase), with the symbol BTC. 

## Architecture

The basic architecture of the Bitcoin network consists of:
- Network layer: Acts as a bridge between blockchain network nodes
- Consensus layer: Ensures that the network nodes are in agreement regarding the network status
- Application layer: Used for application development and deployment. For example, deployment of smart contracts and decentralized applications (dApps). Some of the use cases include the Lightning Network, Bitcoin Ordinals or Bitcoin L2s.

## How Does Bitcoin Work?
The following components make up the decentralized system of Bitcoin:
- The Bitcoin network - a P2P (peer-to peer) network where people can directly run and validate transactions
- The Bitcoin blockchain (public ledger) - this ensures that the transactions are stored, validated, and verified
- BTC, the native cryptocurrency - this is the currency that is traded on the Bitcoin network 

Here are the broad steps involved in Bitcoin transactions:
- Creation of wallets for storing bitcoins
- Initiation of transactions for broadcasting to network
- Validation and verification of transactions through bitcoin mining
- Addition of verified transactions to a block

## Exploring Bitcoin Network Through Bitquery APIs 

### Bitcoin Block Explorer API: Overview of Bitcoin Mainnet

[Bitquery](https://explorer.bitquery.io/) provides a variety of APIs to extract real-time or historic Bitcoin chain data. Use the [Bitquery Explorer](https://explorer.bitquery.io/bitcoin) to track bitcoin transactions, bitcoin transfers, transaction fees, blocks, bitcoin block rewards, and more.

![Bitquery Bitcoin Explorer](https://lh7-us.googleusercontent.com/DLlkKAtRqmrcO-NNKO9JPto7cT6pgN_BO5gUoM0f_rsUJeYnVfX1emQ_HX39oDe37HpaSvLKQ5lgxoZnV_0jOpeZ7xZXYH716XySK4CQS_RgSGQ_WraHyZkHkw-jAaWEKVyCQxkDGGoXJJEW2Oea9g)

To embed queries in your applications, simply click the **Get API** on the bottom right of the screen (check the above image). To write your own queries, use Bitquery’s in-built [GraphQL IDE](https://ide.bitquery.io/). 

Let’s delve into some of the Bitquery APIs to track Bitcoin transactions and more here. Bitcoin wallet APIs enable you to track bitcoin addresses, view bitcoin balances, check bitcoin transactions and transfers. 

### Address Stats API

#### **Obtaining statistics of a Bitcoin address**

This API retrieves statistics related to Bitcoin addresses. To obtain the statistics for a specific address, use the following [query](https://ide.bitquery.io/bitcoin-addressstats) in IDE. For example, this query retrieves the statistics of a specific Bitcoin address, bc1qka60n3wyl0gkdla7kpnhm2597lh652jjycpue6. Specify the network as “bitcoin” and the address as applicable. 

```
{
  bitcoin(network: bitcoin) {
    addressStats(address: {is: "bc1qka60n3wyl0gkdla7kpnhm2597lh652jjycpue6"}) {
      address {
        address
        annotation
        balance
        inboundTransactions
        inflows
        outboundTransactions
        outflows
        uniqueDaysWithTransfers
        uniqueReceivers
        uniqueSenders
      }
    }
  }
}
```

### Blocks API

#### **Obtaining details of all blocks on the Bitcoin chain**

You can get the details of all blocks on the Bitcoin chain with this API. For example, to retrieve the details of all the blocks on Bitcoin in January, use this [query](https://ide.bitquery.io/bitcoin-blocks_2). Specify the network as “bitcoin” and the dates as applicable (01/01 to 01/31).

```
query ($network: BitcoinNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    blocks(
      options: {desc: "height", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
    ) {
      timestamp {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      height
      difficulty
      transactionCount
      blockSizeBigInt
      blockHash
      blockSize
      blockSizeBigInt
      blockStrippedSize
      blockVersion
      blockWeight
      chainwork
      difficulty
      
    }
  }
}
```

#### **Obtaining details of a specific block**

To get a specific block’s data, simply specify the “height” parameter with the required block ID in the above query. For example, in this [query](https://ide.bitquery.io/bitcoin-specific-block), we are retrieving the details of the block 829329. Specify the network as “bitcoin” and the height parameter as “829329”. This gives you the current details of this block.

```
query ($network: BitcoinNetwork!, $height: Int!) {
  bitcoin(network: $network) {
    blocks(height: {is: $height}) {
      timestamp {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      medianTime {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      blockHash
      blockSizeBigInt
      blockStrippedSize
      blockVersion
      blockWeight
      chainwork
      difficulty
      transactionCount
    }
  }
}
```

### Coinpath API 

#### **Tracking inflow/outflow of money**

To find out the money flow between addresses, use the Coinpath API. This will retrieve data related to the amount transacted, number of transactions, amount sent or received, sender and receivers. 

For example, to obtain the inputs and outflow of money for this address, 038TPWyir3ycYVkYR93rxJP7gietHWbVNQX since 15th January 2024, use this [query](https://ide.bitquery.io/bitcoin-coinpath_1). Specify the network as “bitcoin”, address as “038TPWyir3ycYVkYR93rxJP7gietHWbVNQX “, and the dates as applicable.

```
query ($network: BitcoinNetwork!, $address: String!, $inboundDepth: Int!, $outboundDepth: Int!, $limit: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    inbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      depth
      count
    }
    outbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      depth
      count
    }
  }
}
```

Check out a visual representation of the same [here](https://explorer.bitquery.io/bitcoin/address/38TPWyir3ycYVkYR93rxJP7gietHWbVNQX/graph?from=2024-01-15&till=2024-02-07).

### Inputs API

#### **Extracting input details of a transaction**

To obtain the input details of a transaction on Bitcoin, use this API. For example, let’s retrieve the inputs of a specific block, say, 829337 after 1st of Dec 2023 in this [query](https://ide.bitquery.io/bitcoin-inputs). 

Specify the network as “bitcoin, height as “ 829337“ , and the dates as applicable.

```
{
  bitcoin {
    inputs(
      options: {limit: 50, desc: "block.timestamp.iso8601"}
      date: {after: "2023-12-01T00:00:00Z"}
      height: {is: 829337}
    ) {
      block {
        height
        timestamp {
          iso8601
        }
      }
      inputIndex
      inputScript
      inputAddress {
        address
        annotation
      }
      outputTransaction {
        hash
      }
      transaction {
        hash
      }
      value
    }
  }
}
```

### Outputs API

#### **Fetching output details of a transaction**

This API gives you the details of all the outputs of a transaction on the Bitcoin network. You can further filter the data to obtain the outputs of a particular block. In this [query](https://ide.bitquery.io/bitcoin-outputs), we will retrieve transaction outputs (20) for the block, 829337 after 15th Dec 2023. Specify the network as “bitcoin” , height as 829337 and the date as applicable.

```
{
  bitcoin {
    outputs(
      date: {after: "2023-12-15"}
      options: {limit: 20, desc: "block.timestamp.iso8601"}
      height: {is: 829337}
    ) {
      block {
        timestamp {
          iso8601
        }
      }
      date {
        date
      }
      outputAddress {
        address
        annotation
      }
      outputDirection
      outputIndex
      outputScript
      outputScriptType {
        annotation
        pattern
        short
        simplePattern
        type
      }
      reqSigs
      transaction {
        hash
        index
      }
      value
    }
  }
}
```

### OmniTransactions API

#### **Retrieving details of Omni transactions**

Bitcoin Omni transactions are transactions that are built on the Omni layer protocol on top of the Bitcoin blockchain. They enable advanced features on the Bitcoin blockchain, such as  transactions (issue, send, trade) of digital assets, tokens, and smart contracts.

The OmniTransactions API fetches details of omni transactions on the Bitcoin network.

For example, in this [query](https://ide.bitquery.io/bitcoin-omnitransactions), we are fetching details of all omni transactions on Bitcoin after 1st Dec 2023. Specify the network as “bitcoin”  and the date as applicable.

```
{
  bitcoin {
    omniTransactions(
      options: {limit: 10, desc: "block.timestamp.iso8601"}
      date: {after: "2023-12-01"}
    ) {
      block {
        timestamp {
          iso8601
        }
      }
      blockHash
      feeValue
      hash
      index
      json
      txSender
      type
      typeInt
      valid
      version
    }
  }
}
```

### OmniTransfers API

#### **Fetching details of Omni transfers**

Bitcoin Omni transfers refer to transactions involving tokens created and managed on the Omni Layer protocol, which operates on top of the Bitcoin blockchain. This API fetches details of omni transfers on the Bitcoin network.

For example, this [query](https://ide.bitquery.io/bitcoin-omnitransfers) returns details of all omni transfers on Bitcoin after 15th Dec 2023. pecify the network as “bitcoin”  and the date as applicable.

```
{
  bitcoin {
    omniTransfers(
      date: {after: "2023-12-15"}
      options: {desc: "block.timestamp.iso8601", limit: 10}
    ) {
      block {
        timestamp {
          iso8601
        }
      }
      blockHash
      currency {
        address
        name
        symbol
      }
      date {
        date
      }
      direction
      divisible
      hash
      index
      ismine
      transferFrom
      transferTo
      txSender
      type
      typeInt
      value
    }
  }
}
```

### Transactions API

This API allows you to track bitcoin transactions on the Bitcoin network. 

#### **Viewing daily bitcoin transaction count**

Let’s get the number of daily transactions per day for the last 10 days using this simple [query](https://ide.bitquery.io/bitcoin-daily-transactions). Specify the network as “bitcoin” ,  and the count parameter as shown here.

```
query {
  bitcoin {
    transactions(options: {desc: "date.date", limit: 10}) {
      date {
        date
      }
      count
    }
  }
}
```

#### **Fetching inputs and outputs of a transaction**

You can also get inputs and outputs of a Bitcoin transaction using this API. For example, here is [the query](https://ide.bitquery.io/bitcoin-inputs-and-outputs) which retrieves the current inputs and outputs of a specific address ae70f479da86601a656511790a536315faf8a1f05f5132efa0e9edf8d78ab4e8. Specify the network as “bitcoin”  and the address as ae70f479da86601a656511790a536315faf8a1f05f5132efa0e9edf8d78ab4e8. 

```
{
  bitcoin(network: bitcoin) {
    inputs(
      txHash: {is: "ae70f479da86601a656511790a536315faf8a1f05f5132efa0e9edf8d78ab4e8"}
      options: {asc: "inputIndex"}
    ) {
      inputIndex
      block {
        height
        timestamp {
          time(format: "%y-%d-%m")
        }
      }
      address: inputAddress {
        address
        annotation
      }
      value
      value_usd: value(in: USD)
      inputScript
      inputScriptType {
        pattern
        simplePattern
      }
      outputTransaction {
        hash
      }
      transaction {
        hash
      }
      value
    }
    outputs(
      txHash: {is: "ae70f479da86601a656511790a536315faf8a1f05f5132efa0e9edf8d78ab4e8"}
      options: {asc: "outputIndex"}
    ) {
      outputIndex
      address: outputAddress {
        address
        annotation
      }
      value
      value_usd: value(in: USD)
      outputDirection
      block {
        height
        timestamp {
          time(format: "%y-%d-%m")
        }
      }
      outputDirection
      outputScript
      outputScriptType {
        pattern
        short
        simplePattern
        type
      }
      reqSigs
      transaction {
        hash
      }
    }
  }
}
```

#### **Checking bitcoin transactions by date**

You can check for the number of transactions on the Bitcoin network by date. For example, let’s fetch the number of transactions for 7th Feb 2024. Build this [query](https://ide.bitquery.io/bitcoin-transactions-by-date-2) in IDE as shown. Set the “since” and “till”parameters to 2024-02-07.  Specify the network as “bitcoin”  to get the number of transactions on that day.

```
query ($network: BitcoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    transactions(options: {asc: "date.date"}, date: {since: $from, till: $till}) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt
    }
  }
}
```

#### **Tracking bitcoin transaction fee by date**

Now, let’s filter the above query to view the total transaction fees for transactions on 7th Feb 2024. Add the parameter “feeValue” to the [query](https://ide.bitquery.io/bitcoin-transactions-fees) as shown. Set the date parameter as before.

```
query ($network: BitcoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    transactions(options: {asc: "date.date"}, date: {since: $from, till: $till}) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt
      feeValue
      avgFee: feeValue(calculate: average)
    }
  }
}
```

#### **Retrieving bitcoin transaction scripts**

In the Bitcoin network, input and output scripts are fundamental components of transactions that define how bitcoins are spent and where they are sent. These scripts are important for validation of transactions. Through Bitquery APIs, you can extract the input/output scripts for a transaction on Bitcoin. 

For example, let’s retrieve all the output scripts for a specific transaction, say, 4e4fee030ef37f16631063488f65382522d73c6dd311669f3f4cc6b5cf2ba49a. Set the address (hash) parameter in the [query](https://ide.bitquery.io/bitcoin-transactions-outputscripts) here as shown. Specify the network as “bitcoin”.

```
query ($network: BitcoinNetwork!, $hash: String!, $limit: Int!, $offset: Int!) {
  bitcoin(network: $network) {
    outputs(
      txHash: {is: $hash}
      options: {asc: "outputIndex", limit: $limit, offset: $offset}
    ) {
      outputIndex
      address: outputAddress {
        address
        annotation
      }
      value
      value_usd: value(in: USD)
      outputDirection
      outputScriptType {
        annotation
        pattern
        type
      }
      outputScript
    }
  }
}
```

Similarly, you can query for input scripts by using the “inputs” parameter in the query. 

#### **Extracting number of BTC transactions**

To obtain transactions of BTC, the native crypto on the Bitcoin network, use this API. For example, in this [query](https://ide.bitquery.io/bitcoin-BTC-sentreceived), let’s get all the BTC transactions (both inbound and outbound) for the period from 1st Feb 2024 to 9th Feb 2024. Specify the network as “bitcoin”  and the dates as given.

```
query ($network: BitcoinNetwork!, $address: String!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    inputs(
      date: {since: $from, till: $till}
      inputAddress: {is: $address}
      options: {asc: "date.date"}
    ) {
      date {
        date(format: $dateFormat)
      }
      value
    }
    outputs(
      date: {since: $from, till: $till}
      outputAddress: {is: $address}
      options: {asc: "date.date"}
    ) {
      date {
        date(format: $dateFormat)
      }
      value
    }
  }
}
```

You can check only for inbound or only for outbound by modifying the above query. Simply use either the inputs or the outputs parameter as required. 

### Mining API

The bitcoin mining API extracts mining information on the Bitcoin network, including the number of miners, blocks produced by them, mining rewards and so on. 

#### **Obtaining unique miners on Bitcoin**

Want to know the number of miners or number of unique miners on the Bitcoin network? Simple.  Build this [query](https://ide.bitquery.io/bitcoin-unique-miners) in IDE. Here, we will retrieve the number of unique miners for a period of two weeks, say 24h Jan 2024 to 7th Feb 2024. Specify the network as “bitcoin”  and the dates as given. 

```
query ($network: BitcoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    outputs(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      txIndex: {is: 0}
      outputDirection: {is: mining}
      outputScriptType: {notIn: ["nulldata", "nonstandard"]}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt(uniq: addresses)
      value
    }
  }
}
```

#### **Checking mined bitcoin value **

Additionally, you can also query for the mined value on the Bitcoin network. To do so, use this [query](https://ide.bitquery.io/bitcoin-mined-value). This query returns the mined value per day for 2 weeks as before (say 24h Jan 2024 to 7th Feb 2024).  Specify the network as “bitcoin”  and the dates as given.

```
query ($network: BitcoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    outputs(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      txIndex: {is: 0}
      outputDirection: {is: mining}
      outputScriptType: {notIn: ["nulldata", "nonstandard"]}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt(uniq: addresses)
      value
    }
  }
}
```

You can also obtain mined value per block by specifying “uniq: blocks”  for the count parameter in the above query.

#### **Viewing number of mined blocks**

This API also enables you to get data on the number of blocks produced by miners over a period of time. 

To find out how many blocks were mined during a period, use this [query](https://ide.bitquery.io/bitcoin-count-of-mined-blocks_2). For example, here we are retrieving the number of blocks mined during a week (01-07 Feb 2024). Specify the network as “bitcoin”  and the dates as applicable.

```
query ($network: BitcoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    outputs(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      txIndex: {is: 0}
      outputDirection: {is: mining}
      outputScriptType: {notIn: ["nulldata", "nonstandard"]}
    ) {
      address: outputAddress {
        address
        annotation
      }
      date {
        date(format: $dateFormat)
      }
      reward: value
      count(uniq: blocks)
    }
  }
}
```

Similarly, you can get the number of transactions by miners, number of addresses on miners etc.

#### **Retrieving number of bitcoin block rewards**

This API returns information about Bitcoin mining rewards. Specifically, it retrieves data about outputs from mining transactions on the Bitcoin network within a specified time range.

For example, this [query](https://ide.bitquery.io/bitcoin-mining-rewards) fetches the mining reward data from January 2024. Specify the network as “bitcoin”, and dates as applicable.

```
query ($network: BitcoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    outputs(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      txIndex: {is: 0}
      outputDirection: {is: mining}
      outputScriptType: {notIn: ["nulldata", "nonstandard"]}
    ) {
      address: outputAddress {
        address
        annotation
      }
      date {
        date(format: $dateFormat)
      }
      reward: value
      count(uniq: blocks)
    }
  }
}
```

Similarly, you can also obtain reward data for a specific block by specifying the height parameter to the one you require.

### Bitcoin Halving

Bitcoin “halving” is a prominent event on the Bitcoin blockchain network, which happens once in 4 years. During a halving event, the rewards that Bitcoin miners receive for successfully mining a new block is reduced by half. Halving cuts the issuance rate of new bitcoins, thereby lowering or limiting the supply of new ones. 

The recent halving event took place on May 11 2020 and the next one is likely to occur early or mid 2024, where the block rewards are expected to fall further. 

Let’s demonstrate halving using Bitquery Mining API. 

**Query 1**: In this [query](https://ide.bitquery.io/halving-1-bitcoin), let’s check the mining rewards for a specific block, say 616295  on 6 Feb 2020 (the last halving event). Set the height parameter to 616295 and the date as 6th Feb 2020. Run the query and note the reward amount.

```
query ($network: BitcoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    outputs(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      txIndex: {is: 0}
      outputDirection: {is: mining}
      outputScriptType: {notIn: ["nulldata", "nonstandard"]}
      height: {is: 616295}
    ) {
      address: outputAddress {
        address
        annotation
      }
      date {
        date(format: $dateFormat)
      }
      reward: value
      count(uniq: blocks)
    }
  }
}
```

**Query 2**: Now, do the same for Feb 2024. For example, let’s check the mining reward for the block 829623 on Feb 9 2024. In this [query](https://ide.bitquery.io/halving-2-bitcoin), set the height parameter to 829623 and the date as 9th Feb 2024. Run the query and note the reward amount as shown in the Results column.

```
query ($network: BitcoinNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    outputs(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      txIndex: {is: 0}
      outputDirection: {is: mining}
      outputScriptType: {notIn: ["nulldata", "nonstandard"]}
      height: {is: 829623}
    ) {
      address: outputAddress {
        address
        annotation
      }
      date {
        date(format: $dateFormat)
      }
      reward: value
      count(uniq: blocks)
    }
  }
}
```

As you can see from the above results, the mining rewards from 2020 to 2024 have been reduced in half. 

## Conclusion

As the Bitcoin ecosystem continues to evolve, so too will the capabilities of Bitcoin APIs. With the advent of technologies such as the Lightning Network for scalable micropayments and smart contracts on Bitcoin, developers can expect to see a new wave of APIs that enable even more innovative use cases and applications.

Developers can leverage the power of these new APIs for building a decentralized network or other innovative crypto applications. By leveraging Bitquery APIs, developers and analysts can gain valuable insights into the dynamics of the Bitcoin network, halving events, mining rewards, and more. 

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/moneyflow) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

This article has been written by guest writer [Aparna Sridhar](https://www.linkedin.com/in/aparna-sridhar-0a09b03/)]]></description>
        </item>
        <item>
            <title><![CDATA[Chatting Up a Crypto Storm: The Rise of Telegram Trading Bots]]></title>
            <link>https://bitquery.io/blog/telegram-crypto-trading-bots</link>
            <guid>https://bitquery.io/blog/telegram-crypto-trading-bots</guid>
            <pubDate>Fri, 09 Feb 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Telegram trading bots automate crypto trades by linking to decentralized exchanges like Uniswap. They make it easier to buy crypto without the usual complex interfaces of Web3 wallets and DEXs.

Each bot has its own look and commands, but mainly they help users quickly buy new tokens as soon as they're available, a strategy known as 'sniping.'

Setting up these bots usually involves visiting their website, starting the bot in a Telegram chat, and following simple command instructions. Each bot is different in how it's laid out and operated.
When you start using a bot, you can either make a new wallet address for it or import an existing one with private keys. It's safer to either use a new wallet or a separate account for these bots, instead of your main wallet.

To start trading, you need to put some crypto, like ether (ETH), into your new wallet. Then you choose which tokens to buy by entering their contract addresses. The bot handles the transaction and speeds up the buying process, including dealing with gas fees.
This is different from trading new tokens on Uniswap or MetaMask, where you have to go through more steps, like managing digital signatures and setting up transaction fees.
The integration of trading bots into widely-used messaging platforms like Telegram has the potential to significantly boost the adoption of cryptocurrency. This approach can onboard a large wave of new crypto users, especially those who are not deeply versed in the complexities of the crypto world.

One of the key advantages of this integration is the familiarity and accessibility of Telegram. Many people already use Telegram for daily communication, so interacting with a trading bot in this environment is less intimidating than navigating specialised crypto trading platforms. This familiarity lowers the entry barrier for new users who might be interested in crypto but are deterred by the complexity and perceived risk of traditional crypto exchanges.

Another benefit is the convenience and speed offered by these bots. The ability to execute trades quickly and efficiently within a chat app can appeal to users looking for a straightforward, hassle-free trading experience. This is particularly attractive in the fast-paced world of crypto trading, where market conditions can change rapidly.

## Core Functionalities of Telegram Trading Bots

- **Buy and Sell Tokens**: These bots integrate with Telegram, allowing users to buy and sell tokens by inputting contract addresses directly into the chat. Features include real-time updates on trade profitability and support for pre-approved transactions to expedite sales.

- **Set Take-Profit and Stop-Loss Orders**: Users can configure bots to autonomously execute trades when certain financial thresholds are reached. These functions are particularly useful for trading new tokens not available on centralized exchanges (CEXs), albeit with higher associated risks.

- **Copy Trading**: Certain bots offer the capability to mirror the trades of specified wallet addresses. They act as intermediaries, replicating the trading activities of followed traders in the user’s account.

## Advanced Features

- **Liquidity, Method, and Multi-Wallet Sniping**: Advanced Telegram trading bots enable various forms of sniping. Liquidity sniping occurs when a bot detects and responds to liquidity being added to a token. Method sniping involves dispatching buy transactions based on the 'Method ID' of a developer's pending transaction, allowing trading on new tokens. Multi-wallet sniping allows simultaneous execution of trades across multiple wallets.

- **Anti-Rug and Honeypot Detection**: Advanced bots are equipped with features to counteract rug-pulls and honeypots. Anti-rug functions identify and counteract suspicious transactions in the mempool, while anti-MEV features protect against malicious bots through private relay transactions. Additionally, bots can detect and respond to honeypot scams by liquidating positions swiftly.

- **Airdrop Farming**: Some bots specialize in identifying and participating in airdrop campaigns across multiple blockchains. They automate tasks to meet airdrop criteria, potentially increasing rewards through multi-wallet participation.

## Risks

- **Security of Assets**: Use of these bots involves risks related to private keys, as they are either generated or accessed by the bot. Users should preferably connect a new, non-primary wallet to mitigate custodial risks.

- **Smart Contract Risks**: Interaction with unaudited smart contracts can expose users to vulnerabilities in the contract code.

Now, let’s take a look at particular examples of bots and their metrics.

### Unibot

Available on: **Ethereum, Solana**

Unibot, developed by Diamond Protocol for Uniswap V3, is a Leveraged Liquidity Provision (LLP) platform enabling DeFi transactions directly via Telegram. Launched in May 2023 by ex-Apple employee Ayden and an unnamed partner, it quickly gained popularity for offering swift trades and revenue-sharing for its token holders. The bot capitalizes on Telegram's popularity in the web3 community to streamline crypto trading.

![Top trading pairs on Unibot with volume, number of trades, number of traders and fees generated](/blog/telegram-crypto-trading-bots/unibot-top-pairs-with-volume.png)

In July 2023, UniBot experienced a remarkable growth in trading volumes, nearly tripling to a peak of $7.63 million on July 23. This increase in activity coincided with the launch of Unibot X, an enhanced version of the bot boasting mobile compatibility and improved features. This release played a key role in expanding the user base, which surpassed 7,000 unique wallets during this period. 

Concurrently, UniBot's token value reached a record high of $199.90, reflecting its growing adoption and recognition in the market. This surge can be attributed to the bot making the token sniping process more accessible, enabling a wider range of users, including those without advanced technical know-how, to engage in sniping newly released tokens. With its intuitive interface, MEV protection, and the capability for instant purchases of tokens newly listed on Uniswap, UniBot became increasingly popular among diverse traders, particularly those engaging in high-frequency trading. 

Since Unibot hopped on board with Solana on January 4, it's been a game-changer for them. Now, a whopping 90% of Unibot's users are coming from Solana, and they're behind over 79% of all the action in terms of volume. This move has been a real money-maker too - Unibot's raked in $275,000 in fees from the Solana side, boosting their total earnings to $534,000 when you count what they made from Ethereum. That's a solid 50% bump in their fee income, all thanks to bringing Solana into the mix.

### Banana Gun Bot

Available on: **Ethereum, Solana**

Banana Gun, a trading bot with a humorous yet ambitious approach, currently operates on the Ethereum Network, with plans for multi-chain expansion. It offers features like manual token buying for live Ethereum tokens and auto sniping for new token launches.This bot combines speed, efficiency, and a unique charm in its functionality.

![Top trading pairs on Banana Gun bot with volume, number of trades, number of traders and fees generated](/blog/telegram-crypto-trading-bots/banana-gun-bot-top-pairs-with-volume.png)

### Maestro Bot

Available on: **Ethereum, Arbitrum, Binance Smart Chain**

Maestro, created by crypto enthusiasts, is a trading bot designed to simplify trading signals, likened to a Mozart symphony for its harmony and ease of use. Its standout features include a user-friendly interface and continuous portfolio monitoring. 

Maestro offers several functionalities: 
- the Maestro Sniper Bot for fast sniping on multiple chains
- a Whale Bot for tracking large transactions
- a Wallet Tracker for monitoring crypto balances
- price alerts on BSC and ETH, and a Buy Bot for group trading activities. 
  
Additionally, there's a Maestro Pro Bot, a subscription-based service (200$/Month) aimed at serious traders, providing faster transactions, more concurrent trades, and exclusive token indicators.

![Top trading pairs on Maestro bot with volume, number of trades, number of traders and fees generated](/blog/telegram-crypto-trading-bots/maestro-bot-top-pairs-with-volume.png)

## Exploits

The end of 2023 was a challenging period for Telegram trading bots, marked by several exploits.

In October 2023, Banana Gun and Maestro experienced security incidents. A contract bug in Banana Gun's native token BANANA caused its price to plummet from $8.70 to $0.02 in less than three hours after launch. This bug allowed users to sell their holdings while retaining tax tokens in their wallet, leading to accusations of a "rug pull." Despite these setbacks, Banana Gun Bot recovered, reaching a daily trading peak of over $16 million on August 29.

In the same timeframe, Maestro suffered a 280 ETH hack, leading to the reimbursement of 610 ETH to its users. These incidents underscored the growing interest in trading bots but also highlighted concerns about user safety and platform security.

In mid-October to November, the UniBot contract was compromised, resulting in a loss of around $600,000. The deployer wallet was suspected of links to a known bad actor, which further eroded trust in the product. This event led to a spike in trading activity driven by fear, uncertainty, and doubt (FUD).

## Conclusion

Evaluating Maestro, UniBot, and Banana Gun trading bots, each exhibits distinct strengths and areas for improvement. Maestro offers a range of services but can be complex for newcomers. UniBot is noted for its user-friendly interface and effective revenue-sharing program. However, Banana Gun, still in development, requires additional steps for order completion.

An ideal Telegram bot would blend the best features of these examples: efficiency, transparency, revenue sharing, robust security, immediate reward claiming, and user-friendly buying/selling processes. The goal is to enhance user experience in crypto interactions, leveraging familiar web2 interfaces for a smoother transition to web3, and focusing on building permission-less systems. These bots symbolize a convergence of technology, innovation, and forward-thinking, offering diverse opportunities for both novice and experienced crypto users.technology, innovation, and forward-thinking, offering varied opportunities for both newcomers and experienced crypto users.

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/moneyflow) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

This article has been written by guest writer Anish Majumdar

***Disclaimer***: *The information provided in this material is published solely for educational and informational purposes. It does not constitute a legal, financial audit, accounting, or investment advice. The article's content is based on the author's own research and, understanding and reasoning. The mention of specific companies, tokens, currencies, groups, or individuals does not imply any endorsement, affiliation, or association with them and is not intended to accuse any person of any crime, violation, or misdemeanor. The reader is strongly advised to conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery shall not be liable for any losses or damages arising from the use of this material.*]]></description>
        </item>
        <item>
            <title><![CDATA[Blockchain Data Warehousing: Challenges in Storing Blockchain Data]]></title>
            <link>https://bitquery.io/blog/blockchain-data-warehousing</link>
            <guid>https://bitquery.io/blog/blockchain-data-warehousing</guid>
            <pubDate>Thu, 08 Feb 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Managing and warehousing blockchain data from multiple chains is a complex task, fraught with unique challenges that can impact the stability and reliability of data management systems. In this blog, we'll discuss these challenges and see how teams like Bitquery tackle these issues.

### So how do people store blockchain data?

To understand blockchain warehousing, we have to first understand the logistics of storing blockchain data on a smaller scale.

The key to maintaining a reliable record of blockchain transactions resides in running what are known as "nodes." While there are different types of nodes, our emphasis is on full nodes and archive nodes because of their comprehensive data-downloading capability from the genesis block onwards.

At this time of writing, geth node takes up to 22 TiB ( ~ 24 TB) of storage space and growing at the rate of 84 TiB per month.

Now imagine storing this data at scale for multiple blockchains (40+, in the case of blockchains Bitquery indexes) and serving the parsed/usable information in real-time. This brings a lot of problems regarding data at scale, which we will discuss below.

#### High Data Volume

One of the challenges associated with data duplication in blockchain data warehousing arises from the redundant storage of information across nodes. As more transactions are executed on the network, more data is created, necessitating an increase in storage capacity. This can exponentially increase the demand for storage space as the number of transactions scales up.

#### Preventing Server Overload: How to manage resources efficiently?

The sheer volume of data generated by blockchains can quickly fill up disk space, leading to servers reaching full capacity unexpectedly. When servers crash or reach full capacity, the difficulty in transferring massive amounts of data to new storage solutions can be considerable.

To avoid these issues, the use of distributed ledger technologies allows the replication of databases over numerous nodes, ensuring no data loss even if some nodes fail. However, this replication does not mitigate the need for ample disk space.

Transitioning from the issue of storage, another challenge in handling extensive blockchain data comes in the form of rate limits on APIs.Users may encounter rate limits on the API and continue querying, resulting in a poor experience when faced with "Too many simultaneous queries". However, Bitquery's IDE is designed to efficiently handle potential rate limits on API, providing users with a seamless experience.

Let's consider a couple of examples. First, a query that retrieves trades by an address executes in less than a second (approximately 600 ms). Achieving such speed requires a highly optimized and efficient query engine to fetch indexed data. Another example is a [query that retrieves the balance of an address across multiple chains](https://ide.bitquery.io/Query-to-check-balance-on-multiple-blockchains_3.). This query consumes the following resources:

![](/blog/blockchain-data-warehousing/query.png)

It's interesting to see how the CPU virtual time and SQL request count can impact the resources consumed by a query. As the number of records increases such as the number of chain databases queried or the number of tokens, the demand for resources will also increase.

#### ETL Processes and Reindexing Challenges

Sometimes, it may be necessary to reindex blockchain data because of the unavailability of older data, finding a complete node or even free disk space with all the required data can be challenging, especially if older data becomes unavailable over time. The re-indexing process itself is resource-intensive, often requiring substantial computational power and time to accomplish.

The size of the database for a chain per server can vary depending on the specific server and the chain data being stored. Generally, larger databases like [Solana](https://bitquery.io/blockchains/solana-blockchain-api), Tron, or Ethereum data require more resources and can significantly impact server performance.

We should focus on optimizing the database instance size and implementing an effective monitoring system. For example, when disk usage hits a high level, like 95%, a warning alert could be triggered. This alert could assist your operations team in managing storage effectively.

Scheduling fixed service downtimes is another strategy that could be beneficial. Predetermined start and end times can help manage resources efficiently, ensuring minimal disruption to the user experience.

#### Monitoring Challenges

When it comes to monitoring multiple blockchains, the key challenge lies in the diverse nature of the chains. Different blockchains may have varying performance metrics, consensus algorithms, and network loads.

It is important to set up dashboards to monitor every node for delay or in case it goes offline. This is an important step in ensuring the stability and reliability of data management systems, especially when dealing with multiple blockchains. We ensure that people using the Bitquery APIs don't face network timeouts and socket hang-ups by adding proper monitoring solutions for our blockchain nodes.

The alerting system periodically queries data sources and evaluates the conditions defined in the alert rule and notifications are sent out to the specified contact points in the notification policy.

![](/blog/blockchain-data-warehousing/2.png)

#### Mitigating Risks During Blockchain Upgrades and Forks

Cnode version upgrades and blockchain forks can also introduce significant challenges. Incompatible upgrades can cause errors and discrepancies in data, necessitating careful planning and execution of these changes to maintain data integrity and continuity. These upgrades often require synchronization across multiple nodes to prevent data fragmentation or loss.

At Bitquery, we handle it by keeping track of new releases. To ensure our nodes are up to date, we manually update the code since we have forks of nodes.

#### Data Quality Assurance

Maintaining quality has one important aspect, blockchain data is not static, and when a new transaction is added, it is indexed by blockchain data providers.

The growth rate of different blockchains can vary significantly, with some chains growing faster or slower than others. For instance, EOS currently has a growth rate of about 7 MiB per hour, while Celo and Flow are growing at rates of about 38 MiB per hour.

![](/blog/blockchain-data-warehousing/growth.png)

It's important to keep track of these growth rates to ensure that data management systems are adequately equipped to handle the increasing amount of data being generated. One factor that could lead to a rise in storage sizes beyond the expected levels is the duplication of data. For instance, if one node stores the same transactional data multiple times, it amplifies the storage requirements to accommodate the duplicated data. This issue could escalate when the operations are executed at a large scale.

#### Providing Access to the Data

Different databases support various query languages such as SQL and graphQL. These query languages enable users to query the database. However, when it comes to blockchain data, different types of data such as transactions, trades, and blocks need to be parsed before they can be queried. At Bitquery, we support both SQL and graphQL queries for blockchain data.

To ensure optimal performance and prevent system overloads, we've set parameters like:

- Maximum Query Execution Time: This limit ensures that each query is executed within a reasonable time frame, maintaining system efficiency.
- Max Query Rows: This cap prevents overwhelming the system with excessively large data returns.
- Connection Timeout Failover: This timeout setting ensures a swift failover connection if the primary connection fails, providing a reliable and consistent user experience.

### Conclusion

In this article, we had a look at why blockchain data warehousing is a complete task and requires meticulous planning. Server issues, monitoring challenges, and keeping up with chain upgrades and releases are some of the challenges impacting the stability and reliability of your data management systems. By carefully managing resources, optimizing database size, monitoring nodes, and handling upgrades and releases, Bitquery ensures that users have access to high-quality multichain data with minimal downtime.

---

## **About Bitquery**

[**Bitquery**](https://bitquery.io/?utm_source=blog&utm_medium=about_coinpath "https://bitquery.io/?source=blog&utm_medium=about_coinpath") is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

-   **APIs** - [Explore API](https://ide.bitquery.io/streaming "https://ide.bitquery.io/streaming"): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

-   **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=about "https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=about"): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

-   **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/cloud-products?utm_source=blog&utm_medium=about "https://bitquery.io/products/data-on-demand?utm_source=blog&utm_medium=about"): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

-   **Explorer** - [Try Explorer](http://explorer.bitquery.io/ "http://explorer.bitquery.io"): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info "https://t.me/Bloxy_info"). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.]]></description>
        </item>
        <item>
            <title><![CDATA[Understanding Tornado Cash - The Appeal of Anonymity]]></title>
            <link>https://bitquery.io/blog/tornado-cash</link>
            <guid>https://bitquery.io/blog/tornado-cash</guid>
            <pubDate>Thu, 08 Feb 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Consider the following scenario: Alice wants to transact anonymously. She has tried several methods, but none have provided the anonymity she desires. Then, she stumbles upon Tornado Cash.

- Alice decides to shield her funds using Tornado Cash. She begins by selecting her anonymity set - a pool with different denominations. Her options are 0.1 ETH, 1 ETH, 10 ETH, or 100 ETH. For this example, let's say she chooses 1 ETH.
- Alice deposits 1 ETH into the mixing pool. Tornado makes use of anincremental Merkle Tree ( we will read about this later ) to obfuscate the transaction origin. A note is generated representing her portion of the funds from the pool.

- When Alice decides to withdraw her funds, she provides the note (ZK proof of the funds). This note serves as a secret "handshake" between her and the pool, proving that she is part of the pool without revealing any sensitive information.
- Using Relayers: Alice can also use relayers, who can provide the note instead of her doing so directly.
- Receiving Funds: After proving her secret "handshake", the Tornado smart contract sends her funds to a new address.

It's important to note that [on August 8th, 2022, the U.S. Treasury’s Office of Foreign Asset Control (OFAC) blacklisted Tornado Cash](https://home.treasury.gov/news/press-releases/jy0916). This means that Tornado Cash's smart contracts are now subject to sanctions under U.S. law.

In this blog, we will delve deeper into how Tornado Cash operates, why it's so appealing, and why tracing transactions through it poses such a challenge.

## Zero-Knowledge Proofs

At the heart of Tornado Cash's privacy model lies the application of zero-knowledge proofs. This cryptographic technique enables users to prove the validity of a statement without disclosing the actual information behind it. In the context of Tornado Cash, zero-knowledge proofs play a pivotal role in transactions.

Users can demonstrate the knowledge of a hash preimage without revealing the preimage itself. This ensures a robust layer of privacy, allowing users to engage in financial transactions with confidence that their sensitive information remains concealed.

## Incremental Merkle Tree

Tornado Cash uses the power of the incremental Merkle tree to efficiently manage and verify transaction data on-chain. The Merkle tree, which has a binary tree structure, is constructed incrementally as new transactions occur. Every leaf node represents a commit, and the tree's structure facilitates easy verification of the integrity of the transaction history.

The incremental approach enables quick updates and ensures that even with a large number of transactions, the computational cost remains manageable. This Merkle tree architecture is the backbone of Tornado Cash's ability to maintain anonymity throughout the mixing process.

As Alice's transactions occur, the Merkle tree dynamically evolves. Tornado Cash keeps a history of the last 30 roots of this tree, providing snapshots of the tree at different points in time. When Alice decides to withdraw her funds and provides her note (the ZK proof of funds), she is effectively referencing a specific root of this tree. This root serves as a reliable and consistent basis for her proof, ensuring that her "handshake" with the pool can be verified without revealing any sensitive information about her.

## MiMC Hashing Algorithm

In Alice's quest for anonymity, the use of the MiMC hashing algorithm by Tornado Cash plays a key role. This distinctive choice separates Tornado Cash from other platforms that might use more traditional methods like keccak256.

MiMC is designed to be "zk-friendly" – aligning seamlessly with the requirements of zero-knowledge proof generation.

This cryptographic hash function is employed in the computation of Merkle tree roots on-chain. While MiMC offers computational advantages for zero-knowledge proofs, it introduces an interesting challenge – the need for on-chain computation. To overcome this, Tornado Cash implements MiMC as raw bytecode, showcasing the platform's commitment to cutting-edge privacy technologies.

#### Relayers

Relayers are the trusted partners, ensuring the steps remain secret and secure. The relayer mechanism in Tornado Cash serves as a crucial security layer with a specific focus on countering front-running risks.

### Front-running Defence

Front-running occurs when someone snatches an opportunity by copying a transaction and replacing it with their own. To guard against this, Tornado Cash introduces a clever tactic. The relayer mechanism includes a set of dummy signals in the withdrawal process, essentially creating a protective shield.

The proof now extends beyond just the transaction details; it verifies that the user correctly squared the recipient's address. It's like a secret code within the proof, ensuring that even if someone tries to copy, they need to get every part right to pass the test.

### Collaborative Privacy

Relayers, acting as off-chain facilitators, enable users to transact without revealing their addresses. Users can request relayers to conduct transactions on their behalf, solving the challenge of new addresses lacking the initial gas needed for withdrawal. This collaborative approach enhances privacy, creating a win-win scenario for both users and relayers.

## How can we potentially de-anonymize tornado cash?

Now that we’ve seen that Tornado Cash definitely anonymizes transactions. It poses a problem for compliance people and investigators who want to track crime. While there isn't a guaranteed method to de-anonymize Tornado Cash transactions, there are several strategies that could offer some insight.

### Timing Analysis

A possible strategy involves examining the timing of transactions. Studying when transactions occur might help in identifying patterns linking transactions to specific users.

### Network-level Pattern Identification

Identifying patterns and behaviors on a network level can also offer valuable leads. If a user exhibits consistent behavior, it may be possible to trace it back to them.

### External Data Correlation

Data external to the blockchain could also prove useful. This could include information from social media or other online platforms that could be correlated with transaction data.

### Malicious Relayers

When users wish to withdraw funds from Tornado Cash, they can employ relayers. These relayers handle on-chain transactions and cover the gas fees, allowing users to avoid direct interaction with the blockchain. However, if a relayer were to act maliciously, they could potentially disclose information about the user.

### Blockchain Analysis

Several techniques can be employed to analyze the blockchain:

- Transaction Graph Analysis: This involves identifying the flow of funds. Over time, certain patterns and correlations might become apparent.

- Address Clustering: This approach can reveal relationships between different entities.

- Input-output Analysis: If multiple addresses contribute inputs, this could suggest common ownership.

- Network Vulnerabilities: Certain network aspects, such as IP addresses (which are tracked by Metamask), could reveal identities.

- Fungibility Analysis: Tracing the history of tokens could offer insights. For instance, what is their “anonymity score”? Are there tokens actively striving to maintain anonymity?

- Transaction Metadata: Some blockchains allow for additional metadata to be attached to transactions. This could provide further information for analysis.


---

## **About Bitquery**

[**Bitquery**](https://bitquery.io/?utm_source=blog&utm_medium=about_coinpath "https://bitquery.io/?source=blog&utm_medium=about_coinpath") is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

-   **APIs** - [Explore API](https://ide.bitquery.io/streaming "https://ide.bitquery.io/streaming"): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

-   **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=about "https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=about"): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

-   **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/cloud-products?utm_source=blog&utm_medium=about "https://bitquery.io/products/data-on-demand?utm_source=blog&utm_medium=about"): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

-   **Explorer** - [Try Explorer](http://explorer.bitquery.io/ "http://explorer.bitquery.io"): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info "https://t.me/Bloxy_info"). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.]]></description>
        </item>
        <item>
            <title><![CDATA[Cardano Ecosystem Overview​]]></title>
            <link>https://bitquery.io/blog/cardano-ecosystem-overview</link>
            <guid>https://bitquery.io/blog/cardano-ecosystem-overview</guid>
            <pubDate>Sun, 04 Feb 2024 22:29:00 GMT</pubDate>
            <description><![CDATA[
Cardano has emerged as a pioneer in the blockchain space by ushering in a new era of decentralized finance (DeFi) and smart contract capabilities. To understand Cardano in depth, check out Bitquery’s simple interface (explorer) and a host of APIs that can help you nail Cardano ecosystem analysis in a jiffy! What’s more, you don’t need to know coding to do all this!

In this article, let’s explore the Cardano ecosystem and the diverse projects that make up this robust and new-age blockchain platform through Bitquery’s APIs. 

## Cardano Overview

Cardano, founded by Ethereum co-founder Charles Hoskinson, operates on a foundation of principles that prioritize scalability, sustainability, and interoperability. 

Cardano development is spread over five eras: Byron (Foundation era), Shelley (Decentralization era), Goguen (Smart contracts era), Basho (Scaling era) and Voltaire (Governance era). 

Cardano uses the Ouroboros consensus mechanism, a proof-of-stake protocol that ensures security and decentralization. 

## Key Components of the Cardano Ecosystem

- **Cardano (ADA)** - Native Cryptocurrency:  ADA is the native cryptocurrency of Cardano. ADA serves as both a means of exchange within the network and a tool for participating in the platform's decentralized governance.

- **Cardano Improvement Proposals (CIPs)**: Similar to Ethereum's EIPs, Cardano improvement proposals outline changes, enhancements, or additions to the Cardano protocol.

- **Smart Contracts and Plutus**: One of Cardano's groundbreaking features is the integration of smart contracts. The Plutus platform enables developers to create secure and scalable decentralized applications (dApps) on Cardano, opening up a new frontier for innovation and collaboration.

## Cardano Ecosystem: Projects and Initiatives

Cardano projects have been steadily growing, even overtaking Ethereum development projects during certain time periods. Broadly, these fall into:

- **Decentralized Finance (DeFi)**: Cardano's ecosystem hosts a growing array of DeFi projects, offering users opportunities for lending, borrowing, and yield farming. The emphasis on interoperability allows these projects to seamlessly integrate and collaborate, fostering a robust and interconnected DeFi landscape.

- **NFTs and Tokenization**: Cardano has become a hub for non-fungible tokens (NFTs) and tokenization, with artists, creators, and developers leveraging the platform for the creation and trading of unique digital assets. This vibrant ecosystem reflects the diversity and creativity of the Cardano community.

- **Governance**: Cardano's commitment to decentralized governance is embodied in the Voltaire phase, which introduces a treasury system and a decentralized voting mechanism. ADA holders actively participate in shaping the future of the network, making governance a collective effort.

## **Historical Performance of Cardano Ecosystem**

Through Bitquery, you can analyze both real-time and historic data as shown below.  

### **Summary**

DeFi is gaining traction as new protocols are being developed. dApps such as Minswap were dominant during 2023 Q2. Minswap was the leading DeFi on Cardano with a 32% increase. ADA continued to be the popularly traded currency even though there were others that made their presence known. 

Through the following queries by Bitquery, you can analyze the number of NFTs that were transacted on Cardano, unique buyers and senders, number of transactions on an average and more. 

### **Cardano Transactions**

**Count of Daily Transactions**

Check out the number of transactions on Cardano on a given date with this [query](https://ide.bitquery.io/dailytransaction-2_3). For example, here’s the transaction for 4th Jan 2024.

```
query {
  cardano(network: cardano) {
    transactions(options: {desc: "date.date", limit: 10}) {
      date {
        date
      }
      count
    }
  }
}
```

**10-Day Transactions Data**

Let’s get the daily transactions on Cardano for the last 10 days with this [query](https://ide.bitquery.io/10-day-interval-cardano-txn-count). You can see how the transactions on the chain have grown in mere 10 days. 

```
{
  cardano(network: cardano) {
    transactions(options: {desc: "date.startOfInterval", limit: 10}) {
      date {
        startOfInterval(unit: day, interval: 10)
      }
      count
    }
  }
}
```

### **History of All Currency Transactions**

You can also obtain a history of ADA traded on Cardano over a 6-month period for a specific address as shown [here](https://ide.bitquery.io/Cardano-Monthly-Inflows_1). Currency inputs from June to December 2023 have increased by about 190% as shown from the results.

```
{
  cardano(network: cardano) {
    inputs(
      options: {desc: "date.month", limit: 10, offset: 0}
      currency: {is: "ADA"}
      date: {after: "2023-06-01"}
    ) {
      value
      value_usd: value(in: USD, calculate: sum)
      currency {
        symbol
        tokenType
        name
      }
      date {
        startOfInterval(unit: month)
        month
      }
    }
  }
}
```

### **Mint Activity on Cardano**

**Total Number of Mints on Cardano**

Let’s check the number of mints on the Cardano chain over a 6-month period. Analyze the minting trends on the chain with this [query](https://ide.bitquery.io/mintcounts---6-month). Total number of mints on Cardano has increased 35% during the selected period.

```
{
  cardano(network: cardano) {
    transactions(
      options: {desc: "date.month", limit: 100}
      date: {since: "2023-06-01", till: "2023-12-31"}
    ) {
      date {
        month
        startOfInterval(unit: month)
      }
      inputValue
      input_value_usd: inputValue(in: USD)
      outputCount
      inputCount
      feeValue
      fee_value_usd: feeValue(in: USD)
      mintCount(calculate: sum)
    }
  }
}
```

## **Future Prospects**

Looking ahead, Cardano has a roadmap that includes further protocol upgrades, enhancements, and expansions. Voltaire is the phase that’s gaining momentum, that is, the transition to Voltaire from Basho is on the cards. Voltaire is further going to enhance Cardano with the incorporation of treasury management and voting capabilities. 

The number of projects on Cardano also increased in 2023 with as many as 1000 projects being developed on Cardano. Some of the prominent ones include Alonzo (for smart contracts), Minswap, Sundaeswap, MELD, Cornucopias, Djed, and Empowa among several others. 

Several programming languages such as Marlowe, Plutus, Aiken, and more are being developed. The development efforts on Cardano also include projects and protocols such as Hydra, Mithril, shared security models, and other key tools. 

## **Conclusion**

As Cardano continues to evolve, it offers a compelling vision for a decentralized future  with a focus on DeFi, dApps, gaming, and several other projects. Scaling protocols like Hydra will further boost the Cardano ecosystem, where possibilities are endless. 

Whether you are an investor, developer, or enthusiast, exploring the Cardano ecosystem unveils a landscape rich in potential and promise. Bitquery can assist you in your quest. Reach out to them now on Telegram.

## **About Bitquery**

[**Bitquery**](https://bitquery.io/?utm_source=blog&utm_campaign=cardano_api) is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

-   **APIs** - [Explore API](https://ide.bitquery.io/streaming?utm_source=blog&utm_campaign=cardano_api): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

-   **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=blog&utm_campaign=cardano_api): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

-   **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/data-on-demand?utm_source=blog&utm_campaign=cardano_api): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

-   **Explorer** - [Try Explorer](http://explorer.bitquery.io?utm_source=blog&utm_campaign=cardano_api): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info?utm_source=blog&utm_campaign=cardano_api). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.

This article has been written by guest writer [Aparna Sridhar](https://www.linkedin.com/in/aparna-sridhar-0a09b03/)
]]></description>
        </item>
        <item>
            <title><![CDATA[Opensea vs Blur: Analyzing Top NFT Marketplace]]></title>
            <link>https://bitquery.io/blog/opensea-vs-blur</link>
            <guid>https://bitquery.io/blog/opensea-vs-blur</guid>
            <pubDate>Sat, 03 Feb 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
OpenSea, a prominent NFT marketplace, emerged in 2017 following the success of CryptoKitties, with a vision to capitalize on the growing NFT trend. Leveraging the Ethereum's ERC-721 standard, which enables the creation of unique and tradable objects, Opensea differentiated itself by offering a broader marketplace. 

The platform strategically lowered its commission to 2.5 percent and entered Y Combinator’s accelerator program in 2018, positioning itself as the "Ebay for crypto assets." Opensea's success is attributed to its early recognition of the potential of NFTs and its ability to provide a scalable platform for buying and selling unique digital assets.


## Rise of Blur

While Opensea's grip tightened as the pioneer, its high fees and rigid creator royalty system sowed seeds of discontent amongst users. With each NFT sale, a sizable chunk vanished from both buyer and seller pockets, fueling resentment and a yearning for alternatives. 

Enter Blur, a platform built on the very antithesis of Opensea's model.

- Zero trading fees. 
- Zero mandatory creator royalties. 

And instead of extracting value, Blur incentivised participation with a carefully crafted system of airdrops and gamified farming. Its sleek interface catered to seasoned traders, offering advanced tools like bidding pools and floor sweeps, while its airdrops and loyalty programs rewarded every click and trade.

## Which marketplace stands stronger?

We can first examine how these two compare against each other as per the basic features.

![Comparision between Opensea and Blur](/blog/opensea-vs-blur/comparision-table-opensea-vs-blur.png)

To dig deeper and look at the tale; From King to Challenger: How Blur Ousted OpenSea in the NFT Marketplace Wars, we will compare and analyze Opensea and Blur in the
NFT market.

### Userbase

As of Jan 30th, daily users for OpenSea have been ~16k against Blur’s ~5k.

In the 30 days, over 193k unique wallets have engaged with Opensea vs around 54k on Blur. Even with fewer traders, Blur is ahead in terms of volume as much as 5x traded volume with just half of Opensea’s total transactions.

### Sales and volume

As Opensea leads with the sales value, with its platform fee, the royalties and transaction fee paid on the platform in the last 30 days was $5.67mn against Blur’s $2.4mn.

When checking the biggest trades on a marketplace through bitquery, for
Blur it is- 
- Gemesis, 
- ins-20, 
- XTREME PIXELS, 
- Owls of Fortune

and for Opensea it is - 
- parallel, 
- Gemesis, 
- Introducing World App, 
- ins-20

If we go deep in dates, the top purchase on Opeansea recorded ~$23.3 million BAYC #8888 in January 2023 (from OpenSea transaction history). On Blur the top recorded purchase was ~$9.1 million Art Blocks "Generative Portraits" in October 2023 (from Blur transaction history).

### Unique Buyers

If we look at the unique buyers on both the marketplace, the difference has narrowed since September when it was 56% to 24% in favour of Opensea last year to the present stats when it’s almost similar. Even recent data states the flipping of the trend with Blur capturing around 43% against Opensea’s 41% share in unique buyers. Similarly has been the trend with Sales count.

## Conclusion

The NFT market landscape is dynamic, and the balance of power between OpenSea and Blur continues to shift. While Blur currently holds the upper hand regarding market share and trading volume, OpenSea's user base and feature richness remain valuable assets.
The clash between Blur and OpenSea transcends mere market share statistics. It represents a fundamental shift in user priorities within the NFT landscape. Efficiency, rewards, and user empowerment are replacing hefty fees and centralised control as the guiding principles of the evolving market.

Both platforms adapt and innovate to attract and retain users, making the competition likely to intensify in the coming months. Only time will tell which platform ultimately claims the crown.

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/moneyflow) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

This article is written by a guest writer, [Kshitij Chandrachoor](https://www.linkedin.com/in/kshitij-chandrachoor/)]]></description>
        </item>
        <item>
            <title><![CDATA[Celo API: Transaction, Transfers and much more]]></title>
            <link>https://bitquery.io/blog/celo-api</link>
            <guid>https://bitquery.io/blog/celo-api</guid>
            <pubDate>Thu, 01 Feb 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Blockchain has redefined financial accessibility, given the shift towards mobile phones from computers. With billions of phone-based financial transactions occurring daily, mobile-based or mobile-first financial solutions are vital. Even though there are plenty of mobile-based financial apps, they are yet to fully tap into the potential of DeFi or crypto. So, in short, the need of the hour is a blockchain that prioritizes the mobile-first approach.

[Celo](https://bitquery.io/blockchains/celo-blockchain-api) was developed with this intent in mind and has emerged as a pioneering force in enabling people to make financial transactions from their smartphones.

In this article, let's look at the basics of Celo and explore several Bitquery APIs to understand the power of the Celo blockchain.  

## What is Celo?


Celo, a blockchain platform, aims to create a financial system that is open, inclusive, and accessible to anyone with a mobile phone. Built on the principles of decentralization and transparency, Celo empowers individuals globally to send cryptocurrencies through their mobile phones, just like they would send a text.

Celo is a proof-of-stake blockchain, which was originally co-developed by an MIT professor and executives from GoDaddy, in 2017. It uses a Byzantine Fault Tolerant (BFT) consensus algorithm. Celo's native [stablecoin](https://blog.celo.org/an-introductory-guide-to-celo-b185c62d3067) is Celo Dollars (cUSD) and the native asset is CELO.

Note that Celo, which is an independent Layer 1 (EVM compatible) blockchain, is now transitioning to Ethereum Layer 2, according to the latest value proposition by cLabs. 

### Architecture

The basic architecture of Celo consists of:

-   Celo Blockchain: Protocol for enabling applications and transactions

-   Core Layer: Technical layer that is made up of Core Contracts

-   Application Layer: Applications created on Celo

### Governance 

Celo employs an on-chain [governance ](https://docs.celo.org/learn/celo-protocol#:~:text=%E2%80%8B,network%20cooperate%20to%20achieve%20this.)mechanism to oversee and enhance components embedded in the Celo Core Contracts. In addition, the mechanism also manages other parameters of the Celo blockchain, such as smart contracts, currencies, assets, and more.

## Components of Celo

The Celo blockchain includes the following [elements ](https://www.kraken.com/learn/what-is-celo)in its topology:

-   Validators, which validate transactions

-   Full nodes, which connect validator nodes and mobile wallets

-   Ultralight clients, which are applications that run on mobile phone wallets

## Key Features of Celo 


Important [features ](https://docs.celo.org/learn/celo-protocol#:~:text=%E2%80%8B,network%20cooperate%20to%20achieve%20this)of Celo are:

-   Mobile-friendly design

-   Stability through stable cryptocurrencies

-   Decentralized identity or lightweight identity

-   Blockchain interoperability

## Applications of Celo


Developers can build the following applications for financial services, such as:

-   Remittances and cross-border payments

-   Microfinance and lending

-   Tokenization of assets

-   Enhanced transactions

## Obtaining Celo On-chain Data Through Bitquery APIs 


[Bitquery](https://explorer.bitquery.io/) offers a wide range of APIs to obtain real-time or historic Celo on chain data. Check out the explorer to seamlessly view data related to blocks, DEX trades, transactions, token transfers, Gas costs, smart contract calls, and many more. 

### Celo Explorer API: Overview of Celo Mainnet

Use the [Bitquery Explorer](https://explorer.bitquery.io/celo_mainnet) to get an overall view of all the data available for Celo.

![](https://lh7-us.googleusercontent.com/sUuBxjqgKMXXfsJ6lM11hMjPkmGGoFtIDcI90Fl_B4y0bPIOf4HlGzsDF3i_403rgyKskaCFYf_5gBbeYLCblXimL91_DfchAEL7qPhylsaPaRC_OF2RB5c-7ZZGZ87d3nGZqqMEkWia)

To embed queries in your applications, simply click the Get API on the bottom right of the screen (as shown in the above image). To write your own queries, use Bitquery's in-built [GraphQL IDE](https://ide.bitquery.io/).\
Here are key APIs of the Celo blockchain that you can use to analyze the Celo on-chain performance. 

### Active Addresses API

This API retrieves all active addresses on the Celo blockchain. 

To obtain the number of active addresses of Celo chain, use the following [query ](https://ide.bitquery.io/celo_active_addresses)in IDE. For example, this query retrieves the total number of all active addresses on the chain after October 2023. Specify the network as "Celo_mainnet" and the date as applicable.

```
query MyQuery {
  ethereum (network: celo_mainnet){
    activeAddresses(date: {after: "2023-10-01T00:00:00Z"}) {
      count(uniq: address)
    }
  }
}
```

### Address API

<br></br>
#### **Retrieving specific address data**

This API helps you retrieve data of a specific address. 

For example, you can use the following [query ](https://ide.bitquery.io/celo-address-details_1)in IDE to get details of a specific address, say,  0xa9ea63861543ddb45bc192520da0439495427364. This gives you the basic details of the selected address. Specify the network as "Celo_mainnet" and the address as applicable.

```
{
  ethereum(network: celo_mainnet) {
    address(address: {is: "0xa9ea63861543ddb45bc192520da0439495427364"}) {
      smartContract {
        attributes {
          address {
            address
            annotation
          }
          name
          value
          type
        }
        contractType
        protocolType
        currency {
          decimals
          name
          symbol
          tokenType
        }
      }
      balance
      annotation
      address
    }
  }
}
```
<br></br>
#### **Retrieving smart contract details of an address**

With the Address API, you can also get details of a smart contract address. Just specify the address with the smart contract address as shown in the [query ](https://ide.bitquery.io/celo-smartcotnractaddress-details)below to get the details including balance, contract type, and more. Specify the network as "celo_mainnet" .

For example, the smart contract address we have used in this query is 0xefb84935239dacdecf7c5ba76d8de40b077b7b33. 

```
{
  ethereum(network: celo_mainnet) {
    address(address: {is: "0xefb84935239dacdecf7c5ba76d8de40b077b7b33"}) {
      smartContract {
        attributes {
          name
          value
          type
          address {
            address
            annotation
          }
        }
        contractType
        protocolType
        currency {
          decimals
          name
          symbol
          tokenType
        }
      }
      balance
      annotation
      address
    }
  }
}
```

<br></br>
#### **Number of transactions of an address**

To check for all the transactions sent or received by an address, use the following [query](https://ide.bitquery.io/celo-transactions-address). For example, this query retrieves data for the address, 0xe93685f3bba03016f02bd1828badd6195988d950 as shown below.  Specify the network as "celo_mainnet" and the address as given below.

```
{
  ethereum(network: celo_mainnet) {
    transactions(
      options: {desc: "block.timestamp.time", limit: 10, offset: 0}
      any: [{txTo: {is: "0xe93685f3bba03016f02bd1828badd6195988d950"}}, {txSender: {is: "0xe93685f3bba03016f02bd1828badd6195988d950"}}]
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      success
      address: to {
        address
        annotation
      }
      gasValue
      gas_value_usd: gasValue(in: USD)
      gasCurrency {
        symbol
      }
      hash
    }
  }
}
```

<br></br>
#### **Obtaining token balance of an address**

You can also use this API to obtain the native token balance of Celo. For example, to find out the token balances of the native token, cGLD (Celo Gold), of an address, say, 0xe93685f3bba03016f02bd1828badd6195988d950, use the following [query](https://ide.bitquery.io/celo-token-balance). Specify the network as "Celo_mainnet" and set the parameter "currency" to cGLD as shown here.

```
query MyQuery {
  ethereum(network: celo_mainnet) {
    address(address: {is: "0xe93685f3bba03016f02bd1828badd6195988d950"}) {
      native_balance: balance
      balances(currency: {is: "cGLD"}) {
        value
        currency {
          address
          name
          symbol
        }
      }
      smartContract {
        attributes {
          address {
            annotation
            address
          }
        }
      }
    }
  }
}
```

### Address Stats API 

<br></br>
#### **Retrieving smart contract statistics**

You can obtain statistical data,  such as smart contract calls, transaction days, amount received or sent, count of transactions, and balance by using this API. 

For example, let's get all the statistics related to an address, 0xe93685f3bba03016f02bd1828badd6195988d950 by using this [query](https://ide.bitquery.io/celo-address-statistics).  Specify the network as "Celo_mainnet" and the address as shown.

```
{
  ethereum (network: celo_mainnet){
    addressStats(address: {is: "0xe93685f3bba03016f02bd1828badd6195988d950"}) {
      address {
        balance
        callTxCount
        calledTxCount
        daysWithReceived
        daysWithSent
        daysWithTransactions
        daysWithTransfers
        feeAmount
        otherTxCount
        receiveAmount
        receiveFromCurrencies
        receiveTxCount
        receiveFromCount
        sendAmount
        sendToCount
        sendToCurrencies
        sendTxCount
      }
    }
  }
}
```

### Arguments API

<br></br>
#### **Obtaining arguments of smart contract calls**

To obtain arguments of smart contract calls or events, use this query. This [query ](https://ide.bitquery.io/celo-arguments)retrieves all the arguments of the blocks on the Celo chain. Specify the network as "Celo_mainnet" .

```
{
  ethereum(network: celo_mainnet) {
    arguments(
      smartContractEvent: {is: "PairCreated"}
      options: {desc: "block.height", limit: 6}
    ) {
      block {
        height
      }
      argument {
        name
        type
      }
    }
  }
}
```

### Blocks API

<br></br>
#### **Obtaining number of blocks on the Celo chain**

We can get data on blocks on the Celo chain with this API. For example, to retrieve the latest 20 blocks on Celo after 1st of October 2023, use this [query](https://ide.bitquery.io/celo-blocks). Specify the network as "Celo_mainnet" and the date as applicable.

```
{
  ethereum (network: celo_mainnet){
    blocks(
      options: {limit: 20, desc: "timestamp.iso8601"}
      date: {after: "2023-10-01T00:00:00Z"}
    ) {
      gasLimit
      height
      hash
      timestamp {
        iso8601
      }
      difficulty
      size
      reward
      uncleCount
      transactionCount
      totalDifficulty
    }
  }
}
``` 
To get a specific block's data, simply specify the "height" parameter to the required block ID in the above query. 

### Coinpath API 

<br></br>
#### **Tracking fund movement**

To find out the money flow between addresses, use the coinpath API. This will retrieve data related to the amount transacted, number of transactions, amount sent or received, sender and receivers. For example, to obtain the fund movement of this address, 0xccbfd3e39bf646c8eee2dfd1ae59896701526a31, since the beginning of January 2024, use this [query](https://ide.bitquery.io/celo-coinpath). Specify the network as "Celo_mainnet" , address, and the dates as applicable.

```
query ($network: EthereumNetwork!, $address: String!, $inboundDepth: Int!, $outboundDepth: Int!, $limit: Int!, $currency: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    inbound: coinpath(
      initialAddress: {is: $address}
      currency: {is: $currency}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
          }
        }
      }
      receiver {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
          }
        }
      }
      amount
      currency {
        symbol
      }
      depth
      count
    }
    outbound: coinpath(
      initialAddress: {is: $address}
      currency: {is: $currency}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
          }
        }
      }
      receiver {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
          }
        }
      }
      amount
      currency {
        symbol
      }
      depth
      count
    }
  }
}
```

### DEX API

This API enables you to extract DEX trade information from Ethereum blockchains. 

<br></br>
#### **Retrieving trade data from Celo chain**

To obtain the DEX trade data on Celo for the month of January 2024, use this  [query](https://ide.bitquery.io/dex-trades1). Specify the network as "Celo_mainnet" and the date as applicable.

```
query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: $limit, offset: $offset}
      time: {since: $from, till: $till}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      buyAmount
      buyCurrency {
        address
        symbol
      }
      buy_amount_usd: buyAmount(in: USD)
      sellAmount
      sellCurrency {
        address
        symbol
      }
      sell_amount_usd: sellAmount(in: USD)
      transaction {
        hash
      }
    }
  }
}
```

<br></br>
#### **Traded Currencies on Celo**

To see all the traded currencies over a period of time, use this API. For example, to see the number of currencies over a period of 1 month (Jan 2024), use this [query](https://ide.bitquery.io/celo-dex-tradedcurrencies). Specify the network as "Celo mainnet" and dates as applicable.

```
query ($network: EthereumNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      tradeAmountUsd: {}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      trades: countBigInt
      traders: countBigInt(uniq: takers)
      contracts: countBigInt(uniq: smart_contracts)
      currencies: countBigInt(uniq: buy_currency)
      count
    }
  }
}
```

<br></br>
#### **Trades by Protocol on Celo**

If you want to know the trades by protocol, say Uniswap or Balancer, use this API to get the data. For example, in this [query](https://ide.bitquery.io/celo-dextrades-protocol), we are retrieving the number of trades by each protocol since the start of the current month. Specify the network as "Celo mainnet" and dates as applicable.

```
query ($network: EthereumNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(options: {asc: "date.date"}, date: {since: $from, till: $till}) {
      date: date {
        date(format: $dateFormat)
      }
      protocol
      count
    }
  }
}
```

To filter the trades by a specific protocol, such as Uniswap or Balancer, filter the above query using the protocol parameter and specify the protocol as required. 

Similarly, you can get trade data on token pairs, trade pairs, and more using the Bitquery explorer and DEX API filters. Learn more [here](https://docs.bitquery.io/v1/docs/Examples/dexTrades/dex-trading-data-api).

### Smart Contracts API

The Smart contract API  enables you to get all the smart contract calls made on the Celo network. 

<br></br>
#### **Obtaining list of all smart contract calls on Celo**

To obtain all the smart contract calls for the past month on the Avalanche blockchain, use the following [query ](https://ide.bitquery.io/Smart-contract-calls-on-Celo)in IDE. Specify the network as "Celo mainnet" and provide the dates as required for the "since" and the "till" parameter as shown.

```
query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    smartContractCalls(
      options: {desc: "block.height", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      external: true
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      address: caller {
        address
        annotation
      }
      arguments {
        argument
        value
      }
      callDepth
      smartContract {
        address {
          address
          annotation
        }
      }
      smartContractMethod {
        name
        signatureHash
      }
      transaction {
        hash
      }
      count
    }
  }
}
```

<br></br>
#### **Retrieving number of unique smart contract calls on Celo**

To obtain unique smart contract calls on the Celo chain during a specific week, use the following [query ](https://ide.bitquery.io/celo-unique-smart-contract-calls)in IDE. Replace the "from" and "till" variables with the dates you want. Replace the variable network with "Celo_mainnet". 

```
query ($network: EthereumNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    smartContractCalls(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt
      contracts: countBigInt(uniq: smart_contracts)
      callers: countBigInt(uniq: senders)
      methods: countBigInt(uniq: smart_contract_methods)
    }
  }
}
```

<br></br>
#### **Obtaining all calls for a specific smart contract**

Similarly, you can query for calls from a specific smart contract. For example, if you want to know all the calls for a smart contact address "0x43d72ff17701b2da814620735c39c620ce0ea4a1", from 1st January to 24 January, use the following [query ](https://ide.bitquery.io/Calls-for-a-specific-celo-smart-contract)in IDE. Specify the network as "Celo mainnet" and dates as applicable.

```
query ($network: EthereumNetwork!, $address: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    smartContractCalls(
      options: {desc: "block.timestamp.time", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      smartContractAddress: {is: $address}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      smartContractMethod {
        name
        signatureHash
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      transaction {
        hash
      }
      external
      gasValue
      gas_value_usd: gasValue(in: USD)
    }
  }
}
```

Similarly, you can have specific queries for method calls by specific addresses and specific smart contracts. Learn more [here](https://docs.bitquery.io/v1/docs/Examples/smartcontractCalls/smart-contract-calls-api). 

<br></br>
#### **Obtaining top callers of smart contracts**

The Smart Contracts API also helps you obtain who the top callers of a smart contract are, which includes the number of calls by each caller, date of the call, and the gas costs incurred. 

For example, to find out the top callers of the smart contract, agEUR contract  for the past 15 days, build the [query ](https://ide.bitquery.io/Celo-top-smart-contract-calls)as follows in the IDE. Replace the network variable with "Celo_mainnet" and the smart contract address as 0xc16b81af351ba9e64c1a069e3ab18c244a1e3049. Specify the from and to dates as required. 

```
query ($network: EthereumNetwork!, $address: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    smartContractCalls(
      options: {desc: "count", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      caller: {is: $address}
    ) {
      smartContract {
        address {
          address
          annotation
        }
        contractType
      }
      max_date: maximum(of: date)
      count
      uniq_methods: count(uniq: smart_contract_methods)
      gasValue(calculate: average)
      gas_value_usd: gasValue(in: USD, calculate: average)
    }
  }
}
```

### Smart Contract Events API

This API returns information on smart contract events. 

For example, to obtain all the latest events for a specific smart contract, say 0xc16b81af351ba9e64c1a069e3ab18c244a1e3049, for the past 15 days, use this [query ](https://ide.bitquery.io/celo-smartcontract-event)in IDE. Specify the network as Celo-mainnet and dates as applicable.

```
query ($network: EthereumNetwork!, $address: String!, $limit: Int, $offset: Int, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    smartContractEvents(
      options: {desc: "count", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      smartContractAddress: {is: $address}
    ) {
      smartContractEvent {
        name
        signature
        signatureHash
      }
      count
      max_date: maximum(of: date)
    }
  }
}
```

### Celo Transactions API

<br></br>
#### **Retrieving latest transactions on Celo**

To obtain the 10 current transactions on Celo, use this [query](https://ide.bitquery.io/Celo-current-transactions). Specify the network as "Celo_mainnet" and the current date as applicable.

```
query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transactions(
      options: {desc: "block.height", limit: $limit, offset: $offset}
      time: {since: $from, till: $till}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      address: sender {
        address
        annotation
      }
      hash
      gasValue
      gas_value_usd: gasValue(in: USD)
    }
  }
}
```

<br></br>
#### **Gas Spent on Celo Transactions**

To view the amount of gas spent by the transactions on Celo, check this [query](https://ide.bitquery.io/Celo-gas-spent). In this example, we are retrieving data on the amount of gas spent in the current month. Specify the network as "Celo_mainnet'' and the dates as applicable. Use the parameters count and gasvalue to obtain the required data. 

```
query ($network: EthereumNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transactions(options: {asc: "date.date"}, date: {since: $from, till: $till}) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt
      gasValue
    }
  }
}
```

<br></br>
#### **Top Gas Burners**

To see which smart contracts are burning the most gas, build this [query](https://ide.bitquery.io/Celo-top-gas-burners).  This [query ](https://ide.bitquery.io/Celo-top-gas-burners)retrieves top gas burners from 15th January to 25th january 2024. Specify the network as "Celo_mainnet'' and the dates as applicable. Use parameters gasValue and count to calculate the average costs as shown here. 

```
query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    smartContractCalls(
      options: {desc: "gasValue", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      external: true
    ) {
      smartContract {
        address {
          address
          annotation
        }
      }
      gasValue
      gas_value_usd: gasValue(in: USD)
      average: gasValue(calculate: average)
      average_usd: gasValue(in: USD, calculate: average)
      count
    }
  }
}
```

You can also determine the gas cost of a specific address by specifying the smart contract address in the above query.

### Transfers API

This API helps you get data on token transfers on Celo. You can get data regarding the transferred amount, the currency, unique senders, receivers and more. 

<br></br>
#### **Top Token Transfers on Celo**

To see the latest tokens transferred on Celo, use the following query. Specify the network as "Celo_mainnet'' and the dates as applicable. In this [query](https://ide.bitquery.io/Celo-top-token-transfers), we retrieve the token transfers done till date starting from January 2024. 

```
query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transfers(
      options: {desc: "count", limit: $limit, offset: $offset}
      amount: {gt: 0}
      time: {since: $from, till: $till}
    ) {
      currency {
        symbol
        address
      }
      count
      senders: count(uniq: senders)
      receivers: count(uniq: receivers)
      amount
      amount_usd: amount(in: USD)
    }
  }
}
```

<br></br>
#### **Largest transfers on Celo**

You can also retrieve data on the maximum amount that was transferred during a specific time period by using this query.

For example, to see the highest amount transferred during a month (1st Dec 2023 to 25th Jan 2024), build this [query](https://ide.bitquery.io/Celo-Largest-transfer). Specify the network as Celo_mainnet, currency as "cGLD", dates as required, and use the parameter "max_amount" to determine the highest transfer amount on Celo. 

```
{
  ethereum(network: celo_mainnet) {
    transfers(
      date: {after: "2023-12-01", before: "2024-12-25"}
      currency: {is: "cGLD"}
      height: {gt: 0}
    ) {
      max_amount: maximum(of: amount, get: amount)
    }
  }
}
```

You can also use the API to build queries for obtaining transfers to and from addresses. Learn more [here](https://docs.bitquery.io/v1/docs/Examples/Transfers/transfer-api). 

### Token API

<br></br>
#### **List of all tokens traded on Celo**

To obtain the current tokens traded on Celo, use this [query](https://ide.bitquery.io/Celo-all-tokens). Specify the network as "Celo_mainnet" and the current date as required. You can get the data on unique receivers and senders, number of transfers and the amount transferred.

```
query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transfers(
      options: {desc: "count", limit: $limit, offset: $offset}
      amount: {gt: 0}
      time: {since: $from, till: $till}
    ) {
      currency {
        symbol
        address
      }
      count
      senders: count(uniq: senders)
      receivers: count(uniq: receivers)
      amount
      amount_usd: amount(in: USD)
    }
  }
}
```

<br></br>
#### **Daily Celo token transfers**

To retrieve daily transfers of Celo's native crypto cGLD from January 1st 2024 till date, use the following [query](https://ide.bitquery.io/Celo-daily-token-transfers). Specify the network as "Celo_mainnet" and the dates as required to obtain the number of daily transfers.

```
query ($network: EthereumNetwork!, $token: String!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transfers(
      currency: {is: $token}
      height: {gt: 0}
      amount: {gt: 0}
      date: {since: $from, till: $till}
    ) {
      date {
        date(format: $dateFormat)
      }
      count: countBigInt
      amount
    }
  }
}
```

<br></br>
#### **Daily Celo token pair trades**

You can retrieve all trades of token pairs on Celo. For example, to get data on token pairs of cGLD traded during 1st Jan 2024 to 10th Dec 2024, check this [query](https://ide.bitquery.io/Daily-Celo-token-pair-trades_1). Specify the network as "Celo_mainnet" and dates as applicable. Specify the token as "cGLD" to get the required data.

```
query ($network: EthereumNetwork!, $dateFormat: String!, $token: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      baseCurrency: {is: $token}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      trades: countBigInt
      amount: baseAmount
      baseCurrency {
        symbol
      }
      contracts: countBigInt(uniq: smart_contracts)
      currencies: countBigInt(uniq: quote_currency)
    }
  }
}
```

<br></br>
#### **Latest token price on Celo**

As USD isn't available on blockchains, you can use this API to derive the token price in USD.  

For example, to obtain the latest token price of Celo's native currency (cGLD), use the following [query](https://ide.bitquery.io/Celo-token-price). Specify the token address as 0x62b8b11039fcfe5ab0c56e502b1c372a3d2a9c7a (Good dollar token in Celo), which is the base currency and specify the network as Celo_mainnet. Specify the quote currency as "cGLD "to get the price in USD.

```
query get_token_price_in_usd($token: String) {
  ethereum(network: celo_mainnet) {
    dexTrades(
      baseCurrency: {is: $token}
      quoteCurrency: {is: "cGLD"}
      options: {desc: ["block.height"], limit: 1}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      baseCurrency {
        symbol
      }
      quoteCurrency {
        symbol
      }
      quotePrice
      quoteAmountInUSD: quoteAmount(in: USD)
      baseAmount
      quotePriceInUSD: expression(get: "quoteAmountInUSD / baseAmount")
      exchange {
        fullNameWithId
        address {
          address
          annotation
        }
      }
    }
  }
}
```

### Mining API

This API extracts mining information on Celo, including the number of miners, blocks produced by them and so on. 

<br></br>
#### **Obtaining unique miners on Celo**

In this example, let's get the data on the number of unique miners on Celo. To do so, build this [query ](https://ide.bitquery.io/Celo-unique-miners)in IDE. Here, we will specify dates to get the number of unique miners on those  days, say 24th January and 25h January. Specify the network as "Celo_mainnet" . 

```
query ($network: EthereumNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    blocks(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      height: {gt: 0}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt(uniq: miners)
      reward
      usd: reward(in: USD)
      difficulty(calculate: median)
    }
  }
}
```

<br></br>
#### **Distribution of miners**

This API also enables you to get data on the number of blocks produced by miners over a period of time. 

For example, to get the number of block count distributions of a specific miner address, say, 0x0c01dc28d19f83d0a45223ec844674b96ea086a5 for the past 5 days, use the following [query ](https://ide.bitquery.io/Celo-block-count-miner-distribution)in IDE. Specify the network as "Celo_mainnet" and set the dates to the one you require, say, 20-25 January 2024.

```
query ($network: EthereumNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    blocks(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      height: {}
      miner: {is: "0x0c01dc28d19f83d0a45223ec844674b96ea086a5"}
    ) {
      address: miner {
        address
        annotation
      }
      date {
        date(format: $dateFormat)
      }
      count
      reward
    }
  }
}
```

<br></br>
#### **Number of block rewards**

If available, you can also see the rewards per block in USD for a  selected period. For example, to see the block rewards from Dec 2023 till date, use the following [query](https://ide.bitquery.io/celo-block--rewards). Specify the network as "Celo_mainnet", dates as applicable, and the USD parameter as shown here. 

```
query ($network: EthereumNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    blocks(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      height: {}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt(uniq: miners)
      reward
      usd: reward(in: USD)
      difficulty(calculate: median)
    }
  }
}
```

Similarly, you can also obtain reward data for a specific block by specifying the height parameter.

## Conclusion


As you can see, Celo is a powerful tool that can revolutionize financial services, especially on mobile phones. With its mobile-friendly design, stablecoins, and commitment to accessibility, the Celo API is poised to play a pivotal role in financial inclusion on a global scale.

As developers continue to explore its capabilities, the potential for transformative applications and positive impact becomes prominent. Explore and analyze all this and more on Celo through the Bitquery APIs. We've listed key ones in this article to get you started.

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Understanding Different MEV Attacks: Frontrunning, Backrunning and other attacks]]></title>
            <link>https://bitquery.io/blog/different-mev-attacks</link>
            <guid>https://bitquery.io/blog/different-mev-attacks</guid>
            <pubDate>Thu, 01 Feb 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
MEV, also known as maximal extractable value or miner extractable value during [Ethereum](https://bitquery.io/blockchains/ethereum-blockchain-api)'s Proof-of-Work era, has captured the attention of many, from MEV researchers to core developers. Opinions about MEV vary, with some viewing it positively and others negatively. Regardless of personal opinions, the reality is that MEV is a lasting aspect, at least for the foreseeable future. Let's explore how MEV researchers can extract more value from the network using different methods.

MEV, or maximal extractable value, refers to the maximum value that can be extracted from a proposed block by arranging and sequencing transactions. Those proposing the block have full control over the transactions included and their order. To maximize the additional value within a block, these proposers strategically place their own transactions to enhance their profitability.

### Front Running Attack

A front-running attack occurs when transactions are rearranged, placing the attacker's transaction before the target transaction. This attack can be utilized to extract profits or execute smart contract calls to accomplish specific objectives.

The malicious actor intentionally assigns a higher gas price to their transaction, effectively offering a form of incentive to miners. This higher gas fee is aimed at persuading miners to prioritize their transaction over the original one in a block. Despite the drawback of reducing the attacker's profit margin, this higher gas price is a crucial aspect of the front-running strategy. It elevates the likelihood that their transaction will be processed before the original, ensuring the success of the front-running attack.

### Back Running Attack

Backrunning is a technique where an attacker places their malicious transaction after the victim transaction gets executed. An attacker can accomplish this by lowering the gas price of the malicious transaction. This will make sure that the victim transaction is prioritized over the backrun transaction. Real example is explained in the Sandwich Attack section.

### Sandwich Attack 

When an individual identifies a favorable situation to sandwich a transaction, they execute a trade ahead of the transaction (referred to as "frontrunning") and subsequently follow it with a trade after the transaction (referred to as "backrunning"). This strategy is employed to influence the price of the trade.

Due to the inherent structure of Automated Market Makers (AMM) like [Uniswap](https://bitquery.io/blog/uniswap-pool-api), these executed trades are tactically designed to manipulate the asset prices, creating a potential avenue for financial gains.

Instances of these extractions commonly occur when users engage in swaps on [decentralized exchanges (DEX)](https://bitquery.io/products/dex). DEXs operate using automated market makers employing specific formulas to establish token prices in relation to others. This computational process relies on the token supply within a liquidity pool, providing an opportunity for MEV bots to derive significant value from specific trades.

Consider a scenario where an individual named Alex is executing a transaction to purchase 15 ETH with 40k USDT on a DEX, at a rate of 2.7k USDT per ETH. Given the substantial size of the transaction, Alex anticipates encountering an elevated level of price slippage, creating a vulnerability for a potential sandwich attack.

An observer, named Eve, operates an MEV bot and detects this transaction in the mempool. Eve strategically initiates two transactions, preceding and following Alex's trade. In the first transaction, Eve acquires a substantial amount of ETH, causing an upward shift in the price due to the AMM's valuation formula. It's noteworthy that the adjusted price remains within the slippage range accepted by Alex. Following this, the third transaction involves the MEV bot selling the recently acquired ETH to Alex for USDT at an increased price, resulting in a profit for the bot.

### Arbitrage

Decentralized exchanges may list different prices for the same tokens due to different levels of demand. A wide price discrepancy may be an opportunity for MEV extraction. Bots can exploit these situations by buying tokens at a lower price at one exchange, turning around, and selling them on a second exchange at a higher rate. For ex. checkout this transaction

![Arbitrage attack example](/blog/different-mev-attacks/arbitrage.png)

In [this transaction](https://explorer.bitquery.io/ethereum/tx/0x9e7581bec90c9ef03c7a937f14a0c88d2504a4b4a31816b91ef74c6bd35d8771/dex_trades?theme=light), 2,857.4332 ETH was sold with 8,920,620.009 USDC. The same USDC Is traded on different platforms and converted to 8,882,052.429751 USDT because of the Arbitrage Opportunity. Finally it is converted back to 3,021.8233352922498 ETH. Overall an MEV bot made 147 ETH in profit.

### Liquidation

In a DeFi lending space, users must deposit crypto to be used as collateral. If a user isn’t able to repay their loans, the protocols often allow other participants the chance to liquidate the collateral and gain a liquidation fee from the borrower. Those searching for MEV opportunities may compete to find borrowers primed for liquidation so that they can gain the liquidation fee for themselves.

After taking a long position on ETH, a user was unable to maintain their position when the price of ETH suddenly dropped, which caused the user's position to become liquidatable. The resulting liquidation process was carried out by a liquidator who repaid 218k USDC on behalf of the user. In return, the liquidator received 88k cETH worth of collateral as a reward.

### Time bandit attack

Time bandit attacks is a MEV strategy involving the reorganization of past blocks. If the reward is great enough, Ethereum miners may be incentivized to propose competing blocks containing altered transactions at the expense of users and other network stakeholders.

To put it simply, a time bandit attack is the same as a [51% attack](https://bitquery.io/blog/ethereum-classic-51-chain-attack-july-31-2020) in terms of the goal they want to achieve. Both attacks want to rewrite Ethereum history and reverse transactions on the blockchain. 

The difference is, with a 51% you need 51% of the miner's hashpower under your control to execute. This time bandit proposal put forward by a few people that wants to make this auctionable in the free market. For example, if you found very lucrative MEW opportunities in the last blocks, you can propose to rewrite ethereums history and remine these blocks to make a profit of the opportunity you found in the past. So to rewrite history. You offer a reward for the miner that executes this attack to incentivize them to do so. 

It's a mechanism to put the consensus of the current state of the chain up for auction to the highest bidder. Instead of controlling 51% and performing this attack, anyone can put up a proposal to rewrite the history and offer a reward to miners for doing so. Putting the integrity of the Ethereum network at risk for a few extra bucks.

### Uncle bandit attack

In the Ethereum blockchain, users sometimes group transactions into bundles and submit them together. These bundles are expected to be included in the blockchain entirely or not at all. However, occasionally two blocks are mined almost simultaneously, and only one of them is added to the blockchain. The other block becomes an "[uncle](https://docs.bitquery.io/docs/evm/uncles/)" or [orphaned block](https://docs.bitquery.io/docs/evm/uncles/). 

Let's consider a case where a user named Robert noticed that a specific bundle, known as a "Sandwich" bundle, was included in an uncle block. An attacker took advantage of this situation by grabbing only the "Buy" part of the Sandwich bundle from the uncle block, discarding the rest, and then adding an arbitrage transaction after the Buy. The attacker then submitted this altered bundle as a new transaction, and it was successfully mined. This type of attack is referred to as an "uncle bandit attack." 
Unlike a time-bandit attack, where an attacker exploits delayed information, an uncle bandit attack involves seizing an opportunity found in an uncle block and bringing it forward. It emphasizes that attacks on the Ethereum blockchain can extend beyond the mempool (where pending transactions wait to be confirmed) into uncle blocks as well.

## Bitquery Mempool API

The [Mempool API](https://bitquery.io/products/mempool-api) allows you to access real-time data from the mempool for Ethereum. You can use this API to monitor transactions, token trades, transfers, and any data stored in the mempool.

By analyzing Mempool data, researchers can gain insights into transaction behaviors, identify potential arbitrage opportunities, and study the patterns of transaction inclusion in blocks. This information is crucial for understanding and mitigating the impact of MEV-related activities on decentralized networks, as it allows researchers to observe transaction order, prioritize, and execution dynamics, helping to develop strategies and solutions to address these challenges.

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Unveiling the Crypto Puzzle: Decoding VC Token Holdings]]></title>
            <link>https://bitquery.io/blog/venture-capital-crypto-holdings</link>
            <guid>https://bitquery.io/blog/venture-capital-crypto-holdings</guid>
            <pubDate>Wed, 31 Jan 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[

In the fast-changing world of cryptocurrency, smart investors must figure out who the important players are and know what they're doing strategically. One crucial aspect often overlooked is the involvement of venture capitalists (VCs) in shaping the crypto landscape.

In this article, we delve into the intricacies of identifying VC holdings, exploring the significance of this knowledge in making informed investment decisions and conducting thorough risk assessments. Additionally, we shed light on the broader implications of VC participation in the crypto ecosystem and how leveraging Bitquery APIs can be a game-changer for staying ahead in this ever-evolving space.

## The Power of VC Token Holdings

Venture Capitalists are not merely passive participants in the crypto space; they are strategic architects, funding projects with the potential to disrupt industries. By identifying VC token holdings, investors may gain a valuable lens into the perceived value and potential success of a project. Analyzing VC token holdings reveals the depth of confidence and support a project has from industry experts, which is crucial for making informed investment decisions by assessing its growth and sustainability potential.

### The Broader Implications of VC Involvement

VCs wield broad influence in the crypto ecosystem, shaping trends, fostering innovation, and advancing emerging technologies, contributing to the maturation of the space with not just capital but also experience, industry connections, and strategic guidance.

As VCs allocate funds to specific projects, they contribute to the maturation of the market, influencing not only the success of individual ventures but also the overall direction of the crypto space. Understanding these broader implications is essential for investors looking to navigate the crypto landscape with foresight and strategic acumen.

### Leveraging Bitquery APIs for Informed Decision-Making

To delve deeper into the world of VC-backed crypto projects and their token holdings, let's zoom in on the portfolios of some influential Venture Capitalists. Understanding the holdings of these key players not only sheds light on their investment strategies but also provides a blueprint for potential market trends.

Bitquery APIs help monitor VCs and [popular trading firms’ fund movements](https://ide.bitquery.io/Alameda-Research-FTX-Updates) in the crypto space. These APIs provide a deep dive into blockchain data, allowing users to track token movements, smart contract interactions, and, much more.

## Pantera Capital

In [Panterra's publicly accessible portfolio](https://panteracapital.com/portfolio/), they showcase investments in a broad array of projects including Filecoin, 0x, Liquity, and Mina, which span across DeFi, consumer, and infrastructure sectors.

Pantera Capital Portfolio [according to various sources](https://defillama.com/raises/pantera-capital), contains 53 coins as of today with a total market capitalization of ~$1.25T and an average price change of +4.36%. They are listed in size by market capitalization.

The tokens within the Pantera Capital Portfolio are strategically invested in thematic ideas and projects which include exchanges, custodians, institutional trading tools, decentralized finance, next-generation payment systems, and more. Since 2013, Pantera Capital has supported over 100 blockchain companies and participated in 110 early-stage token deals.

![](/blog/venture-capital-crypto-holdings/pantera-ETH.png)

                                 Pantera’s ETH Investments 2022-2023

Pantera Capital lost 80% during 2022, taking a nearly 23% hit in November alone after the implosion of centralized exchange FTX. Let’s go back to historical data to understand the important market movements associated with these tokens and investments.

The Pantera Liquid Token Fund is a multi-strategy vehicle that typically invests in 15-25 liquid tokens at any point in time and is predominantly driven by a discretionary strategy focused on DeFi and adjacent assets, as stated on the firm’s website. The fund started to navigate much of the portfolio away from altcoins and into ether (ETH) in the late spring of 2022. The fund’s top three performers for the hard-hit November period were Cosmos' [ATOM](https://explorer.bitquery.io/bsc/token/0x0eb3a705fc54725037cc9e008bdede697f62f335/token_dex_trades_v2) token, Chainlink's [LINK](https://explorer.bitquery.io/bsc/token/0xf8a0bf9cf54bb92f17374d9e9a321e6a111a51bd/transfers), and Optimism's [OP](https://www.coindesk.com/price/optimism/), while Uniswap's [UNI](https://www.coindesk.com/price/uniswap/), Solana's [SOL](https://www.coindesk.com/price/solana/) and ether took the bottom slots.

Optimism, a layer 2 scaling tool, had become one of the fund’s largest non-ETH positions and was a driver of year-to-date growth alongside ether and UNI.

The FTX crash didn’t impact the fund since the exposure only came in through Blockfolio’s acquisition. It’s worthwhile to note that Pantera is one of the oldest investment firms in the crypto industry, having been founded in 2013. It runs a number of different fund strategies including an early-stage token strategy, a blockchain fund that is [a venture fund](https://panteracapital.com/funds/blockchain-fund/) investing in equity and a liquid token strategy.

![](/blog/venture-capital-crypto-holdings/bitcoin-altcoin.png)

                                Source: Pantera Capital Blog

In the 2 bull cycles, bitcoin consistently outperformed altcoins in phase 1 of the upswing. In phase 2, altcoins substantially outperformed bitcoin. What’s interesting is that the magnitude of outperformance is so large that altcoins have outperformed bitcoin across the full length of both cycles.

Let’s take a quick look at what’s the current status of the liquid token and early-stage token strategy. Let’s also analyze the market status when the investible universe of tokens beyond Bitcoin had a meaningful market share.

Looking at the current holdings across various wallets of Pantera Capital. It’s evident that DeFi and privacy-based solutions would be most investable and evidently their tokens also show an upward trend. Most of the major altcoins held by the VC firm have been up by over 5% including Lifi, MINA, DMTand 1Inch

![](/blog/venture-capital-crypto-holdings/tokensight.png)

                                    Source: tokeninsight.com

## Understanding the Jump Capital’s web3 investment landscape

[Jump Capital's list of investments](https://ide.bitquery.io/Jump-Capital-portfolio) includes major exchanges, blockchains, and a variety of Web3 and decentralized finance (DeFi) projects. The majority of the portfolio is DeFi tokens, including LDO, PERP, and MASK.

Jump Trading bought MASK, the native currency of Mask Network, a privacy-focused Layer 2 solution for Ethereum. At the same time, they have accumulated LDO, the governance token of the Lido DAO, a liquidity staking platform that supports various tokens, including Ethereum and Polygon (MATIC).

![](/blog/venture-capital-crypto-holdings/jump_trade.png)

Source: [Multi Chain Portfolio Tracker](https://docs.bitquery.io/v1/docs/Use-Cases/multi-chain-portfolio-tracker)

Among other coins, they have bought considerable amounts of LEVER and PERP, the native tokens of LeverFi, a decentralized margin trading platform, and Perpetual Protocol, a decentralized perpetual contract exchange, respectively.

Their gravitation towards DeFi tokens, based on their accumulation trend, is not yet known. However, what’s evident is that DeFi activity has been on the rise since the end of 2023 and an upward trend from here is expected.

You can view the [inflow and outflow of tokens from Jump Trading Wallets’](https://ide.bitquery.io/Jump-Trading-Wallet-Inflow---Outflow) in a given time frame using Bitquery APIs

![](/blog/venture-capital-crypto-holdings/pop_moneyflow.png)

Some of the money movements for major tokens held by jump trading- POP and LDO

![](/blog/venture-capital-crypto-holdings/LDO_moneyflow.png)

Based on the on-chain data, Jump Trading currently holds a whopping 3.8 million LDO worth $11.6 million; 2.1 million LINK worth 32 million, and 161 million threshold network token worth $4.4 million at around spot rates. A deeper look at their address reveals that Jump Trading holds 195 tokens worth over $39 million.

Notably, one of their largest altcoin holdings isLINK worth 32 million, LDO, at over $11 million, and SD, the native token of Stader, at more than $2 million. Meanwhile, USDT, the world’s most liquid stablecoin by circulating supply, is the largest holding at over $56 billion.

## Conclusion

In the fast-paced world of cryptocurrencies, knowledge is power. The synergy between VC-backed projects and their associated tokens is a crucial thread that binds the ecosystem together. Understanding the dynamics of VC-backed projects and their associated tokens is a crucial element in making informed investment decisions and managing risks effectively.

Regularly check for updates on [token holdings](https://docs.bitquery.io/docs/examples/token-holders/token-holder-api/), monitor transaction volumes, and stay informed about major developments within the projects of interest.

The broader implications of VC involvement underscore their role as key influencers in shaping the crypto ecosystem. Leveraging Bitquery APIs is not just a recommendation but a strategic imperative for investors looking to stay ahead. By embracing these tools, investors can navigate the intricate web of VC activities, gaining valuable insights and positioning themselves for success in the dynamic and unpredictable world of crypto investments.

---

Written by Laisha

---

_The information provided in this material is published solely for educational and informational purposes. It does not constitute a legal, financial audit, accounting, or investment advice. The article's content is based on the author's own research and, understanding and reasoning. The mention of specific companies, tokens, currencies, groups, or individuals does not imply any endorsement, affiliation, or association with them and is not intended to accuse any person of any crime, violation, or misdemeanor. The reader is strongly advised to conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery shall not be liable for any losses or damages arising from the use of this material._
]]></description>
        </item>
        <item>
            <title><![CDATA[How to Perform Smart Contract Vulnerability Scan with Bitquery​]]></title>
            <link>https://bitquery.io/blog/smartcontract-threat-scan</link>
            <guid>https://bitquery.io/blog/smartcontract-threat-scan</guid>
            <pubDate>Mon, 29 Jan 2024 12:42:00 GMT</pubDate>
            <description><![CDATA[
In this comprehensive article, we're going to explore some key metrics to consider when analyzing smart contracts. We'll cover things like mint burn functions, token creation history, liquidity, blacklist functionality, token holders, and dump risk factors.

## Why Perform Smart Contract Vulnerability Checks?

### Immediate Financial Loss

- Direct Theft: Attackers can steal funds directly if they exploit vulnerabilities like unchecked external call vulnerability, leading to significant immediate financial losses. Set up a monitoring system that uses Bitquery's [real-time calls and events feeds](https://bitquery.io/blog/track-events-like-nft-drop-ens-registration-with-bitquery-nft-apis) to keep an eye on your smart contracts. This can help you proactively identify and mitigate potential risks.

- Devaluation: The token or asset associated with the compromised smart contract might devalue quickly as investors lose confidence.

### Long-Term Credibility Damage

- Loss of Trust: Users' trust is hard to gain and easy to lose. A security breach can lead to a permanent loss of trust in the protocol and its developers.
- Reputational Damage: The project's reputation may suffer significantly, which can deter new users and investors from adopting the technology or investing in the project.

- Investor Relations: Existing investors might pull out their support, and attracting new investment could become more challenging.
- Community Support: The open-source community and broader ecosystem may become less willing to contribute or support the project after a security incident.

### Legal and Regulatory Consequences

- Regulatory Scrutiny: A smart contract attack could attract unwanted attention from regulators, leading to fines or other legal actions.
- Lawsuits: Affected parties may file lawsuits against the project team, leading to additional financial and reputational damage.



## How to Perform Smart Contract Vulnerability Analysis?

In this blog, we’ll perform a thorough smart contract analysis using Bitquery APIs taking a few token examples.

## Token JRFnd

Let's take a look at JRFnd. Using Bitquery's APIs, we can analyze JRFnd's smart contract functions and events, identify potential vulnerabilities, and explore its tokenomics.

Token Address: 0x03dbf1c1084fdab7924a6ae0534211ee1a9015c7

### Minting

Minting refers to the creation of new tokens within a smart contract. This can be done either by the contract owner or through pre-defined conditions in the code.

The contract does not have a mint function therefore no address can mint new JRFnd tokens.

Run the query [here](https://ide.bitquery.io/Jesus-Refund-JRfnd-Mint-event).

### Burning

Burning is the opposite of minting, where tokens are permanently removed from circulation. This can be done by sending tokens to a burn address or through specific functions in the smart contract code

This token does not have a burn function which means you can burn liquidity directly. Instead, you might send it to the zero address and attempt to reduce the token circulations.Run the query [here](https://ide.bitquery.io/Jesus-Refund-JRfnd-burn-event).

### Date of Creation

The date of creation for this token is 2023-05-22. This token, being relatively new, may be susceptible to price manipulation.Run the query [here](https://ide.bitquery.io/Jesus-Refund-JRfnd-create-event).

### Token Liquidity

Run the query [here](https://ide.bitquery.io/Jesus-Refund-JRfnd-Liquidity-daily1_2).

Here are some conclusions regarding the liquidity:

- Volume Variation: There is a significant variation in daily trading volumes. For example, on "2023-05-26," there were 408 transfers with a total amount of 442,091,569,689.004, while on "2023-06-20," there was only 1 transfer with an amount of 1,216,097,281.9060373. Such variations might indicate fluctuating liquidity.

- Higher Liquidity Days: Days with higher transfer counts and amounts, like "2023-05-23" and "2023-05-25," suggest higher liquidity. More transfers and larger amounts can be indicative of a more active and liquid market.

- Lower Liquidity Days: Days with lower transfer counts and amounts, such as "2023-06-20" and "2023-07-02," might suggest lower liquidity. A single or a few transfers with relatively smaller amounts can indicate lower trading activity.

- High-Volume Events: Specific events, such as on "2023-08-21" with three transfers totaling 1,736,113,800,668.7559, might represent significant transactions impacting liquidity.

Days like "2023-05-23" and "2023-05-25" have relatively high transfer counts whereas days such as "2023-06-20" and "2023-07-02" have lower transfer counts. The variability in the number of transfers and amounts across different days suggests fluctuations in liquidity.

![](/blog/smartcontract-threat-scan/JRFnd_Liquidity.png)

Fig: Liquidity Analysis on the basis of Date and Transfer Count

### Blacklist Function

All wallet addresses, regardless of their history or potential involvement in malicious activities, have the ability to transfer the token freely hence there is no mechanism or feature in place that allows for the prohibition or restriction of specific wallet addresses from conducting transfers of the particular token.Run the query [here](https://ide.bitquery.io/Jesus-Refund-JRfnd-blacklist-event_2).

6.  ### Token Holders

Tracking the distribution and activity of token holders can provide valuable information about the demand for a token and its overall health. We will use Bitquery’s token holder API to get token whales. Run the query [here](https://ide.bitquery.io/Jesus-Refund-JRfnd-top-token-holders).

Here are some observations based on the data:

- Holder: 0x9d85f9295915ccc20fe7a15a2953843257b2640a

Balance: 797B

- Holder: 0x03dbf1c1084fdab7924a6ae0534211ee1a9015c7

Balance: 142B

- Holder: 0x2716aacf237f94534d617551f61880def72a8d14

Balance: 3B

- Holder: 0x27b759fa2a620587d0e48fb34894ececbf265be6

Balance: 3B

- Holder: 0x24a9ec3efd3baf121546fb51f23031e95178444a

Balance: 3B

A small number of top holders, especially the largest one (0x9d85f9295915ccc20fe7a15a2953843257b2640a), dominate the ownership of the token, with the top 10 holders collectively having a significant share.

### Dump Risk

- Holder: 0x9d85f9295915ccc20fe7a15a2953843257b2640a

Balance: 797B

- Holder: 0x03dbf1c1084fdab7924a6ae0534211ee1a9015c7

Balance: 142B

- Holder: 0x2716aacf237f94534d617551f61880def72a8d14

Balance: 3B

- Holder: 0x27b759fa2a620587d0e48fb34894ececbf265be6

Balance: 3B

- Holder: 0x24a9ec3efd3baf121546fb51f23031e95178444a

Balance: 3B

From the token holders distribution, the larger the percentage held by few entities. The greater the potential impact on the market if those entities decide to sell a significant portion of their holdings affects the price, hence the higher the dump risk.

### Other Important Functions

The contract has other important functions that we need to know about.

- MarketingWalletChanged Event: This call indicates a change in the marketing wallet address within the smart contract.

- ExcludeFromFees Event: This call indicates an action related to fee exclusion for a specific address within the smart contract.

- StakingAddressChanged Event: This call indicates a change in the staking address within the smart contract.

- OwnershipTransferred Event: This call indicates the transfer of ownership between two addresses within the smart contract.

- UpdateFees Event: This call indicates an update in fees, with two parameters represented by uint256 values, within the smart contract.

- SwapAndSendMarketing Event: This function is responsible for allocating fees to the marketing wallet.

- Approval Event: This call indicates an approval action involving addresses and a uint256 value.

- Transfer Event: This call indicates a transfer of tokens between addresses, with associated uint256 values.

Run the query [here](https://ide.bitquery.io/Jesus-Refund-JRfnd-all-events).

## Token XBOT

We will now review the list of metrics for the XBOT token.

Token: 0x53Bf63239B8C6354b81a8D235fB08e32FFBF22a9

### Minting

Only authorized entities or addresses have the permission to mint new tokens, preventing potential misuse. Run the query [here](https://ide.bitquery.io/XBOT-Mint-event)

### Burning

No such transfer of tokens is detected to an address where they become inaccessible and are essentially taken out of circulation.Run the query [here](https://ide.bitquery.io/XBOT-burn-event).

### Date of Creation

The date of creation for this token is 2023-07-28.

This token, being relatively new, may be susceptible to price manipulation.Run the query [here](https://ide.bitquery.io/XBOT-create-event).

### Token Liquidity

- High Liquidity Days:

  - "2023-07-31" has a substantial number of transfers (7941) and a large total amount transferred (5,009,855,331,782.006), indicating high liquidity on this day.
  - "2023-08-01" also shows a significant number of transfers (2337) and a substantial total amount transferred (1,904,680,559,603.0498), suggesting continued high liquidity.

- Decrease in Liquidity: As we move forward in time, the number of transfers and total amounts decrease, indicating a potential decrease in liquidity. For example, "2023-08-02" has fewer transfers and a lower total amount compared to the previous days.

- Spikes in Liquidity: There are occasional spikes in liquidity, such as on "2023-08-28" with 8 transfers but a substantial total amount transferred (46,673,991,672.497635).

- Low Liquidity Days: Days like "2023-11-02" and "2023-09-11" have a lower number of transfers and relatively small total amounts, suggesting lower liquidity on these days.

Run the query [here](https://ide.bitquery.io/XBOT-Liquidity-daily).

In summary, the liquidity of the token appears to vary over time. Days with a high number of transfers and large total amounts suggest high liquidity, while days with fewer transfers and smaller total amounts may indicate lower liquidity. It's important to consider these observations in the context of the overall market conditions and any specific events that might have influenced liquidity.

![](/blog/smartcontract-threat-scan/XBOT_Liquidity.png)

Fig: Liquidity Analysis on the basis of Date and Transfer Count

### Blacklist Function

Run the query [here](https://ide.bitquery.io/XBOOT-blacklist-event_2).

All wallet addresses, regardless of their history or potential involvement in malicious activities, have the ability to transfer the token freely hence there is no mechanism or feature in place that allows for the prohibition or restriction of specific wallet addresses from conducting transfers of the particular token.

### Token Holders

Run the query [here](https://ide.bitquery.io/XBOT-top-token-holders).

- Holder: 0x434a722696C04bc32b06CeC805ce8323E43AFf28

Balance: 894.6B

- Holder: 0x120051a72966950B8ce12eB5496B5D1eEEC1541B

Balance: 22.9B

- Holder: 0x6635eCB26290fc4BbA9517314d32BA8E0758aAE1

Balance: 10.1B

- Holder: 0x53Bf63239B8C6354b81a8D235fB08e32FFBF22a9

Balance: 8.8B

- Holder: 0x08E25298f4401dB8782a93761293e6a2ec9b9409

Balance: 8.6B

The total supply of the token is 1 trillion (1T). The top 10 holders collectively own 95% of the total token supply which means they can move the price as they wish. The owner's holdings indicate a negligible amount (≈0.001%) of the total supply, similar to the creator’s holdings as well.

### Dump Risk

- Holder: 0x434a722696C04bc32b06CeC805ce8323E43AFf28

Balance: 894.6B

- Holder: 0x120051a72966950B8ce12eB5496B5D1eEEC1541B

Balance: 22.9B

- Holder: 0x6635eCB26290fc4BbA9517314d32BA8E0758aAE1

Balance: 10.1B

- Holder: 0x53Bf63239B8C6354b81a8D235fB08e32FFBF22a9

Balance: 8.8B

From the token holders distribution. The larger the percentage held at various addresses, the greater the potential impact on the market if this entity decides to sell a significant portion of their holdings, hence indicating a high dump risk.

### Other Important Functions

The contract has other important functions that we need to know about. Run the query [here](https://ide.bitquery.io/XBOT-all-events_1).

- RoleGranted: This call indicates the granting of a role within the smart contract. The low count (3) suggests that there have been relatively few changes in roles within the contract.

- High Transfer Count: The large number of transfer events (12318) may indicate active trading or token movement. Depending on the context, this could pose a dump risk if there's a sudden and significant increase in token transfers, potentially leading to a decline in token value.

- Frequent Approval Actions: The high count of approval events (2210) suggests that users are interacting frequently with DApps or other smart contracts, possibly for token-related activities. While not inherently indicative of dump risk, it's essential to understand the purpose of these approvals.

- Role Changes and Ownership Transfers: The infrequent occurrences of RoleGranted and OwnershipTransferred events (both with a count of 3) suggest stability in terms of roles and ownership changes. This can be positive for the project's governance and stability.

## Token LOTTO

We will now review the list of metrics for the LOTTO token.

Token: 0x26F0d12C521EAc43007c7E6A49cB4503399d5070

### Minting

The contract does not have a mint function therefore no address can mint new LOTTO tokens.Run the query [here](https://ide.bitquery.io/LOTTO-Mint-event).

### Burning

This token does not have a `burn` function which means you can burn liquidity directly. Instead, you might send it to the zero address and attempt to reduce the token circulations. Run the query [here](https://ide.bitquery.io/LOTTO-burn-event_1).

### Date of Creation

The date of creation for this token is 2023-05-22.

This token, being relatively new, may be susceptible to price manipulation.Run the query [here](https://ide.bitquery.io/LOTTO-create-event_1).

### Token Liquidity

Run the query [here](https://ide.bitquery.io/query/YTutGjVPeZrDx8u4).

- High Liquidity Indicators: On "2023-05-26" and "2023-05-25," there is a relatively high number of transfers (242 and 184, respectively) and larger total amounts transferred (approximately 82.8 million and 73 million, respectively). Higher numbers of transfers and larger amounts generally suggest higher liquidity.

- Low Liquidity Indicators: On some dates, there are fewer transfers and smaller amounts, for example, on "2023-06-04" with only 1 transfer and approximately 61,851.95. Lower numbers of transfers and smaller amounts may indicate lower liquidity.

On some days, there is a notable level of activity and larger amounts transferred, indicating higher liquidity. However, on other days, the activity is lower, suggesting potentially lower liquidity. Hence variable liquidity.

![](/blog/smartcontract-threat-scan/LOTTO_Liquidity.png)

Fig: Liquidity Analysis on the basis of Date and Transfer Count

### Blacklist Function

All wallet addresses, regardless of their history or potential involvement in malicious activities, have the ability to transfer the token freely hence there is no mechanism or feature in place that allows for the prohibition or restriction of specific wallet addresses from conducting transfers of the particular token.
Run the query [here](https://ide.bitquery.io/LOTTO-blacklist-event).

### Token Holders

Run the query [here](https://ide.bitquery.io/LOTTO-top-token-holders).

- Holder: 0x5EEF8822646108a6f6Ed24D5254Df9197F8D07aE

Balance: 5M

- Holder: 0x7BFeF0e6d6B5Cdbd1Db6Bb1b94c303FD7F650FA9

Balance: 1.35M

- Holder: 0xE26cd9C267B002C9DfBd3e933145F09fe2C36968

Balance: 1.34M

- Holder: 0x7439C59A7A176C05ECAAC2F73B6B8A5D853D7E4D

Balance:1.34M

The total supply of the token is 100 million. The top 10 holders collectively possess 74% of the total token supply. Some addresses hold more than 50% of the total holdings. The owner's holdings are approximately 0.001% of the total supply and the creator's is 5.3%.

### Dump Risk

- Holder: 0x5EEF8822646108a6f6Ed24D5254Df9197F8D07aE

Balance: 5M

- Holder: 0x7BFeF0e6d6B5Cdbd1Db6Bb1b94c303FD7F650FA9

Balance: 1.3M

- Holder: 0xE26cd9C267B002C9DfBd3e933145F09fe2C36968

Balance: 1.3M

- Holder: 0x7439C59A7A176C05ECAAC2F73B6B8A5D853D7E4D

Balance:1.3M

The top 10 holders collectively possess 74% of the total token supply, which means that if they decide to sell the price will shift in that direction and greater the dump risk by other holders.

In this blog, we have explored the process of conducting a smart contract threat scan using Bitquery APIs by analysing 3 different smart contracts. We have seen how tokenomics and token holder distribution can indicate the potential for growth or decline of a token. We have also discussed the crucial role of regular auditing and continuous monitoring in ensuring the security and stability of smart contracts.

---

_Blog written by guest author Nikita M_
]]></description>
        </item>
        <item>
            <title><![CDATA[Understanding Optimistic Rollups: Arbitrum, Optimism and Others]]></title>
            <link>https://bitquery.io/blog/understanding-optimistic-rollups</link>
            <guid>https://bitquery.io/blog/understanding-optimistic-rollups</guid>
            <pubDate>Wed, 24 Jan 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[

[Ethereum Blockchain](https://bitquery.io/blockchains/ethereum-blockchain-api) has been facing scalability issues for a long time due to high network congestion (heavy load on Ethereum Blockchain), leading to higher gas fees. As a result, we have seen a lot of scaling solutions both off-chain and on-chain, some of them have tried to solve this issue but they are still not efficient and that’s why Rollups were introduced. The goal is to increase the transaction throughput and decrease latency while maintaining low gas costs, without compromising the security of a decentralized network.

[Rollups](https://bitquery.io/blog/comparative-analysis-of-ethereum-l2s) are layer-2 scaling solutions that settle transactions off-chain but post the transaction data (also referred to as calldata) on-chain, thus maintaining the security of Ethereum. There are other scaling solutions too, like Sidechains and State Channels but these scaling solutions have reduced decentralization compared to layer-1 they are trying to scale as these solutions are controlled by single or multiple parties and much less secure compared to Rollups.

Now, there are 2 types of rollups based on how they verify the validity of transactions on Ethereum: Optimistic Rollups which rely on the assumption of honest validators, and [ZK Rollups](https://ethereum.org/developers/docs/scaling/zk-rollups) that are dependent on cryptographic proofs for fast verification.

## What are Optimistic Rollups?

Optimistic Rollups are managed by smart contracts deployed on blockchain and process transactions off-chain but post transactions off-chain to an on-chain rollup contract. They can offer up to 10-100x improvements in scalability. They operate on a two-layer architecture.

- **On-Chain Contracts**

Smart Contracts store roll-up blocks, monitor state updates, and track user deposits. It is the settlement layer where the final state is stored.

- **Off-Chain Virtual Machine (VM)**

Although the contracts managing the rollup run on Ethereum, the computation and transaction batching are done off-chain. Validators monitor the transactions and submit fraud proofs if inconsistencies are detected.

## Why the name Optimistic?

They are named Optimistic because the transactions are considered valid by default, i.e. the layer-2 chain doesn’t verify or validate the transactions before submitting them to mainnet unless it is challenged. It relies on economic incentives and fraud-proof mechanisms to ensure the validity of transactions.

## How Optimistic Rollups Work?

If a user wants to use optimistic rollup they need to deposit some funds to the rollup smart contract, which then sends the equivalent native tokens of the layer-2 chain to the user via the sequencer.

Whenever a user transacts on the network, the sequencer - a special layer 2 node collects all transactions, batches them, and executes them off-chain. Once the transactions have been processed, a proof called a state root is generated which is the merkle root of the state of the system after the transactions have been executed. It submits the state root and transaction data to the mainnet. They also need to deposit some collateral similar to the Proof-Of-Stake (POS) mechanism. This acts as a deterrent against malicious actions. If they post an invalid block, their deposit is slashed.

Validators are the other layer-2 nodes that monitor the submitted roots, if they detect a discrepancy a challenge period is initiated. During the challenge period the validator submits fraud proof which is the data demonstrating the incorrectness of the State root. If the fraud-proof is valid, the rollup state is reverted and the sequencer’s deposit is slashed.

If the user wants to exit the roll-up chain, they initiate an exit request on the layer-2 chain (roll-up chain) which reverts the initially deposited funds to the user’s account. However, there is a waiting period, before the withdrawal is finalized during which a challenge period can be initiated.

## Benefits of Optimistic Rollups

- **Lower Transaction costs**

Since the computation of transactions is done off-chain and processing transactions in batches, they submit minimal data to the network, resulting in lower gas costs. As a result, the Ethereum network will have reduced congestion times and more stable gas fees.

- **Higher Throughput and Low Latency**

By Processing multiple transactions off-chain, they can provide 10-100x improvement in the scalability resulting in high transaction speed and lower latency. Overall this leads to an improved user experience.

- **Security**

As the rollups publish the data on the mainnet and have fraud-proof mechanisms to ensure the validity of the published data, the base layer security is still maintained.

## Challenges With Optimistic Rollups

- **Delay caused during the Challenge Period**

If there arises any discrepancy in the root provided by the sequencer challenge period is initiated which can last for 7 days, during this period if there is a single invalid transaction the whole batch of multiple transactions (whose combined state root is calculated) goes through the challenge period. During this period the layer-2 chain will be inconsistent with the mainnet and the user will have to wait for the challenge period to expire before withdrawing funds, resulting in a bad user experience.

- **Accessing Layer-2 Chain**

The layer-2 chain needs to be accessible for everyone challenging the generated state root, but if the data is corrupted or unavailable on the layer-2 chain, the users won’t be able to verify the state of the network, resulting in compromised security.

- **Centralized Sequencers**

Centralization always carries risk. In this case, the Centralized Sequencers can influence the network by manipulating or reordering the transactions.

- **Possibility of No Honest Nodes**

This model works on the principle that at least 1 node will be honest. Although this condition is rare, there is still a possibility that all the nodes can be malicious, which can lead to stealing funds and posting invalid data on the mainnet.

## Projects working on Optimistic Rollups

- **[Arbitrum](https://bitquery.io/blockchains/arbitrum-blockchain-api)**

Arbitrum stands out by focusing on optimizing Ethereum's scalability and reducing costs without compromising on security. It achieves this by offloading transaction processing from the mainnet, while still maintaining Ethereum's security.

- **[Optimism](https://bitquery.io/blockchains/optimism-blockchain-api)**

Optimism is another Ethereum-compatible Layer 2 scaling solution which aims to lower fees and increase throughput, all while maintaining compatibility with Ethereum's existing infrastructure and smart contracts. 

- **Base**

Base is Coinbase's Layer 2 scaling solution built on Optimism. It aims to make it easier for people to build decentralized apps and scale the Ethereum ecosystem. Base maintains compatibility with Ethereum's developer environment, ensuring easy migration and deployment for developers.

- **Metis**

Metis emphasizes community governance and decentralized autonomous companies (DACs). It provides an infrastructure to facilitate decentralized applications and DACs, fostering an environment for building decentralized businesses and communities.

Currently, Bitquery provides support for Arbitrum but we will be adding querying support for Optimism too in near future. So let's see how we can access Arbitrum data with the help of Bitquery’s Query IDE. 

## Accessing Arbitrum Data

Arbitrum, developed by Offchain labs, is one of the leading protocols providing Optimistic rollup solutions with TVL (Total Value Locked) around 2.51b$.

### **Top Traded Tokens on Arbitrum**

With the help of Bitquery, You can get the top traded tokens on a specific network. This is the query to get top traded tokens on Arbitrum :

```
{
  EVM(dataset: combined, network: arbitrum) {
    DEXTrades(
      limit: {count: 10}
      orderBy: {descendingByField: "count"}
      where: {Block: {Date: {since: "2024-01-11"}}}
    ) {
      count
      Trade {
        Buy {
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}
```

### **Arbitrum Gas Prices**

You can fetch the latest gas prices on the arbitrum network over last with this query:

```
{
  EVM(dataset: combined, network: arbitrum) {
    Transactions(
      where: {Block: {Date: {till: "2024-01-10", since: "2024-01-01"}}, Transaction: {GasPrice: {gt: "0"}}}
      limit: {count: 10}
      orderBy: {descending: Block_Date}
    ) {
      min: Transaction {
        GasPrice(minimum: Transaction_GasPrice)
      }
      max: Transaction {
        GasPrice(maximum: Transaction_GasPrice)
      }
      median(of: Transaction_GasPrice)
      ChainId
      Block {
        Date
      }
    }
  }
}
```

### **Top transferred NFTs**

In order to fetch the address, number of Transfers, Unique Senders, Unique Receivers and more data about a NFT transfers you can use this query:

```
query ($limit: Int!, $offset: Int!) {
  EVM(dataset: combined, network: arbitrum) {
    Transfers(
      orderBy: {descendingByField: "count"}
      limit: {offset: $offset, count: $limit}
      where: {Block: {Date: {till: "2024-01-10"}}, Transfer: {Currency: {Fungible: false}}}
    ) {
      Transfer {
        Currency {
          Symbol
          SmartContract
        }
      }
      count
      senders: uniq(of: Transfer_Sender, method: approximate)
      receivers: uniq(of: Transfer_Receiver, method: approximate)
      ids: uniq(of: Transfer_Id, method: approximate)
      ChainId
    }
  }
}
```

### **Smart Contracts Deployed**

To view the number of smart contracts deployed daily on the Arbitrum network, use this query:

```
{
  EVM(network: arbitrum, dataset: combined) {
    Calls(where: {Call: {Create: true}}, orderBy: {descendingByField: "Block_Date"}) {
      Block {
        Date
      }
      count
    }
  }
}
```

## Conclusion

While Optimistic Rollups come with their challenges, they offer a promising pathway towards a more scalable and user-friendly Ethereum ecosystem. As these solutions continue to mature and address their limitations, they hold the potential to play a pivotal role in blockchain adoption. It’s an exciting time to be a part of this rapidly evolving landscape, and it’ll be fascinating to witness how Optimistic Rollups shape the future of decentralized applications in the years to come.

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Unveiling Rug Pull Schemes: A Closer Look at the “OpenAI” $NEA Token]]></title>
            <link>https://bitquery.io/blog/nea-openai-rugpull-investigation</link>
            <guid>https://bitquery.io/blog/nea-openai-rugpull-investigation</guid>
            <pubDate>Fri, 19 Jan 2024 12:42:00 GMT</pubDate>
            <description><![CDATA[


In the ever-evolving realm of decentralized finance (DeFi), occurrences akin to the recent rug pull associated with the [“OpenAI” $NEA](https://explorer.bitquery.io/bsc/token/0x53393cca968afa39215e5dd38abd48a17f1d87e1) token have regrettably become a common concern. Remarkably, since January 1, 2024, [more than 28,000 tokens](https://ide.bitquery.io/New-Token-deployed-since-jan-2024) have been deployed exclusively on the Binance Smart Chain (BSC). This equates to an overwhelming influx of over 1,500 new tokens daily, presenting a formidable challenge for real-time audits.

Perpetrators often adopt the guise of well-known companies to build trust, using savvy marketing on social media platforms, Discords, or Telegram groups to attract unsuspecting investors. This blog post delves into our investigation into the $NEA fraud scheme, shedding light on the intricate deception and financial manipulation involved.

![](/blog/nea-openai-rugpull-investigation/chart.png)

($NEA token price chart)

### Incident Overview

Our investigation began by focusing on a specific wallet address responsible for deploying the smart contract ([0xAcF8E368F2d72303cAa337a0cAbECa405a8604Aa](https://explorer.bitquery.io/bsc/address/0xAcF8E368F2d72303cAa337a0cAbECa405a8604Aa)) on the Binance Smart Chain (BSC). After this wallet created the token named [“OpenAI” $NEA](https://explorer.bitquery.io/bsc/token/0x53393cca968afa39215e5dd38abd48a17f1d87e1), which went from $380 to effectively $0 within a span of 15 minutes after the creator of this token drained liquidity from this pair on PancakeSwap. As of the time of writing this report, there are still [115 addresses holding this token](https://ide.bitquery.io/OpenAI-NEA-Holders_1), despite its worthlessness and inability to be sold.

### Scope of Investigation

Our analysis reveals a correlation between the identified wallet address and other addresses engaged in similar suspicious activities. By conducting a thorough blockchain analysis, our aim is to illuminate the financial flows and connections associated with this scheme. This will enable us to link multiple wallet addresses and transactions to centralized exchanges, ultimately aiding in the identification of the perpetrators behind this malicious scheme.


![NEA explorer](/blog/nea-openai-rugpull-investigation/explorer.png)

In addition to creating the “OpenAI NEA” token, this address was linked to the creation of several other tokens, presumably for similar malicious purposes. Examples include:

- OpenAI KEGA: [Token Link](https://explorer.bitquery.io/bsc/token/0x5566b9affc339180ea91645e5230efb584e19344)
- BWL Coin: [Token Link](https://explorer.bitquery.io/bsc/token/0x3a2edc3725a35f7016c46311373d65ee17974cec)
- Kenex Finance: [Token Link](https://explorer.bitquery.io/bsc/token/0xa9989d91b7ac0db4caca38cca4d42568ee39762a)
- Onexis Tech: [Token Link](https://explorer.bitquery.io/bsc/token/0x5fb9666d96cb418f20c873caf7dcdf9c35636e71)

It's important to note that these "OpenAI" tokens most likely have no affiliation with the renowned OpenAI company.

Our investigation uncovered other wallets exhibiting similar behavior connected to this address, indicating a potentially extensive network.

### Blockchain Analysis

Employing tools such as [CoinPath MoneyFlow](https://bitquery.io/products/moneyflow), our blockchain analysis revealed correlations between the identified wallet address and others involved in comparable suspicious activities. Meticulously tracing on-chain behavior, we unveiled a complex network of transactions and connections. Notably, funds flowed from the origin address, showcasing similar behavior and strategies aimed at maintaining anonymity on-chain.

Centralized Exchanges Link:

A pivotal moment in our investigation occurred when we successfully traced the proceeds from these suspicious incidents directly to centralized exchanges. Over the past months, funds underwent a convoluted journey through various wallets before ultimately landing in Binance and Bybit exchanges.

Recommendations

Victims are strongly urged to report such incidents to law enforcement. Our blockchain analytics reports, coupled with supporting off-chain evidence, can provide authorities with valuable insights for conducting a thorough investigation.
Submit your [crypto case here](https://bitquery.io/products/crypto-investigation-services)

### Final Thoughts

Cryptocurrency fraud schemes pose a serious threat to the integrity of the crypto space. Our investigation into the $NEA rug pull incident exemplifies the power of blockchain analysis, emphasizing the need for vigilance within the community. By unraveling the complex web of suspicious activities, we aspire to contribute to a safer and more transparent crypto environment. Bitquery remains committed to leveraging our expertise for the benefit of victims and the broader crypto community. Should you have any questions or require further information, please don't hesitate to reach out.

---


*The information provided in this material is published solely for educational and informational purposes. It does not constitute a legal, financial audit, accounting, or investment advice. The article's content is based on the author's own research and, understanding and reasoning. The mention of specific companies, tokens, currencies, groups, or individuals does not imply any endorsement, affiliation, or association with them and is not intended to accuse any person of any crime, violation, or misdemeanor. The reader is strongly advised to conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery shall not be liable for any losses or damages arising from the use of this material.*]]></description>
        </item>
        <item>
            <title><![CDATA[Recovering Scammed Bitcoin: A Step-by-Step Guide​]]></title>
            <link>https://bitquery.io/blog/recover-scammed-bitcoin</link>
            <guid>https://bitquery.io/blog/recover-scammed-bitcoin</guid>
            <pubDate>Fri, 12 Jan 2024 12:42:00 GMT</pubDate>
            <description><![CDATA[
In the ever-evolving landscape of digital finance, the rise of cryptocurrency has brought both innovation and, unfortunately, new challenges. One such challenge is the prevalence of scams targeting [Bitcoin](https://bitquery.io/blockchains/bitcoin-blockchain-api) owners, leaving victims to struggle with the loss of their hard-earned money. This comprehensive article will serve as a guide to those who have unfortunately fallen victim to Bitcoin scams, providing a step-by-step roadmap towards recovery of the stolen funds.

## Common Bitcoin scams

Bitcoin and other cryptocurrency users in the web3 space can encounter various scams, and it is crucial to stay vigilant to protect yourself against potential threats.

Some common scams include:

1.  Phishing Scams: This is a type of scam where a fraudster creates a fake website or emails that mimic legitimate platforms or influencers to trick users into revealing their private keys, sensitive information or login credentials. [Phishing](https://en.wikipedia.org/wiki/Phishing) is one of the most common methods used in bitcoin scamming. A [report by Chainalysis](https://www.chainalysis.com/blog/approval-phishing-cryptocurrency-scams-2023/) shows that over $374 million in crypto was stolen as a result of targeted phishing scams as it sees explosive growth.

2.  Giveaway Scams: One of the most common kinds of cryptocurrency frauds are giveaway scams. Frequently spotted on prominent social media platforms like YouTube and Twitter, this form of social engineering attack is used to convince you to send crypto to scammers.

3.  Exit Scams: A cryptocurrency exit scam is when the developers of a cryptocurrency pull their funds + profits gained, abandoning the project and investors with huge token decline and red candlesticks. In some cases, this can occur with a centralized exchange where a dishonest cryptocurrency exchange may suddenly shut down, taking user's funds with them. This happened in the case of [FTX and Sam Bankman-Fried](https://www.investopedia.com/what-went-wrong-with-ftx-6828447)

4.  Fake Wallets: Fraudulent wallet apps or websites that claim to provide secure storage for cryptocurrencies but are designed to steal users' private keys.

5.  Tech Support Scams: Scammers pose as customer support representatives, reaching out to users and claiming there is an issue with their crypto account. They then request sensitive information or access to the user's computer.

6.  Malware and Ransomware: One of the most common and serious cyber-attacks involves ransomware, in which a threat actor locks an organization’s data with encryption until a ransom demand is met. These attacks are increasing not only in number, but also in severity. Bitcoin accounts for [approximately 98% of ransomware payments](https://blog.emsisoft.com/en/33977/is-ransomware-driving-up-the-price-of-bitcoin/#:~:text=Bitcoin%20accounted%20for%20about%2098,part%20of%20the%20ransomware%20model). Whether an organization pays the ransom or attempts to recover the data independently, a clear understanding of bitcoin is essential for cyber incident response planning.

## Recovery Steps

Bitquery offers specialized investigation services to track stolen crypto funds, employing cutting-edge blockchain analysis tools for funds tracking.

To get started;

1.  Sign up for the Bitquery Investigation Service [here](https://bitquery.io/products/crypto-investigation-services)

2.  Submit your case on this [form](https://share.hsforms.com/1JFHb2vpNSnGYa5y6F8S1gw3rc4g)

You can also utilize Bitquery’s Money Flow tool on the [explorer](https://explorer.bitquery.io/) to track and visualize transactions on the account.

## Using Money Flow in Bitquery

Here's how to:

1. Enter an account address and select the blockchain network

Lets say we are using this address below which is on the Bitcoin Main Network bc1pdue3wxdphwkvp7a8kktf975wrks04etzhqjsz3tlgalj0ttj7dvqvxrxk6

2. Click on the "Money Flow" section

![](/blog/recover-scammed-bitcoin/address.png)

3. Select either "Graph" or "Sankey", with "Graph" being the default option

4. Use the “Depth Level” to set a degree of separation between transactions on the account/address. Depth Level helps to understand the flow of funds and understand the relationships between the addresses that receive the funds from the original address. The depth level has sliders (Inbound and Outbound) that you can increase or decrease to track and identify transactions within the account.

In a nutshell, Inbound = Funds that are coming in, while Outbound = Funds that are leaving

A typical simulation on the explorer will give you this ⬇  
(We will only be using both inbound and outbound transactions)

Depth level 1: Transactions involving addresses directly connected to the initial address.  
![](/blog/recover-scammed-bitcoin/level1.png)

Depth level 2 and beyond: Extends the analysis to addresses associated with transactions at the previous depth level.

![](/blog/recover-scammed-bitcoin/level2.png)

![](/blog/recover-scammed-bitcoin/level3.png)

Depth level is a powerful tool when using Bitquery for account analytics, but it requires careful interpretation and context. Make sure to always consider external factors and aim for a holistic understanding of the transactional behavior involved with the original address and associated addresses.

Here is another example, in this comprehensive [blog post](https://bitquery.io/blog/bitcoin-seized-us-government), the United States Government Bitcoin Holdings, crypto assets and seizures were tracked and analyzed by utilizing the money flow tool from the Bitquery explorer.

## Precautionary Measures

By adopting diligent precautions and safety measures, users can enhance their security and reduce the risk of falling victim to Bitcoin scams.

1.  Secure Wallets: Use reputable wallets with strong security features. Also ensure you enable two-factor authentication (2FA) for an extra layer of security.

2.  Beware of Phishing: Avoid clicking on suspicious links or emails. Double-check website URLs to ensure they are legitimate before entering any sensitive information. Use strong and unique passwords.

3.  Cold Storage: Consider using hardware wallets or cold storage for long-term storage of significant amounts of Bitcoin. Keep private keys offline to prevent unauthorized access. DO NOT BUY HARDWARE WALLETS FROM THIRD PARTIES, make sure you are getting it directly from the company.

Some recommended hardware wallet providers are [Ledger](https://www.ledger.com/), [Trezor](https://trezor.io/) and [NGRAVE](https://ngrave.io/)

4.  Avoid Public Wi-Fi: Refrain from accessing your cryptocurrency accounts or making transactions using public Wi-Fi. Use a secure and private network for sensitive operations.

5.  Secure Personal Information: Never share your private keys, passwords, or sensitive information with anyone. Always be cautious about the information you disclose online.

6.  Diversify Investments: Avoid putting all your funds into a single investment or platform. Diversification can help minimize the impact of potential losses

7.  Stay updated on the latest security threats and best practices in the cryptocurrency space.

## Conclusion

In the dynamic world of crypto, scams targeting Bitcoin owners are a harsh reality. This guide aims to help victims recover stolen funds with a step-by-step approach.

Cryptocurrency scams like phishing and fake wallets are prevalent, making vigilance and preventive measures crucial. Bitquery provides hope for recovery through advanced blockchain analysis and expert consultation.

To stay safe, use secure wallets, beware of phishing, opt for cold storage, and diversify investments. Education and vigilance are our best defenses in this evolving crypto landscape. Stay secure, stay informed, and protect your assets.




*The information provided in this material is published solely for educational and informational purposes. It does not constitute a legal, financial audit, accounting, or investment advice. The article's content is based on the author's own research and, understanding and reasoning. The mention of specific companies, tokens, currencies, groups, or individuals does not imply any endorsement, affiliation, or association with them and is not intended to accuse any person of any crime, violation, or misdemeanor. The reader is strongly advised to conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery shall not be liable for any losses or damages arising from the use of this material.* 

--------------

Blog written by author Eugene Nnamdi]]></description>
        </item>
        <item>
            <title><![CDATA[Avalanche APIs: Tap into Smart Contracts, Transactions,Trades, and More]]></title>
            <link>https://bitquery.io/blog/avalanche-api</link>
            <guid>https://bitquery.io/blog/avalanche-api</guid>
            <pubDate>Tue, 02 Jan 2024 05:35:07 GMT</pubDate>
            <description><![CDATA[
Avalanche, a groundbreaking open-source blockchain and crypto platform, provides a robust infrastructure for decentralized applications (dApps) and smart contracts. It rivals its competitor Ethereum in terms of scalability and transaction speed, while growing at an impressive rate. 

So, developers looking to leverage the power of Avalanche can do so through its diverse APIs, which makes applications super easy! To give developers a leg up, Bitquery offers plug-and-play APIs through their user-friendly application. 

In this article, we dive into more details on Avalanche, the power of its APIs, and how you can make use of Bitquery’s interface for using them.

## **What is Avalanche?**

[Avalanche](https://bitquery.io/blockchains/avalanche-blockchain-api) is a fairly recent blockchain that debuted in 2020. It’s USP is that it is quick, secure, accessible, and affordable. It is a multi-chain platform that uses 3 blockchains. Each of them handle different tasks, which makes Avalanche very quick and highly effective.

Avalanche stands out in the blockchain landscape due to its high-performance proof-of-stake consensus protocol, called Avalanche consensus. This protocol is designed to provide fast and secure transactions, while being energy efficient. The native cryptocurrency or token of Avalanche is called AVAX.


Avalanche's architecture uses a directed acyclic graph (DAG) structure and supports the creation of custom blockchain networks, known as subnets, tailored to specific use cases.

### **Avalanche Architecture**

Avalanche’s architecture is made up of 3 dynamic chains:

- **Contract Chain (C-Chain)**:  This chain enables developers to create smart contracts. 

- **Platform Chain (P-Chain)**:  This chain facilitates both the creation and tracking of subnets, which in turn helps developers to build their own blockchains. 

- **Exchange Chain (X-Chain)**: This provides a decentralized platform for transactions, such as trading of crypto tokens. Transaction fees are paid in AVAX.

## **How does Avalanche help developers?**

Avalanche is multi-chain, which means the developers can use it for more versatile applications and parallel processing. With its high transaction speed and low fees, Avalanche has high potential for dApps. This makes it a more viable option than Ethereum. 

Scalability is another attractive feature of Avalanche. Use cases can range from micropayments, NFTs, and blockchain real-time gaming, apart from dApps.

## **Overview of Avalanche APIs**

The API simplifies complex blockchain interactions, allowing developers to focus on building innovative solutions without delving into intricate blockchain protocols.

- **Node API**: Provides real-time data. Node API consists of a bunch of APIs that developers can use to query information about blocks, transactions, addresses, and network status. 

- **C-Chain and X-Chain**: The API enables developers to create and execute smart contracts on the C-Chain and the transfer of assets on the X-Chain. Bitquery provides C-Chain APIs for seamless integration. 

- **Wallet API**: Developers can create wallets, check balances, and initiate transactions. 

To learn more about Avalanche APIs, refer to the [Avalanche API documentation](https://docs.bitquery.io/v1/docs/Schema/Avalanche/overview).

## **Exploring Bitquery APIs to Obtain Avalanche C-Chain Data**

Bitquery offers a variety of Avalanche APIs to obtain real-time Avalanche on chain data. It primarily focuses on Avalanche’s C-Chain data by providing the C-Chain explorer. Use the explorer to seamlessly view data related to nodes, addresses, transactions, calls, and more. 

### **Avalanche C-Chain Explorer API: Overview of Avalanche C-Chain**

To view key metrics of Avalanche C-Chain on chain data, use the [Bitquery Explorer](https://explorer.bitquery.io/avalanche). This provides a bird’s-eye-view of all the data related to Avalanche C-Chain.

![Bitquery Avalanche Explorer: Screenshot](/blog/avalanche-api/bitquery-avalanche-explorer.png)

To use Avalanche APIs, just use Bitquery’s in-built [GraphQL IDE](https://ide.bitquery.io/), and write your custom queries. Or, simply click the `Get API` on the bottom right of the screen to get your query.

For example, to see blocks related data on the C-Chain, click Get API. This is the [query](https://ide.bitquery.io/Avalanche-C-Chain-explorer) you will see in the IDE.

```graphql
{
  ethereum(network: avalanche) {
    blocks(
      options: {desc: "height", limit: 10, offset: 0}
      time: {since: "2023-12-19T06:35:32.000Z", till: "2023-12-19T07:05:32.999Z"}
    ) {
      timestamp {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      height
      transactionCount
      address: miner {
        address
        annotation
      }
      reward
      reward_usd: reward(in: USD)
      rewardCurrency {
        symbol
      }
    }
  }
}
```

### **Avalanche Address API**

This API retrieves addresses on the Avalanche chain. You can filter this API to get data on transactions, rewards earned, gas used, and so on.

To obtain address data, use the following [query](https://ide.bitquery.io/Avalanche-Address-API) in IDE. To get data on a specific address, specify the address variable with the required one, say, `0x8495839993851e772887791fc5d274ec990bf7af`. Use a date filter to narrow down your results as shown here.

```graphql
{
  ethereum(network: avalanche) {
    blocks(options: {desc: "height", limit: 10}, date: {after: "2023-12-01"}) {
      timestamp {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      height
      transactionCount
      address: miner {
        address
        annotation
      }
      reward
      reward_usd: reward(in: USD)
      rewardCurrency {
        symbol
        decimals
        name
        address
        tokenId
        tokenType
      }
      totalDifficulty
      uncleCount
      gasLimit
      difficulty
      gasUsed
      hash
    }
    address(address: {is: "0x8495839993851e772887791fc5d274ec990bf7af"}) {
      address
      balance
    }
  }
}
```

### **Avalanche Blocks API**

This API by Bitquery helps you retrieve transactions on all the blocks or a specific block on the Avalanche blockchain.

#### **Obtaining specific block transactions**

To retrieve specific block data, either use the Bitquery Explorer or try building the query in IDE. This gives you the number of transactions in the block, miner, and reward information.  

For example, you can use the following query in IDE to retrieve a specific block’s data, say **39239987**. 

Open the [query](https://ide.bitquery.io/Avalanche-specific-block) in IDE and replace “*height*” with the block number. Replace network variable with “*avalanche*” . This gives you the transactions in the specified block.

```graphql
{
  ethereum(network: avalanche) {
    blocks(height: {is: 39239987}) {
      timestamp {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      difficulty
      hash
      miner {
        address
        annotation
      }
      totalDifficulty
      transactionCount
      uncleCount
      size
      reward
      reward_usd: reward(in: USD)
      parentHash
      rewardCurrency {
        address
        decimals
        name
        symbol
        tokenId
        tokenType
      }
    }
  }
}
```

### **Avalanche Transactions API** 


Use this API to retrieve data related to transactions on Avalanche, such as the sender, number of transactions, gas costs, AVAX traded, and more.

#### **Obtaining transactions by date**

To get data on the number of transactions and transaction amount for specific dates, say, 10th Dec to 12th Dec, use the following [query](https://ide.bitquery.io/Avalanche-transactions-by-date). Set the date parameter options “*since*” and “*till*” to the required dates. Specify the network as “*avalanche*” as shown here and add the parameter “*amount*”.

```graphql
{
  ethereum(network: avalanche) {
    transactions(
      options: {desc: "block.height", limit: 10, offset: 0}
      date: {since: "2023-12-10", till: "2023-12-12"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      address: sender {
        address
        annotation
      }
      hash
      gasValue
      gas_value_usd: gasValue(in: USD)
      creates {
        address
      }
      currency {
        name
      }
      error
      gas
      gasCurrency {
        name
        symbol
      }
      gasPrice
      gasValue
      nonce
      success
      to {
        address
      }
      amount
    }
  }
}
```

#### **Obtaining transactions between users (addresses)**

To retrieve transactions between 2 specific addresses, build the query in [IDE](https://ide.bitquery.io/Avalanche-transactions-between-users) as follows.

Specify the network as “*avalanche*” and specify the sender and receiver addresses by using the parameters “*txSender*” and “*txTo*” as shown here.

```graphql
{
  ethereum(network: avalanche) {
    transactions(
      options: {desc: "block.height", limit: 10, offset: 0}
      date: {since: "2023-01-01"}
      txSender: {is: "0x1b56b0ea603c46a521e418c593224419142a572b"}
      txTo: {is: "0x77777777777d4554c39223c354a05825b2e8faa3"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      address: sender {
        address
        annotation
      }
      hash
      gasValue
      gas_value_usd: gasValue(in: USD)
      creates {
        address
      }
      currency {
        name
      }
      error
      gas
      gasCurrency {
        name
        symbol
      }
      gasPrice
      gasValue
      nonce
      success
      to {
        address
      }
    }
  }
}
```

#### **Retrieving daily transactions on Avalanche**

You can retrieve the daily count of transactions on Avalanche. For example, let’s retrieve transactions done per day for the last 10 days, by using this [query](https://ide.bitquery.io/Avalanche-daily-transactions).

```graphql
query  {
  ethereum(network: avalanche) {
   transactions(options: {desc: "date.date", limit: 10}) {
      date {
        date
      }
      count
    }
  }
}
```

#### **Determining top gas burners**

With the *Avalanche Transactions API*, you can even determine and analyze gas costs incurred on the network. For example, to analyze the top gas burners for smart contracts on the chain for a specific address, use the following [query](https://ide.bitquery.io/Avalanche-top-gas-burners_1) in IDE. Specify the network as “*avalanche*” and address as required, say, **0xb4315e873dbcf96ffd0acd8ea43f689d8c20fb30**.

```graphql
{
  ethereum(network: avalanche) {
    smartContractCalls(
      options: {desc: "gasValue", limit: 10, offset: 0}
      date: {since: "2024-01-08", till: "2024-01-09"}
      smartContractAddress: {is: "0xb4315e873dbcf96ffd0acd8ea43f689d8c20fb30"}
    ) {
      address: caller {
        address
        annotation
      }
      max_date: maximum(of: date)
      gasValue(calculate: sum)
      gas_value_usd: gasValue(in: USD, calculate: sum)
      count
    }
  }
}
```

You can do further gas analysis by using filters such as gas price (to know the latest or average gas price), average transaction costs etc.

### **Avalanche Calls API**

As mentioned before, Avalanche supports smart contracts. The *Smart contract API*  or the *Avalanche Calls API* enables you to get all the smart contract calls made on the Avalanche network. 

#### **Obtaining list of smart contract calls**

To obtain all the smart contract calls for the past month on the Avalanche blockchain, use the following [query](https://ide.bitquery.io/Avalanche-calls-API_1) in IDE. Specify the network as “*avalanche*” and provide the dates as required for the “*since*” and the “**till**” parameter as shown. 

```graphql
{
  ethereum(network: avalanche) {
    smartContractCalls(
      options: {desc: "block.height", limit: 10, offset: 0}
      date: {since: "2023-12-01", till: "2023-12-06"}
      external: true
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      address: caller {
        address
        annotation
      }
      arguments {
        argument
        value
      }
      callDepth
      smartContract {
        address {
          address
          annotation
        }
      }
      smartContractMethod {
        name
        signatureHash
      }
      transaction {
        hash
      }
    }
  }
}
```

#### **Retrieving number of unique smart contract calls**

To obtain unique smart contract calls (such as NFTs) on the avalanche chain during a specific week, use the following [query](https://ide.bitquery.io/Avalanche-uniq-calls_1) in IDE. Replace the “**from**” and “**till**” variables with the dates you want. Replace the variable network with “**avalanche**”.

```graphql
{
  ethereum(network: avalanche) {
    smartContractCalls(
      options: {asc: "date.date"}
      date: {since: "2023-12-01", till: "2023-12-19"}
    ) {
      date: date {
        date(format: "%Y-%m-%d")
      }
      count: countBigInt
      contracts: countBigInt(uniq: smart_contracts)
      callers: countBigInt(uniq: senders)
      methods: countBigInt(uniq: smart_contract_methods)
    }
  }
}
```

#### **Obtaining specific method calls for smart contracts**

Similarly, you can query for specific methods from a specific smart contract. For example, if you want to know all the smart contract calls for method “**swap**”, from 1st December to 19th December, use the following query in IDE. 

Specify the method “**swap**” for the parameter, “**smartContractMethod**” and specify the network variable as “**avalanche**”. Specify the “**from**” variable date as 1st December and the “**till**” variable as 19th December. Filter the query for any address as required (shown here).

```graphql
{
  ethereum(network: avalanche) {
    smartContractCalls(
      options: {desc: "block.timestamp.time", limit: 10, offset: 0}
      date: {since: "2023-12-01", till: "2023-12-19"}
      caller: {is: "0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad"}
      smartContractMethod: {is: "swap"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      smartContractMethod {
        name
        signatureHash
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      transaction {
        hash
      }
      external
      gasValue
      gas_value_usd: gasValue(in: USD)
    }
  }
}
```

Similarly, you can have specific queries for method calls by specific addresses and specific smart contracts. Learn more [here](https://docs.bitquery.io/v1/docs/Examples/smartcontractCalls/smart-contract-calls-api).

#### **Obtaining top callers of smart contracts**

The *Smart Contracts API* also helps you obtain who the top callers of a smart contract are, which includes the number of calls by each caller, date of the call, and the gas costs incurred. 

For example, to find out the top callers of the smart contract **0xb4315e873dbcf96ffd0acd8ea43f689d8c20fb30** on 19th December, build the query as follows in the [IDE](https://ide.bitquery.io/Avalanche-top-callers-of-smart-contracts). Replace the network variable with “*avalanche*” and the smart contract address with the one above. Specify the from and to dates to be 19th Dec.

```graphql
{
  ethereum(network: avalanche) {
    smartContractCalls(
      options: {desc: "count", limit: 10, offset: 0}
      date: {since: "2023-12-01", till: "2023-12-19"}
      smartContractAddress: {is: "0xb4315e873dbcf96ffd0acd8ea43f689d8c20fb30"}
    ) {
      address: caller {
        address
        annotation
      }
      max_date: maximum(of: date)
      count
      gasValue(calculate: average)
      gas_value_usd: gasValue(in: USD, calculate: average)
    }
  }
}
```

### **Avalanche Arguments API**

This API returns information on smart contract call arguments. 

For example, to obtain all the arguments for a specific smart contract, say **0x262dcfb36766c88e6a7a2953c16f8defc40c378a**, use this [query](https://ide.bitquery.io/Avalanche-arguments-API) in IDE. Specify the network as avalanche.

```graphql
{
  ethereum(network: avalanche) {
    arguments(
      options: {desc: ["block.height", "transaction.hash"], limit: 10}
      smartContractAddress: {is: "0x262dcfb36766c88e6a7a2953c16f8defc40c378a"}
    ) {
      block {
        height
      }
      argument {
        name
      }
      value {
        value
      }
      transaction {
        hash
      }
      smartContract {
        address {
          address
        }
      }
      smartContractSignature {
        __typename
        ... on Method {
          name
          signature
        }
      }
    }
  }
}
```

#### **Filtering arguments**

You can also filter arguments based on a number of parameters. For example, to filter smart contracts using the method “*swapExactTokensForTokens*” and specific argument type, say “*path*”, use the following query in IDE. 

Specify the network as “*avalanche*”, argument as “*path*” and the smart contract method as “*swapExactTokensForTokens*”.

```graphql
{
  ethereum(network: avalanche) {
    arguments(
      options: {desc: ["block.height", "transaction.hash"], limit: 10}
      smartContractAddress: {is: "0x262dcfb36766c88e6a7a2953c16f8defc40c378a"}
    smartContractMethod:{is: "swapExactTokensForTokens"}
      argument: {is: "path"}
      
    ) {
      block {
        height
      }
      argument {
        name
      }
      value {
        value
      }
      transaction {
        hash
      }
      smartContract {
        address {
          address
        }
      }
      smartContractSignature {
        __typename
        ... on Method {
          name
          signature
        }
      }
    }
  }
}
```

### **Avalanche Transfers API**

This API helps you get data on token transfers among participants. You can get data on the amount, the currency, and more. 

#### **Obtaining AVAX token transfer statistics**

Use the following [query](https://ide.bitquery.io/Avalanche-transfers-API-AVAX-token-transfers) to see all transfers of the token AVAX, which is the native token of Avalanche. 

For example, to see all AVAX transfers for the period *1st December* to *12th December*, do the following. Specify the token as *AVAX* for the “*currency*” variable as shown. You will get data related to the number of unique receivers/senders, total amount transferred, and dates when they were transferred.

```graphql
{
  ethereum(network: avalanche) {
    transfers(
      options: {desc: "block.height", limit: 10, offset: 0}
      date: {since: "2023-12-01", till: "2023-12-12"}
      currency: {is: "AVAX"}
      amount: {gt: 0}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      currency {
        address
        symbol
      }
      amount
      amount_usd: amount(in: USD)
      transaction {
        hash
      }
      external
    }
  }
}
```

#### **Viewing a list of all tokens**

To see all tokens transferred on Avalanche, use the following query. Specify the network as “*avalanche*” and specify dates as required. This [query](https://ide.bitquery.io/List-of-tokens) returns all token transfers done on Avalanche after 1st of December 2023.

```graphql
{
  ethereum(network: avalanche) {
    transfers(
      options: {desc: "count", limit: 1000}
      amount: {gt: 0}
      time: {after: "2023-12-01"}
    ) {
      currency {
        symbol
        address
      }
      count
      senders: count(uniq: senders)
      receivers: count(uniq: receivers)
      amount
      amount_usd: amount(in: USD)
    }
  }
}
```

#### **Obtaining largest transfer data**

You can also retrieve data on the maximum amount that was transferred during a specific time period by using this query.

For example, to see the highest amount transferred during a month (*1st November* to *1st  December*), build this [query](https://ide.bitquery.io/Largest-transfer). Specify the network as avalanche, dates as required, and use the parameter “*max_amount*” to determine the highest transfer amount on Avalanche.

```graphql
{
  ethereum(network: avalanche) {
    transfers(
      date: {after: "2023-11-01", before: "2023-12-01"}
      currency: {is: "AVAX"}
      height: {gt: 0}
    ) {
      max_amount: maximum(of: amount, get: amount)
    }
  }
}
```

You can also use the API to build queries for obtaining transfers to and from addresses. Learn more [here](https://docs.bitquery.io/v1/docs/Examples/Transfers/transfer-api).

### **Avalanche Coinpath API**

This API helps in tracing and tracking the money flow between addresses. In other words, you can track levels of fund movement on the Avalanche blockchain. Bitquery provides a visual representation of the same. 


However, if you want to use this [query](https://ide.bitquery.io/Avalanche-Coinpath-API) in your application, you can build it in IDE. 

#### **Tracking destination of funds**

Let’s say you want to track the destination of funds from the address, **0x0ef812f4c68dc84c22a4821ef30ba2ffab9c2f3a**. Specify the address in the “*initialAddress*” parameter and the currency as “*AVAX*” as shown below. The [query](https://ide.bitquery.io/Avalanche-Coinpath-API) returns the fund movement for the period from *1st October 2023* to *12th December 2023*.

```graphql
{
  ethereum(network: avalanche) {
    outbound: coinpath(
      initialAddress: {is: "0x0ef812f4c68dc84c22a4821ef30ba2ffab9c2f3a"}
      currency: {is: "AVAX"}
      depth: {lteq: 2}
      options: {asc: "depth", desc: "amount", limitBy: {each: "depth", limit: 10}}
      date: {since: "2023-10-01", till: "2023-12-12"}
    ) {
      sender {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
          }
        }
      }
      receiver {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
          }
        }
      }
      amount
      currency {
        symbol
        name
      }
      transaction {
        hash
        value
      }
      block {
        height
        timestamp {
          time(format: "%y-%d-%m")
        }
      }
      depth
      count
    }
  }
}
```

### **Avalanche DEX Trading API**

This API enables you to obtain data from different exchanges. It returns information about the exchanges involved in DEX, currencies traded, the protocols used, smart contract calls, and more. 

#### **Obtaining data on DEX protocols**

In this example, let’s get the DEX data on trades that use the *Uniswap V2* protocol. To do so, build this [query](https://ide.bitquery.io/Avalanche-DEX-API) in IDE. Specify the network as “*avalanche*” and dates as required. Specify the “*protocol*” parameter from the schema and set it to “*Uniswap v2*” as shown here.

```graphql
{
  ethereum(network: avalanche) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 10, offset: 0}
      date: {since: "2023-10-01", till: "2023-12-11"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol (protocol: {is: "Uniswap v2"})
      exchange {
        fullName
        address {
          address
        }
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      buyAmount
      buy_amount_usd: buyAmount(in: USD)
      buyCurrency {
        address
        symbol
      }
      sellAmount
      sell_amount_usd: sellAmount(in: USD)
      sellCurrency {
        address
        symbol
      }
      transaction {
        hash
      }
    }
  }
}
```

#### **Obtaining Token Trades**

Use the *buy/sell currency* filter or *base/quote currency* filter to retrieve data on token trades. 

For example, to get trades on **WAVAX ERC20** tokens, use the following [query](https://ide.bitquery.io/Token-trades_5) in IDE. Specify the network as “*avalanche*” and set the filter *basecurrency* address to the one you require, say, **0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7**. Specify the dates as required.

```graphql
{
  ethereum(network: avalanche) {
    dexTrades(
      options: {desc: "count", limit: 10}
      date: {since: "2023-12-01", till: "2023-12-19"}
    ) {
      sellCurrency {
        symbol
        address
      }
      sellAmount
      sell_amount_usd: sellAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      buyAmount
      buy_amount_usd: buyAmount(in: USD)
      count(baseCurrency: {is: "0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7"})
      median_price: price(calculate: median)
      last_price: maximum(of: block, get: price)
      dates: count(uniq: dates)
      started: minimum(of: date)
    }
  }
}
```

Similarly, you can get trade data on token pairs, trade pairs, and more using the Bitquery explorer and DEX API filters. Learn more [here](https://docs.bitquery.io/v1/docs/Examples/dexTrades/dex-trading-data-api).

## **Conclusion**

Bitquery Avalanche APIs are powerful tools that empower developers to unlock the full potential of the Avalanche blockchain. In this article, we focused on important APIs, which you can build using the [**GraphQL IDE**](https://ide.bitquery.io/) interface from Bitquery.

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/moneyflow) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

This article has been written by guest writer [Aparna Sridhar](https://www.linkedin.com/in/aparna-sridhar-0a09b03/)]]></description>
        </item>
        <item>
            <title><![CDATA[Unveiling the Power of Blockchain: Tracking Bitcoin Seized by the US Government​]]></title>
            <link>https://bitquery.io/blog/bitcoin-seized-us-government</link>
            <guid>https://bitquery.io/blog/bitcoin-seized-us-government</guid>
            <pubDate>Mon, 25 Dec 2023 05:35:07 GMT</pubDate>
            <description><![CDATA[


In the ever-evolving landscape of financial transactions, the advent of blockchain technology has ushered in a new era of transparency and accountability. Bitcoin, the pioneer of cryptocurrencies, is no stranger to legal scrutiny, often finding itself at the center of investigations and law enforcement actions. One intriguing aspect of this intersection between technology and regulation is the use of blockchain data to track and manage Bitcoin seized by the US government. 

From the groundbreaking Silk Road seizure to the notorious Bitfinex hack, and the recent high-profile case involving James Zhong, instances of Bitcoin confiscation by the US government have not only grabbed headlines but also prompted a closer examination of the role blockchain data plays in these legal proceedings.

## Evolution of Cryptocurrency Seizures: From Silk Road to Bitfinex Hack and Beyond

The landscape of cryptocurrency seizures is marked by notable events that have shaped both the legal narrative and the evolving technology underpinning digital currencies. The infamous Silk Road case brought to light the intersection of dark web activities and the seizure of Bitcoin as a means of disrupting illegal transactions. 

Subsequently, the Bitfinex hack underscored the vulnerability of cryptocurrency exchanges, leading to a significant seizure to mitigate losses. The recent case involving James Zhong adds a layer of complexity, emphasizing the need for advanced tools to navigate the intricate paths of blockchain transactions. In this context, the utilization of data-backed insights, facilitated by Bitquery APIs, emerges as a crucial element in the pursuit of justice and the effective management of seized assets.

## Analyzing the US Government's Bitcoin Holdings and Tracking Seized Tokens: A Closer Look at Major Crypto Seizures

As of today,the US government is among the largest Bitcoin holders with over **$5B** in **BTC** (estimated; the actual holdings could be much larger) owing to the three major seizures mentioned above. The question that remains unanswered is where is the seized token currently? Is it present at 1 wallet, was it moved across exchanges gradually? Let’s use data to answer these questions. Before we delve into the details, let’s do a quick roundup of some of the biggest seizures of all time.

Between 2011 and 2013, Silk Road was the first major crypto-powered darknet market, Ross Ulbricht, the mastermind behind the Silk Road, faced arrest in 2013. However, the capture of James Zhong, the individual responsible for pilfering 50,000 Bitcoin from the notorious darknet market in 2012, did not occur until November 2021. Zhong pulled off the theft by exploiting a flaw in Silk Road’s Bitcoin withdrawal mechanism for vendors.

In our ongoing exploration of the US government's Bitcoin holdings and the intricacies surrounding major seizures, a pivotal moment occurred on March 7, 2023. The government executed a transfer of 9,000 BTC from the address (bc1qa5wkgaew2dkv56kfvj49j0av5nml45x9ek9hz6), strategically dividing the sum between Coinbase(0.1 BTC) and another address ([bc1qe7nk2nlnjewghgw4sgm0r89zkjzsurda7z4rdg](https://explorer.bitquery.io/bitcoin/address/bc1qmxjefnuy06v345v6vhwpwt05dztztmx4g3y7wp)) (transferred 8999.9 BTC). This transaction prompts a closer examination of blockchain data, leading us to delve into the web of transactions associated with the Silk Road seizure.

After looking at all the transactions pertaining to the wallet in question during the Silk road seizure, there were few observations

![txs](/blog/bitcoin-seized-us-government/image1.png)

After looking at the individual transactions and looking at the token flow, we found a transactions with a huge outflow 
![outflow](/blog/bitcoin-seized-us-government/image2.png)

We consider [this ](https://explorer.bitquery.io/bitcoin/address/bc1qmxjefnuy06v345v6vhwpwt05dztztmx4g3y7wp)address as a change address in transaction 31f1ad8cec13978f1b93403641eb0c08144a450d7266eaf1fbaa4fd859b093d0.

From this address, there are 3 main transactions to 3 different accounts:

![address](/blog/bitcoin-seized-us-government/image3.png)

On July 12th, 2023: there was incoming transaction from the account bc1qmxjefnuy06v345v6vhwpwt05dztztmx4g3y7wp which was under scrutiny during the James Zhong case. On March 31 2023, Court documents filed signaled that the US Government plans to sell ~41k BTC related to the James Zhong case in four tranches through 2023.

The 8.999k BTC was then sent to 2 different accounts (361yogPsasxJz6JAaFskmWZes14Gs38ikj) and (bc1qpg8e6fqt53lga68qnyxfnfh6gzc0d88d6mjmu7)

The tokens from 361yogPsasxJz6JAaFskmWZes14Gs38ikj were next sent to 10 different accounts with each receiving 79.2 BTC each

![361yogPsasxJz6JAaFskmWZes14Gs38ikj](/blog/bitcoin-seized-us-government/image4.png)

*Source; Money flow movement from 361yogPsasxJz6JAaFskmWZes14Gs38ikj via [bitquery explorer](https://explorer.bitquery.io/bitcoin/address/361yogPsasxJz6JAaFskmWZes14Gs38ikj/graph?from=2020-01-01&till=2023-12-07)*

On July 12th the Government moved 9,319 BTC, sending 8,200 to a third-party address (361yogPsasxJz6JAaFskmWZes14Gs38ikj). These coins eventually hit exchanges. 1,119 BTC were sent to address bc1qpg8e6fqt53lga68qnyxfnfh6gzc0d88d6mjmu7. [https://explorer.bitquery.io/bitcoin/tx/3c4e8e98890fa5c633d2a4f853751513e0a6558baa2318914eec73c727ef8316](https://blockchair.com/bitcoin/transaction/d43068e021701606724af16aeb8197a3530021d45a16d5b830b465da6c5ce9e6). This 1,119 BTC has since then not moved from this wallet and can hence be considered to still be in possession of the US Government.

However the tokens transferred from 361yogPsasxJz6JAaFskmWZes14Gs38ikj to 10 different wallets have been further sent to various other wallets. Utilising the money Flow API and the graphic visualisations, we were able to trace as many as 5 wallets holding over 10k+ in BTC. Let’s take a closer look at the money movement details for one of them

**3FZ4YzmmKn3kFhV8gx65PbTigw9d1APK4g**

![3FZ4YzmmKn3kFhV8gx65PbTigw9d1APK4g](/blog/bitcoin-seized-us-government/image5.png)

The account has over 1687 inbound transactions and 1717 outbound transactions both amounting to ~17k+ in BTC. The money flow from the receiver wallets follow a similar pattern.We pulled the in bound and outbound transactions data based on date filter using below query:

```graphql

query ($network: BitcoinNetwork!, $address: String!, $inboundDepth: Int!, $outboundDepth: Int!, $limit: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    inbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      depth
      count
    }
    outbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amount", limitBy: {each: "depth", limit: $limit}}
      date: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      depth
      count
    }
  }
}

{
  "inboundDepth": 1,
  "outboundDepth": 1,
  "limit": 10,
  "offset": 0,
  "network": "bitcoin",
  "address": "3FZ4YzmmKn3kFhV8gx65PbTigw9d1APK4g",
  "from": null,
  "till": null,
  "dateFormat": "%Y-%m"
}
```

A generic Bitquery API call was used to fetch information about outbound transfers first and then correlated this with the similar information from other accounts as well.

Apart from what we discussed for the silk road seizure, on March 7 2023, the Government [moved 40k BTC](https://explorer.bitquery.io/bitcoin/tx/d43068e021701606724af16aeb8197a3530021d45a16d5b830b465da6c5ce9e6), sending 9,825 to Coinbase to sell and 30,174 BTC to address.

Query used to fetch this data:

```graphql
query ($network: BitcoinNetwork!, $hash: String!, $limit: Int!, $offset: Int!) {
  bitcoin(network: $network) {
    outputs(
      txHash: {is: $hash}
      options: {asc: "outputIndex", limit: $limit, offset: $offset}
    ) {
      outputIndex
      address: outputAddress {
        address
        annotation
      }
      value
      value_usd: value(in: USD)
      outputDirection
      outputScriptType {
        annotation
        pattern
        type
      }
      outputScript
    }
  }
}
{
  "limit": 10,
  "offset": 0,
  "network": "bitcoin",
  "hash": "d43068e021701606724af16aeb8197a3530021d45a16d5b830b465da6c5ce9e6"
}
```


**bc1qf2yvj48mzkj7uf8lc2a9sa7w983qe256l5c8fs**. As per the data this address can be considered a change address in transaction [d43068e021701606724af16aeb8197a3530021d45a16d5b830b465da6c5ce9e6](https://blockchair.com/bitcoin/transaction/d43068e021701606724af16aeb8197a3530021d45a16d5b830b465da6c5ce9e6). This 30,174 BTC is considered to still be in possession of the US Government as there are no further outbound transactions from the account holding this BTC.

**Unraveling the Silk Road Heist: From Fake Vendor Accounts to Ongoing Blockchain Investigations**

For a quick background on where this token pool came from: James Zhong set up fake Silk Road vendor accounts solely for the purpose of laundering money, never actually listing anything for sale. Zhong funded the address associated with each vendor account with between 200 and 2,000 Bitcoin, and soon after would initiate multiple transactions to withdraw that amount in a matter of milliseconds. 

By doing this several times over several days, he was able to trick Silk Road’s system into letting him withdraw more than he deposited, ultimately stealing 50,000 Bitcoin. Soon after the theft, Zhong consolidated his 50,000 Bitcoin in two wallets, with 40,000 Bitcoin in one and 10,000 in the other. The funds sat untouched for over a year, until he gradually moved them to new wallets over several years from October 2013 to May 2019. Between December 2020 and January 2021, Zhong also moved a portion of the funds to a mixing service in an effort to obfuscate the flow of funds.

Since the blockchain is forever, so data enthusiasts and investigators can always return to old, suspicious transactions and investigate them using the latest methods.

## Unveiling Complex Transactions: Patterns in 30k BTC Holding and Intriguing Flows in the Blockchain

Intricacies within the blockchain continue to captivate our attention as we scrutinize the account **bc1qf2yvj48mzkj7uf8lc2a9sa7w983qe256l5c8fs**, which holds a steadfast **30,000 BTC**, seemingly untouched. A striking parallel unfolds as observed in prior instances, notably when **8,925 BTC** were intricately disbursed across 10 individual accounts. A similar pattern emerges with 9,825 BTC redirected to account (367YoRXht9x28BupqPaVnYfoM1xQP6XG4k) through transaction [53d14a37ac8f0a30f14dc061e4169cfbd65291d3cea540d366b292afc4802869](https://explorer.bitquery.io/bitcoin/tx/53d14a37ac8f0a30f14dc061e4169cfbd65291d3cea540d366b292afc4802869).

Subsequently, 93.49 BTC fans out to 10 distinct accounts, each further subdividing funds into equal denominations. Notably, one wallet receives ~70 BTC not from the initial 8.9k BTC chain but from an additional 10 accounts, showcasing a fascinating repetition of denominations. The account (1H8vVaiKxaEG2vCDcQ7XuneoZMVk2fhgDu) also veils its holdings through indirect fund flows, adding another layer of complexity.

On March 14th, 2023 this enigmatic wallet received approximately 2.5k BTC, featuring a distinctive 476.71 BTC transaction ([transaction details](https://explorer.bitquery.io/bitcoin/tx/5c19e0cd6d1ea37c6ea525c6bb75cb3ebede833ebd258a9b25f79c42c17abc06)), intensifying the intrigue surrounding these intricate blockchain maneuvers

![5c19e0cd6d1ea37c6ea525c6bb75cb3ebede833ebd258a9b25f79c42c17abc06](/blog/bitcoin-seized-us-government/image6.png)

_Reference data pulled from the API_

As a conclusion, after July 12th, there has been some movement of funds in September amongst the wallets involved at level. While the wallets involved with the three culprit wallets during the 3 major seize events have had a lot of activity, however since the amounts are small and the fact that they are circulated across a multitude of wallets, it’s uncertain that indeed all these wallets are owned by the US government. 


However, one things that’s sure is confiscations play a crucial role in combating crime associated with cryptocurrencies. It does ensure that it’s not used for any illegal and illicity activities. Though the tokens for the other hacks were seized and are still held by a small group of wallets, Bitfinex received $312,219.71 in cash and 6.917 BCH from the United States Department of Homeland Security (DHS) after the assets were stolen from the exchange. According to the US government agency, the total stolen bitcoin was valued at approximately $4.5 billion of which 94,000 bitcoin, valued at around $3.6 billion was recovered.

## Conclusion

As we navigate the intricate web of cryptocurrency regulations and law enforcement, it becomes evident that blockchain technology not only underpins the decentralized nature of digital currencies but also serves as a powerful ally in the hands of those seeking justice. The ability to track and manage Bitcoin seized by the US government through blockchain data not only enhances transparency but also opens avenues for more efficient and accountable handling of seized assets. As we look to the future, the synergy between blockchain technology and legal frameworks promises to redefine the landscape of asset tracking and forfeiture, providing a glimpse into a more secure and regulated digital financial ecosystem.

---

*The information provided in this material is published solely for educational and informational purposes. It does not constitute a legal, financial audit, accounting, or investment advice. The article's content is based on the author's own research and, understanding and reasoning. The mention of specific companies, tokens, currencies, groups, or individuals does not imply any endorsement, affiliation, or association with them and is not intended to accuse any person of any crime, violation, or misdemeanor. The reader is strongly advised to conduct their own research and consult with qualified professionals before making any investment decisions. Bitquery shall not be liable for any losses or damages arising from the use of this material.*

*Blog written by guest author Laisha*



]]></description>
        </item>
        <item>
            <title><![CDATA[Exploring Latest Liquid Staking Protocol - Diva Staking]]></title>
            <link>https://bitquery.io/blog/exploring-new-liquid-staking-protocol</link>
            <guid>https://bitquery.io/blog/exploring-new-liquid-staking-protocol</guid>
            <pubDate>Thu, 21 Dec 2023 11:53:07 GMT</pubDate>
            <description><![CDATA[
In the dynamic world of [decentralized finance](https://bitquery.io/products/dex) (DeFi), platforms like Lido have assumed a crucial role, providing users with the means to stake assets while retaining liquidity. However, a recent headline has thrust a new player into the spotlight. Diva, a liquid staking platform, has initiated a 'vampire attack' on the industry giant, Lido. Through its innovative liquid staking solution and enticing incentives, Diva has successfully attracted a substantial amount of staked ETH.

Before delving into the intricacies, let’s take a look at what ‘Liquid staking’ and ‘Vampire attack’ in DeFi are all about.

## **Liquid Staking**

With the advent of [Proof of Stake](https://docs.bitquery.io/v1/docs/Schema/ethereum2/overview) (PoS) chains, it is required to stake native crypto assets to validate a block. But in this case, funds are locked for a certain duration of time, depending on the chain. Users also needed to go through an unbonding phase which didn't give any reward. 

This is where protocols like Lido came into the picture. These liquid staking protocols provide an alternate platform to the users where they can stake their assets in return for protocol-specific liquid tokens proportional to their stake. 

These protocols further team up with different Defi projects to increase the utility of their native token, also providing a solid foundation for activities like lending protocols and yield farming activities. Moreover, after the ‘merge’, it became more prominent within the [Ethereum](https://bitquery.io/blockchains/ethereum-blockchain-api) ecosystem.

Lido is the biggest player in this space with a TVL of over $18 billion, far beyond any protocol next in the list. Nonetheless, we have other protocols like Ribbon, and Pendle, tapping into the liquidity of stETH with various structured products and liquidity-based incentives. But the rapid growth of Diva, still being at a developing stage project, is worth looking at.

## **Vampire Attack**

This term gained notoriety through SushiSwap's move over [Uniswap](https://bitquery.io/blog/top-uniswap-APIs), attracting over $1 billion in liquidity in less than a week. This strategy is born out of competition, where newer protocols can leverage to grow adoption and TVL. This is done by siphoning liquidity from an existing protocol by incentivizing its liquidity providers. 

The vampire attack begins by enticing liquidity providers from an existing platform to stake their LP (Liquidity Provider) tokens on the new platform, promising additional rewards in the form of the platform's native token. 

In the aftermath of a successful attack, we see; the dominant player experiencing a decline in its influence while the new player captures some of its TVL, users, and proponents. This we can see in the case of Diva too, which in just two weeks, has witnessed a staggering 600% surge in TVL, currently holding over 17k stETH, valued at over $37 million.

Diva has devised a novel liquid staking solution powered by Distributed Validator Technology (DVT), positioning itself as a compelling alternative to Lido. But why Lido? Apart from the obvious immense TVL, we need to look at the market activity related to Lido and what made users switch from such an established platform.

If not the core, one factor is sure decentralism and community voice for it. Lido is nearing the critical 33% threshold in Ethereum staking, which raises concerns within the Ethereum community. This isn't just a numerical milestone; it signifies a significant challenge, akin to breaching a barrier crucial for maintaining Ethereum's decentralization and neutrality.

![Remarks by eric.eth on dominance of Lido in liquid staking ecosystem](/blog/exploring-new-liquid-staking-protocol/eric-eth-s-remarks-on-lido-dominance.jpeg)

Many in the Ethereum community are wary of Lido surpassing this threshold, seeing it as a growing threat to Ethereum's decentralization and credible neutrality.

## **Introduction of Diva**

DVT technology, also known as "Squad Staking," holds the promise of enhancing Ethereum's network stability, increasing the total number of Ethereum validators, and boosting staking rewards in $ETH. Diva is leveraging DVT to develop a novel staking protocol that distinguishes itself through its technical advancements.

To participate, simply deposit your stETH (or regular ETH) into Diva's enzyme vaults. Your $DIVA rewards will be determined by the amount and duration of your deposits. Early depositors are incentivized with a higher $DIVA reward structure. Node Operators need only deposit >1 ETH to qualify for staking validator eligibility. In Diva’s model, each validator is comprised of 16 Ether deposits made

by individual operators in 1 Ether increments, along with an additional 16 Ether deposits dedicated to the LSD token. This strategy significantly expands the network's node count while enhancing security by distributing the workload across 16 operators per validator.

Karpatkey, a leading DAO treasury management platform in DeFi, has made a significant contribution to Diva's growth by depositing 305 stETH (approximately $500,000) into its Vampire Attack contracts. Gnosis, another prominent player in the decentralised finance space, has further bolstered Diva's liquidity by depositing 3,011 stETH (equivalent to $4.7 million) into its vampire attack vault. 

The Diva airdrop has been well-received, garnering attention and support from various members of the Ethereum community. With 40% of $DIVA tokens allocated to DAO reserves, Diva is well-positioned to fuel liquidity mining initiatives, stimulate divETH liquidity, and prepare for an upcoming vampire attack on Lido.

Combining all, we see Diva’s TVL jump over 300% over a month and user counts by 250%.

![Graph for TVL of Diva staking protocol](/blog/exploring-new-liquid-staking-protocol/diva-tvl.png)

## **Dominance of stETH in DeFi**

When it comes to LSD Dominance by Market Cap, stETH dominates with an impressive 73%. In the broader DeFi space, three major protocols, namely Lido (48.7%), Aave v2 (28%), and Curve (11.3%), collectively hold over 80% of stETH. In contrast, Diva's stETH holding is still below 1%.

Including lendings, liquidity pools, and yield protocols, stETH holds 39% circulation in DeFi. The amount of (w)stETH in DeFi has increased steadily over the period. 

As of November 19, 2023, there is over 2 million (w)stETH in DeFi. The majority of (w)stETH in DeFi is held in liquidity pools. There are over 1.5 million (w)stETH in liquidity pools. This is followed by lendings, with over 400,000 (w)stETH. Other protocols hold the remaining (w)stETH. No doubt it is one of the prime tokens to target. 

Needless to say, for Diva to keep growing, it needs to solidify its hold within the lending space with its token.

## **How Diva stands against the giant**

Based on data from Bitquery data, as of November 2023, there are 17,585.8 stETH held by 700 DIVA depositors, and the top 5 depositors collectively own almost 40% of the [total stake (in Diva Early Stakers stETH Vault)](https://explorer.bitquery.io/ethereum/token/0x1ce8aAfb51e79F6BDc0EF2eBd6fD34b00620f6dB). Moreover, Divascan states the validator's number to be 1040 and the total nodes are 402. 
Currently, Lido's focus is on stETH, but there's potential for expansion within their ecosystem.

Lido has a significant stake, with over 9 million ETH, accounting for 31.86% of all ETH deposits, contributed by 200,122 unique depositors. 

The growth of lido; unique holders, TVL, and stETH circulating have all been growing at a faster rate to offset the loss to Diva. This growth indicates a notable surge occurring concurrently with Diva receiving stake, revealing that the Total Value Locked (TVL) did not experience a significant negative impact.

Both Diva and Lido offer convenient staking options for Ethereum holders. Diva requires no minimum ETH for staking and offers a 90% net staking reward, while Lido requires a minimum of 32 ETH. Diva's 16-node per validator redundancy compares to Lido's 1-node per validator setup. The choice between Diva and Lido depends on individual preferences and risk tolerance.

Nonetheless, on top of the total stats, we can also find the daily unique sender users on each platform, which is 5 or less on Diva and 650-800 on Lido.

![Unique Receivers for Diva Early Staker stETH vault](/blog/exploring-new-liquid-staking-protocol/diva-unique-receivers.png)

![Unique Senders for Diva Early Staker stETH vault](/blog/exploring-new-liquid-staking-protocol/diva-unique-senders.png)

Although competitors, we can see Diva solely as a loot to Lido. Possibly, in the short term, this might attract more Lido deposits by encouraging stEth purchases, the primary emphasis lies in recognizing that a robust Ethereum network benefits all stakeholders, including Lido. Diva is poised to emerge as a high-performing LSD soon.

## **About Bitquery**

[**Bitquery**](https://bitquery.io/?utm_source=blog&utm_campaign=ethereum_staking) is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

-   **APIs** - [Explore API](https://ide.bitquery.io/streaming?utm_source=blog&utm_campaign=ethereum_staking): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

-   **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=blog&utm_campaign=ethereum_staking): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

-   **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/data-on-demand?utm_source=blog&utm_campaign=ethereum_staking): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

-   **Explorer** - [Try Explorer](http://explorer.bitquery.io?utm_source=blog&utm_campaign=ethereum_staking): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info?utm_source=blog&utm_campaign=ethereum_staking). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.]]></description>
        </item>
        <item>
            <title><![CDATA[Cardano APIs: Staking, Transactions, Blocks, and More]]></title>
            <link>https://bitquery.io/blog/cardano-api</link>
            <guid>https://bitquery.io/blog/cardano-api</guid>
            <pubDate>Mon, 18 Dec 2023 11:53:07 GMT</pubDate>
            <description><![CDATA[
Blockchain technology has gone beyond its initial purpose of cryptocurrencies by moving into advanced aspects such as decentralized applications, protocols, and smart contracts. 

Cardano, a third-generation blockchain platform, has rapidly emerged as a prominent player in this space. Cardano APIs are widely used by developers to harness data and build applications with the Cardano blockchain. For example, [Bitquery](https://bitquery.io/?utm_source=blog&utm_campaign=cardano_api) provides a host of APIs that developers can use for interacting with the Cardano chain. 

In this article, we'll explore many Cardano APIs, and how you can leverage their capabilities for integrating them with your own applications. 

## **What is Cardano?**

Founded in 2015 (but implemented in 2017) by Charles Hoskinson, one of the co-founders of Ethereum, [Cardano](https://bitquery.io/blockchains/cardano-blockchain-api?utm_source=blog&utm_campaign=cardano_api) is a rapidly growing blockchain platform that aims to provide a secure and scalable infrastructure. 

It is a proof-of-stake decentralized blockchain, as opposed to other blockchains, which are proof-of-work blockchains. [Cardano](https://explorer.bitquery.io/cardano?utm_source=blog&utm_campaign=cardano_api) uses a research-driven approach and is a sustainable alternative because of its energy-efficiency. The native cryptocurrency of Cardano is ADA (named after Augusta Ada King, Countess of Lovelace, considered as the pioneer of computer programming).

Cardano's architecture is multi-layered and consists of:

- Settlement or accounting layer (for ADA transactions) 
- Computation layer (for running smart contracts and dApps)

Cardono’s consensus mechanism is called Ouroboros and it uses mathematical principles to provide a highly secure and safe network. 

## **How does Cardano help developers?**

Key advantages of Cardano are:
- Energy efficiency
- Quicker and scalable transactions
- Peer-reviewed research

[Cardano](https://www.forbes.com/advisor/investing/cryptocurrency/cardano-ada/) facilitates developers to create other decentralized applications or dApps, tokens, smart contracts, use cases for banking and finance, and more on the fastest-growing network.

One of the great features of Cardano is its security and stability. This means the developers can be sure that their code will be executed correctly, as intended. 

## **Overview of Cardano APIs**

The Cardano API acts as a bridge between developers and the Cardano blockchain and provides a set of tools and functionalities for building and integrating applications with the chain.  

There are several APIs you can use to get data on Cardano:

- Cardano Explorer API: The [Cardano Explorer API](https://explorer.bitquery.io/cardano?utm_source=blog&utm_campaign=cardano_api) provides comprehensive data on Cardano blockchain. There are many [providers](https://medium.com/coinmonks/top-cardano-api-providers-in-2023-dfab442d5c29) of Cardano Explorer APIs. [Bitquery](https://explorer.bitquery.io/cardano/transactions?utm_source=blog&utm_campaign=cardano_api) is one of the leading providers with an easy-to-use interface for obtaining indexed data from the Cardano blockchain. 

- Cardano Node API: Retrieves real-time data from the Cardano blockchain. Developers can use the Node API to query information about blocks, transactions, addresses, and more. 

- Cardano Wallet API: Simplifies the integration of wallet functionalities into dApps. Developers can use this API to create and manage wallets, check balances, send and receive transactions, and explore transaction history. 

- Metadata API: The [Metadata API](https://developers.cardano.org/docs/transaction-metadata/retrieving-metadata/) enables developers to attach metadata to transactions, making it possible to include relevant information such as text, links, or even media files. 

To learn more about Cardano APIs, refer to the [Cardano developer documentation](https://developers.cardano.org/docs/get-started/blockfrost/cardano-api) and [Cardano API documentation](https://docs.bitquery.io/v1/docs/category/cardano?utm_source=blog&utm_campaign=cardano_api).

## **Cardano Blockchain Explorer API - Overview of Cardano**

To view key statistics of Cardano on chain data, use the [Bitquery Explorer](https://explorer.bitquery.io/cardano). It provides an easy user interface for retrieving data including transactions, addresses, blocks, and more. Bitquery also has an in-built [GraphQL IDE](https://ide.bitquery.io/?utm_source=blog&utm_campaign=cardano_api), which you can use to write custom queries.

![Home page of Bitquery Cardano Explorer](/blog/cardano-api/cardano-explorer.png)

Tip: If you’re new to building queries, simply click on the Get API button on the bottom right of the screen to get your query.  For example, to get the query for an overview of transactions on the chain, click the Get API button. 

The query is displayed in the GraphQL IDE  as follows:

```graphql
{
    cardano(network: cardano) {
        blocks(
            options: {desc: "height", limit: 10, offset: 0}
            time: {since: "2023-11-30T06:10:00Z", till: "2023-11-30T06:17:00Z"}
        ) {
            timestamp {
                time(format: "%Y-%m-%d %H:%M:%S")
            }
            height
            epoch
            transactionCount
            blockSize
        }
    }
}
```

Let’s discuss how you can leverage other Bitquery APIs to obtain Cardano on chain data.  

## **Cardano Blocks API** 

### **Retrieving Blocks Data**

The Cardano Blocks API by Bitquery allows to you retrieve data on all the blocks or a specific block on the Cardano chain. 

To retrieve specific block data, either use the Bitquery Explorer or try building the query in [IDE](https://ide.bitquery.io/?utm_source=blog&utm_campaign=cardano_api). Let’s write the query to obtain specific block data, say 9612373. 

Open the [query](https://ide.bitquery.io/cardano-blocks-api---block-details?utm_source=blog&utm_campaign=cardano_api) in IDE and replace height with the block number as shown here. Replace network variable with “cardano” as shown.

```graphql
query  {
    cardano(network: cardano) {
        blocks(height: {is: 9612373}) {
            timestamp {
                time(format: "%Y-%m-%d %H:%M:%S")
            }
            blockHash
            blockSize
            blockVersion
            transactionCount
            epoch
            opCert
            slot
            slotInEpoch
            slotLeaderDescription
            slotLeaderHash
            vrfKey
        }
    }
}
```

## **Cardano Transactions API**

You can retrieve all the transactions done on Cardano blockchain easily from the Cardano Transactions API. This includes the value of ADA traded during a specific period, number of mints, fees paid for the transaction, inputs and outputs for the transaction and more. 

### **Obtaining Recent Transactions Data**

Let’s try to get all transactions done on the chain on 29th November 2023. 

Open IDE and write the [query](https://ide.bitquery.io/cardano-transaction-api---recent-transaction-data?utm_source=blog&utm_campaign=cardano_api) as shown. Add the above date for the date parameter and select the network as Cardano. 

```graphql
{
    cardano(network: cardano) {
        transactions(options: {limit: 10}, date: {is: "2023-11-29"}) {
            block {
                timestamp {
                    time(format: "%Y-%m-%d %H:%M:%S")
                }
                height
            }
            inputValue
            input_value_usd: inputValue(in: USD)
            feeValue
            fee_value_usd: feeValue(in: USD)
            mintCount
            withdrawalValue
            withdrawalCount
            outputValue
        }
    }
}
```

This gives you data on the chain for the selected date and provides information on fees paid, number of mints, number of withdrawals, input and output values of the transaction as specified in the query. 

### **Obtaining Outbound Transfers Data**

You can also check for outbound transfers from a specific address (specify the address in the address variable) to know the amount of ADA transfers. Open this [query](https://ide.bitquery.io/cardano-transfers?utm_source=blog&utm_campaign=cardano_api) in IDE and set the value in USD to find out the number of outbound transfers and their value on a given date. In this case, the address is addr1v96fnqhewa22ytrtc694qd0rzst24krwd03etjul2taaxdsshxzqx.

```graphql
{
    cardano(network: cardano) {
        inputs(
            currency: {is: "ADA"}
            date: {since: "2023-11-30", till: "2023-12-19"}
            inputAddress: {is: "addr1v96fnqhewa22ytrtc694qd0rzst24krwd03etjul2taaxdsshxzqx"}
            options: {asc: "date.date"}
        ) {
            date: date {
                date(format: "%Y-%m-%d")
            }
            count: countBigInt(uniq: transactions)
            value(in: USD)
        }
    }
}
```

This helps developers to understand the transaction history of a specific Cardano address along with its blocks. Similarly, you can build queries for transaction inflows and money flows. 

## **Cardano Balances API** 

### **Retrieving Balances Data**

To check for transaction balances on the chain, add the parameter “balance” from the IDE schema to your query. For example, to check for unspent amounts, use the following [query](https://ide.bitquery.io/cardano-address-balances?utm_source=blog&utm_campaign=cardano_api) in IDE. 

```graphql
{
    cardano(network: cardano) {
        inputs(
            currency: {is: "ADA"}
            inputAddress: {is: "addr1v96fnqhewa22ytrtc694qd0rzst24krwd03etjul2taaxdsshxzqx"}
        ) {
            count
            value
            value_usd: value(in: USD)
            min_date: minimum(of: date)
            max_date: maximum(of: date)
        }
        outputs(
            currency: {is: "ADA"}
            outputAddress: {is: "addr1v96fnqhewa22ytrtc694qd0rzst24krwd03etjul2taaxdsshxzqx"}
        ) {
            count
            value
            value_usd: value(in: USD)
            min_date: minimum(of: date)
            max_date: maximum(of: date)
        }
        addressStats(
            address: {is: "addr1v96fnqhewa22ytrtc694qd0rzst24krwd03etjul2taaxdsshxzqx"}
        ) {
            address {
                balance(in: USD)
            }
        }
    }
}
```

## **Cardano Coinpath API** 

### **Tracking Funds** 

This API helps in tracing and tracking funds between addresses. Bitquery provides a visual representation of the same. 

However, if you want to use this query in your application, you can build the query in IDE. 

Let’s say you want to track funds (both inflows and outflows) from Address 1 (addr1q8hq60cyqg68aqfzs9geq084yj0tvvpm7rnckn6gsf3ahyrwak0antyvs6lyd7ymqg2zp6q8999vsdadmpm70x93f8msd7uwux).

Open the [query](https://ide.bitquery.io/cardano-coinpath-example?utm_source=blog&utm_campaign=cardano_api) in IDE and replace the variable address with the one given above. 

```graphql
{
    cardano(network: cardano) {
        inbound: coinpath(
            currency: {is: "ADA"}
            initialAddress: {is: "addr1q8hq60cyqg68aqfzs9geq084yj0tvvpm7rnckn6gsf3ahyrwak0antyvs6lyd7ymqg2zp6q8999vsdadmpm70x93f8msd7uwux"}
            depth: {lteq: 2}
            options: {direction: inbound, asc: "depth", desc: "amount", limitBy: {each: "depth", limit: 2}}
            date: {since: "2023-11-30", till: "2023-12-18"}
        ) {
            sender {
                address
                annotation
            }
            receiver {
                address
                annotation
            }
            amount
            depth
            count
        }
        outbound: coinpath(
            currency: {is: "ADA"}
            initialAddress: {is: "addr1q8hq60cyqg68aqfzs9geq084yj0tvvpm7rnckn6gsf3ahyrwak0antyvs6lyd7ymqg2zp6q8999vsdadmpm70x93f8msd7uwux"}
            depth: {lteq: 2}
            options: {asc: "depth", desc: "amount", limitBy: {each: "depth", limit: 2}}
            date: {since: "2023-11-30", till: "2023-12-18"}
        ) {
            sender {
                address
                annotation
            }
            receiver {
                address
                annotation
            }
            amount
            depth
            count
        }
    }
}
```

You can edit this to exclude outbound if you want information only on inflows to the address and vice versa. 

## **Cardano Staking API** 

### **Getting Staking Rewards Information**

Cardano is a proof-of stake system, where users can hold crypto (ADA, in this case) to earn rewards. It involves nodes that can open blocks on Cardano to hold and stake ADA over a long period. To get data on which address or node is using the staking function and the amount of rewards earned, use the Cardano Staking API. 

For example, to find out the staking information for our address addr1q8hq60cyqg68aqfzs9geq084yj0tvvpm7rnckn6gsf3ahyrwak0antyvs6lyd7ymqg2zp6q8999vsdadmpm70x93f8msd7uwux,  use the following [query](https://ide.bitquery.io/cardano-staking-details-of-an-address?utm_source=blog&utm_campaign=cardano_api) in IDE. 

```graphql
{
    cardano {
        address(
            address: {is: "addr1q8hq60cyqg68aqfzs9geq084yj0tvvpm7rnckn6gsf3ahyrwak0antyvs6lyd7ymqg2zp6q8999vsdadmpm70x93f8msd7uwux"}
        ) {
            address {
                address
            }
            staking {
                rewardsAmount
                stakedAmount
            }
        }
    }
}
```

## **Cardano Mint API **

### **Retrieving Number of Tokens Minted on a Block**

Mints are events of new tokens created on blocks. This API helps obtain data on the number of tokens minted, the block where the tokens were minted, the transaction that contained the mints, and the currency transacted.

For example, let’s find out the number of tokens minted in the block, 9613382. To do so, open this [query](https://ide.bitquery.io/cardano-staking-details-of-an-address?utm_source=blog&utm_campaign=cardano_api) in IDE and specify the height variable as 9613382. 

```graphql
{
  cardano {
    address(
        address: {is: "addr1q8hq60cyqg68aqfzs9geq084yj0tvvpm7rnckn6gsf3ahyrwak0antyvs6lyd7ymqg2zp6q8999vsdadmpm70x93f8msd7uwux"}
    ) {
        address {
            address
        }
        staking {
            rewardsAmount
            stakedAmount
        }
    }
  }
}
```

## **Cardano Wallet APIs**

### **Address API - Getting Wallet Details**

To get data on Cardano wallets, use the Cardano Address API from Bitquery. Open the [query](https://ide.bitquery.io/get-details-of-cardano-wallet?utm_source=blog&utm_campaign=cardano_api) in IDE. Specify the address for which you want the wallet details, as given here. The API returns information on the wallet balance and staking rewards information.

```graphql
{
    cardano(network: cardano) {
        address(
            address: {is: "addr1q8wp4tc65hgvvff0lg2dgp8dnd2hy5u4vyz9mgk8qancwmtdf8tun55syv9gvfd0dgdhx02vlyg6dp56up92a5l9qxhs9nhrfy"}
        ) {
            address {
                address
                annotation
            }
            balance {
                value
                currency {
                    name
                    decimals
                    address
                    tokenType
                    symbol
                    tokenId
                }
            }
            staking {
                controlledTotalStake
                rewardsAmount
                rewardsAvailable
                stakedAmount
                stakedAmountWithRewards
                withdrawnAmount
                address {
                    address
                    annotation
                }
            }
        }
    }
}
```

### **AddressStats API - Getting Wallet Inflows/Outflows Data**

Use this API to get more details about wallets - including inflows, outflows, and other transactional details. Specify an address to find out details of its associated wallet as given [here](https://ide.bitquery.io/inflows-and-outflows-for-cardano-wallet?utm_source=blog&utm_campaign=cardano_api). This API also provides details on unique receivers and senders.

```graphql
{
    cardano(network: cardano) {
        addressStats(
            address: {is: "addr1q8wp4tc65hgvvff0lg2dgp8dnd2hy5u4vyz9mgk8qancwmtdf8tun55syv9gvfd0dgdhx02vlyg6dp56up92a5l9qxhs9nhrfy"}
        ) {
            address {
                address
                annotation
                balance
                firstActive {
                    time
                }
                inboundTransactions
                inflows
                lastActive {
                    time
                }
                outboundTransactions
                outflows
                uniqueDaysWithTransfers
                uniqueReceivers
                uniqueSenders
            }
        }
    }
}
```

## **Building with Cardano API**

Developers looking to harness the power of the Cardano blockchain should keep the following in mind when integrating Cardano API into their applications.

Whether querying for blockchain information or managing wallets, selecting the right Cardano API endpoints is crucial for efficient and effective development. 

Always refer to the Cardano API documentation, which is a valuable resource for developers. The documentation provides detailed information about available endpoints, request parameters, and response formats. 

Additionally, engaging with the Cardano community can offer insights, best practices, and solutions to common challenges.

## **About Bitquery**

[**Bitquery**](https://bitquery.io/?utm_source=blog&utm_campaign=cardano_api) is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

-   **APIs** - [Explore API](https://ide.bitquery.io/streaming?utm_source=blog&utm_campaign=cardano_api): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

-   **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=blog&utm_campaign=cardano_api): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

-   **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/data-on-demand?utm_source=blog&utm_campaign=cardano_api): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

-   **Explorer** - [Try Explorer](http://explorer.bitquery.io?utm_source=blog&utm_campaign=cardano_api): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info?utm_source=blog&utm_campaign=cardano_api). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.

This article has been written by guest writer [Aparna Sridhar](https://www.linkedin.com/in/aparna-sridhar-0a09b03/)]]></description>
        </item>
        <item>
            <title><![CDATA[How to Conduct Airdrop Analysis for Free]]></title>
            <link>https://bitquery.io/blog/airdrop</link>
            <guid>https://bitquery.io/blog/airdrop</guid>
            <pubDate>Thu, 14 Dec 2023 05:35:07 GMT</pubDate>
            <description><![CDATA[


# Introduction

Crypto airdrops, a method frequently used by blockchain projects to distribute tokens, can be perceived as a lucrative opportunity to expand your cryptocurrency holdings. For instance, notable instances like Uniswap's UNI token airdrop showcased early adopters receiving significant sums, with some securing over $10,000 worth of tokens.

However, navigating the airdrop landscape requires a cautious approach due to potential security risks. While these events offer a chance to amass wealth, the crypto sphere is rife with malicious actors seeking to exploit unsuspecting participants. Scammers perpetually seek access to users' wallets, making it crucial to remain vigilant and informed.

In this comprehensive analysis, we delve into the fundamentals of crypto airdrops, shedding light on the mechanisms and strategies to safeguard your assets when pursuing complimentary crypto tokens all through a lens of on-chain data

 # What is an Airdrop

A Crypto airdrop is a giveaway by blockchain projects, offering free tokens or coins to their community. It's seen as a gesture of appreciation or a marketing tactic to boost interest in a new project, similar to a startup distributing free samples. These events can be significant for capital growth, according to figures like Gigantic Rebirth.

For crypto projects, airdrops generate buzz and attract users, while users get a chance at free cryptocurrency tokens or even valuable NFTs. Although many airdrops offer minimal token amounts, some, like Aptos (APT) and Arbitrum (ARB) last year, distributed millions in value, making airdrop farming lucrative

# How to Identify Airdrops through onchain data

We can analyze the data of airdrops through the common link between all of them making multiple transfers in a single transaction which we can get through this [query](https://ide.bitquery.io/AirDrops-and-NFT-Drops) on bitquery APIs

```
{

EVM(network: eth, dataset: archive) {

Transfers(

orderBy: {descendingByField: "count"}

limit: {count: 20}

where: {Block: {Date: {after: "2023-10-01"}}, Transfer: {Currency: {Fungible: true}}}

) {

Transaction {

Hash

}

count

Fee {

SenderFee

}

Transfer {

Currency {

Name

Fungible

SmartContract

}

}

}

}

}
```
  

# How to Check your wallet got Airdrop or not

I seldom open my wallet directly; instead, I rely on Bitquery Explorer for all my essential information as it provides comprehensive details. Furthermore, if you prefer not to add all those tokens to your wallet immediately, you have the option to skip that step. Just monitor Bitquery Explorer to track incoming transactions. When you're ready to transfer tokens to an exchange, you can add the specific tokens at that time.

The 1st thing to do is copy your ether public key that you used in the airdrop then go to [https://explorer.bitquery.io](https://explorer.bitquery.io) Paste your public address into the search bar.

![](https://lh7-us.googleusercontent.com/AkVjwaujxOHbe-gtYpHgy3KUEkSRfJ9FOQ7sV1pujTgf7It_-Dq9GL0Q2QQckQ0C4L1pX0z66hB0W91mFyAZSD8DwdfvyGxc_6pDhb2kiiogpm3HnfHhvS1i44FDcf8A1A4SuNL9CJKE8xTo6FPb9W8)

  

This is what my current ETH wallet for airdrops looks like. Its got just under $5 worth of Ethereum

Cick on Any Token from the list, take its smart contract address and analyze all the data about it from inflow to gini coefficient, go to your app wallet and click on add custom token. Enter the details and click save.

  

# Check Who got the airdrop from a Particular Project

  

We can easily check who got a particular airdrop just by getting the Transaction Hash, for example we have a fake phishing transaction hash “0x34455829dc9ca3a5fa880c163d6f6c2e9266b163b0ae015b894b2dceb63c8d47” and we can open up it into [bitquery explorer and see the tracing](https://explorer.bitquery.io/ethereum/tx/0x34455829dc9ca3a5fa880c163d6f6c2e9266b163b0ae015b894b2dceb63c8d47/tracing) of funds and find each of the address which got the specific token from the airdrop

![](https://lh7-us.googleusercontent.com/SzpTCPnDiVxR1nFwFgMOVUA6uo7MJ3j7TTAD6unSmRisQA9Ke307wFhNWqrRX8ybggcs4KbxrN98EXfPNnVNDLNTiCvg6nY6g8bErDIpVanQQ7ME-EPQj3ZiyYOI-MQvmlzYnleOLQmMmecbHVant0Q)

  

# Cost of AirdroppingAirdropppig Tokens

The cost for airdropping tokens is gradually decreasing due to L2’s and upcoming scalability solutions but still, the OG and most phished on-chain is Ethereum and the gas price for each airdrop is the initial cost for the wallet that airdropped with some optional cost such as creating a liquidity pool etc.

We can get the gas cost using the below [query](https://ide.bitquery.io/AirDrops-and-NFT-Drops-Gas) for each of the airdrops which is proportional to the no. of wallets included for transfers in a transaction

```
{

EVM(network: eth, dataset: combined) {

Transfers(

orderBy: {descendingByField: "count"}

limit: {count: 10}

where: {Block: {Date: {after: "2023-12-01"}}, Transfer: {Currency: {Fungible: true}}}

) {

Transaction {

Hash

}

count

Fee {

SenderFee

} } } }

```  
  
  

# The Dark Side of Crypto Airdrops

Of course, the world of crypto airdrops isn’t all free tokens and happy dances in the Metaverse. There’s a darker side to it that’s plagued with potential scams and risks. Let’s put on our detective hats and sniff out these potential pitfalls.

In the crypto world, not every airdrop is your friend. Like a wolf in sheep’s clothing, bad actors are waiting to pounce on unsuspecting users. These scam airdrops often lure users with the promise of free tokens, only to steal their information or funds.

There are mainly 3 types of Phishing attacks that can happen out of them 2 happens on web servers and the last one is a bit more advanced and uses on-chain techniques

 **Private Key Scam** - It is the most common and lethal scam.
 
Scammers will create fake websites with malicious code designed to hack your crypto wallet and steal your private keys or seed phrases. Once a scammer has your keys, it’s game over. They’ll have full control over your wallet and can drain all your crypto assets in a few minutes.

These scam sites can be hard to recognize because they’ll often look like an exact replica of trusted sites like OpenSea or Uniswap. They might also run fake Twitter profiles and share dangerous links.

**Advance Fee Scam** - In this case, the scammers ask users to send them a certain amount of cryptocurrency to ‘qualify’ for the airdrop. It’s like someone asking you to pay for a free sample. If it sounds too good to be true, that’s because it is. Remember, legitimate airdrops will never ask you to send them funds.

**Onchain Scams** - Nowadays, scammers target using distributing actual tokens and using them in various ways to manipulate the Wallet users, we can categorise them into 2 different types

-   **Airdropping Token Linked with an external website** - It is quite similar to the "private key" scam, but intead of using social media platforms such as Twitter etc., scammers airdrops token linked with a malicious website which when visited upon steals the private key.  
      
    An attack of same kind can be analyzed on [Explorer](https://explorer.bitquery.io/ethereum/tx/0x11de12da3343dd383bb37a2922fa306281fe19ffcae04397bd095c65de86ca53/tracing), In this transaction the scammer airdropped token named getETH.org which when clicked upon in metamask led to a fake website of the same name  
      
    It only cost the scammer only 0.0224241248 ETH - $45.49 which is the gas fees and is quite beneficial even if only 1 of the 1000 wallets go the website
    
-   **Shitcoin Liquidating** - This method is less harmful for the people who got the airdrop and is a gamble from the scammer.  
    So it works like the scammer makes a Liquidity Pool on Uniswap and provides some liquidity for the scammer token and airdrops it to people so they can transact on it and increase the daily volume of the token while keeping a amount of tokens to himself and when the enough people have bought the token which increases the price of it, he simply sells all of his tokens making a profit and making the coin dead by lowering it's price and bringing panic in holders.  
      
    To analyze this type of attacks first we will use the [query](http://ide.bitquery.io/AirDrops-and-NFT-Drops) above to get a list of airdrops and then analyze their charts and liquidity using the [bitquery DexTrades API](https://bitquery.io/products/dex), below is a chart for token discussed above which can be made using [OHLC APIs](https://docs.bitquery.io/docs/usecases/tradingview-advanced-charts/getting-started/)
    

![](https://lh7-us.googleusercontent.com/qeiRa4_SzDZGbrC7U6r_9xCA5SBqI4yLwIxB7lhgQFo8ZTeHtrdDV2EG8Qd7mVbTZFYtKsaaoLv2_9EIC3vhAipatmacVkOFwYVnuP2v8m19BwAY9_VMbume1apy3u25oSdsXPQqxJ5EdXRGPb4EMrg)

  

# How to Identify Airdrop Scams

One way is to check that the token contract address is the original one and does not have any link to an external website with it and another one is checking the age of token creation, if it is a relatively new token with low liquidity, it is most probably a scam, just like this token airdrop transaction named [geteth.org](https://explorer.bitquery.io/ethereum/tx/0x817144cdaef16076f2bffd4522f786538192896f04265ebbac960f096dfdbb8e/tracing)

  
Any airdrop, giveaway program, or any program at all that requires you to enter your private keys and seed phrases is an outright scam. Your private key and recovery phrase should be known to you only, and stored offline on crypto steel. Never enter this information on any website, as no legitimate app will ask you for your private keys; this isn’t limited to airdrops but includes every other crypto interaction.

# Final Thoughts

While airdrops are real, airdrop scams are equally real. Sometimes it is hard to differentiate between legitimate and fake airdrops, with even experienced investors falling prey to these. However, in many cases, fake airdrops have telltale signs, where the giveaway is usually in the domain name. We have shared some known cases but also admit that airdrop scams take many more forms and this list is not exhaustive of the forms these scams could take.
]]></description>
        </item>
        <item>
            <title><![CDATA[How to Avoid Scams & Identify Legit Tokens During Crypto Rally]]></title>
            <link>https://bitquery.io/blog/identify-duplicate-tokens-scam-contracts</link>
            <guid>https://bitquery.io/blog/identify-duplicate-tokens-scam-contracts</guid>
            <pubDate>Mon, 04 Dec 2023 05:35:07 GMT</pubDate>
            <description><![CDATA[

The amount of financial loss has been accumulated over the years to go beyond billions of dollars since the inception of cryptocurrencies, indebted by scammers’ sweet melodies chirping of free money and high return on investment. The Federal Trade Commission (FTC) reported over $1 billion of losses among 43,000 people from January 2021 through June 2022.

Compared to any other asset, a digital asset sits on top of a complex web of computer science jargon that most people would neither understand nor care about. Everyday news shuffles a variety of articles from ‘Junky turned Cryptocurrency Millionaire’ to ‘I Lost Everything to It’ that pique the readers’ interest. If one tries to look into this rabbit hole from the wrong angle (greed), it becomes too late to realize that they slipped right into a scam.

However, tech-savvy investors know their way around this. There are many online tools and methods available that you can follow to find the true nature of the token and flag them red if they seem suspicious.

In this article, we’ll utilize the simplest, i.e., Bitquery.

## Duplicate Tokens

There is no legal or right way to define the existence of fake crypto apart from the intent of committing cyber crimes. Perpetrators aim to target ill-informed groups of people against the promise of ROI imitating as the real token, and thus, the vicious cycle of fraud begins.

Multiple ways exist to identify malicious tokens amidst a large pool of look-alikes.

So, let’s save your funds.

----------

## Trading Volume Seems Fishy

This pie chart signifies that some of the tokens have less than 100 trades from 1 September to 29 November 2023 on Uniswap, which were [extracted by querying the Ethereum data in the Bitquery IDE](https://ide.bitquery.io/Least-Traded-tokens-on-Uniswap-V2-for-Sept-Nov-2023).

![trading volume](/blog/identify-duplicate-tokens-scam-contracts/tradingvolume.jpeg)

Least traded tokens for the period Sept-Nov 2023

Now, the scammers can name their crypto token anything, so what do you think they’ll use to persuade the targets?

Popular tokens.

Which also comes with high-market value. Cherry on the top!

In the above chart, you can see BNB. At first glance, you won’t know any difference, but let’s zoom in a bit.

### Fake BNB Instance

Average Daily Trading Volume (Nov’23): 0  
Name: RonWeasleyTrumpZelda666Inu  
Address:  0x0c16a22a66cc354896570be6e914a68317f8b67a  
Symbol: BNB

Does anything look weird?

Like the token name being an ugly mess of a Harry Potter character, a USA ex-president, and a meme coin.

----------

### Real BNB Instance

Average Daily Trading Volume (Nov’23): >65  
Name: BNB  
Address:  0xb8c77482e45f1f44de1745f52c74426c631bdd52  
Symbol: BNB

Next time you find an excellent crypto asset for investment, check out their token trading info [here](https://explorer.bitquery.io/ethereum/token/0x0c16a22a66cc354896570be6e914a68317f8b67a?from=2023-11-01&till=2023-11-30) so you don’t regret it later.

### Watch Out for Holder Count

The second way you can be wary of a fraudster scheme is by looking at the number of holders for that token. The rule of thumb is to be skeptical if you find a token with a holder’s count <2000. Since it is infeasible (however not impossible) to have more than 2000 fake wallet addresses, the likelihood of manipulating the holder’s count diminishes significantly.

## Fake v/s Real USDT Holders

Tether USD (USDT) is at the forefront of stablecoin economies worldwide.

A stablecoin is a cryptocurrency whose value is tied to a fiat currency, such as USDT being pegged to the US dollar.

It becomes challenging to distinguish the real cryptocurrency among so many counterfeits. [Bitquery Explorer can help determine the volume and distribution of real/fake USDT](https://explorer.bitquery.io/ethereum/token/0xdac17f958d2ee523a2206206994597c13d831ec7/holders?from=2023-11-01&till=2023-11-30) within the Web3 ecosystem.

![Fake USDT](/blog/identify-duplicate-tokens-scam-contracts/usdtFake.png)

Comparing the above tables, an investor’s intuition should warn you about [the left USDT token](https://explorer.bitquery.io/ethereum/token/0xa1ccf27fb1902fdf1380c858226e6e6e9ea6ef91/holders?from=2023-11-01&till=2023-11-30) due to the following reasons:  
1. Hilarious Name  
2. Holder Count < 200 (<<<2000!)

That’s a sure sign of a scam right there.

Meanwhile, the table on the right belongs to the authenticated USDT token, also representing a vast number of token holders (approx. 5M).

Scammers will do anything to convince you that their funny-named token is a real deal to invest in. That’s why a token’s background check is essential before investing in cryptocurrencies.

So far, we have understood how trading volume, holder count, and funny name philosophy can alert you about fraud. Now, let’s get a bit technical and improvise our method.

## Read Between the Lines — Smart Contracts Bytecode

#### Bytecode

We’ll use the same fake USDT token address to initialize a query on [Bitquery IDE that extracts the bytecode for the USDT token](https://ide.bitquery.io/) smart contract.

Bytecode is the compiled output stored on the Ethereum network after deploying the smart contracts written in Solidity. It is alphanumeric and cannot be read by humans but only by a computer. Example:-

#Bytecode for Fake USDT

0x60806040526004361061011e575f3560e01c8063751039fc…………

Many online tools can decompile bytecode to display the smart contract code behind the screen. A blockchain tech-savvy person can deduce multiple vulnerabilities and possible fraud schemes within the smart contract that contract creators keep hidden under the facade of a reputed token.

### Buy This Coin or Bitcoin?

Let’s see an example of a potential scam of [fake BTC (Buy This Coin)](https://explorer.bitquery.io/ethereum/token/0x2e031426f3ef1b26b4fe4998346c4a4831c75c91) luring users in hopes of earning a hefty value appreciation profit from real BTC (Bitcoin).

Buy This Coin Address: 0x2e031426f3ef1b26b4fe4998346c4a4831c75c91

After extracting the bytecode for fake BTC and studying the code, a few vulnerabilities that flagged it as fraud were found.

-   Wallets can be blacklisted from being able to transfer, swap or sell this token
    
-   Whitelist feature enables unique users to bypass restrictions
    

These two functions can be easily exploited to manipulate the intended purpose of the smart contract. Users can also [find a few smart contract statistics](https://explorer.bitquery.io/ethereum/token/0x2e031426f3ef1b26b4fe4998346c4a4831c75c91/smart_contract?from=2023-11-01&till=2023-11-30)  using the Bitquery Explorer without using bytecode.

![Fake BTC](/blog/identify-duplicate-tokens-scam-contracts/BTCFake.png)


## Overview of smart contract stats for fake BTC token

This data implies that even if we combine all the given factors, it will still amount to only an insignificant fraction of true BTC. For November 2023, the transaction (Tx) count is less than a hundred. Considering the value of true BTC, it has a significant share in almost all crypto exchange platforms, such that it can never logically explain the above data if it were the real BTC.

## Conclusion

Summarizing the main points to remember while looking out for a new crypto asset:

-   Don’t be fooled by the symbol; it could be a fake
    
-   Always [search for an asset’s history](https://explorer.bitquery.io/) before investing
    
-   Look out for low volume, high volatility, and low holder count to avoid being scammed
    
-   Tech-savvy people can do an in-depth smart contract code check by decompiling the bytecode as given in the article to make sure their funds are secure
    
-   Popular tokens = Traps (if left unchecked)


*Guest blog written by Sarika*]]></description>
        </item>
        <item>
            <title><![CDATA[How to Conduct Blockchain Analysis for Free]]></title>
            <link>https://bitquery.io/blog/how-to-conduct-blockchain-analysis-for-free</link>
            <guid>https://bitquery.io/blog/how-to-conduct-blockchain-analysis-for-free</guid>
            <pubDate>Tue, 21 Nov 2023 05:35:07 GMT</pubDate>
            <description><![CDATA[
Blockchain analysis is an essential technique in the web3 sector, as it focuses on deciphering the vast amount of data generated by blockchains like Bitcoin and Ethereum. By exploring these intricate data trails, blockchain analysis provides a clearer picture of the ecosystem, offering valuable insights into the evolving landscape of web3. In this blog, we will see how anyone can do Blockchain Analysis for free using Bitquery.

## What is Blockchain Analysis?

[Blockchain analysis](https://www.coindesk.com/markets/2023/11/22/why-on-chain-transaction-is-the-key-blockchain-indicator/) is a systematic approach to understanding and interpreting data on the chain, such as Bitcoin and Ethereum. This process involves a series of steps: inspecting, cataloging, interpreting, identifying, clustering, modeling, and visually representing blockchain data. The primary aim is to extract actionable insights about the various participants in cryptocurrency transactions.

### Why is Blockchain Analysis important?

By using specialized software and techniques, blockchain analysis helps in extracting crucial information, including user behaviors and transactional patterns. It plays a key role in tracing fund movements across wallets and provides a deeper understanding of the blockchain ecosystem’s dynamics, offering valuable insights into how blockchain networks function and are utilized.

Looking for end to end Crypto investigation tool?  Explore Coinpath Moneyflow, built for investors and law enforcement agencies. [Check it out here!](https://share.hsforms.com/1r66O41lbSuOElm1REXeptQ3rc4g)

#### What are the Different Use Cases for Blockchain Analysis?

Blockchain analysis has a wide range of applications, each offering unique insights and benefits in various sectors:

1.  *Competitive Intelligence* : In the growing crypto market, companies and institutions like BlackRock and Tesla invest in crypto assets. Blockchain analysis allows monitoring of competitors’ fund movements in public blockchains, providing strategic business insights.

2.  *Research* : In academic and research fields, blockchain analytics can assess the anonymity of cryptocurrencies, usage patterns, and user demographics. It’s particularly useful for processing data with machine learning for unexpected insights.

3.  *Education* : For data analysts and students, blockchain offers a rich dataset for hands-on learning and experience in data analysis and blockchain technology.

4.  *Monitoring Network Health* : Blockchain analysis is used to monitor protocol adherence by miners, fee structures, and usage patterns of cryptocurrencies, providing insights into the network’s health and functionality.

5.  *Screening For Crypto Transaction Risk* : Blockchain analytics can identify wallets linked to financial crimes like money laundering or terrorist financing, minimizing organizational risk.

6.  *Identify High-Risk Customers* : By assigning risk scores to wallets based on their transaction history, blockchain analytics helps businesses understand and manage risks associated with illicit activities.

7.  *Improving SARs Submissions* : Blockchain analytics aids in creating effective Suspicious Activity Reports (SARs) by identifying and grouping illicit transactions, enhancing the safety of the cryptocurrency market.

8.  *Obtaining Regulatory Approval* : Analytics can support crypto exchanges in securing regulatory licenses by demonstrating effective anti-money laundering measures and compliance.

These use cases show the diverse potential of blockchain analysis in enhancing transparency, security, and compliance in the evolving landscape of digital currencies and blockchain technology.

## How to Track Token Holdings and Ownership Concentration?

In cryptocurrency, tracking token holdings and ownership concentration involves analyzing blockchain data to assess how tokens are distributed among holders. Key steps include using blockchain explorers like [Bitquery Explorer](https://explorer.bitquery.io/ethereum/tx/0xa60217197a396533501237a4c4ad65697935d52d6f245ed709bd5c1210c69abd/tracing) to identify significant token holders and monitoring their wallet balances and transaction histories. Aggregating and analyzing this data reveals the percentage of total supply owned by top holders, crucial for understanding market decentralization.

### Why Track Token Holdings and Ownership Concentration?

Specialized blockchain analytics tools simplify tracking large wallet movements and visualizing token distributions. It’s important to distinguish between individual holders and exchange wallets, as the latter can represent pooled user funds. Regular monitoring captures dynamic changes due to market activities. The analysis helps identify risks of market manipulation or centralization, contributing to a better understanding of the cryptocurrency’s health and regulatory compliance.

### How to Get Started with Bitquery?

To get started for free, please create an account here with your email: [GraphQL IDE](https://ide.bitquery.io/)

Once created, create your [first query](https://docs.bitquery.io/docs/ide/query/). Join the [telegram group](https://t.me/Bloxy_info) for any doubts and support. To learn more about how to use the Bitquery API, please see the following resources:

- Historical / Near-Realtime Chain Data: [Blockchain API Documentation (V1 Graphql Docs) | Blockchain Graphql API (V1 API Docs)](https://docs.bitquery.io/v1/)
- Realtime Data , Websocket and Cloud Product: [Blockchain Streaming API (V2 Graphql Docs) | Streaming API (V2 API Docs)](https://docs.bitquery.io/)

Let’s dive into on-chain insights with Bitquery APIs.

### How to use Bitquery to track Token Holdings and Ownership Concentration?

Bitquery’s [Token Holders API](https://docs.bitquery.io/docs/evm/token-holders/) enables users to access information about token holders for both fungible (ERC20) and non-fungible (ERC721) tokens. It offers current data on token holders for specific tokens, along with their historical information.

1.  Total Token Holder Count: With the Token Holder API, users can retrieve the total number of token holders. By using the uniq field and obtaining unique Holder_Address values, users can determine the number of token holders on a specific date. The [query](https://ide.bitquery.io/usdt-token-holder-count-using-token-holders-api) below displays the token holder count for the USDT token on Ethereum on 22nd October 2023.

```
{
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2023-10-22"
      tokenSmartContract: "0xdAC17F958D2ee523a2206206994597C13D831ec7"
      where: {Balance: {Amount: {gt: "0"}}}
    ) {
      uniq(of: Holder_Address)
    }
  }
}


```

2.  Count of Transactions for a Token from a Token Holder: Users can even check how frequently an address has participated in transactions with a specific token using Token Holder API. The [query](https://ide.bitquery.io/Number-of-token-transaction-for-a-wallet) below displays the number of transactions involving Mutant Ape Yacht Club (MAYC NFT) from a specific wallet.

```
{
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2023-10-22"
      tokenSmartContract: "0x60E4d786628Fea6478F785A6d7e704777c86a7c6"
      limit: {count: 10}
      where: {Holder: {Address: {is: "0x18f024244d0c41534c4fb77f958912f3aa403719"}}}
    ) {
      BalanceUpdate {
        transactions: Count
      }
      Holder {
        Address
      }
    }
  }
}


```

3.  First & Last Date of Transfer for a Token Holder: Users can also retrieve the dates of the first and most recent transactions using the Token Holder API. The [query](https://ide.bitquery.io/first-and-last-date-of-transfer-for-token-of-a-token-holder) below displays first and latest transaction of Mutant Ape Yacht Club (MAYC) Token.

```
{
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2023-10-22"
      tokenSmartContract: "0x60E4d786628Fea6478F785A6d7e704777c86a7c6"
      limit: {count: 10}
      where: {Holder: {Address: {is: "0x18f024244d0c41534c4fb77f958912f3aa403719"}}}
    ) {
      BalanceUpdate {
        FirstDate
        LastDate
      }
      Holder {
        Address
      }
    }
  }
}


```

4.  Top Token Holders for a Token: Token Holders API also allows users to sort the data based on the token balance in descending order. The [query](https://ide.bitquery.io/top-token-holder-for-a-token-using-token-holders-api) below displays the top 10 token holders for the Mutant Ape Yacht Club (MAYC) NFT collection.

```
{
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2023-10-22"
      tokenSmartContract: "0x60E4d786628Fea6478F785A6d7e704777c86a7c6"
      limit: {count: 10}
      orderBy: {descending: Balance_Amount}
    ) {
      Holder {
        Address
      }
      Balance {
        Amount
      }
    }
  }
}


```

5.  Common Token Holders of Two Tokens: Users can even know about common tokens holders of two tokens using Bitquery’s [Token Holders API](https://docs.bitquery.io/docs/evm/token-holders/). The [query](https://ide.bitquery.io/Common-token-holder-Bored-Ape-Yacht-Club-and-Mutant-Ape-Yacht-Club) below displays common token holders of Bored Ape Yacht Club and Mutant Ape Yacht Club NFT tokens.

```

{
  EVM(dataset: archive) {
    BalanceUpdates(
      orderBy: {descendingByField: "token1"}
      limit: {count: 1000}
      where: {Currency: {SmartContract: {in: ["0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d", "0x60e4d786628fea6478f785a6d7e704777c86a7c6"]}}}
    ) {
      BalanceUpdate {
        Address
      }
      token1: sum(
        of: BalanceUpdate_Amount
        if: {Currency: {SmartContract: {is: "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d"}}}
        selectWhere: {gt: "0"}
      )
      token2: sum(
        of: BalanceUpdate_Amount
        if: {Currency: {SmartContract: {is: "0x60e4d786628fea6478f785a6d7e704777c86a7c6"}}}
        selectWhere: {gt: "0"}
      )
    }
  }
}


```

## How to Track Scams and Hacks?

To track scams and hacks in web3, vigilance and the use of specific tools are key. Start by monitoring transactions for unusual activities, such as large, unexpected transfers to unknown addresses. Setting up transaction alerts for high-value or previously compromised wallets can provide early warnings. Analyzing transaction patterns helps identify typical scam behaviors, such as quickly moving funds through multiple addresses. Specialized blockchain analytics tools are also crucial for detecting anomalies and flagging potential fraud based on known scam patterns.

### How to use Coinpath to track Scams and Hacks?

[Coinpath®](https://bitquery.io/products/coinpath), developed by the Bitquery team, is a set of blockchain [money tracing APIs](https://bitquery.io/products/coinpath) designed to streamline compliance, crypto investigations, and blockchain monitoring. This functionality is essential in building crypto compliance solutions, investigation tools, and software for monitoring blockchain activities​​. The platform is helpful in discovering the origins, destinations, and participants involved in transactions, allowing users to detect and analyze connections between different blockchain addresses​​.

![](https://lh7-us.googleusercontent.com/Uc1RCY9hqAqF1-12yBqtzrofYXMqr_-RBCD680Wwn2-c7nxAT0oOnPAkn7lAfRUg2o6Wj6zkdmPmXJxwYH86rILXITBGmkf--do8Rw5elqztPlHsCpefxGLesUT6rIsChvLLMXCuiyUwp4_YymITkL4)

On November 27, 2019, Upbit, suffered a security breach resulting in the theft of approximately 342K ETH, valued at around $48.1 million, which was then transferred to a [specific address](https://explorer.bitquery.io/ethereum/address/0xa09871aeadf4994ca12f5c0b6056bbd1d343c029). Criminals involved in such thefts often use a series of intermediate wallets and services to launder the stolen cryptocurrencies, creating complex layers of transactions that obscure the funds' original source. These layers, known as 'hops', consist of groups of wallets through which the funds are moved.

#### Tracing through multiple hops

Coinpath® technology is instrumental in tracing these funds across multiple hops to identify their origin or destination. The provided image illustrates how the stolen ETH was distributed across various addresses, with many receiving similar amounts (e.g., 5000 ETH) through several transactions [spanning 3–5 hops](https://ide.bitquery.io/Relation-between-upbit-hacker-1--upbit-hacker-35), indicating potential association with the hackers. Coinpath® analyzes thousands of transactions in the background to furnish these insights.

This capability is useful in developing risk assessment systems that can identify suspicious deposits and withdrawals, a crucial aspect in the detection of scams and hacks in the web3 world​. Furthermore, Coinpath® is instrumental in crypto forensics and digital asset tracking. This aspect is vital for investigations into cryptocurrency scams and hacks, where tracing the movement of funds and identifying the parties involved are key to understanding and resolving such incidents​.

## Conclusion

Blockchain analysis is a detailed process where specialists use specialized software to analyze blockchain data, tracking user transactions and behaviors. They look for patterns in how funds move between wallets and the relationships between different transactions. This information is vital for understanding the complexities of digital currencies and the health of blockchain platforms.

Bitquery APIs are a useful tool for anyone in the field, whether you’re a developer, trader, researcher, analyst, student, or just a curious user. They allow you to dive deeper into blockchain data and gain a better understanding of its intricacies.

## About Bitquery

[Bitquery](https://bitquery.io/) is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

- APIs - [Explore API](https://ide.bitquery.io/streaming): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

- Coinpath® - Try [Coinpath](https://bitquery.io/products/coinpath): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

- Data in Cloud - Try [Demo Bucket](https://bitquery.io/products/data-on-demand?): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

- Explorer - Try [Explorer](http://explorer.bitquery.io/): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

_Blog written by guest author Yash_
]]></description>
        </item>
        <item>
            <title><![CDATA[Understanding Wealth Distribution with Gini and Nakamoto Coefficients]]></title>
            <link>https://bitquery.io/blog/wealth-distribution-in-token-economy</link>
            <guid>https://bitquery.io/blog/wealth-distribution-in-token-economy</guid>
            <pubDate>Thu, 16 Nov 2023 11:38:00 GMT</pubDate>
            <description><![CDATA[
As the title suggests, we are going to talk about wealth distribution in the token economy of a particular token. What does this actually mean?

Wealth distribution is just how wealth is distributed in a given society or country. In the context of tokens, wealth distribution will be how tokens are distributed amongst [token holders](https://bitquery.io/products/token-holder-api?utm_source=token_holders&utm_medium=blog&utm_campaign=token_holders_api&utm_id=350d89c1cd6592bbbd1ed2e8a4f3ddba).

But why are we talking about token/wealth distribution? Because if a small number of people hold a large amount of tokens, then that small group of people can abuse their power for their profits. The thing to note here is that not everyone with a huge amount of tokens doesn't abuse the power, but knowing the distribution of tokens will help us understand many other things.

## **Measuring Inequality**

To understand wealth distribution, we need to use various metrics that will allow us to quantify the extent of inequality. The two most common metrics are the Gini Coefficient and Nakamoto Coefficient.

## **Gini Coefficient**

[Gini coefficient](https://docs.bitquery.io/docs/examples/token-holders/token-holder-api/#gini-coefficient?utm_source=token_holders&utm_medium=blog&utm_campaign=token_holders_api&utm_id=350d89c1cd6592bbbd1ed2e8a4f3ddba) (aka Gini ratio or Gini index) is a common statistical tool that is used by many for understanding distribution of wealth or income in a given population. That population can be a country or city or in our context a token economy.

The Gini index gives us a way to quantify the equality or inequality in the wealth distribution. This helps people trying to understand that population.

### **Gini Coefficient of a token economy**

Within the frame of a token economy, the Gini coefficient serves as a quantitative measure, providing insights into the distribution of wealth---specifically, tokens---among the holders.

### **Implications of Gini Coefficient**

The Gini coefficient tells us important things about how tokens are spread out in a group. If the Gini number is low, it means more people have a fair amount of tokens. But if it's high, it shows that only a few people have most of the tokens.

## **Nakamoto Coefficient**

We know that blockchains like Bitcoin and Ethereum are decentralized and no one entity controls it but what about if different entities in the network collaborate with each other to compromise the network? How many entities can control the network if they decide to do it?

We can understand that with the [Nakamoto coefficient](https://docs.bitquery.io/docs/examples/token-holders/token-holder-api/#nakamoto-coefficient?utm_source=token_holders&utm_medium=blog&utm_campaign=token_holders_api&utm_id=350d89c1cd6592bbbd1ed2e8a4f3ddba).

The Nakamoto coefficient is a quantitative measure that assesses decentralization of a blockchain network. It calculates the minimum number of nodes/validators required to compromise the network or do a 51% attack on the network. This numeric measure gives us the idea of decentralization of the system.

Balaji Srinivasan and Leland Lee proposed the Nakamoto coefficient to address the problem of quantifying an important aspect of blockchain network that is decentralization. You can read the [original post](https://medium.com/@cryptoken_board/nakamoto-coefficient-how-decentralized-is-your-blockchain-04842c03ed48) of the Nakamoto coefficient to understand it better.

### **Nakamoto coefficient's role in the token economy**

Nakamoto coefficient gives us an idea about decentralization of blockchain networks but how does this relate to token economy?

In the token economy, we are going to use the Nakamoto coefficient to check how many addresses hold more than 51% of the supply of that token.

### **Implications of Nakamoto Coefficient**

The Nakamoto coefficient gives us an absolute measure, which is the minimum number of entities that can compromise the network, unlike the Gini coefficient which gives us relative measure.

A high Nakamoto coefficient signifies that a large number of addresses holds 51% of the token supply. Conversely, lower Nakamoto coefficient means that a smaller number of addresses has significant token supply.

**Also read**: [USDC vs USDT: Analyzing On-Chain Activities with the Token Holders API](https://bitquery.io/blog/usdc-vs-usdt-analyzing-on-chain-activities-using-token-holders-api?utm_source=token_holders&utm_medium=blog&utm_campaign=token_holders_api&utm_id=350d89c1cd6592bbbd1ed2e8a4f3ddba)

## **Token's Gini and Nakamoto Coefficients**

With Bitquery's Token Holders API, you can get all the coefficients we learned about earlier. You don't have to do all calculations, just get values directly from the API. Let's see how to fetch those by writing a graphQL query in the Bitquery IDE.

In the Token Holders query, we need to define the smart contract address and date on which you need the coefficient.

```graphql
{
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2023-11-05"
      tokenSmartContract: "0xdac17f958d2ee523a2206206994597c13d831ec7"
      where: {Balance: {Amount: {gt: "0"}}}
    ) {
      gini(of: Balance_Amount)
      nakamoto(of: Balance_Amount, ratio: 0.99)
    }
  }
}
```

You can run [this query](https://ide.bitquery.io/gini-and-nakamoto-coefficient-of-usdt?utm_source=token_holders&utm_medium=blog&utm_campaign=token_holders_api&utm_id=350d89c1cd6592bbbd1ed2e8a4f3ddba) in IDE and see the results.

## **Wealth Distribution Analysis**

Now that we have learned what both of these coefficients are and seen how to get those, let's analyze the top tokens from the Ethereum network.

We will loop over all these tokens with a Python script and see both coefficients for each of those tokens.

Here is the list of tokens and their Gini & Nakamoto Coefficient.

![](/blog/wealth-distribution-in-token-economy/gini-nakamoto-coefficient-values-table.png)

As we can see, most of the tokens have Gini coefficients of 0.9 and above with Nakamoto coefficients ranging from 1 to a few thousands.

What does this mean? For many of the tokens in the list, supply of them is held by a small number of addresses.

## **Understanding Governance with Gini and Nakamoto Coefficient**

We talked about use cases and working of Gini and Nakamoto coefficients to understand token distribution among the holders but there can be niche use cases of both of the coefficients too. One of those use cases is understanding Governance for a project.

Most of the projects in the crypto ecosystem use governance tokens to govern the project and understand the opinion of project stakeholders.

Here we will take a look at LDO token which is the governance token for Lido DAO that manages liquid staking protocol, Lido. With Gini and Nakamoto coefficients for LDO token, we can get an overview of concentration of the governance within token holders.

You can run same query can above and change the tokenSmartContract to 0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32 (LDO token address on Ethereum network). You can run this query in the IDE.

```
{
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2023-11-12"
      tokenSmartContract: "0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32"
      where: {Balance: {Amount: {gt: "0"}}}
    ) {
      Currency {
        Name
        SmartContract
      }
      gini(of: Balance_Amount)
      nakamoto(of: Balance_Amount, ratio: 0.99)
    }
  }
}
```

Let's see what the result are:

![](/blog/wealth-distribution-in-token-economy/ldo-token-gini-nakamoto-values.png)

From the result, we can see that there is a high level of inequality in the distribution of the governance token and with Nakamoto we can see the same thing which is that 2166 holders out of 41.8k holders own the majority of the supply.

### **Change Governance Concentration Over Time**

We can also see how the concentration of governance power has changed over time, this way we can have a better understanding of governance power within Lido DAO.

Here is the Gini coefficient of LDO token over the last 200 days. This graph shows us how the Gini coefficient is reduced over time which shows direction towards better distribution of tokens.

![](/blog/wealth-distribution-in-token-economy/ldo-gini-values-over-last-200-days.png)

The below graph shows the change in Nakamoto coefficient over the last 200 days for LDO token. It shows a gradual increase over time, suggesting that a larger number of holders have the majority of the token supply.

![](/blog/wealth-distribution-in-token-economy/ldo-nakamoto-values-over-last-200-days.png)

One thing to note here is that when we are calculating the distribution of tokens. This does not mean distribution of governance power.

For many of the DAOs, people have the option to delegate their voting power to someone else and that other party can vote on behalf of people who have delegated power to them. That's why what we are seeing is distribution of LDO governance tokens and not the distribution of the governance power in the LIDO DAO.

## **Problem with Gini and Nakamoto Coefficients**

There is a caveat in this calculation. Do you know what it is? When we take addresses into our calculations for Gini or Nakamoto Coefficient, we can't really separate smart contract addresses or centralized exchange addresses from addresses of individuals so these calculations show Gini index for all addresses and not individuals using those tokens.

Even this caveat is there knowing the distribution of the token is very important to understand the condition of the ecosystem.

**Also read**: [Arbitrum Ecosystem: A Comprehensive Look Using the Bitquery API​](https://bitquery.io/blog/arbitrum-ecosystem-analysis?utm_source=token_holders&utm_medium=blog&utm_campaign=token_holders_api&utm_id=350d89c1cd6592bbbd1ed2e8a4f3ddba)

## **Conclusion**

In conclusion, our efforts to understand wealth distribution within a token ecosystem led us to understand two very useful and important metrics: [Gini coefficient](https://docs.bitquery.io/docs/examples/token-holders/token-holder-api/#gini-coefficient?utm_source=token_holders&utm_medium=blog&utm_campaign=token_holders_api&utm_id=350d89c1cd6592bbbd1ed2e8a4f3ddba) and [Nakamoto coefficient](https://docs.bitquery.io/docs/examples/token-holders/token-holder-api/#nakamoto-coefficient?utm_source=token_holders&utm_medium=blog&utm_campaign=token_holders_api&utm_id=350d89c1cd6592bbbd1ed2e8a4f3ddba). The Gini Coefficient provides a relative measure of wealth distribution, offering insights into how tokens are spread among holders. A low Gini number suggests a fair distribution, while a high one indicates concentration among a few.

On the other hand, the Nakamoto Coefficient serves as an absolute measure of decentralization within a blockchain network. Applied to the token economy, it helps assess the concentration of token supply among a specific number of addresses.

We also explored a niche use case of both coefficients which was to understand concentration of governance power within a DAO. For this article, we used an example of [LDO token](https://explorer.bitquery.io/ethereum/token/0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32?utm_source=token_holders&utm_medium=blog&utm_campaign=token_holders_api&utm_id=350d89c1cd6592bbbd1ed2e8a4f3ddba) for Lido DAO. We also saw how concentration of governance power changed over time in Lido DAO.

These coefficients come with their limitations (which can be overcome) like exchange wallets considered as one entity but tokens that belong to users of that exchange. Despite these limitations, understanding token distribution remains an important factor for assessing the health and dynamics of the ecosystem.

## **About Bitquery**

[**Bitquery**](https://bitquery.io/?utm_source=token_holders&utm_medium=blog&utm_campaign=token_holders_api&utm_id=350d89c1cd6592bbbd1ed2e8a4f3ddba) is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

-   **APIs** - [Explore API](https://ide.bitquery.io/?utm_source=token_holders&utm_medium=blog&utm_campaign=token_holders_api&utm_id=350d89c1cd6592bbbd1ed2e8a4f3ddba): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

-   **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=token_holders&utm_medium=blog&utm_campaign=token_holders_api&utm_id=350d89c1cd6592bbbd1ed2e8a4f3ddba): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

-   **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/cloud-products?utm_source=token_holders&utm_medium=blog&utm_campaign=token_holders_api&utm_id=350d89c1cd6592bbbd1ed2e8a4f3ddba): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

-   **Explorer** - [Try Explorer](http://explorer.bitquery.io?utm_source=token_holders&utm_medium=blog&utm_campaign=token_holders_api&utm_id=350d89c1cd6592bbbd1ed2e8a4f3ddba): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.]]></description>
        </item>
        <item>
            <title><![CDATA[Beneath Aave V3 Data with Bitquery APIs​]]></title>
            <link>https://bitquery.io/blog/aave-data</link>
            <guid>https://bitquery.io/blog/aave-data</guid>
            <pubDate>Wed, 08 Nov 2023 12:29:00 GMT</pubDate>
            <description><![CDATA[
Today we will discuss getting all the data from Aave which is the top lending protocol on Ethereum and is multichain. Aave is a decentralized non-custodial liquidity protocol where users can participate as depositors or borrowers. Depositors provide liquidity to the market to earn a passive income, while borrowers can borrow in an overcollateralized (perpetually) or undercollateralized (one-block liquidity) fashion.

Aave has upgraded to Aave v3 which augments the core concepts of Aave Protocol (aTokens, instant liquidity, stable rate borrowing, credit delegation, etc.) with new features which include Portal(for flow of liquidity in different chains), eMode, Isolation mode and much more.

Anyone can access the basic analysis without a single line of code through [Bitquery Explorer](https://explorer.bitquery.io/arbitrum). If you want to learn more about Bitquery Protocol's data capabilities, you can read our [article about how to track liquidity for any token pair on Uniswap](https://bitquery.io/blog/how-to-track-liquidity-for-token-pair-on-uniswap).

Note - We are using[ Streaming APIs (v2)](https://docs.bitquery.io/) to get the following data; you can also turn them into WebSocket simply using[ Graphql Subscription](https://docs.bitquery.io/docs/start/getting-updates/).

You can run the following queries [here](https://streaming.bitquery.io/).

## **Aave V3 API's**


### **Aave V3 Ethereum Daily User Activities**

The main functions a user calls are "Supply", "Borrow", "Withdraw" and "Repay", we can get these events count for each day for unique address count by aggregating the data by event and block time in the [query](https://ide.bitquery.io/Aave-V3-daily-user-activity) below

```
query ($network: EthereumNetwork!, $address: String!, $limit: Int, $offset: Int, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    smartContractEvents(
      options: {desc: "count", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      smartContractAddress: {is: $address}
      smartContractEvent: {in: ["Supply", "Borrow", "Withdraw", "Repay"]}
    ) {
      smartContractEvent {
        name
      }
      block {
        timestamp {
          time(format: "%Y-%m-%d")
        }
      }
      count(uniq: callers)
    }
  }
}
```

Parameters:
```
{
  "limit": 1000000,
  "offset": 0,
  "network": "ethereum",
  "address": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
  "from": "2022-10-15",
  "till": "2023-10-22T23:59:59",
  "dateFormat": "%Y-%m-%d"
}
```

![Count of Different Activities on Aave V3](/blog/aave-data/aave-user-activity.png)



### **Borrow Volume of an Asset on Aave V3**

To calculate the borrow Volume of an asset(USDC) on a specific chain(ETH), we have to use the transfers database and filter out based on the contract address of USDC and Aave v3, then aggregate the results based on date format in the [query](https://ide.bitquery.io/USDC-Borrow-volume-on-AAVEEth) below
```
query ($network: EthereumNetwork!, $token: String!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transfers(
      currency: {is: $token}
      height: {gt: 0}
      amount: {gt: 0}
      date: {since: $from, till: $till}
      any: {sender: {is: "0x98C23E9d8f34FEFb1B7BD6a91B7FF122F4e16F5c"}}
    ) {
      date {
        date(format: $dateFormat)
      }
      count: countBigInt
      amount
    }
  }
}
```
Parameters:
```
{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "from": "2023-10-15",
  "till": "2023-10-22T23:59:59",
  "dateFormat": "%Y-%m-%d"
}
```
![Borrow Volume of USDC on Ethereum on Aave V3](/blog/aave-data/borrow-volume-of-usdc.png)

### **Supplied Volume of an Asset on Aave V3**

We can get the Supplied USDC on Aave V3 using Events data and filtering it using the contract address and "Mint" event method of[ Aave Ethereum USDC (aEthUSDC)](https://explorer.bitquery.io/ethereum/token/0x98C23E9d8f34FEFb1B7BD6a91B7FF122F4e16F5c) in the[ query](https://ide.bitquery.io/Aave-V3-USDC-deposit) below

```
query ($network: EthereumNetwork!, $address: String!, $limit: Int, $offset: Int, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    smartContractEvents(
      options: {limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      smartContractAddress: {is: $address}
      any: {smartContractEvent: {is: "Mint"}}
    ) {
      arguments {
        argument
        value
      }
      block {
        timestamp {
          time
        }
      }
    }
  }
}
```

Parameters:
```
{
  "limit": 1000000000,
  "offset": 0,
  "network": "ethereum",
  "address": "0x98C23E9d8f34FEFb1B7BD6a91B7FF122F4e16F5c",
  "from": "2023-08-01",
  "till": "2023-10-24T23:59:59",
  "dateFormat": "%Y-%m-%d"
}
```
![USDC deposited on Aave V3 since August 1](/blog/aave-data/deposited-usdc.png)

### **Current and Historical Supply APY and Borrow Rate**

We can get the Supply APY and Borrow Rate for DAI(or any asset) using the events emitted by the Aave V3 contract first, we have to filter out the data according to the Log Signature and then the DAI contract, which is done in the[ query](https://ide.bitquery.io/DAI-APY-Aave-v3) below
```
{
  EVM(dataset: combined, network: eth) {
    Events(
      orderBy: {descending: Block_Number}
      limit: {count: 10}
      where: {Transaction: {To: {is: "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2"}},
        Log: {Signature: {Name: {is: "ReserveDataUpdated"}}},
        Arguments: {includes: {Value: {Address: {is: "0x6B175474E89094C44Da98b954EedeAC495271d0F"}}}}}
    ) {
      Log {
        Signature {
          Name
        }
      }
      Block {
        Date
        Time
      }
      Arguments {
        Name
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
        }
      }
    }
  }
}
```
Parameters:
```
{}
```
![History of Supply Rate, Stable Borrow Rate, and variable borrow rate of DAI](/blog/aave-data/history-of-supply-borrow-variable-borrow-rate.png)

### **Aave Unique Users**

We can get the unique users on the Aave V3 Platform for each day by filtering out the Calls made to contract and aggregating them using dates as done in the [query](https://ide.bitquery.io/Aave-V3-unique-users_1) below
```
query ($network: EthereumNetwork!, $dateFormat: String!, $address: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    smartContractCalls(
      date: {since: $from, till: $till}
      any: {smartContractAddress: {is: $address}}
    ) {
      count: countBigInt(uniq: callers)
      date {
        date(format: $dateFormat)
      }
    }
  }
}
```
Parameters:
```
{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "address": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
  "from": "2023-08-01",
  "till": "2023-10-25T23:59:59",
  "dateFormat": "%Y-%m-%d"
}
```
![Unique Users each day from August](/blog/aave-data/unique-users-each-day.png)

### **FlashLoan Stats on Aave V3**

We can get the FlashLoan Total Volume using Bitquery Streaming APIs, in which we have to filter out the Calls dataset using Call Signature and AAve Contract which is done in the[ query](https://ide.bitquery.io/Aave-V3-WETH-FlashLoan) below
```
{
  EVM(dataset: combined, network: eth) {
    Calls(
      limit: {count: 10000000}
      where: {Call: {To: {is: "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2"}, Signature: {Name: {is: "flashLoanSimple"}}}, Block: {Date: {after: "2023-08-01", before: "2023-10-25"}}}
      orderBy: {descending: Block_Number}
    ) {
      Call {
        Signature {
          Name
          Signature
          SignatureHash
        }
      }
      Arguments {
        Name
        Path {
          Index
          Type
          Name
        }
        Index
        Type
        Value {
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
        }
      }
      Transaction {
        Hash
      }
    }
  }
}
```
Parameters:
```
{}
```
![Total Flashloan of WETH taken from Aave](/blog/aave-data/total-flashloan-of-weth-taken-from-aave.png)

### **Miner Rewards and Priority Fee in FlashLoan Transactions on Aave V3**

Flashloan Transactions are all about getting the arbitrage or small profits in the Defi ecosystem but there is a major problem to tackle for the Devs using these transactions i.e. the Priority Fee to Get included in the block, We can get the gas stats using Bitquery by filtering the Calls dataset by Aave Contract address and the call signature, then get all the specific stats regarding the Gas fee in the[ query](https://ide.bitquery.io/Aave-V3-WETH-FlashLoan-GAS-inspection#) below
```
{
  EVM(dataset: combined, network: eth) {
    Calls(
      limit: {count: 10000000}
      where: {Call: {To: {is: "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2"}, Signature: {Name: {is: "flashLoanSimple"}}}, Block: {Date: {after: "2023-08-01", before: "2023-10-25"}}}
      orderBy: {descending: Block_Number}
    ) {
      Call {
        Signature {
          Name
        }
      }
      Transaction {
        Hash
      }
      Fee {
        SenderFee
        Savings
        PriorityFeePerGas
        MinerReward
        EffectiveGasPrice
        Burnt
      }
      Receipt {
        GasUsed
      }
    }
  }
}
```
Parameters:
```
{}
```
![Total Miner reward vs Priority fees](/blog/aave-data/total-miner-reward-vs-priority-fee.png)

That's it folks, another protocol another time :]

## **About Bitquery**

[**Bitquery**](https://bitquery.io/?utm_source=blog&utm_medium=about_coinpath "https://bitquery.io/?source=blog&utm_medium=about_coinpath") is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

-   **APIs** - [Explore API](https://ide.bitquery.io/streaming "https://ide.bitquery.io/streaming"): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

-   **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=about "https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=about"): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

-   **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/cloud-products?utm_source=blog&utm_medium=about "https://bitquery.io/products/data-on-demand?utm_source=blog&utm_medium=about"): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

-   **Explorer** - [Try Explorer](http://explorer.bitquery.io/ "http://explorer.bitquery.io"): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info "https://t.me/Bloxy_info"). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.

*This blog was written by guest author Nitin.*]]></description>
        </item>
        <item>
            <title><![CDATA[Comparative Analysis of Ethereum Layer-2 Solutions: Arbitrum & Polygon]]></title>
            <link>https://bitquery.io/blog/comparative-analysis-of-ethereum-l2s</link>
            <guid>https://bitquery.io/blog/comparative-analysis-of-ethereum-l2s</guid>
            <pubDate>Wed, 01 Nov 2023 09:30:00 GMT</pubDate>
            <description><![CDATA[
Ethereum’s network, at times, can feel like a congested highway. Layer-2 solutions, in this analogy, act as express lanes, alleviating this congestion and allowing for a smoother flow of transactions. This means more than just speed; businesses benefit from reduced costs, and users enjoy a streamlined experience. Additionally, these solutions are environmentally conscious and uphold the network’s security.

Among the notable contributors to Layer-2 are [Arbitrum](https://bitquery.io/blockchains/arbitrum-blockchain-api?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison) and [Polygon](https://bitquery.io/blockchains/polygon-blockchain-api?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison). They effectively address Ethereum’s challenges by enhancing its capacity and trimming fees. For developers, these platforms are robust, providing tools and resources for innovation.

In this blog, we’ll explore the nuances of Arbitrum and Polygon. Alongside this, we’ll discuss how Bitquery delivers insights that are of value to both regular users and developers.

## **Understanding Arbitrum**

Arbitrum, developed by Offchain Labs, serves as a crucial improvement for the Ethereum blockchain, addressing its scalability challenges. By acting as a Layer-2 solution, Arbitrum alleviates congestion on the Ethereum network, akin to adding auxiliary lanes to a busy highway. Furthermore, by reducing computational burdens and bundling multiple transactions, [Arbitrum](https://docs.bitquery.io/docs/examples/Arbitrum/Overview/?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison) offers an ecosystem where businesses can operate with diminished costs and users can experience expedited transactions.

Now, let’s explore the workings, features, and advantages of Arbitrum in greater detail.

### **How does Arbitrum work as a Layer-2 solution?**

Arbitrum improves Ethereum’s capabilities as a Layer 2 scaling solution by optimizing transactions and computation processes. At its core, Arbitrum uses optimistic rollups to group multiple transactions together off-chain, ensuring that the main Ethereum blockchain remains uncluttered and runs efficiently. This allows for complex computations to be conducted off-chain before they are verified and finalized on the main Ethereum blockchain.

Furthermore, Arbitrum facilitates seamless asset transfers between its Layer 2 and [Ethereum mainnet](https://bitquery.io/blockchains/ethereum-blockchain-api?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison), ensuring interoperability and flexibility in transactions. It also greatly improves the performance of Ethereum smart contracts by undertaking computation and processing tasks off the mainnet, thus speeding up transaction processing times.

Moreover, Arbitrum’s infrastructure allows for the selection of specific validators in the consensus process of Decentralized Applications (DApps), providing a more refined and efficient approach to validation processes. It employs a batching technique where multiple transactions are grouped together before being published to the main blockchain, a strategy that is instrumental in enhancing scalability and reducing transaction costs.

Through these mechanisms, Arbitrum significantly boosts the scalability, efficiency, and functionality of the Ethereum blockchain, acting as a powerful and essential Layer 2 scaling solution.

### **Key Features**

Now, let’s dive deeper into the prominent features of Arbitrum:

- **EVM Compatibility**: Arbitrum boasts high compatibility with the Ethereum Virtual Machine (EVM), allowing for seamless integration and operation with Ethereum-based applications.

- **Scalability**: Arbitrum is designed to handle a high volume of transactions, thereby addressing one of the major challenges faced by many blockchains today.

- **Security Council Voting by ARB Token Holders**: Those holding the ARB token have a say in the network’s governance by being able to vote on electing members to the Security Council, ensuring a decentralized decision-making process.

### **Advantages**

Let’s move on to the notable benefits of Arbitrum:

- **High Throughput for DApps**: Developers can run Ethereum decentralized applications (DApps) on Arbitrum with significantly lower transfer fees and higher transaction speeds, without the need for modifications.

- **Cost-Effective & Fast**: Compared to Ethereum’s 14 transactions per second, Arbitrum can process up to 40,000 transactions per second. Moreover, while Ethereum transactions can be expensive, Arbitrum’s transactions can be executed for just a fraction of the cost—sometimes only a few cents.

- **Robust Developer Tooling**: Developers are provided with a set of tools that facilitate the creation, testing, and deployment of applications on Arbitrum.

**Also Read:** [**Arbitrum API - Tokens, NFTs, DEX, Balances & More**​](https://bitquery.io/blog/arbitrum-api?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison)

## **Understanding Polygon**

Polygon, formerly known as ***MATIC network***, is a versatile blockchain platform founded by Sandeep Nailwal, Jaynti Kanani, and Anurag Arjun in 2017. It’s like a one-stop-shop for building and connecting Ethereum-compatible blockchains, making transactions faster and cheaper, and enhancing the overall flexibility and scalability of blockchain projects. Despite its evolution, Polygon’s cryptocurrency continues to be called the MATIC coin. Its design ensures that users can interact with decentralized applications (DApps) smoothly, without getting bogged down by network congestion.

Now, let’s explore the workings, features, and advantages of [Polygon](https://docs.bitquery.io/v1/docs/Schema/Polygon/overview?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison) in greater detail.

### **How does Polygon work as a Layer-2 solution?**

Polygon operates as a Layer-2 (L2) solution to enhance and scale the Ethereum network. Its multifaceted approach revolves around sidechains, interoperability, enhanced chain performance, and a robust validator network.

Firstly, Polygon leverages **sidechains** that seamlessly interact with Ethereum, creating an auxiliary network that is both compatible and independent. These sidechains introduce significant improvements in transaction speed and cost-effectiveness.

One of Polygon’s key features is its use of a **Proof of Stake (PoS)** consensus mechanism, which enhances the scalability of the network. This PoS approach allows transactions to be validated by a network of validators off-chain before finalizing them on Ethereum’s primary chain. This reduces the strain on the Ethereum network, resulting in faster transactions and reduced gas fees.

The long-term vision of Polygon, known as **Polygon 2.0**, aims to provide tailored scaling solutions for various use cases. These chains will be interoperable, enabling near-instant cross-chain transactions without requiring a bridge to Ethereum, thanks to the utilization of ZK proofs.

Additionally, **Polygon CDK (Chain Development Kit)** empowers developers to deploy their own ZK-powered L2 solutions, tailored to specific use cases. These appchains are modular and configurable for performance and cost, ensuring interoperability with other Polygon CDK chains.

### **Key features**

Polygon stands out as a scaling solution with a wide array of key features:

- **Scalability**: Polygon excels in scalability, capable of supporting millions of users and transactions at a minimal cost. This scalability is crucial for accommodating the growing demand for blockchain applications.

- **Sidechains**: Polygon’s innovative use of sidechains, which are parallel blockchains, enables faster and more cost-effective transactions. These sidechains operate alongside the Ethereum mainnet, alleviating congestion and reducing fees.

- **Interoperability & Cross-Chain Compatibility**: Polygon fosters interoperability and cross-chain compatibility, allowing seamless interaction with other blockchain networks and assets.

### **Advantages**

Let’s move on to the notable benefits of Polygon:

- **Improved User Experience**: Polygon is designed to offer an improved user experience, making it more accessible and user-friendly for both developers and end-users.

- **Carbon Neutrality**: Polygon is committed to environmental sustainability and aims to achieve carbon neutrality. Moreover, it has plans to go beyond neutrality and become climate positive, contributing positively to the environment.

- **Lower Transaction Costs**: Transactions on Polygon are cost-efficient, addressing one of the significant challenges faced by many blockchain users.

- **Play-to-Earn Gaming**: Polygon’s fast transaction processing speeds, make it an ideal platform for play-to-earn gaming, enhancing the gaming experience.

## **Comparative Analysis using Bitquery APIs**

Now, let’s dive deeper into Polygon and Arbitrum, exploring some more technical insights using Bitquery.

![Comparison between Arbitrum and Polygon on technical Aspects](/blog/comparative-analysis-of-ethereum-l2s/comparison-table.png)

### **How to Get Started with Bitquery?**

To get started for free, please create an account here with your email: [GraphQL IDE](https://ide.bitquery.io/?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison)

Once created, create your [first query](https://docs.bitquery.io/docs/ide/query/?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison). Join the [telegram group](https://t.me/Bloxy_info?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison) for any doubts and support. To learn more about how to use the Bitquery API, please see the following resources:

Historical / Near-Realtime Chain Data: [Blockchain API Documentation (V1 Graphql Docs) | Blockchain Graphql API (V1 API Docs)](https://docs.bitquery.io/v1/?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison "Bitquery API (V1 API)")

Realtime Data , Websocket and Cloud Product: [Blockchain Streaming API (V2 Graphql Docs) | Streaming API (V2 API Docs)](https://docs.bitquery.io/?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison "Bitquery API (V2 API)")

Let’s dive into on-chain insights with Bitquery APIs.

### **Top Traded Tokens**

We can also utilize the Bitquery API to view the most traded tokens on a specific blockchain network.

Below is the [query](https://ide.bitquery.io/Top-traded-tokens-on-Arbitrum?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison "Top Traded Tokens on Arbitrum") to display the top 2 traded tokens on Arbitrum from October 10, 2023, onwards.

```graphql
{
  EVM(dataset: combined, network: arbitrum) {
    DEXTrades(
      limit: {count: 10}
      orderBy: {descendingByField: "count"}
      where: {Block: {Date: {since: "2023-08-01"}}}
    ) {
      count
      Trade {
        Buy {
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}
```

Output:

![Output of query for getting top traded tokens on Arbitrum](/blog/comparative-analysis-of-ethereum-l2s/top-traded-tokens-arbitrum.png)

### **Latest Uniswap Trades**

We can also utilize the Bitquery API to view the [latest Uniswap trades](https://ide.bitquery.io/uniswap-latest-trades-on-Polygon_1?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison) on a blockchain network. In the code below, we showcase the most recent Uniswap trades from the past week on the Polygon Network.

```graphql
query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $exchange: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      exchangeName: {is: $exchange}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      buyAmount
      buy_amount_usd: buyAmount(in: USD)
      buyCurrency {
        address
        symbol
      }
      sellAmount
      sell_amount_usd: sellAmount(in: USD)
      sellCurrency {
        address
        symbol
      }
      transaction {
        hash
      }
    }
  }
}

# parameters
{
  "limit": 10,
  "offset": 0,
  "network": "matic",
  "exchange": "Uniswap v3",
  "from": "2023-05-19",
  "till": "2023-05-26T23:59:59",
  "dateFormat": "%Y-%m-%d"
}
```
Output:

![Output of query for getting latest trades on Polygon Network](/blog/comparative-analysis-of-ethereum-l2s/latest-uniswap-trades-on-polygon.png)

**Also Read: [Uniswap API: Get Pools Data, Tokens and Create Charts](https://bitquery.io/blog/uniswap-pool-api?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison)**

### **Number of Smart Contract Calls**

We can also utilize the Bitquery [explorer](https://explorer.bitquery.io/?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison) to view the total number of smart contract calls on a blockchain network. In the screenshot below, we see the number of smart contract calls on Polygon Network over the past month.

![Graph of daily smart contract calls on Polygon network](/blog/comparative-analysis-of-ethereum-l2s/smart-contract-call-count-polygon.png)

### **Monthly Transaction Volume**

We can also view the [monthly transaction volume](https://ide.bitquery.io/monthly-transaction-volume-polygon?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison) using Bitquery APIs. In the code below, users can see the monthly transaction volumes for the Polygon network.

```graphql
{
  ethereum(network: matic) {
    transactions(
      options: {asc: "date.month"}
      date: {since: "2023-01-01"}
    ) {
      date {
        month
        year
      }
      count: count
      gasValue
    }
  }
}
```

Output:

![Monthly Transactions Volume for Polygon Network in 2023](/blog/comparative-analysis-of-ethereum-l2s/monthly-transaction-volume-for-polygon.png)

### **Latest Trades for a Specific token**

We can also view the latest trades of a specific token on a particular blockchain network. In the [query below](https://ide.bitquery.io/latest-trades-for-specific-token-from-polygon?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison), we see the recent trades of the Dino token on the Polygon network.

```graphql
{
  ethereum(network: matic) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 10}
      baseCurrency: {is: "0xaa9654becca45b5bdfa5ac646c939c62b527d394"}
      date: {after: "2023-03-28"}
    ) {
      transaction {
        hash
      }
      exchange {
        name
      }
      tradeIndex
      date {
        date
      }
      block {
        height
      }
      buyAmount
      buyAmountInUsd: buyAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      sellAmount
      sellAmountInUsd: sellAmount(in: USD)
      sellCurrency {
        symbol
        address
      }
      sellAmountInUsd: sellAmount(in: USD)
      tradeAmount(in: USD)
      transaction {
        gasValue
        gasPrice
        gas
      }
    }
  }
}
```

Output:

![Latest Trades for a Specific Token](/blog/comparative-analysis-of-ethereum-l2s/latest-trades-for-specific-token-from-polygon.png)

### **Number of Active Users**

We can also view the number of active users on a specific blockchain network. This information is crucial for developers looking to deploy their dapps on active chains. In the [query](https://ide.bitquery.io/No-of-active-users-on-Arbitrum?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison) below, we can see the number of active users on Arbitrum.

```graphql
{
  EVM(network: arbitrum, dataset: combined) {
    Transactions(where: {Block: {Date: {till: "2023-10-18", since: "2023-10-11"}}}) {
      ChainId
      Block {
        Date
      }
      senders: uniq(of: Transaction_From)
    }
  }
}
```

Output:

![Number of Daily acitve users on Arbitrum](/blog/comparative-analysis-of-ethereum-l2s/number-of-active-users-on-arbitrum.png)

### **Number of Contracts Deployed Daily**

With Bitquery, we can also monitor the number of contracts deployed daily. The [query](https://ide.bitquery.io/Contracts-Deployed-on-Arbitrum-Daily?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison) below displays the daily count of contracts deployed on Arbitrum.

```graphql
{
  EVM(network: arbitrum, dataset: combined) {
    Calls(where: {Call: {Create: true}}, orderBy: {descendingByField: "Block_Date"}) {
      Block {
        Date
      }
      count
    }
  }
}
```

![Number of contracts deployed on Arbitrum on daily basis](/blog/comparative-analysis-of-ethereum-l2s/number-of-contracts-deployed-daily.png)

### **Top NFT Marketplaces**

We can view the top NFT marketplaces on specific blockchain networks. Below is the [query](https://ide.bitquery.io/Top-NFT-marketplaces-on-Arbitrum?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison) to identify the leading NFT marketplaces on Arbitrum.

```graphql
{
  EVM(dataset: combined, network: arbitrum) {
    DEXTrades(
      orderBy: {descendingByField: "count"}
      limit: {count: 10}
      where: {Block: {Date: {since: "2023-08-01", till: "2023-08-10"}}, Trade: {Buy: {Currency: {Fungible: false}}, Sell: {Currency: {Fungible: true}}}}
    ) {
      Trade {
        Dex {
          OwnerAddress
          SmartContract
          ProtocolName
          ProtocolFamily
          ProtocolVersion
        }
      }
      nfts: uniq(of: Trade_Buy_Currency_SmartContract, method: approximate)
      currencies: uniq(of: Trade_Sell_Currency_SmartContract, method: approximate)
      buyers: uniq(of: Trade_Buy_Buyer, method: approximate)
      count
      ChainId
    }
  }
}
```

Output:

![Top NFT marketplaces on Arbitrum](/blog/comparative-analysis-of-ethereum-l2s/top-nft-marketplaces-on-arbitrum.png)

**Also Read: [Top NFT Data Sources](https://bitquery.io/blog/top-nft-data-sources?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison)**

### **Total DEX Trades By Protocol**

Users can also view the total DEX trades by protocol for a blockchain network using the [Bitquery Explorer](https://explorer.bitquery.io/?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison). In the screenshot below, we showcase the total DEX trades by protocol on the Polygon network over the past month.

![DEX Protocol Distribution by usage on Arbitrum](/blog/comparative-analysis-of-ethereum-l2s/dex-protocol-distribution-on-arbitrum.png)

### **Number of Transactions**

Users can also utilize the [Bitquery explorer](https://explorer.bitquery.io/?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison) to view the latest transactions on the blockchain network, assisting them in determining whether the chain is active or a ghost chain.

Below is the [data](https://explorer.bitquery.io/matic/transactions?from=2023-10-15&till=2023-10-22?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison) from Bitquery explorer, showcasing the total number of transactions that took place on the Polygon Network from October 15th to 22nd.

![Number of Daily transactions on Polygon network](/blog/comparative-analysis-of-ethereum-l2s/number-of-transactions-on-polygon.png)

## **Conclusion**

In summary, Arbitrum and Polygon, as Layer 2 scaling solutions, enhance Ethereum’s capabilities by processing transactions off-chain, reducing costs, and improving speed. Arbitrum excels in offering lower fees and EVM compatibility, while Polygon stands out with its impressive speed and versatility across various applications. Both solutions leverage Ethereum’s security features, further contributing to the Ethereum ecosystem’s evolution. If you are a developer, trader, or user, you can utilize Bitquery APIs to dive deeper into these Layer 2 solutions and determine which one is best suited for you or your application.

## About Bitquery

[**Bitquery**](https://bitquery.io/?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison) is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

-   **APIs** - [Explore API](https://ide.bitquery.io/streaming?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

-   **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

-   **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/data-on-demand?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

-   **Explorer** - [Try Explorer](http://explorer.bitquery.io?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.

If you enjoyed this blog post, you might also find our article on [Arbitrum Ecosystem](https://bitquery.io/blog/arbitrum-ecosystem-analysis?utm_source=blog&utm_medium=blog_links&utm_campaign=arbitrum&utm_content=l2_comaprison)​ interesting.


*Post written by guest author Yash*]]></description>
        </item>
        <item>
            <title><![CDATA[USDC vs USDT: Analyzing On-Chain Activities with the Token Holders API]]></title>
            <link>https://bitquery.io/blog/usdc-vs-usdt-analyzing-on-chain-activities-using-token-holders-api</link>
            <guid>https://bitquery.io/blog/usdc-vs-usdt-analyzing-on-chain-activities-using-token-holders-api</guid>
            <pubDate>Thu, 26 Oct 2023 14:30:00 GMT</pubDate>
            <description><![CDATA[
If you want a deeper understanding of token holders for a specific token through their on-chain activities, Bitquery has introduced the Token Holders API. This API allows developers to access data related to token holders and the activities of individual token holders for a given token. In this article, we will dive into our [Token Holders API](https://docs.bitquery.io/docs/evm/token-holders/?utm_source=blog&utm_campaign=token_holders_api) and explore the interesting questions that it can help us address.

In order to understand the data it offers and its practical applications, we will pose some questions about the token holders of USDC and USDT. We will then try to answer these questions using the data retrieved from the Token Holders API. Sounds interesting? Let's dive in!

**Key Insights**

- **3 million** more wallets hold USDT compared to USDC.
- Over the last month, **USDC gained more than 13k holders**. While USDT gained holders at the start and end of the month, in total **USDT lost around 15k holders**.
- The number of wallets liquidating USDC and USDT holdings on daily basis peaked at **~15k and ~47k wallets**, respectively.
- Daily spending using USDC over the past month peaked at more than $8 billion, which is **$2.5 billion more than USDT's peak** for the same period.

## **Token Holder Activity**

We can talk about which token is better, USDT or USDC, what their advantages and disadvantages are, or any narrative that is running in the ecosystem about which token is better, but the on-chain activity of people tells us more than anything else. Let’s explore some data points to figure out what people are doing instead of what they are talking about.

### **Which token do people prefer in general?**

We can answer this by getting how many users hold each of the tokens on-chain. Let’s write a query to do the same. We will use the [Token Holders API](https://docs.bitquery.io/docs/examples/token-holders/token-holder-api/?utm_source=blog&utm_campaign=token_holders_api). First, specify the smart contract and get unique token holders with a balance above 0. You also need to set the date to what you want.

```graphql
{
  USDT: EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2023-10-21"
      tokenSmartContract: "0xdAC17F958D2ee523a2206206994597C13D831ec7"
      where: {Balance: {Amount: {gt: "0"}}}
    ) {
      uniq(of: Holder_Address)
    }
  }
  USDC: EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2023-10-21"
      tokenSmartContract: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
      where: {Balance: {Amount: {gt: "0"}}}
    ) {
      uniq(of: Holder_Address)
    }
  }
}
```

You can run [this query](https://ide.bitquery.io/usdc-and-usdt-token-holders-using-token-holders-api?utm_source=blog&utm_campaign=token_holders_api) in the IDE. Let’s see what data this query returns.

![Number of Token Holders for USDC and USDT tokens on October 23, 2023](/blog/usdc-vs-usdt-analyzing-on-chain-activities-using-token-holders-api/number-of-token-holders.png)

As we can see, there are about 1.797 million holders of USDC and more than 4.591 million holders of USDT. A lot more people are holding USDT compared to USDC.

This can also be because USDT was launched in 2014 and USDC came around in 2018. Just how many people hold a particular token doesn’t give us the whole picture.

### **What is token holder change over a month?**

Many users of both of these tokens understand what’s happening with holders; we can see if there has been an increase in the number of token holders for both of the tokens over the past month. To get token holder data for last month, we need to use the same query as above, but we need to iterate on each day of the month.

![Graph of Token Holders History for USDC and USDT tokens from Sep 21 to Oct 21, 2023](/blog/usdc-vs-usdt-analyzing-on-chain-activities-using-token-holders-api/token-holders-history.png)

As we can see, the USDC is on a constant rise, with more than 13k new holders in the last month. On the other hand, USDT has it’s ups and downs, with a peak number of token holders of 4.60 million, but they have lost 15k if we compare with the start of the month.

**Also Read:** [Arbitrum Ecosystem: A Comprehensive Look Using the Bitquery API​](https://bitquery.io/blog/arbitrum-ecosystem-analysis?utm_source=blog&utm_campaign=token_holders_api)

### **How many people have dumped tokens over the last month?**

In the above section, we only saw growth or reduction in the number of holders, but we don’t know exactly how many people dumped or became users of these tokens. Let’s see how many wallets have dumped both of these tokens over the last month.

To get this data, we can write a query that checks if the last date for a wallet is that day of the month and the balance is zero and counts the number of wallets. This will give us those who have completely emptied their wallets of these tokens.

```
{
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      limit: {count: 100}
      tokenSmartContract: "0xdac17f958d2ee523a2206206994597c13d831ec7"
      date: "2023-10-23"
      where: {BalanceUpdate: {LastDate: {is: "2023-10-23"}, OutAmount: {gt: "0"}}, Balance: {Amount: {eq: "0"}}}
    ) {
      uniq(of: Holder_Address)
    }
  }
}
```

You can try [this query](https://ide.bitquery.io/usdt-liqudidations-on-ethereum-using-token-holders-api?utm_source=blog&utm_campaign=token_holders_api) in the IDE. Similar to the above section, we will iterate over the last month by changing the date. Let’s see what data it gives us.

![Graph of Number of daily wallet liquidations for USDC and USDT for Sep 23 to Oct 23, 2023](/blog/usdc-vs-usdt-analyzing-on-chain-activities-using-token-holders-api/number-of-wallet-liquidations.png)

A lot of wallets liquidate on a daily basis for both of the tokens, USDC and USDT. Still, liquidations for USDT are twice as many, but a lot of wallets hold USDT, so that’s not surprising.

The lowest number of liquidations for USDT, which is around 24K, is still 9K more than the highest number of liquidations for USDC, which is 15.1K. There is no such pattern for liquidations for both of the tokens from last month.

### **Who are the top holders?**

There are a lot of wallets, but who are the top holders? These big wallets are the ones who make big moves. If a small number of [wallets](https://bitquery.io/solutions/crypto-wallet?utm_source=blog&utm_campaign=token_holders_api) hold a large amount of supply, then these wallets have the ability to manipulate token value or do something nefarious.

Note that both of the tokens we are using for the comparison here are very reputed tokens, so we don’t need to worry about big wallets doing something like that. The statement above is just a general statement for any token.

Let’s write a query to get the top token holders. To get top holders by balance, we need to get all the holders and order them in descending order of their balances. To do that, we can use the `orderBy` filter, use `descending`, and set it’s value to `Balance_Amount`. Lastly, use `limit` to get only the first 10.

```
{
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2023-10-23"
      tokenSmartContract: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
      limit: {count: 10}
      orderBy: {descending: Balance_Amount}
    ) {
      Balance {
        Amount
      }
      Holder {
        Address
      }
    }
  }
}
```

You can do this for both tokens by changing the value of `tokenSmartAddress`. Run [this query](https://ide.bitquery.io/top-holders-of-a-token-with-token-holders-api?utm_source=blog&utm_campaign=token_holders_api) in the IDE to see the result.

Here are the top holders of USDT and USDC:

![Table of Top Token Holders for USDC and USDT](/blog/usdc-vs-usdt-analyzing-on-chain-activities-using-token-holders-api/top-token-holders.png)

If we compare this with total supply, we can see that the top 10 holders of USDT hold 24.05% of the total supply, which is $39 billion, and the top 10 holders of USDC token hold 12.17% of the total supply, which is $23 billion.

We can see how there is inequality in the token distribution. We will talk about inequality among the token holders in a later section, so hang tight. We will go in-depth on it and try to find some interesting insights.

### **Where are the whales?**

If you’re new to crypto, then you might not know what whale means, but in general, whale means holders who hold a large number of tokens. The definition of whale is very subjective to each token, and different people will also have different definitions for who the whales are in that token community.

For our purposes, we will consider wallets over $1 million in USDT or USDC tokens, whales. Let’s write a query to get the count of whales in each ecosystem.

In this query, we will get count with the uniq field, but to filter wallets that hold tokens worth more than $1 million, we need to add a filter for balance amount, which we can do by using the `Amount` field of `Balance` and setting the value to `1000000`.

```
{
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2023-10-23"
      tokenSmartContract: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
      where: {Balance: {Amount: {gt: "1000000"}}}
    ) {
      uniq(of: Holder_Address)
    }
  }
}
```

You can try [this query](https://ide.bitquery.io/count-of-token-holders-above-certain-value-using-token-holders-api?utm_source=blog&utm_campaign=token_holders_api) in the IDE to see the result. 

![Graph for Number of USDC and USDT Whales on Oct 23, 2023](/blog/usdc-vs-usdt-analyzing-on-chain-activities-using-token-holders-api/number-of-whales.png)

Here is the data we got, there are more than 3.7k whales using USDT compared to just around 2.2k for USDC. This again shows the dominance of USDT in the stablecoin ecosystem.

We have seen the number of whales for both tokens, but is there any change in that number over the last month?

To get that data, we are going to use the first query and set the `Amount` filter to 1000000. We also need to iterate over each day to get the data.

![Graph of Number of USDC and USDT whales from Sep 23 to Oct 23, 2023](/blog/usdc-vs-usdt-analyzing-on-chain-activities-using-token-holders-api/token-whale-history.png)

The number of whales is going down for both tokens over the last month. Is there a reason for this? Maybe you can explore this on your own with our API. What do you think? [Here](https://bitquery.io/products/coinpath?utm_source=blog&utm_campaign=token_holders_api) is something interesting you can use to [explore money flow](https://docs.bitquery.io/v1/docs/building-queries/Coinpath-Explained/Overview?utm_source=blog&utm_campaign=token_holders_api) data in-depth.

### **What is the most used token?**

Let's take a look at our last question, which is what token is used the most. How many people are actually doing transactions with each of these tokens?

To get the total out amount, we can use the `sum` field and get the total `BalanceUpdate_OutAmount`. This gives us the total outgoing amount for the entry span of the token.

```
{
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2023-10-22"
      tokenSmartContract: "0xdAC17F958D2ee523a2206206994597C13D831ec7"
    ) {
      sum(of: BalanceUpdate_OutAmount)
    }
  }
}
```

You can try [this query](https://ide.bitquery.io/outgoing-amount-for-token-with-token-holders-api?utm_source=blog&utm_campaign=token_holders_api) in the IDE to see the result.

![Graph of daily spend using USDC and USDT from Sep 23 to Oct 23, 2023](/blog/usdc-vs-usdt-analyzing-on-chain-activities-using-token-holders-api/daily-spend-using-a-token.png)

As you can see, there are a lot of users spending USDC compared to USDT. The daily spend of USDC over the last month has reached a peak of $8 billion spent in a day, which is ~$2.5 billion more than the amount spent with USDT at its daily peak over the last month.

**Also Read:** [Top Ethereum Mempool Data Providers](https://bitquery.io/blog/mempool-data-providers?utm_source=blog&utm_campaign=token_holders_api)

## **Inequality in Token Distribution**

Token distribution is most important part of the token economy after tokenomics. We can ignore the tokenomics factor for now; it can be a topic for decision in the future.

So why is token distribution the most important factor? If a small number of wallets hold a large number of tokens, they hold the power to manipulate the price of a token or do something nefarious.

To see the inequality in the distribution of tokens, we have different metrics like the Gini coefficient, the Nakamoto coefficient, and the Thiel index. All of these metrics give us the ability to calculate the inequality of distribution for a particular token.

### **Gini coefficient**

The Gini coefficient gives us statistical dispersion in token distribution. Dispersion means how much distribution is stretched or squeezed. The Gini coefficient ranges from 0 to 1, where 0 shows complete equality and 1 shows complete inequality.

Let’s write a query to get the Gini coefficient for both tokens. To get the Gini coefficient, we can just select the `gini` field and set the value to `Balance_Amount`.

```
{
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2023-10-23"
      tokenSmartContract: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
      where: {Balance: {Amount: {gt: "0"}}}
    ) {
      gini(of: Balance_Amount)
    }
  }
}
```

You can try [this query](https://ide.bitquery.io/gini-coefficient-for-usdc-token-on-ethereum-with-token-holders-api?utm_source=blog&utm_campaign=token_holders_api) in the IDE and see the results.

![Gini coefficient for USDC and USDT](/blog/usdc-vs-usdt-analyzing-on-chain-activities-using-token-holders-api/gini-coefficient-for-tokens.png)

For the result, we can see that the Gini index for both shows very high inequality in the distribution. 

This comes with a caveat. Do you know what that is?

We are getting data here for all the addresses here that involve smart contracts for projects like Uniswap or Aave and centralized exchanges like Binance and Coinbase. These wallets hold user tokens, but when calculating the Gini index, we can’t separate the amount of each holder from these wallets. This gives us a Gini index for token distribution with actual on-chain data, but that is not the reality for token distribution.

Even though there are discrepancies in the calculation, that is not to say there is no inequality because the calculation is skewed. There is still inequality in the distribution of tokens among individual token holders, where a small number of people control a very large number of tokens.

### **Nakamoto Coefficient**

The Nakamoto coefficient tells how decentralized any blockchain network is. In other words, it tells us how many people can do a 51% attack on the network.

In terms of tokens, the Nakamoto coefficient tells us how many people hold 51% of the token supply. Let’s write a query to get the Nakamoto coefficient for both tokens.

We just have to select the `nakamoto` field and set the value to `Balance_Amount`. Also, set the `ratio` to 0.99.

```graphql
{
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2023-10-23"
      tokenSmartContract: "0xdAC17F958D2ee523a2206206994597C13D831ec7"
      where: {Balance: {Amount: {gt: "0"}}}
    ) {
      nakamoto(of: Balance_Amount, ratio: 0.99)
    }
  }
}
```
You can run [this query](https://ide.bitquery.io/nakamoto-coefficient-for-USDT-token-on-ethereum-with-token-holders-api?utm_source=blog&utm_campaign=token_holders_api) in the IDE to see the results for any date you want.

![Nakamoto coefficient for USDC and USDT](/blog/usdc-vs-usdt-analyzing-on-chain-activities-using-token-holders-api/nakamoto-coefficient-for-token.png)

As you can see in both USDC and USDT, a very small number of wallet holders account for more than 51% of the supply. We have seen the data, and the result is clear about which token is more decentralized.

## **Conclusion**

The aim of this article was to showcase the usecases for Bitquery’s new Token Holders API. I think we have seen more than enough, but more important than that was learning what kind of questions blockchain data can answer when doing research. We have learned how to ask the right questions and query data from the blockchain to answer those questions.

Let’s talk about USDC vs. USDT. None of these tokens is better than others. USDT has been in the arena much longer than USDC, so there are a lot more people using USDT. Interesting thing we found is that activity is much more on USDC in terms of more wallets using it and also the amount spent on a daily basis using USDC.

We have the one token that has ruled the sector for so long and a new rival that is trying to compete with it. Not exactly David and Goliath, but still an interesting competition to keep an eye on.

## **About Bitquery**

[**Bitquery**](https://bitquery.io/?utm_source=blog&utm_campaign=token_holders_api) is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

-   **APIs** - [Explore API](https://ide.bitquery.io/streaming?utm_source=blog&utm_campaign=token_holders_api): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

-   **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=blog&utm_campaign=token_holders_api): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

-   **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/data-on-demand?utm_source=blog&utm_campaign=token_holders_api): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

-   **Explorer** - [Try Explorer](http://explorer.bitquery.io?utm_source=blog&utm_campaign=token_holders_api): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info?utm_source=blog&utm_campaign=token_holders_api). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.]]></description>
        </item>
        <item>
            <title><![CDATA[Arbitrum Ecosystem: A Comprehensive Look Using the Bitquery API​]]></title>
            <link>https://bitquery.io/blog/arbitrum-ecosystem-analysis</link>
            <guid>https://bitquery.io/blog/arbitrum-ecosystem-analysis</guid>
            <pubDate>Tue, 24 Oct 2023 22:29:00 GMT</pubDate>
            <description><![CDATA[
Today we will discuss getting all the data from Arbitrum which is a layer-2 solution for Ethereum. You can use Arbitrum chain to do all things you do on Ethereum — use Web3 apps, deploy smart contracts, etc., but your transactions will be cheaper and faster.

Anyone can access the basic analysis without a single line of code through [Arbitrum Bitquery Explorer](https://explorer.bitquery.io/arbitrum). If you want to learn more about Bitquery Protocol's data capabilities, you can read our article about [Opensea API](https://bitquery.io/blog/opensea-nft-api).

Note — We are using [Streaming APIs (v2)](https://docs.bitquery.io/) to get the following data; you can also turn them into WebSocket simply using [Graphql Subscription](https://docs.bitquery.io/docs/start/getting-updates/).

You can run the following queries [here](https://streaming.bitquery.io/).

## Arbitrum Ecosystem Overview and Growth Trends

### Arbitrum TVL

To get the Total Value Locked in Arbitrum Ecosystem,we have to get the value locked in Escrow Smart Contracts on Ethereum, which we can do by getting the smart contract address of the [Generic Escrow Contract](https://explorer.bitquery.io/ethereum/smart_contract/0xcEe284F754E854890e311e3280b767F80797180d)(For USDC and USDT), [DAI Escrow Contract](https://explorer.bitquery.io/ethereum/smart_contract/0xcEe284F754E854890e311e3280b767F80797180d) and [ETH Escrow Contract](https://explorer.bitquery.io/ethereum/smart_contract/0x8315177aB297bA92A06054cE80a67Ed4DBd7ed3a) and Filter out their token balances, ETH balance accordingly in the [query](https://ide.bitquery.io/Arbitrum-TVLAll-Escrows_1) below

```
    query ($network: EthereumNetwork!) {
  ethereum(network: $network) {
    address(
      address: {in: ["0xcEe284F754E854890e311e3280b767F80797180d", "0x8315177aB297bA92A06054cE80a67Ed4DBd7ed3a", "0xA10c7CE4b876998858b1a9E12b10092229539400"]}
    ) {
      balances(
        currency: {in: ["0xdac17f958d2ee523a2206206994597c13d831ec7", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "0x6B175474E89094C44Da98b954EedeAC495271d0F"]}
      ) {
        value
        currency {
          address
          symbol
          tokenType
        }
      }
      balance(in: USD)
    }
  }
}
{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "address": "0xcEe284F754E854890e311e3280b767F80797180d"
}
```

The tvl comes around to be 3.5 billion USD aside from the tokens minted inside the chain.

### Transaction Volume

To get the transaction Volume we can aggregate the transaction data according to blocks and then aggregate the blocks according to the day in the [query](https://ide.bitquery.io/Transactions-By-Date_3?config=2cdb13) below

```
query ($network: evm_network, $from: String, $till: String) {
EVM(network: $network, dataset: combined) {
 Transactions(
   orderBy: {descending: Block_Date}
   where: {Block: {Date: {till: $till, since: $from}}}
 ) {
   ChainId
   Block {
     Date
   }
   count
 }
}
}
{
"network": "arbitrum",
"from": "2023-10-17",
"till": "2023-10-24",
"dateFormat": "%Y-%m-%d"
}

```

![tx count](/blog/arbitrum-ecosystem-analysis/txcount.png)Transaction Volume growth

### Number of Active Users

To get the analysis of Active Users on a daily basis, we can aggregate the Transactions block-wise and aggregating the sender of each transaction as in the [query](https://ide.bitquery.io/No-of-active-users-on-Arbitrum) below

```
    query ($network: evm_network, $from: String, $till: String) {
  EVM(network: $network, dataset: combined) {
    Transactions(where: {Block: {Date: {till: $till, since: $from}}}) {
      ChainId
      Block {
        Date
      }
      senders: uniq(of: Transaction_From)
    }
  }
}


    Parameters

    {
  "network": "arbitrum",
  "from": "2023-10-11",
  "till": "2023-10-18",
  "dateFormat": "%Y-%m-%d"
}
```

![](/blog/arbitrum-ecosystem-analysis/senders.png)

### Daily Active Users Over the Past Year on Arbitrum

The Spike seen on the above graph is due to the [massive airdrop](https://www.coindesk.com/tech/2023/03/16/arbitrum-to-airdrop-new-token-and-transition-to-dao/) of [ARB](https://explorer.bitquery.io/arbitrum/token/0x912CE59144191C1204E64559FE8253a0e49E6548) token which attracted many peeps from all over different chains to get a piece of pie.

### Number of deployed contracts

To get the deployed contracts, we can filter out all the smart contract calls by using Create: True and then aggregating them on a day basis in the [query](https://ide.bitquery.io/Contracts-Deployed-on-Arbitrum-Daily) below

```
query ($network: evm_network) {
  EVM(network: $network, dataset: combined) {
    Calls(where: {Call: {Create: true}}, orderBy: {descendingByField: "Block_Date"}) {
      Block {
        Date
      }
      count
    }
  }
}
{
  "network": "arbitrum"
}
```

![](/blog/arbitrum-ecosystem-analysis/deployed.png)
Deployed Contracts on a daily basis

### Top DEXs on Arbitrum

To analyze the top DEXs on Arbitrum, a separate database cube exists on bitquery named DEXTrades in which we can aggregate the data based upon the contract of DEX protocol and then get the coins supported and trades on each DEX as in the [query](https://ide.bitquery.io/DEX-Smart-Contract-Protocols-On-Arbitrum) below

```
query ($network: evm_network, $limit: Int!, $offset: Int!, $from: String, $till: String) {
  EVM(dataset: combined, network: $network) {
    DEXTrades(
      limit: {count: $limit, offset: $offset}
      where: {Block: {Date: {since: $from, till: $till}}}
      orderBy: {descending: Trade_Dex_ProtocolName}
    ) {
      ChainId
      currencies: uniq(of: Trade_Buy_Currency_Name)
      contracts: uniq(of: Trade_Dex_SmartContract)
      trades: count
      Trade {
        Dex {
          ProtocolName
          ProtocolFamily
          ProtocolVersion
        }
      }
    }
  }
}
{
  "network": "arbitrum",
  "limit": 10,
  "offset": 0,
  "from": "2023-07-12",
  "till": "2023-10-19",
  "dateFormat": "%Y-%m-%d"
}
```

![](/blog/arbitrum-ecosystem-analysis/topdex.png)

### Top DEX by the number of trades.

To get more interactive graph head onto [Bitquery Explorer](https://explorer.bitquery.io/arbitrum/dex_protocols).

### DEX trades on a timely basis

For analyzing the growth of all the DEXs on Arbitrum in a timely manner, we have to aggregate the DEX trades on the basis of the block which is then aggregated on a Daily time period in the [query](https://ide.bitquery.io/Count-of-DEX-Trades-By-Protocol_7?config=b86f45) below

```
query ($network: evm_network, $from: String, $till: String) {
  EVM(dataset: combined, network: $network) {
    DEXTrades(
      where: {Block: {Date: {since: $from, till: $till}}}
      orderBy: {descending: Block_Date}
    ) {
      Block {
        Date
      }
      ChainId
      count
      Trade {
        Dex {
          ProtocolName
          ProtocolFamily
          ProtocolVersion
        }
      }
    }
  }
}
{
  "network": "arbitrum",
  "limit": 100,
  "offset": 0,
  "from": "2023-10-17",
  "till": "2023-10-24",
  "dateFormat": "%Y-%m-%d"
}
```

![](/blog/arbitrum-ecosystem-analysis/protocol.png)

[DEX trade Growth](https://explorer.bitquery.io/arbitrum/dex_protocols)

### Top DeFi Protocol on Arbitrum

To get the top DeFi protocols, we have to do a bit of different logic as there are new protocols added to the chain every day in different categories ranging from gaming to perpetual trading and much more.

So to get top protocols we have to get the top transferred tokens in the Arbitrum ecosystem and get the count of their transfers, count of receivers/senders, and the sum amount of tokens transferred to get a gist of top protocols which is done in the [query](https://ide.bitquery.io/Top-Token-Transfers-in-Arbitrum_1#) below

  ```

query ($network: evm_network, $from: String, $till: String) {
  EVM(dataset: combined, network: $network) {
    Transfers(
      limit: {count: 30}
      where: {Block: {Date: {since: $from, till: $till}}}
      orderBy: {descendingByField: "count"}
    ) {
      sum_amount: sum(of: Transfer_Amount)
      count
      receivers: uniq(of: Transfer_Receiver)
      senders: uniq(of: Transfer_Sender)
      Transfer {
        Currency {
          Symbol
          SmartContract
        }
      }
    }
  }
}


{
"network": "arbitrum",
"offset": 0,
"from": "2022-10-11",
"till": "2023-10-18",
"dateFormat": "%Y-%m-%d"
}
```

So from the query above the top protocols come to be GMX(Defi), Realm(Gaming), Stargate(Bridging & Staking), Camelot(Defi), Dopex(Defi), and Radiant(Defi).

### Top wallets using Arbitrum

To get the top wallets, we have to aggregate the transfers by the walled contract of the sender in the [query](https://ide.bitquery.io/Top-Transfer-wallet-count) below

```
query ($network: evm_network, $limit: Int!, $offset: Int!) {
 EVM(network: $network, dataset: combined) {
   Transfers(
     limit: {count: $limit, offset: $offset}
     orderBy: {descendingByField: "count"}
   ) {
     ChainId
     count
     Transaction {
       From
     }
     count
   }
 }
}
{
 "network": "arbitrum",
 "limit": 10,
 "offset": 0,
 "till": "2023-10-20",
 "from": "2023-07-01",
 "dateFormat": "%Y-%m-%d"
}


```

![](/blog/arbitrum-ecosystem-analysis/arbitrum-transfer.png)Top wallets on Arbitrum with Top transfer count

### Validator Count on Arbitrum

We can count active Validators for each day through the dataset named MinerRewards(Pre-Paris Maxxis!) by aggregating data block-wise on a daily basis in the [query](https://ide.bitquery.io/Active-Miners-By-Time?config=02ccd1) below

```
query ($network: evm_network, $from: String, $till: String) {
EVM(dataset: combined, network: $network) {
 MinerRewards(
   orderBy: {ascending: Block_Date}
   where: {Block: {Date: {since: $from, till: $till}}}
 ) {
   Block {
     Date
   }
   ChainId
   mainers: count(distinct: Block_Coinbase)
 }
}
}
{"network":"arbitrum","limit":10,"offset":0,"from":"2023-10-17","till":"2023-10-24","dateFormat":"%Y-%m-%d"}

```

![](/blog/arbitrum-ecosystem-analysis/miners.png)

### Daily Active Developers

We can get the active developers each day by counting unique smart contract deployers each day by aggregating them on a daily basis of Blocks in the [query](https://ide.bitquery.io/Developers-active-on-Arbitrum-Daily) below

```
query ($network: evm_network) {
EVM(network: $network, dataset: combined) {
 Calls(where: {Call: {Create: true}}, orderBy: {descendingByField: "Block_Date"}) {
   Block {
     Date
   }
   deployers: uniq(of: Call_From)
 }
}
}
 {"network":"arbitrum"}
```

![](/blog/arbitrum-ecosystem-analysis/developers.png)

### Top Development Teams on Arbitrum

To get the top developer on Arbitrum, we take the Calls Dataset filter out the contract creation calls, and aggregate them upon the caller field in the [query](https://ide.bitquery.io/Top-Contract-Deployers-Arbitrum) below

```
query ($network: evm_network, $from: String, $till: String) {
EVM(network: $network, dataset: combined) {
 Calls(
   where: {Call: {Create: true}, Block: {Date: {since: $from, till: $till}}}
   orderBy: {descendingByField: "count"}
 ) {
   Call {
     From
   }
   count
 }
}
}
{
"network": "arbitrum",
"from": "2023-07-01",
"till": "2023-10-20"
}

```

Some interesting results came out of the above query, the top contracts deployed are of [ERC-4337](https://eips.ethereum.org/EIPS/eip-4337)(Account Abstraction) Smart Contract Wallets, and the top abstraction SDK providers are Safe Proxy and ZeroDev. The top teams utilizing the cutting edge tech  
are Sports AMM Overtime, [Holograph](https://explorer.bitquery.io/arbitrum/address/0x4f92ae4960a6ac49fa88bcf9d6d4b8c53f626a55), and [Thales AMM](https://explorer.bitquery.io/arbitrum/address/0x5cf3b1882357bb66cf3cd2c85b81abbc85553962).

Apart from the Smart contract wallets, the top hard-working devs are of [Timeswap Protocol](https://explorer.bitquery.io/arbitrum/smart_contract/0x4e59b44847b379578588920cA78FbF26c0B4956C), [Across Protocol](https://explorer.bitquery.io/arbitrum/smart_contract/0x7bE592566B803D3172d9e04f77B5F1a694B2CCCC), and [LogX Protocol](https://explorer.bitquery.io/arbitrum/smart_contract/0x47a91457a3a1f700097199fd63c039c4784384ab).

Another booming category is of wallet providers using account abstraction like Wallet Factory, Ambire Wallet, and BlockTo Wallet.

That is it Folks, As we can see from the maximum of the charts above the maximum activity on Arbitrum Chain was around March as the biggest Airdrop of the year of the biggest L2 at the moment happened on Mar 23 and the volume stable after that till recent times. This is a bit due to the bear market and a bit due to less money coming in the market from retail.

But Builders Gonna Build, go!!


*This blog was written by guest author Nitin.*
]]></description>
        </item>
        <item>
            <title><![CDATA[Top Ethereum Mempool Data Providers]]></title>
            <link>https://bitquery.io/blog/mempool-data-providers</link>
            <guid>https://bitquery.io/blog/mempool-data-providers</guid>
            <pubDate>Mon, 25 Sep 2023 22:29:00 GMT</pubDate>
            <description><![CDATA[
Have you ever wondered why your Ethereum transaction takes some time to confirm? The answer lies in the fact that your transaction is patiently waiting to be confirmed in the Ethereum Mempool. The Mempool, a fascinating and integral part of the [Ethereum blockchain](https://bitquery.io/blockchains/ethereum-blockchain-api), plays a crucial role in transaction processing. In this article, we will delve deeper into what the Ethereum Mempool is and explore the top data providers that offer access to Mempool data.

## **What is Mempool?**

Since there is a limit to how many transactions can be included in a single block, the blockchain needs a mechanism to temporarily store extra transactions that are yet to be confirmed. This crucial mechanism is known as the Mempool.

Here's how it works: When you broadcast a transaction to the network, it first enters the Mempool. Here, it patiently waits until a miner or validator includes it in a block. While all unconfirmed transactions reside in the Mempool, miners and validators have the time needed for transaction prioritization, ordering, and constructing blocks.

![Explaination of How Mempool Works](/blog/mempool-data-providers/mempool-explained.png)

## **How to access Ethereum mempool data?**

If you want to access data from the Mempool, there are two primary methods to consider:

1. Using your node or a blockchain API
2. Using a Mempool data provider

Now, let's look at both ways and think about the good and bad sides of each.

### **Getting Data Directly from Your Node**

If you're running your own Ethereum node, you can directly query Mempool transactions. The steps to query these transactions depend on the execution client you're using.

For instance, if you're using Geth, which is a popular execution client, on your node, the Mempool is referred to as the "txpool". To access all the transactions within the transaction pool, you can make use of a JSON-RPC request using the “[txpool_content](https://geth.ethereum.org/docs/interacting-with-geth/rpc/ns-txpool#txpool-content)” method.

Here are other execution clients and their JSON-RPC method to access transactions from the mempool of the node.

![List JSON RPC method for each execution client to get the mempool transaction from the node](/blog/mempool-data-providers/execution-client-json-rpc-method-list.png)

**Limitations of querying mempool from an ethereum node**

While this method gives you granular control over the data you retrieve, it has limitations.

Since multiple transactions are broadcasted simultaneously, the pending transactions in the Mempool of different nodes may vary. This means you might not have access to all pending transactions, and there may be some delays in receiving new ones.

Additionally, if you’re running your own node, it involves maintenance efforts.

**Also Read: [Top Uniswap APIs](https://bitquery.io/blog/top-uniswap-APIs)**

### **Getting Mempool Data from Mempool Data Providers**

Alternatively, you can access Mempool data through Mempool data providers. These providers simplify the process with easy API integration and eliminate the need to maintain your own node.

Let's now explore some of the top Ethereum Mempool data providers:

### [Bitquery](http://bitquery.io/):

Bitquery, an indexed blockchain data provider, offers the [Ethereum mempool API](https://docs.bitquery.io/docs/examples/mempool/mempool-api/). This service allows developers and searchers to access a continuous stream of newly broadcasted transactions in real-time with very low latency. It allows users to query various details of newly broadcasted transactions, like tracking token transfers and monitoring decentralized exchange ([DEX](https://bitquery.io/products/dex)) trades from protocols like [Uniswap](https://bitquery.io/blog/uniswap-pool-api), [Sushiswap](https://bitquery.io/blog/top-sushiswap-apis), Curve, Balancer, and many more.

![Bitquery](/blog/mempool-data-providers/bitquery.png)

**Features**:

- **Indexed Broadcasted Transaction**: With indexed broadcasted transactions, developers and researchers can monitor [transfers](https://docs.bitquery.io/docs/examples/transfers/erc20-token-transfer-api/) for specific tokens or [DEX trades](https://docs.bitquery.io/docs/category/dex-trades/) from 100+ protocols. With all the broadcasted transactions being indexed, it reduces work on your end of filtering data to spot arbitrage opportunities or network trends.
- **GraphQL Support**: Bitquery provides the data using [GraphQL subscriptions](https://bitquery.io/products/data-streams), using the graphql-websocket protocol in the background. GraphQL subscriptions enable developers to request specific data they require, following the same user-friendly querying approach as regular GraphQL APIs.
- **Access to historical broadcasted transactions**: With the Ethereum mempool API, developers have access to transactions broadcast in the past.
- **Available for Blockchain Network**: Bitquery’s mempool API currently supports Ethereum mainnet.

### BloXroute:

BloXroute is a layer-0 infrastructure that aims to make blockchain networks faster using its infrastructure. Along with providing this infrastructure, BloXroute also provides different services like Mempool services, Block streaming, Solana trading API, etc.

![BloXroute](/blog/mempool-data-providers/bloxroute.png)

**Features**:

- **Mempool Transaction Feed**: BloXroute offers this service via a JSON RPC endpoint within their Cloud API, allowing users to connect seamlessly to the nearest location for their application.
- **Available for Blockchain Networks**: The mempool services on both the Ethereum Mainnet and BSC Mainnet through BloXroute.

### RPCFast:

RPCFast is a service that provides enterprise-level blockchain APIs for different blockchains like Ethereum, BNB, Polygon, and Velas. Along with providing the blockchain API, they also provide a mempool stream API and a transaction simulator API.

![RPCFast](/blog/mempool-data-providers/rpcfast.png)

**Features**:

- **Mempool Transaction Feed**: RPCFast provides pending transactions through the JSON RPC endpoint. With the “eth_newPendingTransactionFilter” filter, you are able to get notifications about new pending transactions.
- **Transaction Simulator API**: This API allows you to execute transactions in the EVM using the real state and get necessary data about their execution.
- **Available for Blockchain Networks**: The API is available for Ethereum, BNB Chain, Polygon.

### Blocknative:

Blocknative is an on-chain and mempool data provider. It allows developers to monitor mempool transactions using webhooks and websockets. Blocknative also provides Mempool explorer for developers to see all the mempool data on a dashboard.

![Blocknative](/blog/mempool-data-providers/blocknative.png)

**Features**:

- **Mempool API**: It is a service that provides transaction monitoring using webhooks. Whenever a new ethereum transaction is available, it sends a POST request to the webhook URL.
- **Mempool SDK**: Blocknative SDK provides an alternative way to get notification messages using JavaScript with a simple WebSocket's library.
- **Available for Blockchain Network**: Blocknative supports Ethereum, Goerli (Ethereum testnet), Gnosis and Polygon (Matic).

### Eden Network:

<a href="https://edennetwork.io/" rel="nofollow">Eden network</a> is a multichain infrastructure where it aims for minimizing negative effects of MEV on blockchain network. Along with building this infrastructure, they have introduced a Ethereum mempool streaming service. It is currently in the alpha.

![Eden Network](/blog/mempool-data-providers/edennetwork.png)

**Features**:

- **Mempool Streaming Service**: Service that allows MEV searchers and block builders to get access to Ethereum mempool data for spotting MEV opportunities and build blocks quickly.
- **Available for Blockchain Network**: Mempool streaming service is available for Ethereum mainnet.

**Also Read: [Top SushiSwap APIs](https://bitquery.io/blog/top-sushiswap-apis)**

**Limitation with using Mempool data providers**

One limitation here is that you become reliant on a service provider, similar to relying on an RPC provider in the first method. However, most Mempool data providers strive to offer reliable services, making this a better option for the majority of users.

## **Importance of Choosing Right Data Provider**

When selecting a data provider for accessing Mempool data, your choice should be guided by various data criteria and your specific needs. Here are the factors to take into account during your selection process:

- **Data Accuracy**: Mempool data is dynamic, making data accuracy crucial. Outdated data can significantly impact your operational performance.
  
- **Data Delay**: Mempool data is often time-sensitive, with limited time for reaction. Therefore, minimal data delay is essential when choosing a data provider.
  
- **Reliability and Uptime**: Select a provider with a proven track record of reliability and minimal downtime to ensure uninterrupted access to mempool data.
  
- **Support Documentation**: A comprehensive service documentation with a wide range of examples is valuable when making your choice.
  
- **API and Integration Support**: Your data provider choice should align with your integration needs. Providers offer different integration options such as websockets, JSON RPC, or webhooks. Your decision should be based on your application's requirements and capabilities.
  
- **Historical Data**: While the mempool is ever-changing, having support for historical data may still be worth considering for your specific use case.
  
- **Customization and Filtering**: Given the diversity of transactions in the mempool, filtering capabilities are essential. However, it's important to carefully weigh the pros and cons of adding additional filtering layers. While they can enhance application performance, they may also introduce complexity. Your application's design should determine the extent of filtering needed.

**Also Read: [How to Track Liquidity for Token Pairs on Uniswap](https://bitquery.io/blog/how-to-track-liquidity-for-token-pair-on-uniswap)**

## **Usecases of Mempool Data**

Mempool is a highly dynamic environment with constant activity. Mempool data serves various purposes and offers variety of use cases. Let's explore some of these use cases to better understand the utility of mempool data.

1. **Arbitrage Strategies**:

Arbitrage involves profiting from price variations of the same asset across markets. Mempool data is pivotal for real-time arbitrage. Few of many strategies are:

- **MEV Bots (Maximal Extractable Value)**:

MEV reflects miners' potential profit from transaction order. MEV bots swiftly exploit opportunities, e.g., front-running. For instance, they detect a user's large token buy order, execute a higher-priced purchase ahead of it, and sell to the user for profit.

- **Arbitrage Bots**:

These bots identify price differences for an asset across exchanges and capitalize on them. Mempool data is crucial. For instance, if Bitcoin's price is lower on Exchange A than B, an arbitrage bot buys on A and sells on B for profit.

2. **Transaction Monitoring and Real-time Insights**:

Mempool data allows you to closely monitor a wide range of transactions and keep track of their current status. Additionally, it provides invaluable real-time insights into the network's condition, encompassing transaction volumes, patterns, and trends.

3. **Network Congestion Prediction**:

By analyzing mempool data, you can predict possible network congestion and prepare accordingly. Understanding the state of pending transactions in the mempool helps you predict and respond to fluctuations in network activity, improving your operations like batch withdrawals from centralized exchanges or applications like arbitrage bots.

## **Conclusion**

In summary, the Ethereum Mempool is an important part of the Ethereum network, facilitating transaction processing. To access Mempool data, you can either query it from your node or use Mempool data providers like Bitquery, BloXroute, RPCFast, Blocknative, or Eden Network.

When selecting a provider, take into account elements such as data accuracy, minimal data latency, reliability, documentation availability, integration support, historical data access, and customization options. These factors are essential for enhancing the effective use of Mempool data in various applications, such as transaction monitoring, arbitrage strategies, network congestion prediction, and more.

**Also Read: [Arbitrum API - Tokens, NFTs, DEX, Balances & More](https://bitquery.io/blog/arbitrum-api)**

## About Bitquery

[Bitquery](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

- **APIs** - [Explore API](https://ide.bitquery.io/streaming): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.
  
- **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=about): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.
  
- **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/data-on-demand?utm_source=blog&utm_medium=about): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.
  
- **Explorer** - [Try Explorer](http://explorer.bitquery.io/): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.

]]></description>
        </item>
        <item>
            <title><![CDATA[Top SushiSwap APIs - A Comprehensive Guide to DEX Exchanges]]></title>
            <link>https://bitquery.io/blog/top-sushiswap-apis</link>
            <guid>https://bitquery.io/blog/top-sushiswap-apis</guid>
            <pubDate>Mon, 25 Sep 2023 05:35:07 GMT</pubDate>
            <description><![CDATA[

SushiSwap DEX facilitates token swaps, liquidity provisioning, and yield farming. In 2022, [SushiSwap](https://www.sushi.com/) processed over 1.5 billion trades and continues to average over 100 million trades per month. Its rapid growth is expected to persist. In the DeFi landscape, access to reliable data sources is imperative. This comprehensive guide explores a diverse array of SushiSwap APIs and tools, empowering traders, investors, and developers with data-driven insights.

## Why Data Matters  

Before diving into the APIs and tools, understanding why data is critical within the SushiSwap ecosystem is paramount.

1.  Real-Time Data: Bitquery's APIs, including dextrades and transactions, offer up-to-the-minute [SushiSwap trading pair data](https://docs.bitquery.io/docs/examples/dextrades/get-trading-pairs-of-token/), liquidity pool insights, and transaction specifics. This ensures you have current information for data-driven decision-making.

2.  Price Precision: SushiSwap's price data is critical in the DEX exchange landscape. Bitquery provides [precise price data in real time](https://docs.bitquery.io/docs/start/getting-updates/), allowing for accurate trade execution and risk mitigation.

3.  Liquidity Monitoring: Liquidity is vital for DEX trading. Bitquery's SushiSwap API provides real-time updates on liquidity pools, including newly created token pairs. This data helps you efficiently manage assets and stay informed about liquidity changes.

4.  Historical Insights: [Historical data and DEX screeners](https://ide.bitquery.io/Get-Pancakeswap-V1-pair-reserves_1) are valuable for optimizing trading strategies. Bitquery's tools offer a wealth of historical data, enabling a deeper understanding of past market dynamics and trends.

5.  Smart Contract Monitoring: Security is a top priority. Bitquery's SushiSwap API allows developers and security experts to monitor SushiSwap's smart contracts for anomalies and vulnerabilities in real-time, ensuring the platform's security.

Now, let's explore the list of APIs and tools providing this valuable information.

## List of SushiSwap Data Sources (APIs and Tools)

### 1. Bitquery SushiSwap API

Bitquery's SushiSwap API provides extensive data on dextrades, transactions, and more. It offers a [free developer plan](https://bitquery.io/pricing) tailored for SushiSwap enthusiasts, granting access to a comprehensive suite of tools and data products to streamline the exploration of SushiSwap's ecosystem. Here's a view of different ways in which you can access SushiSwap data:

[SushiSwap DEX Explorer](https://explorer.bitquery.io/ethereum/dex/SushiSwap)-: This tool offers a user-friendly visual interface that allows you to effortlessly access and navigate through SushiSwap data without requiring coding skills. Users can navigate into the depths of the DEX, extracting valuable insights along the way. If you prefer not to interact directly with APIs but still want access to SushiSwap data, Bitquery Explorer is your solution.

![explorer](https://lh3.googleusercontent.com/sop-QOLetADeld_q2OpIOhN-0jEnl9H6DXOC8qoDFssqq3c3VqzWWTfMQ53jGeGAfkN86bQWQlUR59BbSPXzjXt_lx3fmBgSzyq36tQOTotdU5Jma5GYyJvLyX0l1a_9J377S6qlW8SW1jxKqTJEjic)

[Bitquery's IDE and Query Runner](https://ide.bitquery.io/SushiSwap-Trades-on-Polygon): For developers and data analysts looking to elevate their SushiSwap analysis to the next level, Bitquery provides IDE with query builder for easy understanding. Bitquery ensures users can instantly [visualize the results](https://bitquery.io/blog/graphql-charts) of their queries through the IDE Output feature. Whether you're a newcomer to coding or GraphQL, Bitquery offers an "Explore Queries" feature where you can find a plethora of pre-crafted queries making data exploration easily accessible to users of all levels.  
![query](/blog/top-sushiswap-apis/query.png)

Extensive Data: You can explore a wide array of information, including:

- The latest trades ([live TradingView chart](https://explorer.bitquery.io/bsc/tokenpair/0x947950bcc74888a40ffa2593c5798f11fc9124c4/0xab9d0fae6eb062f2698c2d429a1be9185a5d4f6e) for any token like PASTA)
- Historical trading patterns
- Trade volumes over time
- [Token pairs](https://explorer.bitquery.io/ethereum/dex/SushiSwap/pairs)

And much more in real-time, as soon as it is saved on the chain

Build your own SushiSwap data dashboard: Use the API to pull data into your [own custom dashboard or visualization tool](https://docs.bitquery.io/docs/usecases/dApps/) to get a personalized view of the SushiSwap ecosystem.

![tradingview](/blog/top-sushiswap-apis/tv.png)

Bitquery's SushiSwap API serves as an invaluable resource for anyone looking to gain deep insights into the SushiSwap ecosystem, providing the tools and data necessary for informed decision-making and strategic analysis.

![explore](/blog/top-sushiswap-apis/explore.png)

### 2. SushiSwap Official API

- Overview: The SushiSwap Official API is a reliable source of fundamental data essential for anyone involved in the SushiSwap ecosystem. It provides crucial information, including SushiSwap's current price data and trading volumes. This official API is a trusted and accurate source for SushiSwap data, ensuring that users have access to up-to-date and precise information for their trading and investment decisions.

![sushiswap api](/blog/top-sushiswap-apis/sushiswap_api.png)

### 3. DexGuru

- Features: DexGuru is a real-time DEX screener that offers a comprehensive set of features for SushiSwap enthusiasts. It provides real-time insights into SushiSwap's token prices, liquidity pool dynamics, and trading activities. What sets DexGuru apart are its intuitive charts and data visualization tools, making it easier for traders to analyze market trends, spot opportunities, and make informed decisions in the fast-paced world of DEX trading.

![dexguru](/blog/top-sushiswap-apis/dexguru.png)

### 4. CoinGecko

![coingecko](/blog/top-sushiswap-apis/coingecko.png)

- Data: CoinGecko is a powerhouse of cryptocurrency data, and it includes comprehensive coverage of SushiSwap. This API offers a wide range of data, including SushiSwap's price data, trading volumes, historical price charts, and market capitalization data. CoinGecko is a trusted and widely used source among cryptocurrency enthusiasts, making it an excellent choice for those seeking detailed SushiSwap data to inform their investment strategies.

### 5. DexTools

- Functionality: DexTools is another valuable DEX screener that caters specifically to SushiSwap data needs. It provides real-time SushiSwap API data, including features like token tracking, price charts with real-time updates, and access to historical trading data. For traders and investors, DexTools offers insights into market trends and liquidity, helping them make informed decisions while navigating the decentralized exchange landscape.

![dextools](/blog/top-sushiswap-apis/dextools.png)

### 6. DeBank

![DeBank](/blog/top-sushiswap-apis/debank.png)

DeBank is a comprehensive DeFi wallet and analytics platform that goes beyond traditional wallet functionalities. It incorporates SushiSwap data, allowing users to track their holdings and monitor liquidity pools. This platform simplifies DeFi portfolio management by providing an all-in-one solution for DeFi enthusiasts. It's an indispensable tool for those looking to efficiently manage their assets across various DeFi protocols, including SushiSwap.

### 7. Nansen

- Analytics: Nansen specializes in advanced analytics tailored for Ethereum-based DeFi projects, including SushiSwap. This platform offers in-depth insights into on-chain activities, token flows, and smart contract interactions within the SushiSwap ecosystem. Investors and analysts can leverage Nansen's data to gain a deeper understanding of user behavior and market dynamics, ultimately aiding in more informed decision-making.

![nansen](/blog/top-sushiswap-apis/nansen.png)

### 8. Zapper

![zapper](/blog/top-sushiswap-apis/zapper.png)

- Portfolio Management: Zapper provides a user-friendly DeFi dashboard that simplifies asset management across a multitude of DeFi protocols, including SushiSwap. With Zapper, users gain a holistic view of their DeFi portfolio, allowing for easy tracking and management of assets. This tool is an excellent choice for those seeking efficient and streamlined portfolio management within the DeFi space.

### 9. 1inch

- DEX Aggregator: 1inch is a versatile DEX aggregator that extends its services to SushiSwap. It stands out by offering competitive prices and access to liquidity across multiple DEXs, including SushiSwap. Traders can leverage 1inch to access real-time trading data and execute trades efficiently, making it a valuable tool for those seeking optimal trade execution and liquidity in the DEX ecosystem.

![1inch](/blog/top-sushiswap-apis/1inch.png)

### 10. SushiSwap Vision

![vision](/blog/top-sushiswap-apis/vision.png)

- Insights: SushiSwap Vision presents a data-rich dashboard filled with insights into SushiSwap's liquidity pools, token swaps, and historical data. This visual representation of SushiSwap's ecosystem aids in data analysis, DEX exchange strategies, and SushiSwap price analysis. It's a valuable resource for traders and investors looking to make data-driven decisions within the SushiSwap platform.

## How to Choose the Best SushiSwap Data Provider

Selecting the most suitable SushiSwap data provider involves considering several factors:

1. Data Depth: Evaluate the extent of data coverage, including SushiSwap price data and DEX exchange information. Ensure it includes the specific data points essential for your trading, investment, or development strategies.

2. User Interface: Assess the tool or API's user-friendliness, particularly for SushiSwap price analysis and DEX exchange activities. Bitquery offers an intuitive interface, making it easier to navigate and extract meaningful data.

3. Additional Features: Consider supplementary features such as portfolio tracking, advanced analytics, and DEX aggregation. These features can significantly enhance your data-driven decision-making process, especially in Dex exchange participation and SushiSwap price analysis.

4. Reliability: Verify that the data provider offers reliable and up-to-date information. Bitquery ensures real-time data updates, crucial for Dex exchange enthusiasts and those conducting SushiSwap price analysis, preventing inaccuracies in decision-making.

5. Cost: Consider the pricing structures or subscription plans associated with each provider, particularly if you're conducting extensive Sushiswap price analysis or participating in DEX exchanges. Some sources offer free access to basic data, while others provide premium features for a fee.

6. Community and Support: Consider the provider's user community and support resources. Strong community engagement and responsive support are valuable when you encounter issues or have questions.

## Conclusion

Reliable SushiSwap data is your compass in the DEX exchange landscape. Whether you're drawn to Bitquery's comprehensive coverage or other top-tier tools like DexGuru, CoinGecko, or DexTools, the right data source empowers you to navigate the vibrant world of decentralized exchanges with confidence.

In summary, SushiSwap data fuels your journey toward DEX trading success. With accurate information at your fingertips, you can seize opportunities, mitigate risks, and thrive in the DeFi ecosystem.

## FAQ

1. What is SushiSwap?

SushiSwap is a decentralized exchange (DEX) built on Ethereum for token swaps, liquidity provision, and yield farming.

2. What is a DEX screener?

A [DEX screener](https://www.alchemy.com/dapps/dex-screener) is a tool that provides real-time insights into decentralized exchanges, including SushiSwap, allowing traders to monitor token prices, liquidity pools, and trading activities.

3. Are there free SushiSwap data sources?

Yes, indeed! When it comes to accessing SushiSwap data, you have various options. If you're looking for a cost-effective solution, consider [Bitquery's free developer plan](https://bitquery.io/pricing). It's tailored for developers and data enthusiasts, offering essential data access without any subscription fees. This option allows you to explore SushiSwap's data ecosystem without financial constraints.

4. How can I begin analyzing SushiSwap data?

Explore the listed APIs and tools, select the one that suits your needs, and embark on your journey of data analysis within the DeFi ecosystem.

----

*Blog authored by guest writer Aliya*]]></description>
        </item>
        <item>
            <title><![CDATA[Explore NFT Collections with Bitquery's API]]></title>
            <link>https://bitquery.io/blog/nft-collection-api</link>
            <guid>https://bitquery.io/blog/nft-collection-api</guid>
            <pubDate>Fri, 22 Sep 2023 22:29:00 GMT</pubDate>
            <description><![CDATA[
In the ever-evolving digital landscape, buzzwords come and go, but few have captured the imagination and wallets of the masses like “[NFTs](https://bitquery.io/products/nft-api)”. From digital art masterpieces fetching millions to sports highlights turned into coveted digital collectibles, NFTs are reshaping the boundaries of ownership and value in the online realm. But what exactly are these digital assets? And how can one stay updated with the latest collections and their intricate details? Dive into the world of NFTs with us as we unravel their mysteries and explore how platforms like Bitquery are making it easier than ever to access real-time information on these unique tokens.

## What is NFT?

NFTs, or Non-Fungible Tokens, are unique digital assets verified on a blockchain, distinct from interchangeable assets like bitcoin. Their distinctiveness is akin to trading cards; while bitcoins have equal value, trading cards can vary greatly in worth. The surge in NFT popularity has attracted artists, musicians, and sports leagues, transforming monetization of digital art, music, and game items. Their allure stems from their uniqueness and blockchain-backed proof of authenticity.

## What is an NFT Collection?

An NFT collection comprises unique digital assets, often unified by a theme and crafted by artists or teams. These collections are primarily on NFT marketplaces like OpenSea and Rarible. NBA Top Shot's "NBA Moments" is a prominent example, converting basketball highlights into digital cards. Purchasing these NFTs typically involves cryptocurrencies like ether (ETH). The rise of NFTs has been swift and turbulent, with some fetching millions and igniting debates about value and digital ownership.

## Why Use an NFT Collection API?

An NFT Collection API provides a centralized source of information, pulling together data from various NFT platforms, artists, and collections. This ensures that users have a holistic view of the NFT market at their fingertips. This includes:

- Real-time Updates: The NFT market is dynamic, with new collections and assets being added frequently. An API ensures that you receive real-time updates, allowing you to stay ahead of trends and make informed decisions.
- Integration Capabilities: For developers and platforms, an API offers seamless integration. Whether you’re building an NFT marketplace, a portfolio tracker, or a news platform, an API ensures that your platform is always populated with the latest data.
- Customized Data Retrieval: Not everyone needs all the data all the time. An NFT Collection API allows users to tailor their data requests, fetching only what’s relevant to them. This ensures efficiency and relevance in data retrieval.
- Market Analysis: For investors and collectors, understanding market trends is crucial. An API can provide historical data, allowing for trend analysis, price predictions, and understanding market movements.
- Cost-Efficient: Instead of building data retrieval systems from scratch or manually tracking NFT collections, an API provides a cost-effective solution, reducing the need for extensive resources and time investments.

NFTs are a global phenomenon. An NFT Collection API ensures that you have access to information from collections and marketplaces worldwide, breaking down regional barriers. For newcomers to the NFT space, this can serve as an educational tool, providing insights into popular collections, historical trends, and the overall landscape of the NFT market.

## How to Access the Latest NFT Collections Information with Bitquery?

Bitquery stands out as a powerful tool for anyone diving deep into the NFT space. With its robust APIs, it offers a comprehensive view of NFT data across multiple blockchain networks. Whether you’re tracking historical trends or seeking real-time updates, Bitquery has got you covered. Key Features of Bitquery include:

- Different Angles of Data: Bitquery NFT API offers a range of functionalities that includes users to identify [NFT holders](https://docs.bitquery.io/docs/examples/nft/nft-api/#nft-holders-for-a-project) for specific projects, view all [NFTs linked to a particular address](https://docs.bitquery.io/docs/examples/nft/nft-api/#all-nfts-owned-by-an-address), and track the [most recent trades](https://docs.bitquery.io/docs/examples/nft/nft-api/#latest-nft-trades-for-given-project) for any given project. 

Additionally, you can monitor all [NFT transfers within a specific block](https://docs.bitquery.io/docs/examples/nft/nft-api/#all-nft-transfers-in-a-block) and observe [every transfer associated with a particular NFT](https://docs.bitquery.io/docs/examples/nft/nft-api/#all-transfers-of-an-nft). And that’s just scratching the surface; there’s so much more it can do.

- User-Friendly Interface: For those new to Bitquery, the platform offers an intuitive IDE. Simply register, and you’re ready to create and run your first query.

- Real-time Data Access: Bitquery’s GraphQL subscription ensures you have access to real-time blockchain data without any delay.
Historical Data Analysis: Through Bitquery’s GraphQL APIs, users can delve into historical data, including token transfers, trades, NFTs, and even mempool data.

- Cloud Data Sets: For those who prefer cloud platforms, Bitquery provides data access through popular cloud infrastructures like AWS S3, Microsoft Azure, Snowflake, and Google BigQuery.

Bitquery’s NFT Collection API is a powerful tool designed to provide insights into the world of NFTs. Let’s dive in and see how it works in real-time. Also, all the code that we’re executing is run through the [Bitquery IDE](https://graphql.bitquery.io/ide).

1. Discovering Trending NFT Collections

The Bitquery NFT collection API can be used to get trending NFT collections.

The following query is designed to retrieve the top 10 trending NFT collections on the Ethereum network:

```graphql
query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      orderBy: {descendingByField: "count"}
      limit: {count: 10}
      where: {Trade: {Buy: {Currency: {Fungible: false}}}, Block: {Date: {after: "2023-08-20"}}}
    ) {
      count
      sum(of: Trade_Sell_Amount)
      Trade {
        Buy {
          Currency {
            Name
            SmartContract
          }
        }
      }
    }
  }
}
```

The query focuses on non-fungible trades (NFTs) made after 20th August 2023 and orders them by the count of trades, giving us a snapshot of the most traded collections.

Output:

![Trending NFT Collection](/blog/nft-collection-api/trending-nft-collection.png)

From the output, it’s clear that `pepunks`, `genesis`, `parallel`, and `gemesis` are leading the pack as the top 4 NFT collections in terms of sales after 20th August 2023. This information can be invaluable for those looking to understand market trends, make investment decisions, or simply stay updated on the NFT landscape.

If you’re eager to delve even deeper, the Bitquery explorer is a great place to start. For instance, if we want to analyze [pepunks](https://explorer.bitquery.io/ethereum/token/0x37ed9fb736bf48b8bceba599938372cbd70fb378) in more detail, the explorer offers a user-friendly and intuitive interface.

![Screenshot of Details for PePunks Collection](/blog/nft-collection-api/pepepunks-explorer-screenshot.png)

Additionally, it showcases popular Token IDs for NFTs based on transfer count. But remember, this is just scratching the surface. There’s a whole lot more waiting to be discovered.

![List of PePunks Image with details for each](/blog/nft-collection-api/individual-pepepunks.png)

2. Dive Deep into NFT Metadata with Bitquery

Bitquery’s NFT collection API isn’t just about tracking transfers or trades; it’s a comprehensive tool that allows users to access the complete metadata of NFTs. This includes information such as the NFT’s name, description, and image.

```graphql
{
  EVM(dataset: combined, network: eth) {
    Transfers(
      where: {Transfer: {Currency: {SmartContract: {in: ["0x572E33FFa523865791aB1C26B42a86aC244Df784", "0x68F4Ba8018216542Ac2Ab8125166Be66304DD71c", "0x28472a58A490c5e09A238847F66A68a47cC76f0f", "0x8b8D1225bB21CA07812FF3c2ee9358f7b5d90EcA", "0xb92b8d7e45c0f197A8236c8345b86765250BAF7c"]}}}}
      limitBy: {by: Transfer_Currency_SmartContract, count: 1}
    ) {
      Transfer {
        Currency {
          SmartContract
          Name
          Decimals
          Fungible
          HasURI
          Symbol
        }
        Id
        URI
        Data
        owner: Receiver
      }
    }
  }
}
```

Output:

![Output of Query which shows NFT metadata](/blog/nft-collection-api/nft-metadata-query.png)

From the output, it’s evident how detailed the metadata can be. It provides a clear picture of the NFT’s attributes, making it easier for users, collectors, or developers to understand the details of the above NFTs.

When we navigate to the Bitquery Explorer, it offers a deeper dive into the details of the mentioned NFTs. Taking the 1st [Gucci NFT](https://explorer.bitquery.io/ethereum/token/0x572e33ffa523865791ab1c26b42a86ac244df784/nft_smart_contract) as an example, the platform provides insights like the ‘Top NFT Holders’, giving us a clearer picture of its distribution and ownership patterns.

![Pie Chart of Top NFT Holder for Collection](/blog/nft-collection-api/top-nft-holders.png)

3. Identifying Current Owners of a Specific NFT Collection

One of the powerful features of the Bitquery NFT collection API is its ability to provide a comprehensive list of current token holders for a specific NFT collection. This is particularly useful for understanding the distribution and ownership dynamics of a particular set of NFTs.

```graphql
{
  EVM(dataset: archive, network: eth) {
    BalanceUpdates(
      where: {Currency: {SmartContract: {is: "0x23581767a106ae21c074b2276d25e5c3e136a68b"}}}
      limitBy: {by: BalanceUpdate_Address, count: 1}
      limit: {count: 1000}
      orderBy: {descendingByField: "sum"}
    ) {
      sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
      BalanceUpdate {
        Address
      }
    }
  }
}
```

Output:

![Current Owners of NFT Collection](/blog/nft-collection-api/current-nft-collection-owners.png)

From the output, it becomes evident which addresses currently hold tokens from the specified NFT collection. This data can be invaluable for artists, collectors, and market analysts aiming to understand the current distribution of a particular NFT set.

If a you're just getting started with Bitquery, they should begin with this [intro video](https://www.youtube.com/watch?v=OX7n4JVAHBg&t=1s). For those keen on diving deeper into [NFT APIs](https://www.youtube.com/watch?v=JSn7kaJlYGA&t=17s), a detailed NFT Tutorial is the way to go. Bitquery also offers a range of helpful tutorials and guides for anyone wanting to learn more about NFTs. Some of the top picks include:

- [Best NFT Market Trackers](https://bitquery.io/blog/nft-market-trackers)
- [Bitquery NFT Marketplace APIs: How to get NFT Data](https://bitquery.io/blog/nft-opensea-blur-marketplace-api)
- [BLUR NFT Marketplace API](https://bitquery.io/blog/nft-opensea-blur-marketplace-api)
- [Top NFT Data Sources](https://bitquery.io/blog/top-nft-data-sources)
- [How to Track NFT Wash Trading?](https://bitquery.io/blog/how-to-track-nft-wash-trading)
- [Opensea NFT API - A Complete Developer Guide](https://bitquery.io/blog/opensea-nft-api)

Bitquery has a very active and responsive support system. Whether you have a quick question or encounter a bug, there’s a channel for you. Connect with Bitquery on [Telegram](https://t.me/Bloxy_info), [Discord](https://discord.gg/EEBVTQnb2E), and the [Community Forum](https://community.bitquery.io/).

## Conclusion

NFTs have revolutionized the way we think about digital ownership and authenticity. These unique tokens, backed by the immutable nature of blockchain technology, have not only provided artists and creators with new avenues for monetization but have also offered collectors a fresh perspective on digital assets. With platforms like Bitquery, accessing and utilizing data about NFT collections has never been easier. Whether you’re a developer looking to integrate NFT data into your application or an enthusiast wanting to stay updated on the latest collections, Bitquery’s NFT Collection API is a powerful tool to have in your arsenal. With Bitquery, keeping up with the ever-changing world of NFTs becomes much easier.

_Post written by guest author [Yash](https://www.linkedin.com/in/yash-kamal-chaturvedi/)_]]></description>
        </item>
        <item>
            <title><![CDATA[Exploring NFT Sales with Bitquery NFT API: Insights, Queries, and Real-Time Data]]></title>
            <link>https://bitquery.io/blog/nft-sales</link>
            <guid>https://bitquery.io/blog/nft-sales</guid>
            <pubDate>Wed, 20 Sep 2023 22:29:00 GMT</pubDate>
            <description><![CDATA[
If you're a developer working on NFT projects or an NFT collector looking to buy new NFTs, you need information to make smart choices. In this article, we'll explore NFT sales data using the Bitquery [NFT API](https://bitquery.io/products/nft-api). This tool helps us get details about NFT transfers, trades, and more.

NFT sales data shows us where people are spending their money. We can learn a lot from it, but let's start by understanding how to ask for NFT sales data. Once you know how to do that, you can discover valuable insights on your own.

Let’s write some queries to query NFT data from Ethereum using [Bitquery NFT API](https://docs.bitquery.io/docs/category/nft/).

## Historical NFT Sales

Historical NFT sales data gives us insights into what has been trend for the whole [NFT ecosystem](https://explorer.bitquery.io/ethereum/nft). Let’s write a query to get historical NFT sales data from the Seaport Protocol by Opensea.

### Historical NFT Sales

In this query, we are going to query all the NFT sales that happened after Jan 01, 2023 on [Seaport protocol](https://explorer.bitquery.io/ethereum/dex_protocol/seaport_v1.4) which is created by Opensea as a which new web3 marketplace protocol for safely and efficiently buying and selling NFTs.

To query from Seaport, we have to set `ProtocolName` value to `seaport_v1.4`.

Open [the query](https://ide.bitquery.io/V2-Historical-NFT-Sales-from-Seaport) in the IDE.
```
{
  EVM(dataset: combined, network: eth) {
    DEXTradeByTokens(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Currency: {Fungible: false}, Dex: {ProtocolName: {is: "seaport_v1.4"}}}}
    ) {
      Block {
        Time
      }
      Trade {
        Amount
        Buyer
        Currency {
          Name
          SmartContract
        }
        Dex {
          ProtocolName
          SmartContract
        }
        Price
        Seller
        Side {
          Amount
          Currency {
            Name
            ProtocolName
          }
          Type
          Buyer
          Seller
          URIs
        }
        Sender
      }
      Transaction {
        Hash
      }
    }
  }
}
```

### Top 10 Trades of Last Year

We can also filter sales data, find what were the largest trade by changing the descending field of `orderBy` filter to `Trade_Side_Amount`.

Open [the query](https://ide.bitquery.io/V2-Top-10-NFT-Trades-on-Seaport) in the IDE.

```
{
  EVM(dataset: combined, network: eth) {
    DEXTradeByTokens(
      limit: {count: 10}
      orderBy: {descending: Trade_Side_Amount}
      where: {Trade: {Currency: {Fungible: false}, Dex: {ProtocolName: {is: "seaport_v1.4"}}}}
    ) {
      Block {
        Time
      }
      Trade {
        Amount
        Buyer
        Currency {
          Name
          SmartContract
        }
        Dex {
          ProtocolName
          SmartContract
        }
        Price
        Seller
        Side {
          Amount
          Currency {
            Name
            ProtocolName
          }
          Type
          Buyer
          Seller
          URIs
        }
        Sender
      }
      Transaction {
        Hash
      }
    }
  }
}
```

**Also Read: [Opensea NFT API - A Complete Developer Guide](https://bitquery.io/blog/opensea-nft-api)**

## NFT Sales by Collection

If you’re buying an NFT most probably it will be part of a collection like [Bored Ape Yacht Club](https://explorer.bitquery.io/ethereum/token/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d), [CryptoPunks](https://explorer.bitquery.io/ethereum/token/0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb), or [Doodles](https://explorer.bitquery.io/ethereum/token/0x8a90cab2b38dba80c64b7734e58ee1db38b8992e), etc. When buying, we can make decisions based on sales trends to figure out what is the best value for money.

Let’s write some queries to get NFT sales by collection. We will also try to query what are the top collections by sales.

### BAYC NFT Sales

BAYC or Bored Ape Yacht Club is one of the most popular collection. So let’s write a query to get NFT sales after Jan 01, 2023.

To specifically query sales from a collection, we have to add address of BAYC contract ([0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d](https://explorer.bitquery.io/ethereum/token/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d)) to `SmartContract` field of `Currency` filter.

Open [the query](https://ide.bitquery.io/V2-BAYC-NFT-Sales_1) in the IDE.

```
{
  EVM(network: eth, dataset: combined) {
    DEXTradeByTokens(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Currency: {Fungible: false, SmartContract: {is: "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D"}}, Dex: {ProtocolName: {is: "seaport_v1.4"}}}, Block: {Date: {after: "2023-01-01"}}}
    ) {
      Block {
        Time
      }
      Trade {
        Amount
        Buyer
        Currency {
          Name
          ProtocolName
          SmartContract
        }
        Dex {
          ProtocolFamily
          SmartContract
          ProtocolName
          ProtocolVersion
        }
        Ids
        Price
        Seller
        Side {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Type
        }
        URIs
      }
      Transaction {
        Hash
      }
    }
  }
}
```

### Trending NFT collection by Sales

We can also query trending collections by checking number of sales for a collection.

Open [this query](https://ide.bitquery.io/V2-Trending-NFT-Collection) in the IDE.
```
{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      orderBy: {descendingByField: "count"}
      limit: {count: 10}
      where: {Trade: {Buy: {Currency: {Fungible: false}}}, Block: {Date: {after: "2023-08-20"}}}
    ) {
      count
      sum(of: Trade_Sell_Amount)
      Trade {
        Buy {
          Currency {
            Name
            SmartContract
          }
        }
      }
    }
  }
}
```

## NFT Sales on different Marketplaces

In above section, we have seen NFT sales from Seaport protocol by Opensea but Bitquery NFT API also provides other marketplaces like LooksRare, Blur and many more. Let’s see how to get sales from other protocols or marketplace.

### NFT sales by particular marketplace

We will write a query to get NFT sales after August 01, 2023, on Blur NFT marketplace.

For this query, we need to change the protocol name to `blur_v1` and query will return all the NFT sales from Blur V1.

Open [this query](https://ide.bitquery.io/V2-NFT-Sales-from-Blur) in the IDE.
```
{
  EVM(network: eth, dataset: combined) {
    DEXTradeByTokens(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Currency: {Fungible: false}, Dex: {ProtocolName: {is: "blur_v1"}}}, Block: {Date: {after: "2023-08-01"}}}
    ) {
      Block {
        Time
      }
      Trade {
        Amount
        Buyer
        Currency {
          Name
          ProtocolName
          SmartContract
        }
        Dex {
          ProtocolFamily
          SmartContract
          ProtocolName
          ProtocolVersion
        }
        Ids
        Price
        Seller
        Side {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
            Symbol
          }
          Type
        }
        URIs
      }
      Transaction {
        Hash
      }
    }
  }
}
```

**Also Read: [BLUR NFT Marketplace API](https://bitquery.io/blog/blur-nft-marketplace-api)**

## NFT Trade Volumes

NFT Trade Volume is the total amount of sales that happened for a particular collection in a given timeframe. We can get NFT trade volume using NFT API, so let’s write a query to NFT trade volume.

### Total NFT Trade Volume for collection

In this query, we will get NFT trade volume for BAYC which were traded in Ethereum. This way we will have BAYC trade volume in ETH.

We will fitler data using address of BAYC smart contract which is [`0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D`](https://explorer.bitquery.io/ethereum/token/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d) along with currency name to `Ethereum` for `Trade` filter.

Open [this query](https://ide.bitquery.io/V2-NFT-Trade-Volume-for-Collection) in the IDE.

```
{
  EVM(network: eth, dataset: combined) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {Fungible: false, HasURI: true, SmartContract: {is: "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D"}}, Dex: {ProtocolName: {is: "seaport_v1.4"}}, Side: {Currency: {Name: {is: "Ethereum"}}}}}
    ) {
      sum(of: Trade_Side_Amount)
    }
  }
}
```

### Daily NFT volume for Opensea

We can also get volume by a specific time interval, which we can set to whatever we want. Here we will get daily volume of Seaport protocol by Opensea.

To set time interval, we will set value of `interval` field of `Block.Time` to days so that we can get daily volume of NFT sales.

Open [this query](https://ide.bitquery.io/V2-Daily-Opensea-Volume) in the IDE.

```
{
  EVM(network: eth, dataset: combined) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      where: {Trade: {Currency: {Fungible: false}, Dex: {ProtocolName: {is: "seaport_v1.4"}}, Side: {Currency: {Name: {is: "Ethereum"}}}}}
    ) {
      sum(of: Trade_Side_Amount)
      Block {
        Time(interval: {in: days})
      }
    }
  }
}
```

**Also Read: [Bitquery NFT Marketplace APIs: How to get NFT Data](https://bitquery.io/blog/nft-opensea-blur-marketplace-api)**

## Real Time NFT Sales

We can also get data in real-time using GraphQL subscriptions with Bitquery API. Let’s see how to write queries for getting real-time data. 

### Real-Time NFT Trades

We have already seen how to query NFT trade in above sections. To get data in real-time, we will need to write queries that start with `subscription` keyword, which creates a WebSocket connection with server which sends us latest data.

Open [this query](https://ide.bitquery.io/Subscription-Real-Time-Seaport-Volume) in the IDE.

```
subscription {
  EVM(network: eth) {
    DEXTradeByTokens(where: {Trade: {Dex: {ProtocolName: {is: "seaport_v1.4"}}}}) {
      Block {
        Time
      }
      Trade {
        Amount
        Buyer
        Currency {
          Name
          SmartContract
        }
        Dex {
          ProtocolFamily
          ProtocolName
          ProtocolVersion
          SmartContract
        }
        Ids
        Price
        Seller
        Side {
          Amount
          Buyer
          Currency {
            Name
            ProtocolName
            SmartContract
            Symbol
          }
          Ids
          Type
        }
      }
    }
  }
}
```

### Filter real-time NFT data

We can also add different filter to filter the data we are getting in real-time. All the filters, we have used in above queries will work in subscriptions.

If you want to use the real-time data in your application, you can check [example code snippet](https://docs.bitquery.io/docs/start/websocket/) which shows how to use websockets using python. 

**Also Read: [Track Events like NFT Drop, ENS Registration with Bitquery NFT API](https://bitquery.io/blog/track-events-like-nft-drop-ens-registration-with-bitquery-nft-apis)**

## Conclusion

We have seen how to query data related to NFT sales using Bitquery API using queries to get historical data and subscriptions to get real-time data. We have written queries to get a lot of different data points related to NFT sales.

This was a article to see what kind of data you can get using Bitquery API. There are a lot of data different kind of data you can fetch using our API.

Even though, we have seen how to get the data, it’s your work to build meaningful applications using this data or find insights about NFT market in general. So you build something or do something cool with data provided by Bitquery API, let us know in our telegram we would love to see it.

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.
]]></description>
        </item>
        <item>
            <title><![CDATA[Track Events like NFT Drop, ENS Registration with Bitquery NFT API]]></title>
            <link>https://bitquery.io/blog/track-events-like-nft-drop-ens-registration-with-bitquery-nft-apis</link>
            <guid>https://bitquery.io/blog/track-events-like-nft-drop-ens-registration-with-bitquery-nft-apis</guid>
            <pubDate>Mon, 18 Sep 2023 05:35:07 GMT</pubDate>
            <description><![CDATA[
NFT events are important data for building functionality related to NFTs. This is because NFT events provide a way to track and respond to changes on the blockchain in real time. Transactions can be broken down in detail with the help of event data.

In this blog, we will see how we can use [Bitquery NFT APIs](https://bitquery.io/products/nft-api) to get any on-chain NFT event information.

### Getting Started

To get started for free, please create an account here with your email: [https://ide.bitquery.io/](https://ide.bitquery.io/)

## NFT Events API

### Tracking NFT Drops

NFT drops are highly anticipated events where new NFT collections are released to the public. NFT drops can be very competitive. To increase your chances of getting your hands on the latest NFTs, it is important to track NFT drops and be ready to mint when they go live.

Bitquery’s NFT API will now show you a list of all of the NFT mint events that have occurred for the Seadrop collection in real-time. Below is the screenshot of the [Opensea SeaDrop Explorer](https://explorer.bitquery.io/ethereum/smart_contract/0x00005ea00ac477b1030ce78506496e8c2de24bf5/events) Page:![](/blog/Track-Events-like-NFT-Drop-ENS-Name-Registration-with-Bitquery-NFT-APIs/seadrop.png)

To track only say a particular event like `SeaDropMint` we use smartContractEvents method.

The following GraphQL query will return a list of the latest NFT mint events

You can get the query [here](https://ide.bitquery.io/Latest-NFT-Drops)

```

query MyQuery {
  ethereum {
    smartContractEvents(
      smartContractEvent: {is: "SeaDropMint"}
      options: {limit: 10, desc: "block.timestamp.time"}
    ) {
      smartContractEvent {
        name
        signature
      }
      smartContract {
        contractType
        address {
          address
        }
      }
      transaction {
        hash
      }
      block {
        timestamp {
          time
        }
      }
    }
  }
}


```

You can track related events like PublicDropUpdated, PayerUpdated, DropURIUpdated,

AllowListUpdated by using the same query described above with the event name changed.

In addition to tracking NFT drops, you can also use the [Bitquery NFT API](https://bitquery.io/blog/nft-opensea-blur-marketplace-api) to track other important NFT data, such as NFT ownership, NFT transfers, and NFT sales.

### Tracking Royalty

Royalties help creators receive compensation for their work even after an NFT is resold. In this section we will explore how to track royalties for NFTs, both default and customized.

#### Default Royalty

Default royalties are typically [set by the creators of NFTs](https://ide.bitquery.io/setDefaultRoyalty-for-NFTs) and are automatically applied to every subsequent sale of the NFT. These royalties ensure that creators receive a percentage of the proceeds whenever their NFT changes hands. To track default royalties for NFTs, we can use Bitquery's NFT API. Here's an [example query](https://ide.bitquery.io/DefaultRoyalty-for-NFTs):

```

query MyQuery {
  ethereum(network: ethereum) {
    smartContractCalls(
      smartContractMethod: {is: "royaltyInfo"}
      options: {limit: 10, desc: "block.timestamp.time"}
    ) {
      block {
        timestamp {
          time
        }
      }
      arguments {
        value
        argument
        argumentType
      }
      transaction {
        hash
        txFrom {
          address
        }
      }
      smartContractMethod {
        name
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      caller {
        address
      }
    }
  }
}




```

This query retrieves data about royalty information using the "royaltyInfo" method from smart contracts on the Ethereum network. It includes details such as the timestamp, arguments (including the token ID and royalty value), transaction hash, and the addresses involved in the transaction.

#### Custom Royalties

In addition to default royalties, some NFT marketplaces and platforms allow creators to customize royalty percentages for each sale of their NFTs. To track customized royalties on Rarible NFTs, you can use Bitquery's NFT API. [Here's an example query:](https://ide.bitquery.io/royaltyInfo-Rarible-NFTs)

```

query MyQuery {
  ethereum(network: ethereum) {
    smartContractCalls(
      smartContractMethod: {is: "setDefaultRoyalty"}
      options: {limit: 10, desc: "block.timestamp.time"}
    ) {
      block {
        timestamp {
          time
        }
      }
      arguments {
        value
        argument
        argumentType
      }
      transaction {
        hash
        txFrom {
          address
        }
      }
      smartContractMethod {
        name
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      caller {
        address
      }
    }
  }
}


```

This query focuses on retrieving royalty information from Rarible NFTs, providing insights into the specific royalty percentages and other transaction-related details.

### Tracking ENS: Ethereum Name Service Listing

The Ethereum Name Service (ENS) is a Web3 domain name system that allows users to register and use human-readable names for Ethereum addresses and other resources.

To track ENS registrations with Bitquery, simply navigate to the [ENS page on the Bitquery Explorer](https://explorer.bitquery.io/ethereum/token/0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85). On this page, you will see a live feed of all recent ENS registrations, as well as a list of the most popular ENS names like [vitalik.eth](https://explorer.bitquery.io/ethereum/token/0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85/id/79233663829379634837589865448569342784712482819484549289560981379859480642508)

![](/blog/Track-Events-like-NFT-Drop-ENS-Name-Registration-with-Bitquery-NFT-APIs/ENS.png)

You can use the ENS API to get [details of all ENS listings](https://ide.bitquery.io/Latest-ENS-Registrations), including the name, owner, and expiration date. For example, the query below will return the 10 most recent ENS registrations, ordered by creation date. You can modify the query to return more or fewer registrations or to order the results by a different field. Run it [here](https://ide.bitquery.io/Get-ENS-Details).

```

query MyQuery {
  ethereum {
    arguments(
      smartContractEvent: {is: "NameRegistered"}
      smartContractAddress: {is: "0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85"}
      options: {limit: 10, desc: "block.timestamp.time"}
    ) {
      block {
        timestamp {
          time
        }
      }
      callDepth
      caller {
        address
        annotation
      }
      transaction {
        hash
      }
      value {
        value
      }
      argument {
        name
        type
      }
    }
  }
}


```

Once you have the results of your query, you can use them to track ENS listings. For example, you could create a spreadsheet to track the registrations, or you could use a data visualization tool to create a chart or graph. You could also use the results to create a notification system that alerts you when new ENS registrations are made.

### Tracking NFT Loans

In this section we'll explore how to track NFT loans on the Blur and X2Y2 platforms using Bitquery's NFT API.

#### Latest Loans taken on Blur

Blur uses the Blend protocol to enable NFT loans. We will use [Bitquery’s BLUR API](https://bitquery.io/blog/blur-nft-marketplace-api) to get information on Blend loans and offers.

For example in this query ( run on V2 APIs) , we look for the “LoanOfferTaken” events and set the smart contract to the Blur: Blend Contract to get loan events on the marketplace. You can run the query [here](https://ide.bitquery.io/Latest-Loans-taken-onBlur).

We are using Logheader to query smart contract events because it’s a delegated proxy contract.

```

{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {LogHeader: {Address: {is: "0x29469395eaf6f95920e59f858042f0e28d98a20b"}}, Log: {Signature: {Name: {is: "LoanOfferTaken"}}}}
      limit: {count: 10}
      orderBy: {descending: Block_Time}
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Index
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}


```

#### Latest Loans Taken on X2Y2

X2Y2 is another platform that offers NFT-based loans. To track the latest loans initiated on X2Y2, we can use Bitquery's NFT API. For example, we can look for "LoanStarted" events within the X2Y2 smart contract. Here's a sample query:

```

query MyQuery {
  ethereum(network: ethereum) {
    smartContractEvents(
      smartContractEvent: {is: "LoanStarted"}
      options: {limit: 10, desc: "block.timestamp.time"}
      smartContractAddress: {is: "0xB81965DdFdDA3923f292a47A1be83ba3A36B5133"}
    ) {
      arguments {
        argument
        value
      }
      smartContractEvent {
        name
      }
      smartContract {
        address {
          address
        }
      }
      transaction {
        hash
      }
      block {
        timestamp {
          time
        }
      }
    }
  }
}



```

As you can see it provides information such as the loan ID, borrower, lender, borrowed asset, NFT asset, offer type, and more. You can run this query [here](https://ide.bitquery.io/Loans-Started-on-X2Y2).

## Building an Event Alert System

We offer websockets to keep alive the connection between Bitquery APIs and your system, so you can track the events in real-time. Read the full docs here: [https://docs.bitquery.io/docs/start/websocket/](https://docs.bitquery.io/docs/start/websocket/)
]]></description>
        </item>
        <item>
            <title><![CDATA[Arbitrum API - Tokens, NFTs, DEX, Balances & More​]]></title>
            <link>https://bitquery.io/blog/arbitrum-api</link>
            <guid>https://bitquery.io/blog/arbitrum-api</guid>
            <pubDate>Thu, 14 Sep 2023 22:29:00 GMT</pubDate>
            <description><![CDATA[
## Introduction

Over the past year, there's been a big push to make Ethereum work better. Some people are doing this by changing the core of Ethereum, and others are using a special kind of solution called "Layer 2" or "L2." Some of the popular L2 solutions are Optimism, Arbitrum, Polygon, and more.

In this article, we're going to learn how to get data from Arbitrum, which is one of the most popular L2 solutions for Ethereum. We'll use Bitquery's GraphQL API to do this. Bitquery gives us data about things like transactions, token transfers, DEX trades, and more, all from Arbitrum.

## What is Arbitrum?

Arbitrum or Arbitrum One came onto the scene in 2021. It's the L2 solution for Ethereum, which allows faster and cheaper transactions for the users. On Ethereum, it can be slow and costly to do things. But with Arbitrum, it's way faster and cheaper.

Arbitrum uses an architecture called "optimistic rollup". This makes it possible to use a network that can handle way more transactions per second (TPS) than Ethereum's main network while borrowing security from the Ethereum mainnet. Ethereum usually does about 15-25 TPS, but Arbitrum can do around 40,000 TPS – that's super fast!

The best part for developers is that Arbitrum works with pretty much all the tools you use for Ethereum development. So, if you've built something using Ethereum's language, Solidity, you can move it to Arbitrum without changing much.

To see live Arbitrum updates, you can check out our [Arbitrum explorer](https://explorer.bitquery.io/arbitrum).

Let’s write some queries to get data from Arbitrum. If you have issue with any of the queries, you refer to our [Arbitrum docs](https://docs.bitquery.io/docs/category/evm-based-schema/) which should resolve those issues. We also have extensive list [example queries for Arbitrum](https://docs.bitquery.io/docs/category/arbitrum-chain-examples/) in the documentaiton.

## Arbitrum Balances API

With the Balances API, we can fetch the balance of any token, like ERC20 or native token (ETH), for any address or list of addresses.

### How to Check Ethereum Balance of an Address on Arbitrum

Even though Arbitrum is Layer 2, the native currency for Arbitrum is Ethereum (ETH). Native currency is the token that is used to pay off the network fees. 

Let's query ETH balance of Binance Hot Wallet ([0xB38e8c17e38363aF6EbdCb3dAE12e0243582891D](https://explorer.bitquery.io/arbitrum/address/0xB38e8c17e38363aF6EbdCb3dAE12e0243582891D)).

Open [Ethereum balance query](https://ide.bitquery.io/ARB-Streaming-Get-ETH-Balance-of-Address) in the IDE.

```
{
  EVM(dataset: combined, network: arbitrum) {
    BalanceUpdates(
      where: {BalanceUpdate: {Address: {is: "0xB38e8c17e38363aF6EbdCb3dAE12e0243582891D"}}, Currency: {Native: true}}
    ) {
      Currency {
        SmartContract
        Name
        Symbol
        Fungible
      }
      balance: sum(of: BalanceUpdate_Amount)
    }
  }
}
```

By adding `Currency` filter and setting `Native` to `true`, we can get the Ethereum Balance of an address.

### Checking Token Balances on Arbitrum

From the above query, if we remove the `Currency` filter, we will get balances for all the tokens that address holds.

Open [query for getting token balances for all tokens held by the address](https://ide.bitquery.io/ARB-Streaming-Get-Token-Balance-for-All-Tokens) in the IDE.

```
{
  EVM(dataset: combined, network: arbitrum) {
    BalanceUpdates(
        where: {
            BalanceUpdate: {
                Address: {
                    is: "0xB38e8c17e38363aF6EbdCb3dAE12e0243582891D"
                }
            }
        }
    ) {
      Currency {
        SmartContract
        Name
        Symbol
        Fungible
      }
      balance: sum(of: BalanceUpdate_Amount)
    }
  }
}
```

### Checking USDT Balance on Arbitrum

If you want USDT balance for the Address, then you can add the `Currency` filter along with the address of the token smart contract. USDT token address on Arbitrum is [0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9](https://explorer.bitquery.io/arbitrum/token/0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9).

Open [USDT balance query](https://ide.bitquery.io/ARB-Streaming-Get-Token-Balance-of-Address-using-Token-Contract) in the IDE.

```
{
  EVM(dataset: combined, network: arbitrum) {
    BalanceUpdates(
        where: {
            BalanceUpdate: {
                Address: {
                    is: "0xB38e8c17e38363aF6EbdCb3dAE12e0243582891D"
                }
            }, 
            Currency: {
                SmartContract: {
                    is: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"
                }
            }
        }
    ) {
      Currency {
        SmartContract
        Name
        Symbol
        Fungible
      }
      balance: sum(of: BalanceUpdate_Amount)
    }
  }
}
```

## Arbitrum DEX API

Bitquery provides DEX trading data from [DEX's on Arbitrum](https://explorer.bitquery.io/arbitrum/dex_protocols) like 1inch, Uniswap, etc. Let's see some examples of how to query Arbitrum data using Bitquery APIs. Let's query data from different [Arbitrum DEX](https://bitquery.io/products/dex).

### Top Traded Tokens on Arbitrum

Top traded tokens will be tokens with the most number of trades, so we are going to get the number of trades for each token (`count`) and arrange the results in descending order of the `count`.

Open [the top traded tokens query](https://ide.bitquery.io/ARB-Streaming-Get-Top-Traded-Tokens-on-Arbitrum) in the IDE.

```
{
  EVM(dataset: combined, network: arbitrum) {
    DEXTrades(
      limit: {count: 10}
      orderBy: {descendingByField: "count"}
      where: {Block: {Date: {since: "2023-08-01"}}}
    ) {
      count
      Trade {
        Buy {
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}
```

### Recent Uniswap Trades on Arbitrum

If you want the latest trades from a particular DEX, you can set the name of the DEX from which you want the trades. We will get the latest trades from [Uniswap V3](https://explorer.bitquery.io/arbitrum/dex_protocol/uniswap_v3), whose name is uniswap_v3 in our API.

Open [latest Uniswap trades  query](https://ide.bitquery.io/ARB-Streaming-Get-Latest-Trades-from-Uniswap-on-Arbitrum) in the IDE.

```
{
  EVM(dataset: combined, network: arbitrum) {
    DEXTrades(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Block: {Date: {after: "2023-09-11"}}, Trade: {Dex: {ProtocolName: {is: "uniswap_v3"}}}}
    ) {
      Block {
        Time
      }
      Trade {
        Buy {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
          }
          Price
        }
        Dex {
          ProtocolName
          SmartContract
          ProtocolVersion
          Pair {
            Name
            SmartContract
          }
        }
        Sell {
          Amount
          Buyer
          Currency {
            Name
            SmartContract
          }
          Price
        }
      }
    }
  }
}
```

You can also query from [Uniswap V2](https://explorer.bitquery.io/arbitrum/dex_protocol/uniswap_v2) ( `uniswap_v2` ), [PancakeSwap](https://explorer.bitquery.io/arbitrum/dex_protocol/pancake_swap_v3) (`pancake_swap_v3`), [Balancer V2](https://explorer.bitquery.io/arbitrum/dex_protocol/balancer_v2) (`balancer_v2`), [Curve](https://explorer.bitquery.io/arbitrum/dex_protocol/curve_v2) (`curve_v1`) and many more.


**Also Read: [How to Track liquidity for token pairs on Uniswap](https://bitquery.io/blog/how-to-track-liquidity-for-token-pair-on-uniswap)**
 

### Recent Trades for a Specific Token on Arbitrum

You can also get the latest trades for a particular token. In this query, we will query latest trades for UNI token, [0xFa7F8980b0f1E64A2062791cc3b0871572f1F7f0](https://explorer.bitquery.io/arbitrum/token/0xFa7F8980b0f1E64A2062791cc3b0871572f1F7f0).

This query gives us all the details about trades that involve UNI tokens, like the traded amount, the side of the trade, like buy or sell, and much more.

Open [latest trades for the specified token query](https://ide.bitquery.io/ARB-Streaming-Get-Latest-Trade-for-Token) in the IDE.

```
{
  EVM(dataset: combined, network: arbitrum) {
    DEXTradeByTokens(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Trade: {Currency: {SmartContract: {is: "0xFa7F8980b0f1E64A2062791cc3b0871572f1F7f0"}}}}
    ) {
      Block {
        Time
      }
      Trade {
        Amount
        Buyer
        Currency {
          Name
          SmartContract
        }
        Dex {
          ProtocolName
          SmartContract
        }
        Price
        Seller
        Side {
          Type
        }
      }
    }
  }
}
```

### OHLC Data for Arbitrum DEX Trades

OHLC (Open, High, Low, Close) data gives us those price points for a token in a given timeframe. You can see this in a candlestick chart.

In this query, we will get OHLC data for [WETH](https://explorer.bitquery.io/arbitrum/token/0x82af49447d8a07e3bd95bd0d56f35241523fbab1)-[UsDC](https://explorer.bitquery.io/arbitrum/token/0xaf88d065e77c8cc2239327c5edb3a432268e5831) trading pair for hourly timeframe. To get data for different intervals, you can change `interval` value of `Time` field.

Open [OHLC Arbitrum DEX trades query](https://ide.bitquery.io/ARB-Streaming-Get-OHLC-Data-for-Arbitrum-DEX-Trades) in the IDE.

```
{
  EVM(dataset: combined, network: arbitrum) {
    DEXTradeByTokens(
        limit: {count: 10}
        orderBy: {descendingByField: "Block_Time"}
        where: {
            Trade: {
                Side: {
                    Currency: {
                        SmartContract: {
                            is: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
                        }
                    }
                }, 
                Currency: {
                    SmartContract: {
                        is: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1"
                    }
                }
            }
        }
    ) {
      Block {
        Time(interval: {in: minutes, count: 60})
      }
      volume: sum(of: Trade_Amount)
      OHLC: Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Number)
        close: Price(maximum: Block_Number)
      }
      Trade {
        Currency {
          Name
          SmartContract
        }
        Side {
          Currency {
            Name
            SmartContract
          }
        }
      }
      count
    }
  }
}
```

## Arbitrum Token Transfers API


The Bitquery API also provides data for Token Transfers for Fungible Tokens (ERC20), Non-Fungible Tokens (ERC721), and Native token. If you want the latest USDC transfers, the number of USDC token holders, etc., you can query those using the Bitquery Arbitrum API. Let's explore token transfers by writing queries.

### Latest Token Transfers on Arbitrum

With the token transfers API, we can specify the token address for which we need data. In this query, we will get latest [Arbitrum token (ARB)](https://explorer.bitquery.io/arbitrum/token/0x912CE59144191C1204E64559FE8253a0e49E6548) transfers from Arbitrum network.

Open [latest token transfers query](https://ide.bitquery.io/ARB-Streaming-Get-Latest-Arbitrum-Token-Transfers) in the IDE.

```
{
  EVM(dataset: combined, network: arbitrum) {
    Transfers(
        limit: {count: 10}
        orderBy: {descending: Block_Time}
        where: {
            Transfer: {
                Currency: {
                    SmartContract: {
                        is: "0x912CE59144191C1204E64559FE8253a0e49E6548"
                    }
                }
            }, 
            Block: {
                Date: {
                    after: "2023-08-01"
                }
            }
        }
    ) {
      Block {
        Time
      }
      Transfer {
        Amount
        Currency {
          Decimals
          Name
          SmartContract
          Symbol
        }
        Sender
        Receiver
      }
      Transaction {
        Hash
        To
        From
        Value
        Gas
        GasFeeCap
        GasPrice
        GasTipCap
      }
    }
  }
}
```

### Top Arbitrum Token Holders

In this query, we will query top holders of Arbitrum token ([0x912CE59144191C1204E64559FE8253a0e49E6548](https://explorer.bitquery.io/arbitrum/token/0x912CE59144191C1204E64559FE8253a0e49E6548))

Open [Arbitrum token holders query](https://ide.bitquery.io/ARB-Streaming-Get-Top-Holders-of-Arbitrum-Token) in the IDE.

```
{
  EVM(dataset: combined, network: arbitrum) {
    BalanceUpdates(
      orderBy: {descendingByField: "Balance"}
      limit: {count: 10}
      where: {Currency: {SmartContract: {is: "0x912ce59144191c1204e64559fe8253a0e49e6548"}}}
    ) {
      Balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
      BalanceUpdate {
        Address
      }
    }
  }
}
```

### Recent Token Transfers for a Wallet

The Token Transfers API allows us to get transfers for all tokens from one address. This API has a limitation where you can only incoming or outgoing transfers in one query so we while writing query we will [combine queries](https://docs.bitquery.io/docs/graphql/combined/) into one.

Open [recent token transfers query](https://ide.bitquery.io/ARB-Streaming-Get-Latest-Token-Transfers-for-An-Address) in the IDE.

```
{
  EVM(dataset: combined, network: arbitrum) {
    sent: Transfers(
        limit: {count: 10}
        orderBy: {descending: Block_Time}
        where: {
            Transfer: {
                Sender: {
                    is: "0xB38e8c17e38363aF6EbdCb3dAE12e0243582891D"
                }
            }, 
            Block: {
                Date: {
                    after: "2023-08-01"
                }
            }
        }
    ) {
      Transfer {
        Amount
        Currency {
          Decimals
          Name
          SmartContract
          Symbol
        }
        Sender
        Receiver
      }
      Transaction {
        Hash
        To
        From
        Value
        Gas
        GasFeeCap
        GasPrice
        GasTipCap
      }
    }
    received: Transfers(
        limit: {count: 10}
        orderBy: {descending: Block_Time}
        where: {
            Transfer: {
                Receiver: {
                    is: "0xbf22f0f184bccbea268df387a49ff5238dd23e40"
                }
            }, 
            Block: {
                Date: {
                    after: "2023-08-01"
                }
            }
        }
    ) {
      Transfer {
        Amount
        Currency {
          Decimals
          Name
          SmartContract
          Symbol
        }
        Sender
        Receiver
      }
      Transaction {
        Hash
        To
        From
        Value
        Gas
        GasFeeCap
        GasPrice
        GasTipCap
      }
    }
  }
}
```

## Arbitrum NFT API

As we have learned above, the `Transfers` API allows us to get NFT (ERC721) Transfers. In this section, we will write some queries to get data related to [Arbitrum NFT](https://bitquery.io/products/nft-api).

### Popular NFTs on Arbitrum

In this query, we will get the top NFTs on Arbitrum based on the number of transfers.

Open query [for most popular NFTs on Arbitrum](https://ide.bitquery.io/ARB-Streaming-Get-Top-NFTs-on-Arbitrum) in the IDE.

```
{
  EVM(dataset: combined, network: arbitrum) {
    Transfers(
        orderBy: {descendingByField: "count"}
        limit: {count: 10}
        where: {
            Block: {Date: {since: "2023-08-01", till: "2023-08-10"}}, 
            Transfer: {Currency: {Fungible: false}}
        }
    ) {
      Transfer {
        Currency {
          Symbol
          SmartContract
          Name
        }
      }
      count
      senders: uniq(of: Transfer_Sender, method: approximate)
      receivers: uniq(of: Transfer_Receiver, method: approximate)
      ids: uniq(of: Transfer_Id, method: approximate)
      ChainId
    }
  }
}
```

### Newly Created NFTs on Arbitrum

There are many NFTs minted daily, let's try to get newly minted NFTs using our `Events` API. 

When an NFT is minted, each smart contract emits `Transfer` event. `Transfer` event has 3 field: `From`, `To` and `Value`. 

For newly minted NFTs, the `From` value will be `0x0000000000000000000000000000000000000000`.

With all the above details, we can write the query to get newly minted NFTs.

Open [newly created NFTs query](https://ide.bitquery.io/ARB-Streaming-Get-Newly-Minted-NFTs-from-Arbitrum) in the IDE.

```
{
  EVM(dataset: combined, network: arbitrum) {
    Events(
        where: {
            Log: {
                Signature: {
                    Name: {
                        is: "Transfer"
                    }
                }
            }, 
            Block: {
                Date: {
                    after: "2023-09-11"
                }
            }, 
            Arguments: {
                startsWith: {
                    Value: {
                        Address: {
                            is: "0x0000000000000000000000000000000000000000"
                        }
                    }
                }
            }
        }
        orderBy: {descending: Block_Time}
        limit: {count: 10}
    ) {
      Arguments {
        Name
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
      Block {
        Time
      }
      Log {
        Signature {
          Name
          Signature
          SignatureHash
          SignatureType
        }
        Index
        ExitIndex
        EnterIndex
        LogAfterCallIndex
        Pc
      }
      LogHeader {
        Address
        Data
        Index
      }
      Topics {
        Hash
      }
      Transaction {
        From
        To
        Type
      }
    }
  }
}
```

With this data about newsly minted NFTs, you can analyze NFT minting trends or from which NFT marketplaces these NFTs are getting minted.

**Also read: [Bitquery NFT Marketplace APIs: How to get NFT Data](https://bitquery.io/blog/nft-opensea-blur-marketplace-api)**

## Real-Time Arbitrum Data

If you require real-time data, you can easily achieve this by modifying any of the queries mentioned above. Just add the `subscription` keyword at the beginning of the query and remove the `dataset` field. This enables you to access data in real-time through WebSockets using Bitquery's [Streaming API](https://bitquery.io/products/data-streams).

For further information on real-time data access, please refer to [our documentation](https://docs.bitquery.io/docs/start/getting-updates/). Additionally, you can explore examples that demonstrate [how to fetch real-time data using Python](https://docs.bitquery.io/docs/start/websocket/) and the WebSocket endpoint.

## Conclusion

In this article, we've taken a close look at how to retrieve data from Arbitrum using Bitquery's API, covering essential information such as Balances, Token Transfers, and DEX Trades APIs. These APIs provide a wealth of valuable data that can be harnessed for various purposes.

However, it's important to note that there are additional APIs for Arbitrum, such as Calls (for Smart Contract Calls) and Arguments (for Call/Event Arguments), which we haven't delved into within this article. By leveraging the full spectrum of these APIs, you can satisfy a wide range of data requirements for your Arbitrum-related projects.

If you've reached this point in the article and want a more comprehensive article on the APIs we've discussed here, along with a deep dive into the ones we haven't covered, please don't hesitate to reach out to us on our [Telegram channel](https://t.me/Bloxy_info). 

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

]]></description>
        </item>
        <item>
            <title><![CDATA[Google BigQuery Ethereum Dataset: A Comprehensive Tutorial​]]></title>
            <link>https://bitquery.io/blog/querying-bigquery-blockchain-dataset</link>
            <guid>https://bitquery.io/blog/querying-bigquery-blockchain-dataset</guid>
            <pubDate>Mon, 11 Sep 2023 12:42:00 GMT</pubDate>
            <description><![CDATA[
If you want to query blockchain data, querying it from a data indexing service will be time-consuming. Most of the indexing APIs will have some kind of limit on them, so you have to query them again and again till you get all the data you need. What if there was indexed data stored on a SQL database that you could access on demand without any restrictions?

Various public and private datasets offer access to blockchain data. Here are a few notable ones:

- BigQuery Public Cryptocurrency Datasets
- AWS Public Blockchain Data
- Bitquery’s [Data in Cloud](https://bitquery.io/products/cloud-products)

In this tutorial, we are going to learn about Google BigQuery which provides us a way to query large amounts of data for public blockchains like [Bitcoin](https://explorer.bitquery.io/bitcoin), [Ethereum](https://explorer.bitquery.io/ethereum), [Polygon](https://explorer.bitquery.io/matic) and many more with their public dataset.

Today we are going to learn how to query public Ethereum datasets and query data in the Google Cloud SQL workspace using SQL, and how to use the Python client for BigQuery to fetch data from those public datasets. We will also learn about the drawbacks of these public datasets and how to overcome them.

## Prerequisites

As the title suggests, we are going to use Google products, so you need a Google account. For technical prerequisites, you should have basic knowledge of SQL, and if you’re going to continue with the Python part of the tutorial, you should have some knowledge of Python.

## Setting Up Google BigQuery

If you're new to Google BigQuery, the first step is to set up your account and create a new project within Google BigQuery. You can initiate this process by visiting the following link: [https://console.cloud.google.com/bigquery](https://console.cloud.google.com/bigquery)

Once your account setup is complete, you'll gain access to all the publicly available datasets on Google BigQuery. Additionally, you'll be able to use the built-in editor to write and execute queries, allowing you to explore the Ethereum public dataset.

![Google BigQuery Dashboard](https://lh4.googleusercontent.com/Xt5o9i9Ks-K3HYqMuhJU9TQmHYGQkwpCBxNipJbbN764ZgEZ1DZiJSBqeYmE6VrCDdxtHw_GHnEgz639-MyXG_jCGKEGPnaUtkkrmU5vTP9Tzb2V1OFXKuyhNHNBWuq1A5XgGobTKuhXukb9wiLJ_yk)

You can open a new tab by clicking on the blue plus button, which will display a new editor where you can write your SQL queries.

## Accessing Blockchain Data via BigQuery Dashboard

Let's begin by examining the public Ethereum dataset. You can find detailed information about the dataset [here](https://console.cloud.google.com/marketplace/product/ethereum/crypto-ethereum-blockchain).

![Google Bigquery Public Ethereum Dataset Product Page Screenshot](https://lh4.googleusercontent.com/FIG0N3vyx5JJZmuKfjmz2AvcDL9_Dco51LmtxkcOz4ejzMseeMWRNAahMoLOmuwfgO17PdkdEshgBPlQ3H-HWHWQs9MewUGPLx7ujCrHQgRVhTK12kwZC2N-LDKX6rZTPrNSj9lliuNAVNUQXWw3guM)

Upon visiting the page, you'll notice that there's a free tier available for BigQuery, allowing us to explore the data. The page also provides some examples illustrating how the dataset can be utilized.

To dive deeper into the dataset, let's initiate our exploration by running our first query to discover the available tables within this dataset. Open your editor and paste the following query:

```sql
SELECT *
FROM `bigquery-public-data.crypto_ethereum.INFORMATION_SCHEMA.TABLES`;
```

In this query, we are accessing the metadata of the dataset to understand its structure using the dataset ID, which, in this case, is `bigquery-public-data.crypto_ethereum`. To access the metadata, we utilize `INFORMATION_SCHEMA.TABLES`, and by selecting all columns using `*`, we can view all the details.

To execute the query, simply click the "Run" button located at the top of the editor window, and you should see the following result:

![https://lh6.googleusercontent.com/7f_eZfm1FKd8ITrsPFiwoKlUHBzslj5rpkIpnNCN57jsrfB3sxpNHKg4f-BM2A1Jx_2RPGh8Ao8cZgXRC0m-EQwTLomqDi0oNwbZpkAly_KV1r9na2v_sAVGEMMWJ30KLssc1oFIbu0WMlCjrcBdbcU](https://lh6.googleusercontent.com/7f_eZfm1FKd8ITrsPFiwoKlUHBzslj5rpkIpnNCN57jsrfB3sxpNHKg4f-BM2A1Jx_2RPGh8Ao8cZgXRC0m-EQwTLomqDi0oNwbZpkAly_KV1r9na2v_sAVGEMMWJ30KLssc1oFIbu0WMlCjrcBdbcU)

You'll be presented with a list of table names, including tokens, blocks, contracts, and more. In total, there are 11 tables available in this dataset, which are as follows:

- tokens
- blocks
- contracts
- traces
- token_transfers
- balances
- transactions
- sessions
- logs
- load_metadata
- amended_tokens

In this tutorial, we’ll explore some of these tables by writing queries to query data from them,  like query to get Ethereum balances for specific addresses and the latest transactions from a given address, etc. Let's start with the `balances` table.

### Balances

Before diving into the Ethereum Balances table, it's important to familiarize ourselves with its schema to understand its structure. To query the schema, execute the following query:

```sql
SELECT
	column_name,
	data_type
FROM
	`bigquery-public-data.crypto_ethereum.INFORMATION_SCHEMA.COLUMNS`
WHERE
	table_name = 'balances';
```

This query will provide you with the following result:

![https://lh6.googleusercontent.com/p3J_Gc3-JSDWMjNNzpxNH3lZqjSL6ts3ebPRSvTxVW95qPXr3QaC6J4VOAFYRPO8ZaM8tlGrnjxGTF9GIdiNKMFMcL75cY9Lu08AlBsvrkfcq_j5rQP9ZcR73MwVXLGT2mJoasM2YdjxVRFxtHm8kQw](https://lh6.googleusercontent.com/p3J_Gc3-JSDWMjNNzpxNH3lZqjSL6ts3ebPRSvTxVW95qPXr3QaC6J4VOAFYRPO8ZaM8tlGrnjxGTF9GIdiNKMFMcL75cY9Lu08AlBsvrkfcq_j5rQP9ZcR73MwVXLGT2mJoasM2YdjxVRFxtHm8kQw)

In the schema, we have the 'address' field, which is of type `STRING`, and the `eth_balance` field, which is of type `NUMERIC`.

This dataset set is limited to the current balance history of the address and not the balance of ERC20 tokens, the balance history of native tokens, or ERC20 tokens. Let's write some queries to extract data related to addresses.

### Get balance of the address

To query the balance of a specific address, we need to filter the data based on the address using the WHERE keyword:

```sql
SELECT address, eth_balance
FROM `bigquery-public-data.crypto_ethereum.balances`
WHERE address = '0xcda7559bcef42e68f16233b5b8c99c757a5f4697';
```

![https://lh6.googleusercontent.com/6bxau_qkyvnjKvuxCBKiEUotcQm7MOwdrjQwKiME1Cqw9tgnakiu3itcYfL3UUxdtI-K3bMa1uiG_hBF6Dr0lzS1Gr5XAGVcUXA4KJtVPAkjOFwMRv1koMnoNGw18av4vXPqYxd4QQ7aQyLkjuc1sc0](https://lh6.googleusercontent.com/6bxau_qkyvnjKvuxCBKiEUotcQm7MOwdrjQwKiME1Cqw9tgnakiu3itcYfL3UUxdtI-K3bMa1uiG_hBF6Dr0lzS1Gr5XAGVcUXA4KJtVPAkjOFwMRv1koMnoNGw18av4vXPqYxd4QQ7aQyLkjuc1sc0)

### Get Top 10 Addresses with Highest Balances

To get a list of the top 10 addresses with the highest balances, we simply need to order the `eth_balance` in descending order and limit the results to the first 10:

```sql
SELECT address, eth_balance
FROM `bigquery-public-data.crypto_ethereum.balances`
ORDER BY eth_balance DESC
LIMIT 10;
```

![https://lh4.googleusercontent.com/x3IXyaKZTN6BWHq428tsOg7E4HK4rp6BQHQo-aP0tJFxGdzpM_hy24LojvzHULCPiu6Fv4IHVP-4Bz6YAHRyd9K-85nFR_dXorUsahNxN10NOxZOxXeV1rWI5CH0dl-j6mDbMsGYSqAu4WKemDyn5ic](https://lh4.googleusercontent.com/x3IXyaKZTN6BWHq428tsOg7E4HK4rp6BQHQo-aP0tJFxGdzpM_hy24LojvzHULCPiu6Fv4IHVP-4Bz6YAHRyd9K-85nFR_dXorUsahNxN10NOxZOxXeV1rWI5CH0dl-j6mDbMsGYSqAu4WKemDyn5ic)

### Transactions

The Transactions table provides information about transactions that have occurred on the [Ethereum blockchain](https://explorer.bitquery.io/ethereum). Before we dive into querying this dataset, let's explore its schema by running the following query:

```sql
SELECT
	column_name,
	data_type
FROM
	`bigquery-public-data.crypto_ethereum.INFORMATION_SCHEMA.COLUMNS`
WHERE
	table_name = 'transactions';
```

![https://lh4.googleusercontent.com/ZLKlRRrmVQBfyXFv83avq7evwJ8tawz9L0GHhD9lXgqioCWJolvOgPWCbwk2YOGjfyhOkw9znKR-SLnUTnbjphhEikvUmHsh7-DHZ5u9TYqob2hmkMYPzwIfdk1IjFdFHHEsxk2GVkd5x3_nVIwVw48](https://lh4.googleusercontent.com/ZLKlRRrmVQBfyXFv83avq7evwJ8tawz9L0GHhD9lXgqioCWJolvOgPWCbwk2YOGjfyhOkw9znKR-SLnUTnbjphhEikvUmHsh7-DHZ5u9TYqob2hmkMYPzwIfdk1IjFdFHHEsxk2GVkd5x3_nVIwVw48)

This query will display a number of columns related to transactions. The dataset provides comprehensive information about transactions, but for internal transaction details, you can [explore them separately](https://ide.bitquery.io/gasValue--internal-transfers-in-Tx). Let's delve into this dataset by writing some queries.

### Get transactions by transaction hash

To query a transaction by its hash, we'll use the `WHERE` clause to specify the hash value:

```sql
SELECT *
FROM `bigquery-public-data.crypto_ethereum.transactions`
WHERE `hash` = "0x1f5abf832162265242a27b7f8bf6a6ec6b2f4a4fd6d9e681cab6924807636fd7"
	AND block_timestamp > TIMESTAMP '2023-09-06 00:00:00';
```

You'll notice a difference here compared to the previous queries. In the query above, you'll see that the term `hash` is enclosed in backticks (`), and there's also a `block_timestamp` value included. Why is this the case? Well, `hash` happens to be a keyword in BigQuery, so to indicate that `hash` is the name of the column, we enclose it in backticks.

Additionally, the `block_timestamp` filter is included to narrow down the data we're retrieving, making it more efficient by filtering through a smaller subset of the table rather than the entire table. This optimization improves the performance of our query.

After running this query, you will see the following result:

![https://lh3.googleusercontent.com/uvmA-fLJ-vAnPODCefBmBEFLrQPd2gobBZ0RvUi8Cbqh5hamiYM8BuXfhz-BtB7m0Rjk99a9a17JJoYh8SXloilwABdCI7YUXsiVTC4jNoAySOPzNV07Rc6uVxnPzZ2WnY-YJiXsTOLoCnFPJ7HAHN8](https://lh3.googleusercontent.com/uvmA-fLJ-vAnPODCefBmBEFLrQPd2gobBZ0RvUi8Cbqh5hamiYM8BuXfhz-BtB7m0Rjk99a9a17JJoYh8SXloilwABdCI7YUXsiVTC4jNoAySOPzNV07Rc6uVxnPzZ2WnY-YJiXsTOLoCnFPJ7HAHN8)

### Get latest transaction from an address

To get the latest transaction from a specific address, we'll check if either the `from_address` or `to_address` matches the target address and then order the results by the transaction timestamp:

```sql
SELECT *
FROM `bigquery-public-data.crypto_ethereum.transactions`
WHERE (from_address = '0xcda7559bcef42e68f16233b5b8c99c757a5f4697'
	OR to_address = '0xcda7559bcef42e68f16233b5b8c99c757a5f4697')
ORDER BY block_timestamp DESC
LIMIT 10;
```

### Token Transfers

The Token Transfers table provides information on [ERC20 transfers](https://explorer.bitquery.io/ethereum/transfers) from the Ethereum blockchain. Along with query table schema via editor, you can also explore the schema in the BigQuery Dashboard using the explorer, which is on the right-hand side.

![https://lh4.googleusercontent.com/AZu9NCzEJtwW3qccLcrvwGc1n7b0lX0_IPwxoawQcXFK977oMHZiWkF6w7A5kg7qJD3HY01pYmbcEaatIXDfvXhMAGCyKwxXCEo-bBQOuhk1uT-DbdI-QlA512TpYbNh_NnEWp04Nbnc--L1DNgcwMY](https://lh4.googleusercontent.com/AZu9NCzEJtwW3qccLcrvwGc1n7b0lX0_IPwxoawQcXFK977oMHZiWkF6w7A5kg7qJD3HY01pYmbcEaatIXDfvXhMAGCyKwxXCEo-bBQOuhk1uT-DbdI-QlA512TpYbNh_NnEWp04Nbnc--L1DNgcwMY)

You can explore details of the dataset, ranging from the schema of the table to a preview of the data, among other details.

### Get token transfers of address

To get token transfers for a specific address, the query is similar to fetching transactions for an address, but with a change in the queried table from transaction to `token_transfers`:

```sql
SELECT *
FROM `bigquery-public-data.crypto_ethereum.token_transfers`
WHERE (from_address = '0xcda7559bcef42e68f16233b5b8c99c757a5f4697'
	OR to_address = '0xcda7559bcef42e68f16233b5b8c99c757a5f4697')
ORDER BY block_timestamp DESC
LIMIT 10;
```

### Get Latest USDT Transfers

To specifically get [USDT transfers](https://explorer.bitquery.io/ethereum/token/0xdac17f958d2ee523a2206206994597c13d831ec7/transfers), we use WHERE clauses and set the `token_address` to “[0xdAC17F958D2ee523a2206206994597C13D831ec7](https://explorer.bitquery.io/ethereum/token/0xdac17f958d2ee523a2206206994597c13d831ec7)”.

```sql
SELECT *
FROM `bigquery-public-data.crypto_ethereum.token_transfers`
WHERE
	token_address = ‘0xdAC17F958D2ee523a2206206994597C13D831ec7’
	AND block_timestamp > TIMESTAMP '2023-09-04 00:00:00'
ORDER BY block_timestamp DESC
LIMIT 10;
```

We have explored some tables and written queries that show how to query data. However, you can also create more complex queries by combining multiple tables to extract more meaningful insights. Here are some example queries that you can explore:

- [What are the 10 most popular Ethereum collectibles (ERC721 contracts), by number of transactions?](https://console.cloud.google.com/bigquery?sq=283459204595:76c4e247fba2463cabc746e19c114cc9)
- [What are the 10 most popular Ethereum tokens (ERC20 contracts), by number of transactions?](https://console.cloud.google.com/bigquery?sq=283459204595:ee095bfa957944ee9c7a115268652438)

## Querying Blockchain Data Using Python

While you can query data using SQL in the editor, you also have the option to explore the data in a Python notebook. The dashboard provides you with the tool to automatically generate a Python notebook for the query you have executed. To create one, click on "Explore Data" and select the "Explore with Python Notebook" option.

![https://lh5.googleusercontent.com/4E2KvjgQJxXPf0G-hft2hJNpvnSRyAaX-6HUWRJr8aU-1hswc7eUJtkJWBr3k7wtNTAmMVlgGyIBQ3X4z-WWYsuiCesE11qPm8wIf0wCY8NiZCdRPzOUMMe-mlNILWht7jATS0zeusaGNUlBzgLymJs](https://lh5.googleusercontent.com/4E2KvjgQJxXPf0G-hft2hJNpvnSRyAaX-6HUWRJr8aU-1hswc7eUJtkJWBr3k7wtNTAmMVlgGyIBQ3X4z-WWYsuiCesE11qPm8wIf0wCY8NiZCdRPzOUMMe-mlNILWht7jATS0zeusaGNUlBzgLymJs)

This will provide you with a ready-made Python Notebook from which you can access data from the BigQuery Ethereum dataset.

## Problems with using BigQuery for Blockchain Data

BigQuery makes it easy to access data with its public datasets, which are great for simple applications. But these datasets have some limits, so if you need a wider range of data, you might face problems.

If you want data through an API, you'd usually need to build your own systems to handle it. To help with this, Bitquery offers different products for different application needs.

Bitquery can give you indexed blockchain data via API, and you can also explore it using [our IDE](https://ide.bitquery.io/streaming). There's another product called "Data in the Cloud," similar to BigQuery's public dataset, which we'll talk about in the next section.

Bitquery's data covers transactions, token transfers, DEX trades, block data, smart contract details like calls and events, and more. If you want to explore this data, our IDE uses GraphQL to make it easy, so you [don't need to worry about complex SQL queries](https://bitquery.io/blog/graphql-charts). It even has a query builder, which is helpful if you're not familiar with GraphQL or our API.

## Data in the Cloud by Bitquery

Bitquery’s “[Data in the Cloud](https://bitquery.io/products/cloud-products)” product provides an even richer dataset that covers the data BigQuery provides and much more.

Datasets provided with the “Data in the Cloud’ product provide comprehensive data coverage for many other things like smart contract calls, events, token transfers (including [ERC20](https://docs.bitquery.io/docs/examples/transfers/erc20-token-transfer-api/), [ERC-721](https://bitquery.io/products/nft-apis), and ERC-1155), [DEX trades](https://bitquery.io/products/dex) for 40+ protocols like Uniswap, Balancer, 1Inch, and many more.

In short, if you’re looking for something that provides comprehensive blockchain data via a cloud product, [Data in the Cloud](https://bitquery.io/products/cloud-products) is the solution you’re looking for.

Check out [demo datasets](https://aws.amazon.com/marketplace/pp/prodview-oi4sbdu6zro3i?sr=0-1&ref_=beagle&applicationId=AWSMPContessa#dataSets) for the Data in the Cloud. If you want to talk to us, you can contact us [here](https://bitquery.io/forms/api)

## Also Read

- [Building Blockchain ETL? Wait! Read this first!](https://bitquery.io/blog/blockchain-etl-challenges)
- [Bitquery.io partners with AWS to offer blockchain data through AWS Data Exchange Marketplace](https://bitquery.io/blog/bitquery-aws)]]></description>
        </item>
        <item>
            <title><![CDATA[Bitquery NFT Marketplace APIs: How to get NFT Data]]></title>
            <link>https://bitquery.io/blog/nft-opensea-blur-marketplace-api</link>
            <guid>https://bitquery.io/blog/nft-opensea-blur-marketplace-api</guid>
            <pubDate>Sat, 09 Sep 2023 05:35:07 GMT</pubDate>
            <description><![CDATA[
Tracking NFT prices is important, but is it enough?

Most of the NFT liquidity (called mercenary liquidity) is provided by investors only interested in making a quick profit or following the new NFT in town. These investors are often willing to enter or exit a market quickly, regardless of the underlying fundamentals of the asset. This can make the market more volatile and less stable.

This is where Bitquery steps in with its extensive marketplace data covering major marketplaces, real-time prices, and ownership information through [NFT APIs](https://bitquery.io/products/nft-api). You can [start today for free](https://ide.bitquery.io/) with a developer plan.

In fact, Bitquery’s Explorer is a visual way to see the data in real-time. Below is a screenshot of real-time data on [CRYPTOPUNKS NFT](https://explorer.bitquery.io/ethereum/token/0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb/nft_smart_contract):

![punks](/blog/nft-opensea-blur-marketplace-api/punks.png)

Bitquery's APIs can be used with virtually any programming language, so don't worry about juggling platforms.

![ide](/blog/nft-opensea-blur-marketplace-api/ide.png)

Let’s see an example of how you can query BLUR token with Bitquery. In this below query, we get the [top traded NFTs on the BLUR Marketplace](https://ide.bitquery.io/Most-traded-NFT-on-Blur-marketplace). We do this by mentioning the marketplace contract in the transaction: to the field. We limit the result to the top 10 tokens.

```

query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {Trade: {Dex: {ProtocolName: {in: "seaport_v1.4"}}}, Transaction: {To: {is: "0x39da41747a83aeE658334415666f3EF92DD0D541"}}}
      orderBy: {descendingByField: "count"}
      limit: {count: 10}
    ) {
      tradeVol: sum(of: Trade_Buy_Amount)
      count
      buyers: count(distinct: Trade_Buy_Buyer)
      seller: count(distinct: Trade_Buy_Seller)
      nfts: count(distinct: Trade_Buy_Ids)
      Trade {
        Buy {
          Currency {
            Name
            ProtocolName
            Symbol
            Fungible
            SmartContract
          }
        }
      }
    }
  }
}

```

The information available for all NFT marketplaces through Bitquery's APIs, includes metadata, ownership history, and pricing data. But let's dive deeper into the unique offerings for each specific marketplace:

## Bitquery Blur NFT API

The Bitquery BLUR API provides data on NFTs from the BLUR marketplace. This includes [metadata, transfers, ownership history, and pricing data](https://bitquery.io/blog/blur-nft-marketplace-api).

The introduction of [Blend, the p2p lending platform](https://www.coindesk.com/web3/2023/05/01/nft-marketplace-blur-launches-peer-to-peer-lending-platform-blend/) made it easier for people to buy expensive NFTs. With these APIs, you can also track events like:

- [NFT Loans and Lending Information](https://ide.bitquery.io/Latest-loans-for-specific-NFTtoken): Blur uses the Blend protocol to enable NFT loans. We can query Blur's [Blend smart contract](https://explorer.bitquery.io/ethereum/smart_contract/0x29469395eaf6f95920e59f858042f0e28d98a20b/events) events to get different loan-related data including the [latest loans by a lender](https://ide.bitquery.io/Latest-Loans-for-a-specificlender) or a particular NFT.

- Auctions: You can get auction data, including [new auctions](https://ide.bitquery.io/Auction-on-blur-marketplace). The StartAuction event is emitted when an auction is started for an NFT on the Blend smart contract. For example, we can get the latest 10 auctions started on Blur or auctions for a particular NFT.

- [Locked NFTs](https://ide.bitquery.io/Locked-NFT-bought-on-Blur-marketplace): A locked NFT is an NFT that is temporarily unable to be transferred or sold. It will be sold once the lock period has ended. The price of a locked NFT may be lower than the price of a non-locked NFT because the buyer cannot access the NFT until the lock period has expired. With Bitquery’s Blur API you can track locked NFT information for example latest trades or [locked NFTs bought by a particular address.](https://ide.bitquery.io/Locked-NFTs-bought-by-abuyer)

- Offers and Seizes: Track collateral seizes and [canceled offers](https://ide.bitquery.io/Latest-Cancelled-offers-on-Blur-NFT-marketplace) with Bitquery’s Blur API. For example, you can track in real-time the OfferCancelled event emitted when an offer is canceled.

## Bitquery Opensea API

Opensea has its [own API setup](https://docs.opensea.io/reference/api-overview) with premade endpoints that you can use. However, the API key is not easy to get. Moreover, there are rate limitations and little customisability.

![opensea api 1](/blog/nft-opensea-blur-marketplace-api/opensea_api1.png)
![opensea api 2](/blog/nft-opensea-blur-marketplace-api/opensea_api2.png)

The Bitquery Opensea API does the hard lifting for you by providing data on NFTs from the OpenSea marketplace. This includes metadata, ownership history, and pricing data.

- NFT Trades: You can use the Bitquery OpenSea API to track NFT trades in a variety of ways. For example, you can:

- Track the [latest OpenSea trades](https://ide.bitquery.io/Latest-OpenSea-Trades) by tracking the Seaport protocol and all transactions sent to OpenSea's seaport contract.
- Get the [top 10 most traded NFTs](https://ide.bitquery.io/Top-Traded-NFTs-on-Opensea) on OpenSea.
- Get the total number of times a specific NFT has been bought and sold on OpenSea.
- Get buyer stats like the buyer's address, the number of NFTs they bought, the total amount they spent, and the first and last date of the trades.

- Token Holders and Ownership Data: To get ownership of an NFT token, you can use the BalanceUpdates API. This API tracks all [balance updates](https://docs.bitquery.io/docs/examples/balances/balance-api/), so you can use it to see [who owns a specific NFT](https://ide.bitquery.io/Who-owns-specific-NFT). You can also get the top holders of an NFT. To get daily NFT transfers, you can use the Transfers API.

- NFT Creation and Opensea Storefront Data : Bitquery Opensea API can be used to track NFT creation and OpenSea storefront data. For example, you can see how many [new NFTs are being created each day](https://ide.bitquery.io/Latest-Opensea-Openstore-Minted-NFTs), or what types of NFTs are being created the most. The OpenSea API can also be used to track OpenSea storefront data. This data includes information about the [storefront's listings](https://ide.bitquery.io/NFT-Sale-Creation), sales, and users. You can even track [top luxury NFTs](https://ide.bitquery.io/Trade-Stats-for-Gucci-Adidas-Dolce-Gabbana) that have been sold on Opensea .

## Bitquery X2Y2 API

X2Y2 is a decentralized NFT marketplace that is known for its own token, X2Y2, which can be staked to earn rewards. It also has developer tools designed to help creators easily manage and mint their NFTs on X2Y2.

One of the most interesting things about X2Y2 is that it allows users to take out loans against their NFTs. This means that you can use your NFTs as collateral to obtain a loan from another user or from a lending platform.

The Bitquery X2Y2 API provides data on NFT loans from the X2Y2 marketplace.

This includes loan events from the X2Y2 V3 contract, such as the latest loan takers, loan liquidated, and loan repaid events. You can view all events and trades using the [X2Y2 explorer](https://explorer.bitquery.io/ethereum/smart_contract/0xB81965DdFdDA3923f292a47A1be83ba3A36B5133/events).

![events](/blog/nft-opensea-blur-marketplace-api/events.png)

For example, you can use the Bitquery X2Y2 API to [track the latest loan takers](https://ide.bitquery.io/Latest-NFT-loans-X2Y2) along with the NFTs that they have used as collateral.

You can also use the Bitquery X2Y2 API to track loan liquidated and loan repaid events by just specifying the event name in your API query.

## About Bitquery

[Bitquery](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

-   **APIs** - [Explore API](https://ide.bitquery.io/streaming): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.
    
-   **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=about): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.
    
-   **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/data-on-demand?utm_source=blog&utm_medium=about): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.
    
-   **Explorer** - [Try Explorer](http://explorer.bitquery.io/): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.
    

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.

]]></description>
        </item>
        <item>
            <title><![CDATA[How to Track liquidity for token pairs on Uniswap]]></title>
            <link>https://bitquery.io/blog/how-to-track-liquidity-for-token-pair-on-uniswap</link>
            <guid>https://bitquery.io/blog/how-to-track-liquidity-for-token-pair-on-uniswap</guid>
            <pubDate>Tue, 05 Sep 2023 00:30:00 GMT</pubDate>
            <description><![CDATA[
## **Introduction**

Today we will explore different aspects of the liquidity pools of any token pair on Uniswap. Uniswap is the most popular dapp in the crypto ecosystem; it is a decentralized exchange (DEX) that allows you to trade tokens on a blockchain. Out of the different types of DEX, Uniswap is called AMM (Automated money market), which relies on the concept of liquidity pools. Let’s refresh on liquidity pools and then explore data using Bitquery V2 APIs.

Our [V2 APIs](https://docs.bitquery.io/docs/intro/) allow us to access blockchain data in real-time using GraphQL subscriptions. You can try out V2 APIs [here](https://ide.bitquery.io/streaming?utm_source=blog&utm_medium=marketing&utm_content=uniswap)

## **Understanding Token-Pair Liquidity**

There are different types of DEX, which you can divide mainly into AMM DEX and Order Book DEX. An [AMM DEX](https://academy.binance.com/en/articles/what-is-an-automated-market-maker-amm) like Uniswap, Sushiswap, etc. relies on algorithmic pricing and liquidity pools, while an order book DEX matches buyers and sellers directly based on their submitted orders.

Liquidity, in the context of [Uniswap](https://uniswap.org/) and similar AMM DEXs, refers to the availability of tokens in liquidity pools that facilitate trades. The pools are created by liquidity providers, who provide tokens to liquidity pools in exchange for earning part of trading fees. The depth of liquidity pools plays an important role in determining how easily traders can execute trades without causing significant fluctuations in market prices.

Now that we have clarified what liquidity pools are and how they affect DEX working, let’s see how to fetch data using the [DEX API](https://bitquery.io/products/dex).

## **Get All Liquidity Pools For a Token**

As anyone can create a liquidity pool for any token, there will be many pools for a single token, so let’s try to fetch a list of all the pools.

In this query, we will be fetching a list of liquidity pools created for USDT, for which we need to set buy currency to the [address of USDT token](https://explorer.bitquery.io/ethereum/token/0xdAC17F958D2ee523a2206206994597C13D831ec7).

Open [this query](https://ide.bitquery.io/uniswap-streaming-get-all-liquidity-pools-for-a-token/) in the GraphQL IDE.

```graphql
{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
        where: {
            Trade: {
                Buy: {
                    Currency: {
                        SmartContract: {
                            is: "0xdAC17F958D2ee523a2206206994597C13D831ec7"
                        }
                    }
                }
            }
        }
        limit: {count: 10}
        limitBy: {by: Trade_Sell_Currency_SmartContract, count: 1}
    ) {
      Trade {
        Dex {
          ProtocolName
          OwnerAddress
          ProtocolVersion
          PairTokenAddress: SmartContract
          Pair {
            SmartContract
            Name
            Symbol
          }
        }
        Buy {
          Currency {
            Name
            SmartContract
          }
        }
        Sell {
          Currency {
            Name
            SmartContract
          }
        }
      }
    }
  }
}
```

## **Get all pools for tokens on a certain DEX**

When we run the above query, you will notice all those pairs are from [Uniswap V3](https://community.bitquery.io/t/introducing-uniswap-v3-protocol-on-eth/336). This is because the API sends data for the default DEX if there is no DEX specified in the query.

In this query, we have defined the name of the DEX from which we need data, which is “[Uniswap V2](https://explorer.bitquery.io/ethereum/smart_contract/0x7a250d5630b4cf539739df2c5dacb4c659f2488d)”.

Open [this query](https://ide.bitquery.io/DEX-Streaming-Get-Pools-from-Any-DEX) in the GraphQL IDE.

```graphql
{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
        where: {
            Trade: {
                Buy: {
                    Currency: {
                        SmartContract: {
                            is: "0xdAC17F958D2ee523a2206206994597C13D831ec7"
                        }
                    }
                }, 
                Dex: {
                    Pair: {
                        Name: {
                            is: "Uniswap V2"
                        }
                    }
                }
            }
        }
        limit: {count: 10}
        limitBy: {by: Trade_Sell_Currency_SmartContract, count: 1}
    ) {
      Trade {
        Dex {
          ProtocolName
          OwnerAddress
          ProtocolVersion
          PairTokenAddress: SmartContract
          Pair {
            SmartContract
            Name
            Symbol
          }
        }
        Buy {
          Currency {
            Name
            SmartContract
          }
        }
        Sell {
          Currency {
            Name
            SmartContract
          }
        }
      }
    }
  }
}
```

You can also use the smart contract address of the DEX instead of the protocol name, as the API might not recognize the name of some DEXs. Instead of selecting the protocolName field in the DEX filter, select the SmartContract field and input the smart contract address. Here is an example query that uses the smart contract address of DEX to filter.

## **Get liquidity of a liquidity pool**

Now that we can fetch a list of liquidity pools, we can look into fetching details about each pool using the address of a specific liquidity pool.

This query fetches the balance of tokens in the pool, which is the liquidity of that liquidity pool.

Open [this query](https://ide.bitquery.io/Uniswap-Streaming-Get-Depth-of-Liquidity-Pool) in the GraphQL IDE.

```graphql
{
  EVM(dataset: combined, network: eth) {
    BalanceUpdates(
        where: {
            BalanceUpdate: {
                Address: {
                    is: "0x6ca298d2983ab03aa1da7679389d955a4efee15c"
                }
            }
        }
        orderBy: {descendingByField: "balance"}
    ) {
      Currency {
        Name
      }
      balance: sum(of: BalanceUpdate_Amount)
      BalanceUpdate {
        Address
      }
    }
  }
}
```

**Also Read: [OpenSea NFT API](https://bitquery.io/blog/opensea-nft-api)**

## **Get number of trades for a liquidity pool**

We can also get the number of trades that happened in a pool, which will tell us how frequently that pool is being used.

This query allows you to count all the successful trades in that pool. We have to filter using the address of the pool as an argument for Trade.Pair. SmartContract and using the count method to count distinct Transaction_Hash values.

Open [this query](https://ide.bitquery.io/Uniswap-Streaming-Get-Number-of-Trades-in-a-Pool) in the GraphQL IDE.

```graphql
{
  EVM(network: eth, dataset: combined) {
    DEXTrades(
        orderBy: {descending: Block_Date}
        where: {
            Trade: {
                Dex: {
                    Pair: {
                        SmartContract: {
                            is: "0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852"
                        }
                    }
                }
            }
        }
        limit: {count: 10}
    ) {
      Block {
        Time(interval: {in: days})
      }
      Trades: count(
        distinct: Transaction_Hash
        if: {TransactionStatus: {Success: true}}
      )
    }
  }
}
```

## **Get all the recent token pairs created on Uniswap**

As anyone can create a liquidity pool without any restrictions, there are many pools created every day, so let’s see how to fetch details about created pools.

Whenever a new pool is created using the [Uniswap Factory Smart Contract](https://explorer.bitquery.io/ethereum/smart_contract/0x1f98431c8ad98523631ae4a59f267346ea31f984), an event called PoolCreated is emitted. We can fetch all those events in order to get details about the newly created pool.

To fetch events, we will use the [Events API](https://docs.bitquery.io/docs/examples/events/events_api/) with the address of the Factory contract and the name of the event passed as arguments to the Log.SmartContract and Log.Signature.Name filters, respectively.

Open [this query](https://ide.bitquery.io/Uniswap-Streaming-Get-Recently-Created-Pools-by-PoolCreated-Event) in the GraphQL IDE.

```graphql
{
  EVM {
    Events(
        where: {
            Log: {
                SmartContract: {
                    is: "0x1F98431c8aD98523631AE4a59f267346ea31F984"
                }, 
                Signature: {
                    Name: {
                        is: "PoolCreated"
                    }
                }
            }
        }
        limit: {count: 10}
        orderBy: {descending: Block_Date}
    ) {
      Arguments {
        Name
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
        Type
        Index
      }
      Block {
        Hash
      }
    }
  }
}
```

**Also Read:  [Ethereum DEX GraphQL APIs with Examples](https://bitquery.io/blog/ethereum-dex-graphql-api)**

## **Get all pools for token pair**

As anyone can create liquidity pools, there can be many pools for the same token pairs. As some pools will have low liquidity and some might have high liquidity, getting that data is important.

To get a list of liquidity pools for a token pair, we will pass the token addresses for both tokens in the pair to Trade.Buy.Currency.SmartContract and Trade.Sell.Currency. SmartContract respectively. Finally, we will limit the result by setting the value of Trade_Dex_Pair_SmartContract to 1, so we will get all the unique pools for the particular token pair.

Open [this query](https://ide.bitquery.io/DEX-Streaming-Get-All-Pools-for-Token-Pair) in the GraphQL IDE.

```graphql
{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
        where: {
            Trade: {
                Buy: {
                    Currency: {
                        SmartContract: {
                            is: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
                        }
                    }
                }, 
                Sell: {
                    Currency: {
                        SmartContract: {
                            is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
                        }
                    }
                }
            }
        }
        limit: {count: 10}
        limitBy: {by: Trade_Dex_Pair_SmartContract, count: 1}
    ) {
      Trade {
        Dex {
          ProtocolName
          OwnerAddress
          ProtocolVersion
          PairTokenAddress: SmartContract
          Pair {
            SmartContract
            Name
            Symbol
          }
        }
        Buy {
          Currency {
            Name
            SmartContract
          }
        }
        Sell {
          Currency {
            Name
            SmartContract
          }
        }
      }
    }
  }
}
```

## **Get Uniswap Data From Arbitrum**

For demonstration, we have fetched the data from Uniswap Contracts deployed on Ethereum, but you can also fetch data from Uniswap Contracts deployed on Arbitrum by changing the value of the network field. Just make sure you change the addresses for all the tokens or DEXs to appropriate Arbitrum addresses.

## **Get Liquidity Pool Data From DEXs Besides Uniswap**

We explored Uniswap V3 and V2 data here, but you can also fetch data from [SushiSwap](https://explorer.bitquery.io/ethereum/token/0x6b3595068778dd592e39a122f4f5a5cf09c90fe2), [Curve](https://explorer.bitquery.io/ethereum/token/0xd533a949740bb3306d119cc777fa900ba034cd52), [Balancer](https://explorer.bitquery.io/ethereum/token/0xba100000625a3754423978a60c9317c58a424e3d), and many other DEXs.

The Bitquery V2 API currently supports Ethereum, Arbitrum, and BSC, so you will be able to fetch data from many DEXs on these chains.

## Also Read:

- [Top Uniswap APIs](https://bitquery.io/blog/top-uniswap-APIs)
- [Tron DEX APIs with Bitquery | GraphQL APIs](https://bitquery.io/blog/tron-dex-api)]]></description>
        </item>
        <item>
            <title><![CDATA[Uniswap API - Top 10 Essential Uniswap Trading Data APIs]]></title>
            <link>https://bitquery.io/blog/top-uniswap-apis</link>
            <guid>https://bitquery.io/blog/top-uniswap-apis</guid>
            <pubDate>Wed, 30 Aug 2023 05:35:07 GMT</pubDate>
            <description><![CDATA[
Uniswap remains the leading decentralized exchange (DEX) on Ethereum, pioneering the Automated Market Maker (AMM) model. As the [largest DEX by trading volume](https://dexrabbit.com/eth/dex_market), Uniswap processes billions of dollars in trades daily across its v1, v2, and v3 protocols.

With [Uniswap v3](https://blog.uniswap.org/uniswap-v3)'s introduction of concentrated liquidity and multiple fee tiers, and the recent launch of Uniswap v4 with hooks, the platform continues to evolve as the powerhouse of [Decentralized Exchange Trading](https://bitquery.io/solutions/dex-terminals).

In today's data-driven DeFi landscape, accessing accurate and real-time information from Uniswap is crucial for traders, developers, liquidity providers, and analysts. Whether you need historical trade data, real-time price feeds, liquidity pool analytics, or NFT position tracking, having the right API tools can make the difference between success and failure.

In this comprehensive guide, we'll explore the top 10 essential Uniswap APIs that provide everything from real-time trades and price data to advanced analytics for liquidity positions and trading pairs. Each API category includes working examples and links to live queries you can test immediately.

## 1. Bitquery - Complete Uniswap Data Platform

[Bitquery](https://bitquery.io) stands out as the most comprehensive Uniswap data provider, offering everything from real-time trades to advanced position tracking across all Uniswap versions (v1, v2, v3). With GraphQL APIs, WebSocket subscriptions, and Kafka streams, developers get both flexibility and power.

**Core APIs:**

- **[DEX Trades API](https://docs.bitquery.io/docs/evm/dextrades/)**: Real-time and historical trade data with sub-second latency. Track trades, prices, volumes, and traders across all Uniswap versions.

- **[Position Tracking API](https://docs.bitquery.io/docs/blockchain/Ethereum/dextrades/uniswap-position-api/)**: Complete lifecycle tracking of Uniswap V3 NFT positions - from mint to burn. Monitor position creation, liquidity changes, tick ranges, and fee accumulation.

- **[Trading Pairs API](https://docs.bitquery.io/docs/blockchain/Ethereum/dextrades/get-trading-pairs-of-token/)**: Discover all trading pairs for any token across Uniswap and other DEXs.

- **[Pools API](https://docs.bitquery.io/docs/blockchain/Ethereum/dextrades/pools-api/)**: Track pool creation, liquidity levels, trending pools, and pool statistics.

- **[Top Traders API](https://docs.bitquery.io/docs/blockchain/Ethereum/dextrades/trades-of-an-address-api/)**: Identify top traders, analyze wallet activities, and track smart money movements.

- **[Token Statistics API](https://docs.bitquery.io/docs/blockchain/Ethereum/dextrades/token-trades-apis/)**: Get comprehensive metrics including buy/sell volume, price changes, maker counts, and trending tokens.

**Advanced Features:**

- **Kafka Streams**: For high-frequency applications requiring sub-second latency, Bitquery offers [Kafka streaming](https://docs.bitquery.io/docs/streams/kafka-streaming-concepts/) for Uniswap data. Perfect for trading bots and real-time analytics.

- **GraphQL IDE**: Interactive playground with [pre-built queries](https://ide.bitquery.io/) and instant visualization.

- **DEXrabbit Dashboard**: [Free analytics dashboard](https://dexrabbit.com/eth) for visual exploration of Uniswap data without coding.

**Why Bitquery?**
- Complete historical data since genesis
- Real-time WebSocket subscriptions
- Cross-chain support (Ethereum, Base, Arbitrum, Polygon, etc.)
- Active [Telegram support](https://t.me/bloxy_info) with quick response times
- Free developer plan with 100,000 points/month

[Explore Bitquery APIs →](https://docs.bitquery.io/docs/blockchain/Ethereum/dextrades/uniswap-api/)


## 2. The Graph Protocol

![The graph](/blog/top-uniswap-apis/graph.png)

The Graph is a decentralized protocol designed for indexing and querying blockchain data. It facilitates the querying of data that might otherwise be challenging to access directly. A subgraph pulls data from a blockchain, processes it, and stores it so that it can be seamlessly queried using GraphQL.

The Uniswap subgraph chronologically indexes data from the Uniswap contracts. It organizes information regarding pairs, tokens, the entirety of Uniswap, and more. This subgraph updates whenever a transaction occurs on Uniswap. It operates on The Graph protocol’s hosted service and is open for queries.

Subgraph Explorer is a sandbox for querying data and offering endpoints for developers. [Uniswap V2 Subgraph](https://github.com/Uniswap/uniswap-v2-subgraph) is an example of source code for the deployed subgraph. The subgraph not only offers a snapshot of Uniswap’s current state but also archives historical data. It powers [uniswap.info](http://uniswap.info/) but isn’t intended as a data source for structuring transactions.

Substreams is another robust blockchain indexing technology, specifically crafted for The Graph Network. Substreams empower developers to create Rust modules, curating data streams in collaboration with the community. By emphasizing parallelization, it achieves exceptionally high-performance indexing in a streaming-first approach.

## 3. Covalent

![The graph](/blog/top-uniswap-apis/graph.png)

The Covalent Unified API offers the ability to extract token balances, positions, and detailed historical transaction data from various blockchain networks. This data supports a wide range of end-user applications, including wallets, investor dashboards, taxation tools, and other yet-to-be-identified use cases.

They provide a range of three primary products to cater to various digital transaction needs. First is the Token Balances API, a unified system that enables users to access a wallet’s ERC20 balances, allowances, transfers, and prices seamlessly. The second product they offer is the Transactions API, which is a scalable solution designed to fetch historical transactions spanning across more than 100 chains. Lastly, they have the NFT API, which stands out as a comprehensive platform that grants immediate access to NFT media, metadata, and easily interpretable sale transactions on over 100 chains.

## 4. Moralis

![moralis](/blog/top-uniswap-apis/moralis.png)

The Moralis DeFi API, integrated with a broad spectrum of Decentralized Exchanges (DEXs) spanning various EVM blockchains. This API provides immediate access to liquidity reserves and pair data across these blockchains enhancing their ability to develop and expand their dapps. Key features of the DeFi API include ,fetching liquidity reserves for specified pair addresses in AMMs based on Uniswap and retrieving the pair address linked to specific token addresses from Uniswap-based AMMs.

Moralis offers a comprehensive suite tailored to the needs of Web3 developers and the broader crypto community. Their NFT API allows for cross-chain NFT transfers and provides easy access to NFT prices and metadata. With the Token API, users can access up-to-the-minute data on token prices, transfers, and ownership.

## 5. Dune Analytics

![The graph](/blog/top-uniswap-apis/dune.png)

Dune is a web-based platform designed for querying public blockchain data and aggregating it into visually appealing dashboards. It offers robust tools to analyze cross-chain data across various tokens, wallets, and protocols, and users can seamlessly share their insights with the community. The Dune API not only enhances your data integration workflow but also significantly boosts your efficiency.

Key features include executing queries, which allows users to turn an existing query into an endpoint or fetch the latest results, and editing queries through a comprehensive CRUD (Create, Retrieve, Update, Delete/Archive) API. While the executing queries feature is available to Community users, the editing queries feature is exclusive to Premium users.

## 6. Token Terminal

![The graph](/blog/top-uniswap-apis/tokenterminal.png)

Token Terminal is a platform that consolidates financial data from leading blockchains and decentralized applications. The Token Terminal API provides access to all the data that drives the Token Terminal web application. Users subscribed to the Token Terminal API plan can retrieve this data using their designated API key, available on their account page. It’s essential to keep the API key confidential; refrain from sharing it or storing it in publicly accessible locations such as GitHub or client-side code. The API is read-only, supports REST calls, employs intuitive resource-oriented URLs, and returns JSON-encoded responses and error messages.

## 7. Parsiq

![The graph](/blog/top-uniswap-apis/parsiq.png)

Parisq has indexed tens of millions of blocks across multiple platforms, including Ethereum, BNB Smart Chain, Avalanche, Polygon PoS, Polygon zkEVM, Arbitrum, opBNB, and Metis Andromeda. They’ve captured hundreds of millions of transactions, calls, and events right from block zero up to the present moment. All this data is instantly accessible to users, irrespective of the intricacy of their inquiries.

Furthermore, with the Balances API, users can access real-time balances and delve into transaction histories, offering the advantage of retrieving and displaying user balances across a multitude of wallets and protocols.

## 8. CoinGecko

![coingecko](/blog/top-uniswap-apis/coingecko.png)

CoinGecko, the world’s largest independent crypto data aggregator, is integrated with over 700 crypto exchanges and lists more than 10,000 coins. It offers the most comprehensive and reliable crypto data via RESTful JSON endpoints. Numerous projects, Web3 developers, researchers, institutions, and enterprises rely on CoinGecko’s API to access price feeds, market data, metadata, and historical data for crypto assets, NFTs, and exchanges.

## 9. 0x

![0x](/blog/top-uniswap-apis/0x.png)

0x provides the essential building blocks for crafting powerful Web3 applications. As the Web3 ecosystem expands with a growing number of platforms, DEX protocols, and tokens, development becomes more challenging. However, their APIs and solutions simplify this landscape and decrease the associated infrastructure overhead.

They offer a comprehensive suite of APIs designed to expedite the development, launch, and scaling of their financial products across eight EVM-compatible chains. The 0x API suite is the optimal solution for enhancing trade speeds, ensuring competitive prices, and delivering an outstanding user experience in their application. To begin, users will need to establish an account to access the 0x Dashboard. This will allow them to generate API keys for new projects, oversee and manage integrations, and tap into a wealth of developer resources and new APIs.

## 10. Blockvision

![blockvision](/blog/top-uniswap-apis/blockvision.png)

BlockVision is a leading multi-chain node, mempool, FT, NFT, and DeFi API provider, offering real-time data retrieval for developers. Their platform includes AceNode, which lets users query real-time archived data and monitor on-chain pending transactions. Their NFT APIs empower users to instantly find, verify, display, and rank any NFT, while their FT APIs provide swift querying and indexing of all token-related data. Furthermore, the DeFi APIs make it simple to query the asset activity of addresses within DeFi protocols.

## How to Choose the Best Uniswap Data Provider?

Navigating the vast landscape of Uniswap data providers can be daunting. With the rise of decentralized finance and the plethora of APIs available, it’s crucial to select a provider that aligns with your specific needs. When selecting a Uniswap data provider, consider the following factors:

- **Variety of APIs**: Providers like Bitquery offer a diverse range of APIs, from trading pairs to DEX trades. Ensure the provider covers all facets of Uniswap, including staking, v2, v3, and other relevant DEX data.
- **Track Record:** Consider providers with a reputation for accuracy, such as The Graph Protocol, which indexes data chronologically from Uniswap contracts.
- **Ease of Use**: Platforms like Bitquery offer features like “Explore Queries” for those unfamiliar with coding, making data extraction more accessible.
- **Visualization Tools**: Providers like Bitquery and Dune Analytics offer visualization dashboards, ensuring that users can instantly see the results of their queries.
- **Active Support**: Bitquery, for instance, has an active [Telegram](https://t.me/bloxy_info) channel where the team responds typically within an hour.
- **Educational Resources**: Platforms like Bitquery offer guides, community tutorials, and other resources to help users understand and utilize the data effectively.
- **Free vs. Paid**: While some providers might offer free tiers or community access, others might charge for premium features. Bitquery offers a free developer plan. Priced at $0, this plan provides 100,000 points every month. Users under this plan can make up to 10 API calls per minute.
- **Integration Capabilities**: Platforms like Bitquery support multiple EVM blockchains, enhancing the ability to develop and expand dapps.

By considering these factors and referencing the specific features and strengths of the mentioned platforms, users can select a Uniswap data provider that best suits with their requirements.

## Conclusion

In the rapidly evolving world of DeFi and Uniswap, having reliable data sources is paramount. Uniswap has revolutionized the crypto landscape, and with the plethora of APIs and tools available, accessing its vast reservoir of data has never been easier. Whether you’re a trader, developer, or crypto enthusiast, these tools can provide invaluable insights into the ever-evolving world of decentralized exchanges. By choosing the right data provider and leveraging the power of these APIs, you can stay ahead of the curve in the dynamic world of crypto.

## FAQs

1.  What is the difference between Uniswap v2 and v3?

- Uniswap v3 introduces features like concentrated liquidity and multiple fee tiers, offering more flexibility and potential returns for liquidity providers compared to v2.

2.  How does uniswap staking work?

- Uniswap staking involves locking up a certain amount of tokens in a liquidity pool to earn rewards. In return for staking their tokens, users receive a proportion of the trading fees generated by the platform.

3.  Why is Decentralized Exchange (DEX) data important?

- DEX data provides insights into trading volumes, liquidity, token prices, and more. This information is crucial for traders and investors to make informed decisions in the decentralized finance (DeFi) space.

]]></description>
        </item>
        <item>
            <title><![CDATA[Best NFT Market Trackers]]></title>
            <link>https://bitquery.io/blog/nft-market-trackers</link>
            <guid>https://bitquery.io/blog/nft-market-trackers</guid>
            <pubDate>Mon, 17 Jul 2023 05:35:07 GMT</pubDate>
            <description><![CDATA[
# Best NFT Market Trackers

**What are NFTs?**

Non-Fungible Tokens (NFTs) are digital collectibles that possess a distinct and immutable digital signature, which serves to authenticate and establish ownership of each individual token.

This uniqueness and proof of ownership have made NFTs popular, especially in the digital art world. They have also opened up new possibilities for digital ownership and monetization, leading to a booming NFT market with significant investments.

 
**Why Use NFT Market Trackers?**

 
Tracking the NFT market is essential for several reasons:

-   Trend Spotting: Stay updated with the latest NFT trends to create appealing content and make smart investments. This involves keeping an eye on the NFT Market Metrics to understand the current market scenario.
    
-   Risk and Value Control: Navigate the volatile NFT market and understand value influencers for better pricing and investment decisions. This includes monitoring the NFT Floor Price to ensure you're making profitable decisions.
    
-   Demand Check: Understand what's hot and what's not. Tailor your offerings to meet market demand and stay competitive.
    
-   Future Mapping: Spot long-term market trends and shifts to plan and strategize effectively for the future. This involves keeping track of the NFT Project Rankings to understand which projects are gaining traction.
    
   

## Best NFT Market Trackers for Comprehensive Analysis

### Bitquery

Bitquery's NFT APIs and explorers are a comprehensive solution for NFT market tracking.

You can get realtime data on NFTs through the no-code explorer, or APIs. What's more, you can download the data from AWS Marketplace.  

![explorer](/blog/nft-market-trackers/explorer.png)

Source: [https://explorer.bitquery.io/ethereum/token/0x60e4d786628fea6478f785a6d7e704777c86a7c6/nft_smart_contract](https://explorer.bitquery.io/ethereum/token/0x60e4d786628fea6478f785a6d7e704777c86a7c6/nft_smart_contract)

  

**Identifying Top Holders**


With Bitquery's APIs, you can identify the [top holders](https://ide.bitquery.io/top-MILADY-MAKER-NFT-holders) of any NFT. This information is crucial for understanding the current market trends.


**Tracking NFT Trades**

You can leverage the [Trades API](https://ide.bitquery.io/Latest-Trades-of-NFT-Tokens-in-Network) to obtain an overview of different marketplaces including Opensea and [Blur](https://bitquery.io/blog/blur-nft-marketplace-api). By using this API, you can track various metrics such as the number of NFT traders, popular NFTs, average prices, and more.

**Ownership API**

You can make use of Bitquery's [Ownership](https://ide.bitquery.io/Get-NFT-owners-by-contract-address) API to validate the provenance of each NFT, ensuring its authenticity. Additionally, with the Calls API, you can access data on both state-changing and view calls, promoting [transparency](https://ide.bitquery.io/Trades-of-NFT-Token-with-Address-as-Seller) throughout the process.

![trade](/blog/nft-market-trackers/holders.png)

**Market Stats**

You can enhance your market strategy by using Bitquery's APIs. These APIs provide valuable insights into various aspects, such as the total [circulating supply](https://ide.bitquery.io/Total-Circulating-Supply-USDT-v2), the [total NFTs count](https://ide.bitquery.io/Total-NFTs-Count--ETH), and more. By leveraging these insights, you can make more informed decisions and elevate your market strategy effectively.

**Events, Token Information and Metadata**

Bitquery's APIs provide a robust toolkit for achieving mastery in the NFT market. With Bitquery, you can [track the latest borrow, lending](https://ide.bitquery.io/Latest-Loans-taken-onBlur), [identify the top holders of any NFT](https://ide.bitquery.io/top-MILADY-MAKER-NFT-holders), get detailed NFT token information, [monitor NFT trades](https://ide.bitquery.io/Trades-of-NFT-Token-with-Address-as-Seller), and [understand the total NFTs count](https://ide.bitquery.io/Total-NFTs-Count--ETH). These kinds of technical features enable you to navigate and excel in the dynamic NFT market.

![trade](/blog/nft-market-trackers/trades.png)

**APIs for NFT Investors**

Bitquery's APIs are a valuable tool for NFT investors. They provide insights into [address holding NFTs](https://ide.bitquery.io/Address-Holding-NFTs_1_1), helping investors to understand the distribution of NFTs and make informed investment decisions.

**Tools for NFT Creators**

For NFT creators, Bitquery's APIs provide insights into the [latest trades of NFT tokens](https://ide.bitquery.io/Latest-Trades-of-NFT-Tokens-in-Network). This information can help creators understand the market demand for their NFTs and price them appropriately.

**Bitquery: A Tool for NFT Market Analysis**

Bitquery's APIs provide comprehensive data for NFT market analysis. From [historical prices of NFT tokens](https://ide.bitquery.io/Collect-argument-to-get-historical-prices-uniswap-v3-nft-tokens) to [NFT token information](https://ide.bitquery.io/NFT-token-information_1_1_1), Bitquery provides all the data you need for a thorough market analysis.


We operate on a point system and charge only for what you use. Get started with a [free developer plan](https://account.bitquery.io/) to build your own NFT Market Trackers.

### OpenSea

-   OpenSea, the prominent NFT marketplace, offers an NFT Market Tracker equipped with tracking tools.
    
-   This platform allows users to actively monitor sales, collections, and market trends related to NFTs.
    
-   By providing real-time data on transactions, pricing, and popular NFT projects, OpenSea's NFT Market Tracker serves as a resource for analysis and insights into the dynamic NFT market.
    

  

### Rarible

-   Rarible, a notable NFT marketplace, offers its own NFT Market Tracker equipped with tracking capabilities.
    
-   Users can monitor sales, collections, and market trends related to NFTs in real-time.
    
-   With detailed transaction data, pricing information, and insights into popular NFT projects, Rarible's NFT Market Tracker provides a resource for analysis of the dynamic NFT market.
    

  

### Nansen

-   Nansen, an analytics platform, offers a NFT Market Tracker with tracking capabilities.
    
-   It provides an overview of NFT sales volumes, allowing users to track the buying and selling activities within the market.
    
-   Users can also explore the market trends and identify popular NFT projects, gaining insights into the preferences of collectors and investors.
    

  

### CryptoSlam

-   One of the notable features of CryptoSlam is their NFT market tracking capabilities.
    
-   Users can leverage CryptoSlam's platform to gain real-time data and analytics on NFT sales volumes, transaction history, and project rankings.
    
-   By tracking these metrics, users can identify popular NFT projects, monitor their performance, and make informed decisions based on market trends.
    

  

### DappRadar

-   DappRadar offers profiles and analytics for individual NFT projects, allowing users to explore key metrics such as trading volume, average prices, and active wallets.
    
-   This provides an overview of the project's performance among collectors and investors.
    

  

### NonFungible dot com

-   NonFungible provides detailed profiles for individual NFT projects, allowing users to explore key metrics such as trading volume, average prices, and historical data.
    
-   In addition, NonFungible dot com offers rankings and categorizations of NFT projects, making it easier for users to discover trending NFT collections.
    

  

### Rarity.tools

-   With Rarity.tools, users can access comprehensive data and analytics related to NFT projects and their traits.
    
-   The platform allows users to explore rarity scores, traits distributions, and statistical analysis of different NFT collections.
    
-   This information provides valuable insights into the scarcity and desirability of specific traits within the NFT ecosystem, thereby helping users understand the NFT Price Floor.
    

  

### NFTBank

-   NFTBank provides insights into market trends, including daily updates on top collections, helping users stay abreast of the developments in the NFT space.
    
-   The platform also provides a portfolio management tool to manage their NFT assets across different blockchains. This aids in effective NFT Portfolio Tracking.
    

  

### LunarCRUSH

-   LunarCRUSH provides real-time market metrics for NFTs. This includes data like trading volume, price changes, and more.
    
-   LunarCRUSH uses social media analysis and allows users to manage their NFT portfolio.
    
-   This platform helps users to stay updated with the NFT Sales History and make informed decisions.
    

  
These top NFT market trackers empower users to stay informed, make data-driven decisions, and navigate the exciting and ever-changing world of NFTs.

  

## How to choose the best NFT market tracker for you

  

-   Figure out your requirements: Determine what kind of data and features you need from an NFT market tracker. Do you want real-time updates, detailed analytics, or a dev-friendly  way to get data? Understanding your requirements will help you narrow down your options.
    
-   Do your research: Explore popular NFT market trackers like Bitquery, OpenSea, Rarible, Nansen, and others. Look into their features, reputation, and user reviews to get a sense of their capabilities and reliability. This will help you understand the NFT Market Metrics better.
    
-   Accuracy matters: When selecting a tracker, prioritize accuracy and reliability. Bitquery excels in delivering real-time and precise data, making it a trusted option for monitoring the NFT market. Stay informed and make informed decisions with confidence. Seek out trackers with a proven track record of providing trustworthy information.
    
-   Depth of information: To ensure the tracker meets your future needs, ask yourself, "What if you need to extend your needs in the future? Does it provide a variety of data?" Evaluate the depth of information offered by the tracker and consider if it offers a diverse range of data that can accommodate your evolving requirements.
    
-   Consider user experience: A user-friendly interface can make a big difference in your tracking experience. Look for trackers that are intuitive and easy to navigate, regardless of your technical expertise.
    
-   Evaluate analytical capabilities: Assess the trackers' analytical tools and features. Do they offer trend analysis, transaction insights, or portfolio tracking? These features can provide valuable market insights and help you make data-driven decisions. This includes understanding NFT Sales History and other important trends.
    

  

## Conclusion

  

In conclusion, selecting the best NFT market tracker is a critical decision that can greatly impact your success in the dynamic world of NFTs. By considering your specific needs, exploring reputable platforms like Bitquery, OpenSea, Rarible, and Nansen, and prioritizing features such as real-time updates, advanced analytics, and user-friendly interfaces, you can make an informed choice.

  

## FAQ

  

-   What is a NFT marketplace?
    

NFT marketplaces are platforms where users can buy, sell, and trade unique digital assets represented as non-fungible tokens (NFTs).

-   How do NFT marketplaces work?
    

NFT marketplaces function by utilizing blockchain technology to facilitate secure transactions and verify the authenticity and ownership of NFTs.

-   How can you make money with NFTs?
    

NFTs generate income through sales on NFT marketplaces. Artists and creators earn money by selling their NFT creations, while collectors can profit from buying and selling valuable NFTs in the marketplace.


Blog written by guest author Hamid Akhtar, edited by Divyasshree]]></description>
        </item>
        <item>
            <title><![CDATA[BLUR NFT Marketplace API]]></title>
            <link>https://bitquery.io/blog/blur-nft-marketplace-api</link>
            <guid>https://bitquery.io/blog/blur-nft-marketplace-api</guid>
            <pubDate>Tue, 11 Jul 2023 00:00:05 GMT</pubDate>
            <description><![CDATA[
Today we will discuss getting NFT-related data from BLUR NFT Marketplace. [BLUR](https://blur.io/) recently beamed into the Web3 scenario with their famous token airdrop and no fees model.

Additionally, BLUR also allows NFT Loans through its novel Blend protocol. We will also discuss how to get NFT loan data using Bitquery Graphql API from the Blur market.

If you want to learn more about Bitquery NFT data capabilities, you can read our article about [Opensea API](https://bitquery.io/blog/opensea-nft-api) and [NFT API Guide](https://community.bitquery.io/t/nft-api-complete-guide/1509).

Note — We are using [Streaming APIs (v2)](https://docs.bitquery.io/) to get the following data; you can also turn them into WebSocket simply using [Graphql Subscription](https://docs.bitquery.io/docs/start/getting-updates/).

> You can run the following queries [here](https://streaming.bitquery.io/).

## Latest Trades on Blur

BLUR marketplace supports [Seaport protocol](https://opensea.io/blog/articles/introducing-seaport-protocol); we will use it to get the latest Blur trades.

In this [query](https://ide.bitquery.io/Latest-10-Trades-on-Blur?utm_source=blog&utm_medium=marketing&utm_content=blur), we get NFT trades on Blur by setting the To address in the transaction to [Blur Marketplace contract](https://explorer.bitquery.io/ethereum/smart_contract/0x39da41747a83aee658334415666f3ef92dd0d541).

```
query MyQuery {
  EVM {
    DEXTrades(
      limit: { offset: 0, count: 10 }
      orderBy: { descendingByField: "Block_Time" }
      where: {
        Trade: { Dex: { ProtocolName: { is: "seaport_v1.4" } } }
        Transaction: {
          To: { is: "0x39da41747a83aeE658334415666f3EF92DD0D541" }
        }
      }
    ) {
      Trade {
        Dex {
          ProtocolName
        }
        Buy {
          Price
          Seller
          Buyer
          Currency {
            HasURI
            Name
            Fungible
            SmartContract
          }
        }
        Sell {
          Price
          Amount
          Currency {
            Name
          }
          Buyer
          Seller
        }
      }
      Transaction {
        Hash
      }
      Block {
        Time
      }
    }
  }
}
```

## Most traded NFTs on Blur Marketplace

Let’s figure out the most traded NFT on the Blur marketplace. In the following [query](https://ide.bitquery.io/Most-traded-NFT-on-Blur-marketplace), we aggregate based on buyers, sellers, nfts, and trade volume and sorting based on count (Trade count).

```
query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {
        Trade: { Dex: { ProtocolName: { in: "seaport_v1.4" } } }
        Transaction: {
          To: { is: "0x39da41747a83aeE658334415666f3EF92DD0D541" }
        }
      }
      orderBy: { descendingByField: "count" }
      limit: { count: 10 }
    ) {
      tradeVol: sum(of: Trade_Buy_Amount)
      count
      buyers: count(distinct: Trade_Buy_Buyer)
      seller: count(distinct: Trade_Buy_Seller)
      nfts: count(distinct: Trade_Buy_Ids)
      Trade {
        Buy {
          Currency {
            Name
            ProtocolName
            Symbol
            Fungible
            SmartContract
          }
        }
      }
    }
  }
}
```

## Total buy-sell of an NFT token on BLUR

In the following [query](https://ide.bitquery.io/Total-buy-sell-of-an-NFT-token-onBLUR), we are getting total trades, trade volume, buyers, and sellers for [Nakamigos](https://explorer.bitquery.io/ethereum/token/0xd774557b647330c91bf44cfeab205095f7e6c367) NFT token.

```
query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {
        Trade: {
          Dex: { ProtocolName: { in: "seaport_v1.4" } }
          Buy: {
            Currency: {
              Fungible: false
              SmartContract: {
                is: "0xd774557b647330c91bf44cfeab205095f7e6c367"
              }
            }
          }
        }
        Transaction: {
          To: { is: "0x39da41747a83aeE658334415666f3EF92DD0D541" }
        }
      }
      orderBy: { descendingByField: "count" }
      limit: { count: 10 }
    ) {
      tradeVol: sum(of: Trade_Buy_Amount)
      count
      buyer: count(distinct: Trade_Buy_Buyer)
      seller: count(distinct: Trade_Buy_Seller)
      nfts: count(distinct: Trade_Buy_Ids)
      Trade {
        Buy {
          Currency {
            Name
            ProtocolName
            Symbol
            Fungible
            SmartContract
          }
        }
      }
    }
  }
}
```

## Top buyers of NFTs on BLUR

If we want to know the top buyer on the Blur marketplace, you can use the following query. In this [query](https://ide.bitquery.io/Top-buyers-of-NFTs-onBLUR), we ate aggregating NFTs bought or sold, unique transactions for top 10 buyers, and sorting them based on no. of trades.

```
query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {
        Trade: {
          Dex: { ProtocolName: { in: "seaport_v1.4" } }
          Buy: { Currency: { Fungible: false } }
        }
        Transaction: {
          To: { is: "0x39da41747a83aeE658334415666f3EF92DD0D541" }
        }
      }
      orderBy: { descendingByField: "count" }
      limit: { count: 10 }
    ) {
      count
      uniq_tx: count(distinct: Transaction_Hash)
      Block {
        first_date: Time(minimum: Block_Date)
        last_date: Time(maximum: Block_Date)
      }
      nfts: count(distinct: Trade_Buy_Ids)
      difffernt_nfts: count(distinct: Trade_Buy_Currency_SmartContract)
      total_money_paid: sum(of: Trade_Sell_Amount)
      Trade {
        Buy {
          Buyer
        }
      }
    }
  }
}
```

## Specific buyer stats for an NFT on BLUR

In the following [query](https://ide.bitquery.io/Specific-buyer-stats-for-an-NFT-onBLUR), we are getting details for a specific address on Blur nft marketplace. We are also getting the first and last trade dates for the address.

```
query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {
        Trade: {
          Dex: { ProtocolName: { in: "seaport_v1.4" } }
          Buy: {
            Currency: {
              SmartContract: {
                is: "0xd774557b647330c91bf44cfeab205095f7e6c367"
              }
            }
            Buyer: { is: "0x9ba58eea1ea9abdea25ba83603d54f6d9a01e506" }
          }
        }
        Transaction: {
          To: { is: "0x39da41747a83aeE658334415666f3EF92DD0D541" }
        }
      }
      orderBy: { descendingByField: "count" }
      limit: { count: 10 }
    ) {
      count
      uniq_tx: count(distinct: Transaction_Hash)
      Block {
        first_date: Time(minimum: Block_Date)
        last_date: Time(maximum: Block_Date)
      }
      nfts: count(distinct: Trade_Buy_Ids)
      Trade {
        Buy {
          Buyer
          Currency {
            Name
            ProtocolName
            Symbol
            Fungible
            SmartContract
          }
        }
      }
    }
  }
}
```

## Latest Loans taken on Blur

Blur uses the [Blend protocol](https://www.paradigm.xyz/2023/05/blend) to enable NFT loans. We will query Blur’s [Blend smart contract events](https://explorer.bitquery.io/ethereum/smart_contract/0x29469395eaf6f95920e59f858042f0e28d98a20b/events) to get different loans related data.

In this [query](https://ide.bitquery.io/Latest-Loans-taken-onBlur), we look for the “LoanOfferTaken” events and set the smart contract to the Blur: [Blend Contract](https://explorer.bitquery.io/ethereum/smart_contract/0x29469395eaf6f95920e59f858042f0e28d98a20b) to get loan events on the marketplace.

We are using Logheader to query smart contract events and not Log → smart contract because it’s a [delegated proxy contract](https://medium.com/coinmonks/proxy-pattern-and-upgradeable-smart-contracts-45d68d6f15da).

```
{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {
        LogHeader: {
          Address: { is: "0x29469395eaf6f95920e59f858042f0e28d98a20b" }
        }
        Log: { Signature: { Name: { is: "LoanOfferTaken" } } }
      }
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Index
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}
```

## Latest loans for specific NFT token

Now we can filter arguments in smart contract events; in this [API](https://ide.bitquery.io/Latest-loans-for-specific-NFTtoken), we are getting all loans for the [MutantApeYachtClub NFT collection](https://explorer.bitquery.io/ethereum/token/0x60e4d786628fea6478f785a6d7e704777c86a7c6) sorted based on block time on the Blur marketplace.

```
{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {
        LogHeader: {
          Address: { is: "0x29469395eaf6f95920e59f858042f0e28d98a20b" }
        }
        Log: { Signature: { Name: { is: "LoanOfferTaken" } } }
        Arguments: {
          includes: [
            {
              Name: { is: "collection" }
              Value: {
                Address: { is: "0x60e4d786628fea6478f785a6d7e704777c86a7c6" }
              }
            }
          ]
        }
      }
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}
```

## Latest Loans for a specific lender

Using the same technique of filtering arguments in the following [API](https://ide.bitquery.io/Latest-Loans-for-a-specificlender), we are getting the latest loans for specific lender address. Similarly, you can use this [API](https://ide.bitquery.io/Latest-Loans-for-a-specificborrower-on-Blur-marketplace) to get the lastest loans for specific borrower address.

```
{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {
        LogHeader: {
          Address: { is: "0x29469395eaf6f95920e59f858042f0e28d98a20b" }
        }
        Log: { Signature: { Name: { is: "LoanOfferTaken" } } }
        Arguments: {
          includes: [
            {
              Name: { is: "lender" }
              Value: {
                Address: { is: "0xfa0e027fcb7ce300879f3729432cd505826eaabc" }
              }
            }
          ]
        }
      }
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}
```

## Loans above a specific amount on the Blur NFT marketplace

If we want to track loans above a specific amount on the Blur marketplace, we can use the following [API](https://ide.bitquery.io/Loans-above-a-specific-amount-on-the-Blur-NFT-marketplace).

```
{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {
        LogHeader: {
          Address: { is: "0x29469395eaf6f95920e59f858042f0e28d98a20b" }
        }
        Log: { Signature: { Name: { is: "LoanOfferTaken" } } }
        Arguments: {
          includes: [
            {
              Name: { is: "loanAmount" }
              Value: { BigInteger: { gt: "3000000000000000000" } }
            }
          ]
        }
      }
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}
```

## Loan history for specific NFT ID

Let’s say you want to know the loan history for a specific NFT ID on the Blur marketplace; you can use the following [API](https://ide.bitquery.io/Loan-history-for-specific-NFTID) to get this result.

```
{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {
        LogHeader: {
          Address: { is: "0x29469395eaf6f95920e59f858042f0e28d98a20b" }
        }
        Log: { Signature: { Name: { is: "LoanOfferTaken" } } }
        Arguments: {
          includes: [
            {
              Name: { is: "collection" }
              Value: {
                Address: { is: "0x49cf6f5d44e70224e2e23fdcdd2c053f30ada28b" }
              }
            }
            { Name: { is: "tokenId" }, Value: { BigInteger: { eq: "2662" } } }
          ]
        }
      }
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}
```

## Get loan details for specific LienId

Blur’s Blend protocol uses LienID as the primary key throughout to track details of specific loans.

We will use [this query](https://ide.bitquery.io/Get-loan-details-for-specificlienId) to track loan details for specific LienID through different events.

```
{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {
        LogHeader: {
          Address: { is: "0x29469395eaf6f95920e59f858042f0e28d98a20b" }
        }
        Log: { Signature: { Name: { is: "LoanOfferTaken" } } }
        Arguments: {
          includes: [
            { Name: { is: "lienId" }, Value: { BigInteger: { eq: "40501" } } }
          ]
        }
      }
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}
```

## Latest Loan Refinances on Blur

Refinance means taking out a new loan to pay off an existing loan. In the case of NFTs, refinance can be used to take out a new loan using an NFT as collateral. In this [query](https://ide.bitquery.io/loan-refinance-on-Blur) will get the latest refinance events.

```
{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {
        LogHeader: {
          Address: { is: "0x29469395eaf6f95920e59f858042f0e28d98a20b" }
        }
        Log: { Signature: { Name: { is: "Refinance" } } }
      }
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Index
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}
```

## Loans refinanced by specific Address

If you want to track loans refinanced by a specific address on Blur marketplace, use the following [query](https://ide.bitquery.io/Loans-refinanced-by-specificAddress).

```
{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {
        LogHeader: {
          Address: { is: "0x29469395eaf6f95920e59f858042f0e28d98a20b" }
        }
        Log: { Signature: { Name: { is: "Refinance" } } }
        Arguments: {
          includes: [
            {
              Name: { is: "newLender" }
              Value: {
                Address: { is: "0xaaac34d30d6938787c653aafb922bc20bfa9c512" }
              }
            }
          ]
        }
      }
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Index
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}
```

## All refinance loans for specific NFT

Use the following [query](https://ide.bitquery.io/All-refinance-loans-for-specificNFT-collection) to filter Refinance event arguments to get all refinance loans for specific NFT collection.

```
{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {
        LogHeader: {
          Address: { is: "0x29469395eaf6f95920e59f858042f0e28d98a20b" }
        }
        Log: { Signature: { Name: { is: "Refinance" } } }
        Arguments: {
          includes: [
            {
              Name: { is: "collection" }
              Value: {
                Address: { is: "0xed5af388653567af2f388e6224dc7c4b3241c544" }
              }
            }
          ]
        }
      }
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Index
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}
```

## Loan Repayments

In this [query](https://ide.bitquery.io/Loan-repayment-of-blur-marketplace), we get loan repayment transactions by filtering for “Repay” events and setting the smart contract address to Blur: Blend address.

```
{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {
        LogHeader: {
          Address: { is: "0x29469395eaf6f95920e59f858042f0e28d98a20b" }
        }
        Log: { Signature: { Name: { is: "Repay" } } }
        Arguments: {
          includes: [
            { Name: { is: "lienId" }, Value: { BigInteger: { eq: "43662" } } }
          ]
        }
      }
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Index
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}
```

## Loan repayment for specific NFT collection

To get loan repayments for specific NFT collections, you can filter “Repay” smart contract event arguments. Check the following [API](https://ide.bitquery.io/loan-repayment-for-specific-NFT-collection) to get the latest loan repayments for specific NFT collections on the Blur marketplace.

```
{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {
        LogHeader: {
          Address: { is: "0x29469395eaf6f95920e59f858042f0e28d98a20b" }
        }
        Log: { Signature: { Name: { is: "Repay" } } }
        Arguments: {
          includes: [
            {
              Name: { is: "collection" }
              Value: {
                Address: { is: "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d" }
              }
            }
          ]
        }
      }
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Index
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}
```

## Auction Events

The StartAuction event is emitted when an auction is started for an NFT on the Blur: Blend smart contract. You can find the query [here](https://ide.bitquery.io/Auction-on-blur-marketplace). Similarly, you can also get Auctions for specific Lien ID using this [query](https://ide.bitquery.io/Auctions-for-specific-lienID).

```
{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {
        LogHeader: {
          Address: { is: "0x29469395eaf6f95920e59f858042f0e28d98a20b" }
        }
        Log: { Signature: { Name: { is: "StartAuction" } } }
      }
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Index
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}
```

## New Auctions for specific NFT Collection

Similarly, you can get all the latest actions for specific NFT collections. See the following query in which we are getting the latest auction for [Milady NFT collection](https://explorer.bitquery.io/ethereum/token/0x5af0d9827e0c53e4799bb226655a1de152a425a5) on the Blur marketplace.

```
{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {
        LogHeader: {
          Address: { is: "0x29469395eaf6f95920e59f858042f0e28d98a20b" }
        }
        Log: { Signature: { Name: { is: "StartAuction" } } }
        Arguments: {
          includes: [
            {
              Name: { is: "collection" }
              Value: {
                Address: { is: "0x5af0d9827e0c53e4799bb226655a1de152a425a5" }
              }
            }
          ]
        }
      }
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Index
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}
```

## Latest Locked NFTs Buy Trades

A locked NFT is an NFT that is temporarily unable to be transferred or sold. It will be sold once the lock period has ended. The price of a locked NFT may be lower than the price of a non-locked NFT because the buyer cannot access the NFT until the lock period has expired.

To get locked NFT trades, we filter for the “buylocked” smartcontract event. You can find the query [here](https://ide.bitquery.io/Locked-NFT-bought-on-Blur-marketplace).

```
{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {
        LogHeader: {
          Address: { is: "0x29469395eaf6f95920e59f858042f0e28d98a20b" }
        }
        Log: { Signature: { Name: { is: "BuyLocked" } } }
      }
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Index
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}
```

## Locked NFTs bought by a buyer

Using the following [query](https://ide.bitquery.io/Locked-NFTs-bought-by-abuyer), we can also track all the Locked NFTs bought by specific buyers by tracking the [BuyLocked event](https://explorer.bitquery.io/ethereum/smart_contract/0x29469395eaf6f95920e59f858042f0e28d98a20b/events) and filtering it using buyer argument.

```
{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {
        LogHeader: {
          Address: { is: "0x29469395eaf6f95920e59f858042f0e28d98a20b" }
        }
        Log: { Signature: { Name: { is: "BuyLocked" } } }
        Arguments: {
          includes: [
            {
              Name: { is: "buyer" }
              Value: {
                Address: { is: "0x96a7021972646bb05f9b544b13036a4872796fb0" }
              }
            }
          ]
        }
      }
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Index
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}
```

## Get Cancelled Offers

To get this data, we filter by the OfferCancelled event emitted when an offer is canceled. You can find the query [here](https://ide.bitquery.io/Latest-Cancelled-offers-on-Blur-NFT-marketplace).

```
{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {
        LogHeader: {
          Address: { is: "0x29469395eaf6f95920e59f858042f0e28d98a20b" }
        }
        Log: { Signature: { Name: { is: "OfferCancelled" } } }
      }
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Index
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}
```

## Get Seize Offers

When a seizure event occurs, the NFT is typically transferred to the control of the third party who is seizing it. To get this data, we filter transactions by the “seize” event on the Blur: Blend contract. You can get the query [here](https://ide.bitquery.io/Latest-Seized-NFTs-on-Blur-marketplace).

```
{
  EVM(dataset: combined, network: eth) {
    Events(
      where: {
        LogHeader: {
          Address: { is: "0x29469395eaf6f95920e59f858042f0e28d98a20b" }
        }
        Log: { Signature: { Name: { is: "Seize" } } }
      }
      limit: { count: 10 }
      orderBy: { descending: Block_Time }
    ) {
      Block {
        Number
      }
      Transaction {
        Hash
      }
      Log {
        SmartContract
        Signature {
          Name
          Signature
        }
      }
      Arguments {
        Name
        Index
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
    }
  }
}
```]]></description>
        </item>
        <item>
            <title><![CDATA[Building Blockchain ETL? Wait! Read this first!​]]></title>
            <link>https://bitquery.io/blog/blockchain-etl-challenges</link>
            <guid>https://bitquery.io/blog/blockchain-etl-challenges</guid>
            <pubDate>Tue, 20 Jun 2023 05:35:07 GMT</pubDate>
            <description><![CDATA[
As the adoption of blockchain continues to expand, companies are seeking ways to extract meaningful insights. To extract these insights from blockchain data, it is essential to develop a robust ETL pipeline that is specifically designed for this purpose.

However, building such an ETL, whether it involves data from multiple blockchains or a single one, comes with its own set of distinctive challenges.

In this article, we delve into the key challenges encountered when building blockchain ETL pipelines. By understanding these challenges, you can develop strategies to overcome them.


## Challenges with Blockchain ETL

Anyone building a blockchain ETL pipeline needs to understand these challenges to better navigate the complexities of working with blockchain data and optimize ETL pipelines. Challenges with blockchain ETL range from data challenges to the availability of tools to build these ETL pipelines.

Let’s dive into each challenge in detail.

## Data Indexing

Indexing blockchain data is a time-consuming process that can span weeks or months, depending on the size of the blockchain. For example, the Ethereum blockchain size is approximately 14.5TB. Indexing the blockchain like that means processing and organizing 14.5TB of data, which will take a while depending on your requirements.

Constant changes in data demand and any issues during indexing might require reindexing again, which is a resource-intensive task that involves reprocessing the entire blockchain. Depending on your requirements, creating an indexing service costs you anywhere from $1,700 to $43,800 per year. For example, here are the hardware requirements for running a graph protocol node:

[![Table that shows hardware specifications for indexing node](/blog/blockchain-etl-challenges/8.png)](https://thegraph.academy/indexers/indexer-requirements/)

Data indexing plays a vital role in the ETL pipeline, enabling fast and efficient data access. By implementing robust error handling and data validation techniques, the need for reindexing can be minimized. Additionally, regular monitoring and maintenance of indexed data facilitate the early identification and resolution of potential issues.

## Data Volume and Scalability

Processing and managing the significant data volume that blockchains generate is one of the main challenges in blockchain ETL. As the amount of data increases, so do the storage and processing requirements.

For example, the size of the Ethereum blockchain is 14.5 TB as of June 2023, and it keeps increasing every day by an average of 13-14 GB.

[![Ethereum Full Node Sync Chart](/blog/blockchain-etl-challenges/1.png)](https://etherscan.io/chartsync/chainarchive)

Scalability is essential to make sure the ETL pipeline can handle the high throughput of blockchain networks. Blockchain networks like Solana, which has a TPS rate ranging from 2-4k, need a different approach than Ethereum or Bitcoin when integrating those in the ETL pipeline.

[![Solana TPS Chart](/blog/blockchain-etl-challenges/2.png)](https://analytics.solscan.io/)

An effective ETL solution must be able to scale alongside the growing data volume, enabling seamless processing and storage of data from one or multiple blockchains.

## Continuous Evolution of Blockchain Network

Blockchain networks are subject to frequent upgrades and reorganizations, which becomes a challenge for ETL pipelines. Upgrades bring changes to consensus algorithms, features, and bug fixes. Here is an example of Go-Ethereum client releases. As you can see, these releases happen very frequently, so ETL systems must adapt to these changes seamlessly, ensuring accurate data processing.

[![Go Ethereum Client Release History](/blog/blockchain-etl-challenges/3.png)](https://github.com/ethereum/go-ethereum/tags)

During a chain reorganization in a blockchain, the blocks that were previously considered correct may change. Reorg happens in chains frequently. Here is an example of blocks that are excluded from Ethereum due to reorgs. You can see how frequently those reorgs happen.

[![List of Forked Blocks](/blog/blockchain-etl-challenges/4.png)](https://etherscan.io/blocks_forked)

Sometimes the community might get divided and create a fork of a chain like Ethereum and Ethereum Classic or Bitcoin and Bitcoin Cash. For instance, Ethereum Classic experienced a notable fork, as discussed in  [our blog post](https://bitquery.io/blog/ethereum-classic-51-chain-attack-july-31-2020)  on the Ethereum Classic 51% attack. These cases are rare, but it is important to update the data in the ETL pipeline based on the current consensus of the blockchain network to ensure the accuracy of the processed data.

## Data Structure and Complexity

Handling different data structures from various blockchains presents unique challenges in building an ETL pipeline. Let’s look at how transactions differ in Bitcoin, Solana, and Ethereum.

Bitcoin uses a UTXO model, tracking inputs and outputs to determine balances in the network.

In Solana, transactions can have multiple instructions, which are small units of execution logic in a program (also referred to as a “smart contract” on other blockchains).

In Ethereum’s account model, the network keeps track of accounts, which can represent individuals, organizations, or smart contracts. Each account has its own address and associated balance.

These differences in transaction structures make it challenging to build an ETL pipeline. Integrating multiple blockchains into a single pipeline adds complexity as you need to handle various data structures.

## Data Quality Challenges

Maintaining high data quality is a critical aspect of the blockchain ETL pipeline.

While dealing with large amounts of data, the blockchain ETL pipeline will have missing or duplicate data. Missing or duplicate data can occur for various reasons, such as network issues or gaps in data sources. Implementing robust data validation techniques and error handling mechanisms is essential to minimizing the impact of missing or duplicate data on the overall pipeline.

Blockchain data can be complex and require careful interpretation. Data engineers need to understand the intricacies of blockchain networks, such as different transaction types, smart contracts, and token standards. Misinterpreting or misrepresenting data can result in incorrect analysis and decision-making. Ensuring data engineers have a deep understanding of blockchain concepts and protocols is essential for accurate data interpretation.

Hiring skilled data engineers in the blockchain space can be expensive. The demand for experienced professionals with expertise in blockchain technology and ETL processes often drives up the average salary.

[![Salaries for Data Engineers based on experience](/blog/blockchain-etl-challenges/9.png)](https://www.payscale.com/research/US/Job=Data_Engineer/Salary)

By implementing robust data validation techniques and deduplication mechanisms and investing in skilled data engineers, organizations can overcome these challenges and ensure the reliability and accuracy of their blockchain ETL pipelines.

## Open-Source ETL Softwares

When it comes to building a blockchain ETL pipeline, you have two options: building a custom solution or using existing open-source tools. Custom solutions take a lot of time, can be error-prone, and may not scale well.

On the other hand, open-source ETL software provides pre-built functionality and faster implementation. Finding ETL software for popular blockchains like Bitcoin and Ethereum is very simple. One of the popular open source ETL software for Ethereum networks is  [ethereum-etl](https://github.com/blockchain-etl/ethereum-etl), which has been maintained over the years, as you can see in the following chart:

[![](/blog/blockchain-etl-challenges/5.png)](https://github.com/blockchain-etl/ethereum-etl/graphs/code-frequency)

However, finding open-source solutions for some blockchains can be challenging, and there might not be active community support for every open-source solution. For some blockchains, you will find them open-source, but they might not be maintained to keep up with changes happening in the network. Here are open-source solutions for  [Solana](https://github.com/blockchain-etl/solana-etl),  [EOS](https://github.com/blockchain-etl/eos-etl), and  [Tezos](https://github.com/blockchain-etl/tezos-etl).

For other chains like Algorand, Flow, Harmony, etc., there are no open-source alternatives available.

## Publicly Available Blockchain Datasets

There are public datasets available for different blockchains provided by platforms like Google Bigquery and AWS that offer convenient access for ETL pipelines.

However, it’s important to note that publicly available datasets on platforms like  [Google BigQuery](https://console.cloud.google.com/marketplace/browse?filter=solution-type:dataset&q=crypto)  and  [AWS](https://aws.amazon.com/marketplace/search/results?searchTerms=blockchain)  have certain limitations. These datasets may have data delays and schema constraints, and they provide data for a limited number of blockchain networks.

The limitations of these datasets include the number of blockchain offerings and the frequency of updates. Instead of real-time updates, these datasets are typically updated on a daily basis. As a result, if your ETL pipeline relies solely on these public datasets, it may lag behind the most current data by up to a day.

While these publicly available datasets offer basic information such as transactions, blocks, and traces, they may not provide comprehensive data for specific use cases like contract calls or decentralized finance (DeFi) trade data. It’s important to consider these limitations and assess whether additional data sources or alternative approaches are required to fulfill your specific data needs.

![Ethereum Public Dataset On Google Bigquery](/blog/blockchain-etl-challenges/6.png)

## Node Reliance

When it comes to using blockchain nodes to consume blockchain data, it’s important to consider the issues with relying on blockchain nodes. Blockchain nodes can face technical problems, experience downtime, or provide inconsistent data.

For example, if a node encounters technical problems or goes offline, it can cause delays and incomplete data extraction, leading to gaps in the dataset.

A robust ETL pipeline should utilize more than one node to make the system redundant and minimize issues that might arise from relying on a single node.

## Real-Time Data Challenge

Real-time data processing presents significant challenges in blockchain ETL. Due to the continuous operation and frequent updates of blockchains, different nodes may have varying views of the current state.

In a blockchain network, when multiple blocks are generated, the network reaches a consensus to determine which block is considered valid and adds it as the latest block in the chain. This consensus mechanism ensures that all participants in the network agree on the current state of the blockchain and adds the chosen block to maintain a consistent and accurate record of transactions. As a result, other blocks at the same height are discarded, potentially eliminating multiple branches that are not attached to the latest block in the chain.

[![Blocks in the blockchain form a tree (or directed acyclic graph DAG in general)](/blog/blockchain-etl-challenges/7.png)](https://docs.bitquery.io/docs/graphql/dataset/select_blocks/)

Achieving a definitive and consistent state takes time due to the consensus mechanism. ETL processes must effectively adapt to these changing network states, ensuring data synchronization, consistency, and reliability despite potential delays.

## How is Bitquery Addressing these Problems?

[Bitquery](https://bitquery.io/)  offers you different solutions related to indexed blockchain data, but if you’re building blockchain ETL, Bitquery Streaming APIs and Data in Cloud products will solve most of the challenges that we discussed above.

With Bitquery’s  [Streaming APIs](https://community.bitquery.io/t/bitquery-streaming-apis-live-blockchain-data/1408), you can access real-time and live data, ensuring that your ETL pipeline has accurate and up-to-date information. These APIs are designed to provide reliable and timely data for the Ethereum, BSC, and Arbitrum networks, with more networks being added soon.

Bitquery’s  [Data in Cloud](https://aws.amazon.com/marketplace/seller-profile?id=37e27fc1-885c-4603-8ede-fa351f4c00c8)  product is ideal for ETL pipelines consuming Ethereum data. It provides a comprehensive dataset from the Ethereum mainnet, including raw and post-processed data. This enables efficient processing and analysis, allowing you to build a robust and effective ETL pipeline tailored to Ethereum.

## Conclusion: Should I Build the Entire ETL Pipeline?

When considering whether to build the entire ETL pipeline yourself or outsource certain parts to service providers, several factors come into play.

If your ETL pipeline is for a non-time-sensitive purpose or focuses on a limited number of blockchains, building your own solution or using freely available data may be viable options, given the lower complexity involved.

However, for time-sensitive ETL pipelines or those integrating multiple blockchains, outsourcing certain aspects, such as data indexing, to specialized service providers like Bitquery can be a more practical approach. This allows you to leverage their expertise and existing infrastructure, saving time and reducing the costs associated with maintaining the entire pipeline.

Ultimately, the decision to build or buy depends on the specific requirements of your project, balancing complexity, time sensitivity, and associated costs.]]></description>
        </item>
        <item>
            <title><![CDATA[Top NFT Data Sources]]></title>
            <link>https://bitquery.io/blog/top-nft-data-sources</link>
            <guid>https://bitquery.io/blog/top-nft-data-sources</guid>
            <pubDate>Tue, 13 Jun 2023 05:35:07 GMT</pubDate>
            <description><![CDATA[
APIs are the key to unlocking the full potential of NFTs. Without APIs, NFTs would be much more difficult to use and would not be as accessible to everyone. ][NFT APIs](https://bitquery.io/products/nft-api) make it possible for developers to create new and innovative NFT applications, and they allow users to easily interact with NFTs.

In this blog, we will discuss some of the best NFT data sources to help you build your next NFT dApp. We will cover a variety of sources, including marketplace APIs, data providers, node providers, and analytics tools.

Table of Contents

* [Bitquery](#Bitquery " Bitquery")
* [OpenSea](#OpenSea " OpenSea")
* [Alchemy](#Alchemy "Alchemy")
* [Covalent](#Covalent "Covalent")
* [Infura](#Infura "Infura")
* [TheGraph](#TheGraph "TheGraph")
* [Moralis](#Moralis "Moralis")
* [QuickNode](#QuickNode "QuickNode")
* [NFTPort](#NFTPort "NFTPort")

  
Bitquery
-----------



As a blockchain data company, Bitquery provides data on NFTs through its explorer, APIs and AWS cloud marketplace.

**Bitquery Explorer: Mastering the NFT Market at Your Fingertips**

![](/blog/top-nft-data-sources/explorer.png)

Source: [https://explorer.bitquery.io/ethereum/token/0x3e3589f7337551256dafe3df3695f92e605047bc/nft\_smart\_contract](https://explorer.bitquery.io/ethereum/token/0x3e3589f7337551256dafe3df3695f92e605047bc/nft_smart_contract)It provides comprehensive data on NFTs, from [collection IDs](https://ide.bitquery.io/Get-all-NFTs-for-a-collection) to transfer history. This data can help you make informed decisions about buying, selling, or studying market trends.

 

For example you can see the [top holders of Zodia NFT](https://ide.bitquery.io/Top-NFT-Holders_1?config=d7e5a5) in the screenshot below, providing a glimpse into the strategies of the most successful investors. This isn’t just about observing the market; it’s about mastering it.


![](/blog/top-nft-data-sources/holders.png)

**Trust and Validate: Bitquery’s Ownership API**

Bitquery’s [Ownership API](https://ide.bitquery.io/Who-owns-specific-NFT) is a tool that validates the provenance of each NFT. It is like a trusted referee ensuring fair play in the NFT ecosystem. Using this API is your first step towards fostering trust within the ecosystem and protecting yourself from counterfeits.

**Real-Time Mastery: Transfer API**

The [Transfer API](https://ide.bitquery.io/NFT-Token-Transfers-By-Date) can be used to track the flow of NFTs between buyers and sellers or used to track NFT transactions that are subject to regulatory compliance requirements. These are some of the examples of what you can do with extensive NFT transfers information.


![](/blog/top-nft-data-sources/transfers.png)

**Transparent Control: Calls API**

Your interaction with NFTs and their corresponding smart contracts is made transparent with Bitquery’s [Calls API](https://ide.bitquery.io/Smart-contract-calls-to-an-nft-contract), sharing data on state-changing and view calls.

**Unveil Market Insights: Trades API**

To further enhance your market strategy, the Trades API offers a comprehensive overview of different marketplaces including [Opensea](https://ide.bitquery.io/Latest-OpenSea-Trades), Blur, and so on. Track the number of NFT traders, popular NFTs, average prices and so much more.

**Engaging Narratives: Enhance NFT Experiences with Metadata API**

Finally, the [Metadata API](https://ide.bitquery.io/NFT-metadata_1_1) gives you information on the NFT itself and on the NFT [collection](https://ide.bitquery.io/Get-all-NFTs-for-a-collection) you’re interested in.

With Bitquery’s APIs, you’re not just playing the NFT game; you’re mastering it. Gear up by signing up for a [free developer account](https://account.bitquery.io/user/account) with Bitquery today and dive headfirst into the exhilarating world of NFTs.

OpenSea
-------

OpenSea’s API offers information about NFTs listed on its platform. The information includes details of listed items, their sales history, and ownership specifics. Users can also access data regarding the metadata of the ERC721 standard tokens. 

The API is available for free with a rate limit. For enterprise usage, you can request a separate key from them.



Alchemy
-------

Alchemy’s API is designed for interaction with the Ethereum blockchain, a platform known for the share of non-fungible token transactions. The API provides functionalities to retrieve block and transactional data, send transactions, and interact with smart contracts. 

Alchemy’s API can prove to be a resource for developers working on NFT applications, as it can deliver vital data about NFT transactions happening on the Ethereum blockchain. 

It can facilitate the extraction of information required to understand the complexities of the NFT environment on Ethereum, providing inputs for strategizing in the NFT domain.



Covalent
--------

Covalent offers a unified API designed for developers working on NFT applications involving multiple blockchains. 

The API enables the extraction of blockchain transaction data across numerous chains, including information related to ERC721 transfers. Covalent Unified API gives you different endpoints like “Get Historical Data for NFT Collection” to get different details on NFTs. Covalent offers free and premium plans with different requests per second limit.



Infura
------

Infura’s API provides access to the Ethereum network and the InterPlanetary File System (IPFS), commonly used for hosting NFT metadata.

Infura provides both SDK (available in JavaScript and TypeScript) and REST APIs. It supports many chains including Ethereum, Arbitrum, and Polygon NFTs.

Infura has a free plan with rate limits on requests and different paid plans with different Total Requests/Day.



TheGraph
--------

The Graph’s API enables developers to build and publish open APIs, known as subgraphs which makes NFT data accessible. For example, you can users build NFT Sales indexers that return details on bidder and bid amounts.

The pricing is dynamic and depends on the query that you run to build the subgraph.



Moralis
-------

Moralis’ NFT API gives both real-time and archival data on NFTs. You can get ownership, transfers, and metadata on different NFTs. It also has a Streams API to get real notifications on NFT trades.

Moralis has different pricing plans based on different request limits starting with a free plan.


QuickNode
---------

Quicknode provides Solana and Ethereum NFT data through its NFT API. The API has different endpoints like qn_fetchNFTsByCollection that give you aggregated data on NFTs.

Quicknode has a free plan with 25 Requests /sec limit and two other paid plans with higher rate limits.



NFTPort
-------

NFTPort’s API simplifies several aspects of NFT development, including minting NFTs and pulling in marketplace data. NFTPort assists developers in interacting with multiple NFT marketplaces and networks.



* * *

Guest blog written by Hamid Akhtar

]]></description>
        </item>
        <item>
            <title><![CDATA[Top Tron APIs]]></title>
            <link>https://bitquery.io/blog/top-tron-apis</link>
            <guid>https://bitquery.io/blog/top-tron-apis</guid>
            <pubDate>Fri, 09 Jun 2023 05:35:07 GMT</pubDate>
            <description><![CDATA[
In the fast-paced world of cryptocurrency trading, the Tron blockchain has emerged as a hotbed for trading opportunities, with explosive growth in DeFi protocols, memecoins, and DEX trading volumes.

With the rise of platforms like SunPump, SunSwap, and a thriving ecosystem of TRC20 tokens, Tron has become a magnet for traders seeking high-frequency opportunities, real-time market data, and profitable trading strategies. The network's low fees and fast transaction times make it ideal for active trading and arbitrage.

In this article, we explore the leading Tron API providers that empower traders with real-time market data, DEX analytics, mempool monitoring, and comprehensive on-chain insights to gain a competitive edge.

Discover the best blockchain API providers for Tron, offering instant access to trading data, whale tracking, token analytics, and real-time price feeds. Get the data edge you need to identify opportunities before the market moves.

Stay ahead of the curve with powerful APIs designed for serious traders!

## 1. Bitquery

---

Bitquery is a blockchain data company that offers indexed blockchain data products from over 40 chains, including Tron. The [Bitquery Tron API](https://bitquery.io/blockchains/tron-blockchain-api) provides historical and real-time information on various data points using GraphQL queries and supports WebSocket subscriptions for real-time data streaming.

### DEX APIs

Bitquery offers comprehensive DEX data APIs for Tron's leading decentralized exchanges:

- **[SunPump API](https://docs.bitquery.io/docs/blockchain/Tron/tron-sunpump/)** - Track the popular memecoin launchpad on Tron. Get real-time data on newly created tokens, buy/sell events, OHLC data, bonding curve analytics, and token launches to SunSwap. Monitor token purchases, first-time buy events, and access mempool data for early detection.

- **[SunSwap API](https://docs.bitquery.io/docs/blockchain/Tron/sunswap-api/)** - Access comprehensive trading data from SunSwap DEX. Track latest trades, get token-specific trading history, and monitor liquidity pool activity on Tron's native decentralized exchange.

- **[Tron DEX Trades API](https://docs.bitquery.io/docs/blockchain/Tron/tron-dextrades/)** - Get aggregated DEX trading data across multiple exchanges including SunPump, SunSwap, and other protocols. Track trades where the amount is [greater than 1000 USD](https://ide.bitquery.io/Latest-Trades-on-Tron--1000-USD) for whale tracking metrics.

### Core Tron APIs

- **[Balance Updates API](https://docs.bitquery.io/docs/blockchain/Tron/tron-balance-updates/)** - Monitor real-time balance changes for any Tron address. Subscribe to balance updates, get current balances, and track top token holders for any TRC20 token.

- **[TRC20 Token API](https://docs.bitquery.io/docs/blockchain/Tron/usdt-trc20-api/)** - Specifically designed for TRC20 tokens like USDT. Analyze token transfers, track holders, and monitor the latest USDT trends on Tron.

- **[Tron NFT API](https://docs.bitquery.io/docs/blockchain/Tron/tron-nft/)** - Comprehensive NFT data including trading, transfers, minting, and burning of NFTs on the Tron blockchain.

- **[Tron Mempool API](https://docs.bitquery.io/docs/blockchain/Tron/tron-mempool/)** - Access unconfirmed transactions in the mempool. Monitor pending trades, transactions, and balance updates before they're included in blocks.

- **[Tron Fees API](https://docs.bitquery.io/docs/blockchain/Tron/tron-fees-api/)** - Track transaction fees across the network. Get fee data for DEX trades, wallet transfers, and calculate total fees paid by specific accounts.

- **[Tron Transactions API](https://docs.bitquery.io/docs/blockchain/Tron/tron-transactions-api/)** - Monitor and retrieve comprehensive transaction details including internal transactions, external transactions, and transaction status for any address or contract.

- **[Tron Transfers API](https://docs.bitquery.io/docs/blockchain/Tron/tron-transfers/)** - Track all token transfers on Tron including TRC10, TRC20, and TRC721 tokens with real-time subscriptions available.

### Key Features

- **GraphQL API**: Flexible query language allowing you to request exactly the data you need
- **WebSocket Support**: Convert any query to a real-time subscription by changing `query` to `subscription`
- **Kafka Streams**: Available for zero-latency requirements for high-frequency trading applications
- **IDE Access**: Test queries instantly on the [Bitquery IDE](https://ide.bitquery.io)
- **Free Developer Plan**: Start building and testing without upfront costs

If you are not comfortable writing queries, you can easily get the pre-built APIs from the Bitquery [Tron Explorer](https://explorer.bitquery.io/tron). The free developer plan will cover your testing needs. 

## 2.NowNodes

---

NOWNodes, one of the blockchain integration API providers, offers a range of blockchain services tailored for developers working with the TRON blockchain. They offer access to 65+ RPC nodes, enabling seamless integration for Web3 development needs.

Developers can rely on their infrastructure and dependable API connections to build and deploy DApps on TRON.

With support for over 50 blockchain full nodes and explorers via API key, NOWNodes ensures a reliable and scalable solution for TRON blockchain development. Their services provide a streamlined experience for developers seeking to leverage the potential of TRON blockchain.

## 3.CryptoNodes

---

CryptoNodes.io, known for its Blockchain API development services, also offers an array of services tailored specifically for the Tron blockchain. Their expertise lies in providing Tron nodes, which allow developers to interact with the Tron blockchain using an API.

Offering support for TRC-20 and TRC-721 tokens, CryptoNodes.io ensures compatibility with a wide range of projects.

With their streamlined platform and 20 REST API endpoints, developers can make requests and harness the power of the Tron blockchain. CryptoNodes.io is a solution for developers looking to integrate Tron into their applications and projects.

## 4.Zeeve

---

Zeeve, one of the Blockchain API providers for developers, specializes in providing services for managing TRON nodes. Their offerings include TRON-specific blockchain consulting, development, and deployment solutions.

With Zeeve’s Elastic APIs tailored for the TRON blockchain, users can access features like reading block/transaction data, querying chain information, interacting with smart contracts, and writing data on-chain.

Zeeve ensures management through authenticated RPC endpoints, an intuitive dashboard, and insightful analytics. Developers can monitor their TRON nodes using Zeeve’s API services, device data, and activity logs. Trust Zeeve for reliable and secure TRON blockchain integration through their API-driven services.

## 5.GetBlock

---

GetBlock, a blockchain node provider, offers developers instant API access to Tron’s full nodes. With their robust and secure infrastructure, developers can build and deploy DApps on the Tron blockchain. GetBlock supports various major blockchains, including Ethereum, Polygon, BNB Chain, and Solana, catering to Play-to-Earn, GameFi, and NFT segments.

Through their dashboard and JSON-RPC, REST, and WebSocket APIs, users gain convenient connectivity to over 50 blockchains.

## 6.WatchData

---

WatchData offers services for developers on the TRON blockchain. Their Tron API documentation provides tools that allow developers to generate TRON accounts, send TRX, TRC10, and TRC20 assets, and create custom tokens.

With a user-friendly design, the Tron API integrates into development workflows. The API supports common TRON methods, providing a secure infrastructure for DApp development.

## 7.OriginStamp

---

Tron is using the blockchain-based timestamping service provided by OriginStamp. OriginStamp uses Tron’s infrastructure, employing advanced hashing algorithms, Merkle Trees, and secure private keys to generate tamper-proof timestamps.

With Zapier integrations, users gain access to secure blockchain timestamping across 5,000+ applications. You can experience the paradigm shift in decentralized trusted timestamping as OriginStamp leaves an immutable imprint on the Tron blockchain.

## 8.TronGrid

---

TronGrid API provides developers with essential tools for decentralized application development on the Tron network. With a hosted API, load-balanced full nodes, and developer tools, TronGrid offers access to the Tron network.

TronGridJS, compatible with Node.js v6+ and popular frontend frameworks, facilitates retrieving blockchain data. Explore the Tron Developer Hub for additional resources.

## 9.CryptoCurrency API

---

Tron API serves as the go-to resource for developers looking to tap into the power of the Tron blockchain. It provides access to a range of commonly used Tron methods, such as retrieving balances, creating new addresses, initiating track requests, sending coins, generating Tron accounts, and handling TRC10 and TRC20 tokens.


]]></description>
        </item>
        <item>
            <title><![CDATA[Opensea API - Developer Guide for NFT Data]]></title>
            <link>https://bitquery.io/blog/opensea-nft-api</link>
            <guid>https://bitquery.io/blog/opensea-nft-api</guid>
            <pubDate>Tue, 06 Jun 2023 05:35:07 GMT</pubDate>
            <description><![CDATA[
Today we will discuss Opensea API (Seaport Data API) and how to get Opensea NFT marketplace trading and other data using Bitquery's [NFT API](https://bitquery.io/products/nft-api).

OpenSea shifted to Seaport protocol. Therefore we will discuss some traits of Seaport later in the article; however, for now, we can use simple DEXTrades APIs to get NFT trades from Opensea.

**Note**: In the queries, you will notice `seaport_v1.4`` basically, it’s not only the 1.4 version of Seaport, but it includes all the versions of Seaport.

## Newly Created NFTs on Ethereum

Before starting with Opensea, let’s first see the API to get [newly created/minted NFTs on Ethereum](https://ide.bitquery.io/New-NFTs-created-on-Ethereum_1). In the following API, we are getting nonfungible transfers from NULL Address (0x0000000000000000000000000000000000000000). Also, we are adding a date filter; it’s important as NULL Address contains so much data that it will be challenging to process them without a date filter.

```
{
  EVM(dataset: combined) {
    Transfers(
      orderBy: {descending: Block_Time}
      limit: {count: 100}
      where: {
        Transfer: {
          Sender: {
            is: "0x0000000000000000000000000000000000000000"
            }
          },
        Block: {
          Date: {
            after: "2023-06-01"
          }
        }
      }
    ) {
      Block {
        Date
        Number
      }
      Transfer {
        Amount
        Receiver
        Currency {
          Name
          SmartContract
        }
        Id
        URI
      }
      Transaction {
        Hash
      }
    }
  }
}
```

## OpenSea Shared Storefront NFTs

When you create NFT directly on OpenSea, it mints as OpenSea Shared Storefront (OPENSTORE) token. Therefore, let’s see the query to the [latest NFTs transfers OPENSTORE Token.](https://ide.bitquery.io/Latest-Opensea-Openstore-Minted-NFTs)

```graphql
{
	EVM(dataset: combined) {
		Transfers(
			orderBy: { descending: Block_Time }
			limit: { count: 100 }
			where: {
				Transfer: {
					Currency: {
						SmartContract: {
							is: "0x495f947276749ce646f68ac8c248420045cb7b5e"
						}
					}
				}
				Block: { Date: { after: "2023-06-01" } }
			}
		) {
			Block {
				Date
				Number
			}
			Transfer {
				Amount
				Receiver
				Currency {
					Name
					SmartContract
				}
				Id
				URI
			}
			Transaction {
				Hash
			}
		}
	}
}
```

Additionally, also, check API to check the [most transferred NFTs on Opensea.](https://ide.bitquery.io/Top-Transferred-NFTs-for-OPENSTORE-OpenSea-token_1) And if you want to know more about transfer and Metadata related NFT APIs, [read this blog](https://community.bitquery.io/t/nft-api-complete-guide/1509) that delves into these details.

```
{
  EVM(dataset: combined) {
    Transfers(
      orderBy: {descendingByField: "count"}
      limit: {count: 10}
      where: {Transfer: {Currency: {SmartContract: {is: "0x495f947276749ce646f68ac8c248420045cb7b5e"}}}}
    ) {
      count
      Transfer {
        Id
        Currency {
          Name
          SmartContract
        }
      }
    }
  }
}
```

## Latest NFT Trades on OpenSea

In the following query, we are getting the latest Opensea trades by tracking the [Seaport protocol](https://opensea.io/blog/articles/introducing-seaport-protocol) (Here seaport_v1.4 means all versions of Seaport) and all transactions sent to Opensea’s seaport contract `[0x00000000000000adc04c56bf30ac9d3c0aaf14dc](https://explorer.bitquery.io/ethereum/smart_contract/0x00000000000000adc04c56bf30ac9d3c0aaf14dc)`.

Actually, you can check any Marketplace NFT trades just by changing. `Transaction -> To` to the marketplace contract. Additionally, you can use [**this query**](https://ide.bitquery.io/Different-Seaport-related-Contracts) to see who is forwarding the most trades to Opensea.

```
{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {Trade: {Dex: {ProtocolName: {in: "seaport_v1.4"}}}}
      limit: {count: 50}
      limitBy: {by: Transaction_To, count: 1}
      orderBy: {descendingByField: "count"}
    ) {
      Transaction {
        To
      }
      count
    }
  }
}
```

## OpenSea API - Most traded NFTs on Opensea

We can aggregate trading vol, trade count, buyer, seller, and nfts and sort them based on trade count in the following query to get the [**most traded NFT on OpenSea**](https://ide.bitquery.io/Top-Traded-NFTs-on-Opensea).

```
{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {Trade: {
        Dex: {
          ProtocolName: {
            in: "seaport_v1.4"
            }
          }
        },
        Transaction: {
          To: {
            is: "0x00000000000000adc04c56bf30ac9d3c0aaf14dc"
            }
          }
        }
      orderBy: {descendingByField: "count"}
      limit: {count: 10}
    ) {
      tradeVol: sum(of: Trade_Buy_Amount)
      count
      buyers: count(distinct: Trade_Buy_Buyer)
      seller: count(distinct: Trade_Buy_Seller)
      nfts: count(distinct: Trade_Buy_Ids)
      Trade {
        Buy {
          Currency {
            Name
            ProtocolName
            Symbol
            Fungible
            SmartContract
          }
        }
      }
    }
  }
}
```

In terms of trade count Introducing World App is the most traded NFT with 94634 trades, then Gemesis with 87655 trades, and XTREME PIXELS with 56396 trades

## Opensea API - Total buy sell of an NFT token on Opensea

To get the stats for specific NFT, we need to add the [Nakamigos NFT contract address](https://explorer.bitquery.io/ethereum/token/0xd774557b647330c91bf44cfeab205095f7e6c367/nft_smart_contract) in the above query.

## Top buyers of NFTs on Opensea

To know who are top buyers of NFTs, we can use the[following query](https://ide.bitquery.io/Top-buyers-of-NFTs-on-Opensea).

```
{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {
        Trade: {
          Dex: {
            ProtocolName: {
              in: "seaport_v1.4"
            }
          },
          Buy: {
            Currency: {
              Fungible: false
            }
          }
        },
        Transaction: {
          To: {
            is: "0x00000000000000adc04c56bf30ac9d3c0aaf14dc"
          }
        }
      }
      orderBy: {descendingByField: "count"}
      limit: {count: 10}
    ) {
      count
      uniq_tx: count(distinct: Transaction_Hash)
      Block {
        first_date: Time(minimum: Block_Date)
        last_date: Time(maximum: Block_Date)
      }
      nfts: count(distinct: Trade_Buy_Ids)
      difffernt_nfts: count(distinct: Trade_Buy_Currency_SmartContract)
      total_money_paid: sum(of: Trade_Sell_Amount)
      Trade {
        Buy {
          Buyer
        }
      }
    }
  }
}
```

However, if you want to know the top buyers of a specific NFT, then you need to add the Currency’s smart contract address. For example,[in this query](https://ide.bitquery.io/Top-buyers-of-The-Orangez-NFT-on-Opensea), we are getting top buyers of[The Orangez NFT token](https://explorer.bitquery.io/ethereum/token/0xcd76d0cf64bf4a58d898905c5adad5e1e838e0d3/nft_smart_contract).

```
{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {
        Trade: {
          Dex: {
            ProtocolName: {
              in: "seaport_v1.4"
            }
          },
          Buy: {
            Currency: {
              Fungible: false,
              SmartContract: {
                is: "0xcd76d0cf64bf4a58d898905c5adad5e1e838e0d3"
              }
            }
          }
        },
        Transaction: {
          To: {
            is: "0x00000000000000adc04c56bf30ac9d3c0aaf14dc"
          }
        }
      }
      orderBy: {descendingByField: "count"}
      limit: {count: 10}
    ) {
      count
      uniq_tx: count(distinct: Transaction_Hash)
      Block {
        first_date: Time(minimum: Block_Date)
        last_date: Time(maximum: Block_Date)
      }
      nfts: count(distinct: Trade_Buy_Ids)
      difffernt_nfts: count(distinct: Trade_Buy_Currency_SmartContract)
      total_money_paid: sum(of: Trade_Sell_Amount)
      Trade {
        Buy {
          Buyer
        }
      }
    }
  }
}
```

## OpenSea NFT API - Specific buyer stats for an NFT on Opensea

In this query, we will get specific [buyer stats for a specific NFT on Opensea](https://ide.bitquery.io/Specific-buyer-stats-for-an-NFT-onopensea).

```
{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {
        Trade: {
          Dex: {
            ProtocolName: {
              in: "seaport_v1.4"
            }
          },
          Buy: {
            Currency: {
              SmartContract: {
                is: "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d"
              }
            },
            Buyer: {
              is: "0x2f9ecaa66e12b6168996a6b80cda9bb142f80dd0"
            }
          }
        },
        Transaction: {
          To: {
            is: "0x00000000000000adc04c56bf30ac9d3c0aaf14dc"
          }
        }
      }
      orderBy: {descendingByField: "count"}
      limit: {count: 10}
    ) {
      count
      uniq_tx: count(distinct: Transaction_Hash)
      Block {
        first_date: Time(minimum: Block_Date)
        last_date: Time(maximum: Block_Date)
      }
      nfts: count(distinct: Trade_Buy_Ids)
      Trade {
        Buy {
          Buyer
          Currency {
            Name
            ProtocolName
            Symbol
            Fungible
            SmartContract
          }
        }
      }
    }
  }
}
```

For example, in the following query, we are getting the first and last transfer, total trade count, and NFTs bought for [0x2f9ecaa66e12b6168996a6b80cda9bb142f80dd0](https://explorer.bitquery.io/ethereum/address/0x2f9ecaa66e12b6168996a6b80cda9bb142f80dd0) address and [BoredApeYachtClub NFT token](https://explorer.bitquery.io/ethereum/token/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d/nft_smart_contract).

## OpenSea API - Latest NFT Trades on Seaport (Seaport API)

In the following query, we are getting all[NFT trades for](https://ide.bitquery.io/latest-NFT-trades-on-Ethereum-network)`[Seaport](https://ide.bitquery.io/latest-NFT-trades-on-Ethereum-network)`[protocol](https://ide.bitquery.io/latest-NFT-trades-on-Ethereum-network) (Here, seaport_v1.4 includes all seaport versions). Many marketplaces utilize the Seaport protocol; we can add a Smart contract in Trade → Dex → SmartContract to get a specific marketplace for this protocol.

```
{
  EVM {
    DEXTrades(
      limit: {offset: 0, count: 10}
      orderBy: {descendingByField: "Block_Time"}
      where: {
        Trade: {
          Dex: {
            ProtocolName: {
              is: "seaport_v1.4"
            }
          }
        }
      }
    ) {
      Trade {
        Dex {
          ProtocolName
        }
        Buy {
          Price
          Seller
          Buyer
          Currency {
            HasURI
            Name
            Fungible
            SmartContract
          }
        }
        Sell {
          Price
          Amount
          Currency {
            Name
          }
          Buyer
          Seller
        }
      }
      Transaction {
        Hash
      }
      Block {
        Time
      }
    }
  }
}
```

## Opensea APIs - Get the Latest Trades of an Address

In this query, we are getting the [latest NFT trades of this address](https://ide.bitquery.io/Get-the-latest-trades-of-an-address). You can change the address according to your requirement. Additionally, if you want to see this address trade for a specific NFT, then add the smart contract of that NFT token in the filter; for example, check this query.

```
{
  EVM {
    DEXTrades(
      limit: {offset: 0, count: 10}
      orderBy: {descendingByField: "Block_Time"}
      where: {
        Trade: {
          Dex: {
            ProtocolName: {
              is: "seaport_v1.4"
            }
          },
          Sender: {
            is: "0x47f98fa3a3f8d8a62d99d112ce74e68b8de79f89"
          }
        }
      }
    ) {
      Trade {
        Dex {
          ProtocolName
        }
        Buy {
          Price
          Seller
          Buyer
          Currency {
            HasURI
            Name
            Fungible
            SmartContract
          }
        }
        Sell {
          Price
          Amount
          Currency {
            Name
          }
          Buyer
          Seller
        }
      }
      Transaction {
        Hash
      }
      Block {
        Time
      }
    }
  }
}
```

## Get Top Traded Tokens 

Let’s get the [**most traded NFTs on Ethereum**](https://ide.bitquery.io/Top-traded-NFT-tokens-in-a-month) of the month using the following query. If you see we are putting the date from 1st May to 28th May, you can change them accordingly.

```
{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      orderBy: {descendingByField: "count"}
      limit: {offset: 0, count: 10}
      where: {
        Block: {
          Date: {
            since: "2023-05-01",
            till: "2023-05-28"
          }
        },
        Trade: {
          Buy: {
            Currency: {
              Fungible: false
            }
          },
          Sell: {
            Currency: {
              Fungible: true
            }
          }
        }
      }
    ) {
      Trade {
        Buy {
          Currency {
            Symbol
            SmartContract
          }
          min_price: Price(minimum: Trade_Buy_Price)
          max_rice: Price(maximum: Trade_Buy_Price)
        }
        Sell {
          Currency {
            Symbol
            SmartContract
          }
        }
      }
      buy_amount: sum(of: Trade_Buy_Amount)
      sell_amount: sum(of: Trade_Sell_Amount)
      count

    }
  }
}
```

## Getting Basic properties and stats of an NFT token

If you want to get basic properties and stats such as token NFTs, holders, total transfers, and first and last transfers, you can use[API below](https://ide.bitquery.io/Properties-of-an-NFT-Token_1). In this Graphql API, we are getting the LO-Fi PEPE token’s stats.

```
{
  EVM(dataset: combined, network: eth) {
    BalanceUpdates(
      orderBy: {descendingByField: "transfers"}
      limit: {count: 1}
      where: {
        Currency: {
          SmartContract: {
            is: "0x0fcbd68251819928c8f6d182fc04be733fa94170"
          }
        }
      }
    ) {
      ChainId
      Currency {
        Symbol
        Name
        SmartContract
      }
      transfers: count(if: {BalanceUpdate: {Type: {is: transfer}}})
      ids: uniq(of: BalanceUpdate_Id, method: approximate)
      holders: uniq(of: BalanceUpdate_Address, method: approximate)
      Block {
        last: Time(maximum: Block_Time)
        first: Time(minimum: Block_Time)
      }
    }
  }
}
```

## Popular Orangez 

In the [following query](https://ide.bitquery.io/Popular-Token-IDs-for-NFT-Based-on-Transfer-Count_1_1), we are checking the most transferred Orangez; we called them [popular Orangez](https://explorer.bitquery.io/ethereum/token/0xcd76d0cf64bf4a58d898905c5adad5e1e838e0d3/nft_smart_contract).

```
{
  EVM(dataset: combined, network: eth) {
    Transfers(
      orderBy: {descendingByField: "count"}
      limit: {offset: 0, count: 10}
      where: {
        Transfer: {
          Currency: {
            SmartContract: {
              is: "0xcd76d0cf64bf4a58d898905c5adad5e1e838e0d3"
            }
          }
        }
      }
    ) {
      ChainId
      Transfer {
        Currency {
          Symbol
          SmartContract
        }
        Id
        URI
        last_receiver: Receiver(maximum: Block_Number)
      }
      count
      receivers: uniq(of: Transfer_Receiver, method: approximate)
    }
  }
}
```

## Top Holders of NFT token

In the [following API](https://ide.bitquery.io/Top-Holders-of-WokePixels-NFT), we are getting the token holders of the [WokePixels NFT token](https://explorer.bitquery.io/ethereum/token/0xd9156c2ae917cb358cb77707e73a2e05cb3dc553/nft_smart_contract). You can get holders of any NFT just by changing the smart contract address in the query.

```
{
  EVM(dataset: combined, network: eth) {
    BalanceUpdates(
      orderBy: {descendingByField: "balance"}
      limit: {offset: 0, count: 10}
      where: {
        Currency: {
          SmartContract: {
            is: "0x0fcbd68251819928c8f6d182fc04be733fa94170"
          }
        }
      }
    ) {
      ChainId
      BalanceUpdate {
        Address
      }
      balance: sum(of: BalanceUpdate_Amount)
      ids: uniq(of: BalanceUpdate_Id, method: approximate)
    }
  }
}
```

## Conclusion

To learn, read this article on [NFT APIs](https://community.bitquery.io/t/nft-api-complete-guide/1509/1). Additionally, Sign up on our [GraphQL IDE](https://streaming.bitquery.io/) to get the API key for free. We have recently launched [Streaming API](https://community.bitquery.io/t/bitquery-streaming-apis-live-blockchain-data/1408) to provide live blockchain data.

**Also Read**

-   [The Ultimate Guide to NFT Analytics](https://bitquery.io/blog/the-ultimate-guide-to-nft-analytics)
        
-   [How to Track NFT Wash Trading](https://bitquery.io/blog/how-to-track-nft-wash-trading)
        
-   [Streaming APIs Help Gather Top Holders on Ethereum](https://bitquery.io/blog/streaming-apis-help-gather-top-holders-on-ethereum)

- [[Video] How to track NFT Whales - A tutorial](https://www.youtube.com/watch?v=ZGEmOkLnUBg)

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

-   [**Coinpath® APIs**](https://bitquery.io/products/coinpath?utm_source=blog) provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

-  [**Digital Assets API**](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about) provides index information related to all major cryptocurrencies, coins, and tokens.

- [**DEX API**](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about) provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below; we will keep you updated with the latest in the cryptocurrency world.
]]></description>
        </item>
        <item>
            <title><![CDATA[Bitquery.io Partners with AWS to Offer Blockchain Data through AWS Data Exchange Marketplace​]]></title>
            <link>https://bitquery.io/blog/bitquery-aws</link>
            <guid>https://bitquery.io/blog/bitquery-aws</guid>
            <pubDate>Tue, 09 May 2023 05:35:07 GMT</pubDate>
            <description><![CDATA[
Bitquery.io, the leading provider of blockchain data is absolutely thrilled to announce its partnership with Amazon Web Services (AWS) to offer its blockchain data products through the AWS Data Exchange Marketplace.

By teaming up with AWS, Bitquery brings its extensive blockchain data product to the cloud.

This is great news for businesses that want to use data from the blockchain to make smarter decisions. Now, with the AWS Data Exchange Marketplace, accessing the data has become easy for them. It’s like a one-stop shop for all your blockchain data needs, and it’s all in the cloud!

Bitquery.io’s suite of blockchain data products includes a range of solutions for accessing indexed blockchain data. There is something for everyone; investors, developers, and researchers. These solutions can be used for various applications, including compliance, taxation, crypto wallets, portfolio, trading terminals, etc.

Bitquery.io CEO, Dean Karakitsos, expressed his sheer excitement about the company’s partnership with AWS. 

> "We are elated to partner with AWS and bring our cutting-edge blockchain data products to the AWS Data Exchange Marketplace," said Karakitsos. "This partnership gives us the chance to reach a broader audience. With our products businesses leverage blockchain data to build cool products. It's a game-changer!"

AWS customers can now take advantage of Bitquery.io’s blockchain data products by subscribing to them through the AWS Data Exchange Marketplace. Once subscribed, they can access the data through AWS S3 files. This integration will allow businesses to seamlessly incorporate blockchain data into their existing workflows and systems.

### About Bitquery.io:

Bitquery.io is a blockchain data company that provides tools and solutions for accessing, analyzing, and visualizing blockchain data. The company’s mission is to democratize blockchain data and give businesses the insights they need to make informed decisions. For more information, visit [www.bitquery.io](https://bitquery.io/) .

### About AWS Data Exchange:

AWS Data Exchange is a cloud-based service that makes it easy for millions of AWS customers to securely find, subscribe to, and use third-party data in the cloud. With AWS Data Exchange, customers can easily discover and use data products from various data providers, including category-leading brands and start-ups, in one central location. For more information, visit [https://aws.amazon.com/data-exchange/](https://aws.amazon.com/data-exchange/) .]]></description>
        </item>
        <item>
            <title><![CDATA[Blockchain Data Visualization using GraphQL and Gephi​]]></title>
            <link>https://bitquery.io/blog/blockchain-data-visualization-using-graphql-and-gephi</link>
            <guid>https://bitquery.io/blog/blockchain-data-visualization-using-graphql-and-gephi</guid>
            <pubDate>Mon, 10 Apr 2023 05:35:07 GMT</pubDate>
            <description><![CDATA[
Blockchain visualization tools can help users better understand on-chain activity by providing a graphical representation of the data.

Users can easily see how funds are moving between different addresses and can identify patterns or relationships that may take time to be evident from looking at raw data. This can help users understand the flow of funds across different blockchain networks and can be helpful in tracking transactions, identifying suspicious activity, and detecting fraud.

## Bitquery’s Coinpath® API

Coinpath® by Bitquery is a set of blockchain money tracing APIs that uses a sophisticated mathematical algorithm to trace the flow of funds between blockchain addresses. The API uses heuristics and machine learning to determine clusters, transaction flow, account balance, and other important information, which makes it an effective tool for tracking money flow and identifying relationships between different blockchain addresses.

For example, you can trace both inbound and outbound transactions from a specific BTC address or Cardano address. The API provides detailed information about the transactions, including the smart contract associated with the transaction, such as the contract type and the currency symbol and name used in the transaction.

### Visualizing using the GraphQL IDE

Instead of displaying the data in a raw JSON format, the IDE presents the data in a graphical format such as a Sankey diagram or a graph, making it easier to understand and interpret the information.

The Sankey diagram is a flow diagram that can be used to visualize the flow of funds between different blockchain addresses, showing the volume of money moving between them.
The Graph visualization uses icons, values, and arrows that make it easy to understand money flow. This can help users quickly identify patterns, relationships, and anomalies in the data and make it easier to identify suspicious activity or potential fraud.
Here’s a sample video showing you how to visualize the Coinpath® flow using the GraphQL IDE: [Coinpath](https://youtu.be/uojWLq8PbMc?si=LGCX2zTJepYpbxGW)

### Visualizing using Gephi

To visualize the data in Gephi, first install Gephi on your system.
Exporting the data: Open your GraphQL IDE and run the desired query.
Select either “inbound” or “outbound” from the options provided to create a directed graph.

![inbound](/blog/blockchain-data-visualization-using-graphql-and-gephi/inbound.png)

In the data format dropdown, select “Table Widget.”

Follow the video instructions provided for further steps on how to export the data for Gephi visualization: [Export](https://www.youtube.com/watch?v=gKlRZdbApTs)

### Visualizing the data in Gephi

Once imported, you will see the graph. You can set the graph to display or hide the labels (in this case, the address) and weight (in this case, the amount).

![Gephi](/blog/blockchain-data-visualization-using-graphql-and-gephi/gephi.png)

Click on any node to see the inbound transfers. The label on the edge indicates the amount that was sent.
![graph1](/blog/blockchain-data-visualization-using-graphql-and-gephi/graph1.png)

Play around with the visualization to understand token transfers, you can quickly identify patterns and relationships that would have otherwise been difficult to spot.

![graph2](/blog/blockchain-data-visualization-using-graphql-and-gephi/graph2.png)

Bitquery supports 40+ blockchain networks, such as Ethereum, Bitcoin, and Binance Chain. This may be useful for developers who want to build dApps that can query data from multiple blockchains. By using the points system to charge you for what you request, we save you millions of dollars in business costs. Sign up for a developer account for free.
]]></description>
        </item>
        <item>
            <title><![CDATA[Streaming APIs Help Gather Top Holders on Ethereum​]]></title>
            <link>https://bitquery.io/blog/streaming-apis-help-gather-top-holders-on-ethereum</link>
            <guid>https://bitquery.io/blog/streaming-apis-help-gather-top-holders-on-ethereum</guid>
            <pubDate>Mon, 10 Apr 2023 05:35:07 GMT</pubDate>
            <description><![CDATA[
In 2022, Ethereum finally underwent a long-awaited upgrade to a proof-of-stake (PoS) consensus mechanism. In Ethereum’s proof-of-stake mechanism, validators are chosen to create new blocks based on the amount of ETH they have staked on the network. Validators are responsible for checking the validity of new blocks propagated over the network and occasionally creating and propagating new blocks themselves. Validators who behave honestly and efficiently are rewarded with transaction fees and newly minted ETH.

With the Ethereum Shanghai Upgrade scheduled to take place on April 12, it is expected that the upgrade will allow for the withdrawal of over $33 billion staked Ether over time. This is likely to have a significant impact on the market as investors may choose to sell their Ether holdings after withdrawing their staked tokens. It remains to be seen how this will affect the price of Ether and the wider cryptocurrency market, but it is certainly a development worth keeping an eye on.


At the time of writing this blog, its market cap was 221B and will continue to grow as more people invest in it. This makes us curious as to who the top holders of ETH are, and what is the percentage of total ETH supply held by the top holders among other questions. These metrics can provide insights into the distribution and concentration of ETH ownership and potential market trends.

In this article, we’ll use Bitquery’s APIs to browse the Ethereum blockchain and get some interesting insights on top token holders.

### **Tokens and Cryptocurrency Exchanges:**

OKX, the crypto exchange behind the OKB token, has been actively adding services and programs to its platform that has the potential to boost trading activity. As OKX’s utility token, OKB stands to benefit from these programs, as increased trading activity on the platform would likely lead to higher demand for the token. According to data from the [token holder API, the top wallets holding the most OKB tokens](https://ide.bitquery.io/Top-OKB-Token-Holders_1) as of April 10th, 2023 own 7472487 OKBs, and OKB was [trading at approximately 0.025 ETH.](https://ide.bitquery.io/Latest-OKB-trades)

**NFTs**
--------

Otherside is a world-building platform that offers an environment for players to engage in various activities, such as creating, competing, exploring, and connecting with others. As an Otherdeed NFT holder, you have the opportunity to participate in Voyager’s Journey, a unique narrative gameplay experience that takes you on an unforgettable journey through the Otherverse.

With the help of Bitquery’s NFT API, you can access real-time data on the [latest trades and transactions of Otherdeed NFTs](https://ide.bitquery.io/latest-trades-for-a-Otherdeed-NFT---both-buy-and-sell).

If you’re interested in building your own apps or tools to enhance your Otherside experience, you can [subscribe to Bitquery’s real-time data stream and start building in the language of your choice, including Python](https://community.bitquery.io/t/how-to-subscribe-to-real-time-data-stream-using-bitquery-api-and-python-graphql-client/1431?u=divya). This opens up a world of possibilities for developers who want to create custom tools or analytics dashboards to track their progress in the game.

**Whales and Others**
---------------------

As the cryptocurrency market becomes more mainstream, traders are always on the lookout for signals that can help them make informed investment decisions. One such source of information is the activity of “whales” – large investors who are capable of moving significant amounts of cryptocurrency in a single transaction. Tracking the movements of these whales can provide valuable insights into the direction of the market and the sentiment of other investors.

For example, take the whale address [0x66e092fd00c4e4eb5bd20f5392c1902d738ae7bc](https://explorer.bitquery.io/ethereum/address/0x66e092fd00c4e4eb5bd20f5392c1902d738ae7bc). This address has been known to move funds in the millions of dollars, attracting attention from both small and large whales alike. By tracking the movements of this whale, traders can gain a better understanding of the overall market sentiment and make more informed investment decisions.

One way to [track the movements of whales like this in real time](https://ide.bitquery.io/Whale-wallet-subscription) is by using subscriptions and webhooks. By subscribing to a real-time data stream provided by Bitquery’s [NFT API](https://docs.bitquery.io/docs/examples/nft/nft-api), traders can receive instant updates whenever a whale makes a significant transaction. This allows them to react quickly to market changes and stay ahead of the competition.

![](/blog\blockchain/streaming-apis-help-gather-top-holders-on-ethereum/0x66e092fd00c4e4eb5bd20f5392c1902d738ae7bc-money-f-768x365.png)

We believe in building a strong community of developers, and enthusiasts. We’re always open to suggestions and feature requests from our community, and we’re committed to continuously improving our platform to provide the best possible experience for our users.

If you have any doubts, questions, or suggestions, we encourage you to reach out to us through our [community](https://community.bitquery.io/), [discord](https://discord.gg/NwTV7REw), or [telegram](https://t.me/Bloxy_info) channels. Our team is always happy to engage with our community and provide support whenever needed.]]></description>
        </item>
        <item>
            <title><![CDATA[Bitquery Raised $8.5 Million to Build Blockchain Data Infrastructure​]]></title>
            <link>https://bitquery.io/blog/bitquery-raised-8-5-million</link>
            <guid>https://bitquery.io/blog/bitquery-raised-8-5-million</guid>
            <pubDate>Tue, 27 Sep 2022 05:35:07 GMT</pubDate>
            <description><![CDATA[
What does Bitquery do?
----------------------

Everyone needs blockchain data. Existing businesses want to expand their services to crypto users, and tons of new products are built on the blockchain daily.

Bitquery serves all of them as data infrastructure. Today we support 40+ blockchains and process over 1 PB of data, which is growing fast.

The problem we saw at Scale
---------------------------

However, with Bitquery’s growing data infra and continuous demand for data from various niches, we realized that building such an infra solely controlled by Bitquery might not be an efficient solution. In addition, as a centralized company, we will always have limitations when converting data into information.

Therefore, for the last year, we have been working on a novel protocol that will allow anyone to transform data and make it more meaningful.

BIT Protocol
------------

BIT protocol is a blockchain agnostic real-time data delivery and transformation protocol. With BIT protocol, we will continue to solve blockchain data accessibility problems and provide incentives to make blockchain data more meaningful.

We will use raised capital to deploy our BIT protocol.

Unlike some of our competitors, we do not subscribe to everything decentralized worldview. Blockchains will be a significant part of our digital infrastructure and will be home to crucial data in every industry. However, blockchains will not replace all public digital infra.

Therefore, public infra will need seamless blockchain integrations for efficient usage and adoption. Bitquery will play a crucial role by enabling data pipes between blockchains and public digital infra.

Today, Bitquery is a team of 15 spread across five countries ([**And actively hiring**](https://angel.co/company/bitquery/jobs)), serving governments and some of the biggest companies in the crypto space.

He Yi, Co-Founder of Binance and Head of Binance Labs, said, “We’re excited to be working closely with the Bitquery team. At Binance Labs, we will continue to identify and support innovative data solution providers that allow industry players easy access to accurate on-chain data. We believe that the battle-tested technology of Bitquery and its mission to democratize data access will bring a positive impact to the long-term growth of the Web3 industry.”

Dean Karakitsos, CEO of Bitquery, said, “Blockchain data demand is growing from all sectors of finance, including traditional financial institutions, enterprises, and even governments. Bitquery’s mission is to enable hassle-free access to blockchain data for everyone. Today, many businesses depend on Bitquery’s data infrastructure. However, building such an infrastructure in a centralized manner stifles innovation that can be achieved through open access to blockchain data. Bitquery is working on a data protocol to solve this problem efficiently, and support more use cases where real-time blockchain data is critical.”

About Bitquery
--------------

Bitquery is a data company building products to solve blockchain data problems on a global scale. Bitquery’s products deliver real-time data from over 40 blockchains and various Web3 protocols. It also provides a decentralized BIT protocol to democratize access to blockchain data. Today, Bitquery’s data infrastructure empowers thousands of developers, businesses, and governments. It delivers solutions to various verticals such as decentralized finance (DeFi), DEX arbitrage analytics, crypto surveillance & forensics across major blockchains like Bitcoin, Ethereum, BNB Chain, and Polygon.


]]></description>
        </item>
        <item>
            <title><![CDATA[0x V4 APIs on Ethereum, BSC, and Polygon]]></title>
            <link>https://bitquery.io/blog/0x-api</link>
            <guid>https://bitquery.io/blog/0x-api</guid>
            <pubDate>Tue, 16 Nov 2021 05:35:07 GMT</pubDate>
            <description><![CDATA[
Recently 0x Dao provided us a  [grant](https://twitter.com/0xCommunityDAO/status/1458851918864867339)  to enable 0x V4 APIs for  [BSC](https://explorer.bitquery.io/bsc/dex_protocol/Zerox%20Exchange%20v4),  [Ethereum](https://explorer.bitquery.io/ethereum/dex_protocol/Zerox%20Exchange%20v4), and  [Polygon](https://explorer.bitquery.io/matic/dex_protocol/Zerox%20Exchange%20v4). So today, we are happy to announce that now you can access 0x trading data (all versions of the 0x protocol including v4) using Bitquery GrpahQL APIs and  [explorer](https://explorer.bitquery.io/ethereum/dex_protocol/Zerox%20Exchange%20v4).

This article will talk about some interesting facts  [a](https://crackeado.org/)bout 0x v4 protocols and show you examples of some APIs and how you can get them according to your need.

#### Trades and Volume

In  [October, 0x saw ~29k trades](https://graphql.bitquery.io/ide/0x-v4-trade-count), which is the highest for 2021 (till now), but as you can see in the image below, there is a gradual uptrend month on month for trade counts on the protocol.

Additionally, the V4 version alone saw a volume of $1.5 billion in Oct.

You can also get trade count using  [this query](https://graphql.bitquery.io/ide/0x-v4-trade-count)  and volume using  [this query](https://graphql.bitquery.io/ide/0x-v4-volumn).

![0x v4 trade month on month](/blog/0x-api/image-1.png)

0x v4 trade month on month

![0x v4 volume](/blog/0x-api/image-2.png)

0x v4 volume

While building any DEX-related tooling, the essential t[h](https://italianopro.com/)ing you need is trades. Now you can  [get trades of 0x V4 protocol](https://explorer.bitquery.io/ethereum/dex_protocol/Zerox%20Exchange%20v4/trades)  or any other version of the 0x protocol; you can use our Apis.

You can also integrate these trades data on TradingView charting library. So we already  [have a guide on this](https://community.bitquery.io/t/bitquery-api-integration-with-tradingview-technical-analysis-charts-dex-apis/244).

For example, check  [this query](https://graphql.bitquery.io/ide/0x-v4-latest-trades)  to get the latest trades for the 0x v4 protocol. Additionally, You can also check the  [trading pairs listed on the 0x v4](https://explorer.bitquery.io/ethereum/dex_protocol/Zerox%20Exchange%20v4/pairs)  protocol using  [this API](https://graphql.bitquery.io/ide/Top-10-pairs-on-0x-v4-protocol).

#### Traders on 0x

More than 7.5k traders traded 178 currencies on 0x V4 in October. If you want to dig these traders, you can use our APIs and check their details on  [our explorer](https://explorer.bitquery.io/ethereum/dex_protocol/Zerox%20Exchange%20v4/traders).

0x V4 and all other version APIs are now on Polygon[,](https://indir-full.com/)  BSC, and Ethereum throug[h](https://baixakis.com/)  Bitquery GraphQL APIs. Get your API keys by signing up on our  [GraphQL IDE](https://graphql.bitquery.io/)  today.

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

-   **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
-   **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
-   **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Tron DEX APIs with Bitquery | GraphQL APIs​]]></title>
            <link>https://bitquery.io/blog/tron-dex-api</link>
            <guid>https://bitquery.io/blog/tron-dex-api</guid>
            <pubDate>Mon, 25 Oct 2021 05:35:07 GMT</pubDate>
            <description><![CDATA[
Recently we have opened GraphQL APIs for DEXs on Tron. Now you can access DEXs data on the [Tron blockchain](https://explorer.bitquery.io/tron) using Bitquery’s GraphQL APIs. We already have DEX APIs on [Ethereum](https://bitquery.io/blog/ethereum-dex-graphql-api), [BSC](https://bitquery.io/blog/pancake-swap-dex-apis), [Polygon](https://bitquery.io/blog/polygon-matic-api), [Velas](https://bitquery.io/blog/velas-api) and [Klaytn](https://bitquery.io/blog/klaytn-api), and more are coming soon.

This article will show some of the queries related to Tron DEX and some interesting facts about trading on the DEXs Tron. You can use these APIs to build DEX related tools, for example, charting other traders associated data.

We have indexed a few of the DEXs on Tron. If you want your DEX to be indexed on Bitquery, [please get in touch with us](https://bitquery.io/index-dex-protocol).

Sign up to our [GraphQL IDE](https://graphql.bitquery.io/) to get your API Keys and try our DEX APIs.

Top DEXs
--------

Based on DEXs we processed, Uswap is the [top DEX on the Tron](https://explorer.bitquery.io/tron/dex) with [more than 1.6 million trades and $58 billion in trading volume](https://graphql.bitquery.io/ide/tpoR2w0rfS).

Compared to Ethereum, BSC and Polygon, On [Ethereum’s biggest DEX](https://explorer.bitquery.io/ethereum/dex) is Uniswap, with more than [70 million trades and $530 billion in trading volume](https://graphql.bitquery.io/ide/q7aDAPIvKR).

Pancake is the biggest DEX with more than 274 million trades on Binance Smart Chain. On the other hand, Polygon’s biggest DEX is QuickSwap, with 48 million+ trades.

Currencies and Traders on Tron DEXs
-----------------------------------

Traders peaked in January 2021 on Tron DEXs, and it’s now come down, and an average of 100K [traders are using Tron DEXs per month](https://explorer.bitquery.io/tron/dex_trades).

However, the number of currencies traded on Tron is increasing gradually. Currently, more than 80 currencies are traded on Tron DEXs, which we parsed.

You can also get trades data for other blockchains such as Ethereum, BSC or Polygon; using [this query](https://graphql.bitquery.io/ide/JkI0V5Y16X), change the network.

![Trades on Tron DEXs](/blog/tron-dex-api/image-16-1024x685.png)

Trades on Tron DEXs

Most Traded Currency on Tron
----------------------------

With more than 1.2 million trades, WTRX is the [most traded currency on Tron](https://graphql.bitquery.io/ide/WTaKbUCakN). However, based on DEXs scanned by, [WINKLINK](https://explorer.bitquery.io/tron/trc20token/TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7) generated the most trading volume (~$122 billion).

Use [this query](https://graphql.bitquery.io/ide/yxk7jgU90O) to check similar data for other blockchains.

![Most trades currencies on Tron DEXs](/blog/tron-dex-api/image-17-1024x701.png)

Most trades currencies on Tron DEXs

Getting Latest Trades for a Given Token
---------------------------------------

Using our APIs, you can get the latest trades for a given token against any currency. For example, this query provides [WINK/WTRX](https://graphql.bitquery.io/ide/MamMuVxrV1) pair’s latest trades.

Additionally, if you want to show TradingView charting for your token, you can also use our APIs. We have written [a guide explaining TradingView charting library integration with Bitquery APIs](https://community.bitquery.io/t/bitquery-api-integration-with-tradingview-technical-analysis-charts-dex-apis/244).

For charting, you will need OHLC data for any token. You can use [this type of query](https://graphql.bitquery.io/ide/MamMuVxrV1) to get the latest OHLC data for any token, change the base and quote currency and timeframe according to your need.

Trades Related DEX data
-----------------------

You can use our GraphQL APIs to get trades for a given address; for example, [this query](https://graphql.bitquery.io/ide/DvZxWxQMrD) gets [this address](https://explorer.bitquery.io/tron/smart_contract/TY7J38273wJHsG44LmttrJMSnXxd8oNpGR).

Additionally, you can add more filters if you look for a specific token or alter existing filters based on your need. Our GraphQL APIs are very sophisticated and provide much more control to query creators than any REST APIs out there.

If you are looking for Tron DEX APIs, please [sign up on our Blockchain IDE](https://graphql.bitquery.io/) and get your API keys. If you are building any application related to DEXs or Blockchain, we would be delighted to talk to you; you can ping us on our [Telegram channel](https://t.me/Bloxy_info).

About Bitquery
------------------

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

* **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
* **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
* **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Velas APIs | Querying Velas Blockchain​]]></title>
            <link>https://bitquery.io/blog/velas-api</link>
            <guid>https://bitquery.io/blog/velas-api</guid>
            <pubDate>Fri, 08 Oct 2021 05:35:07 GMT</pubDate>
            <description><![CDATA[
TL;DR – We have indexed Velas blockchain, therefore now you can use Bitquery APIs to query Velas. To get started, [sign up on our Blockchain IDE](https://graphql.bitquery.io/ide) and get your API keys.

What is Velas?
--------------

[Velas](https://velas.com/) is a Switzerland-based blockchain project, who claims to have the capacity to process 50k+ t/ps, without giving way to security or [decentralization](https://taiwindows.com/).

Velas is an AI-powered Delegated Proof-of-Stake (AIDPOS) blockchain and open-source platform for decentralized applications. It is a project that combines Blockchain and innovative AI technologies to create a transparent, community-driven, and decentralized ecosystem of [products](https://www.programlarindir.com/) and services. 

Velas Blockchain’s performance is much higher than what can be seen across most of the existing blockchain platforms. It will expand upon the [Solana](https://bitquery.io/blog/solana-api) codebase in order to obtain and leverage one of the fastest blockchain frameworks in the entire crypto industry, far exceeding previous framework speeds and those of competitors. 

As a result, all Ethereum-based decentralized applications ([dApps](https://blog.coincodecap.com/what-are-dapps-an-ultimate-guide)) and decentralized financial protocols ([DeFi](https://blog.coincodecap.com/the-ultimate-guide-to-defi-decentralized-finance)) can be seamlessly run on Velas.

Created in 2019, Virtual Expanding Learning Autonomous System, or simply ‘Velas’, is a new and exciting blockchain startup located in Switzerland.

As is now quite common for new blockchain startups, Velas was launched with the overarching objective of solving the many issues facing existing networks such as Bitcoin. In a nutshell, this centres around the challenges of scalability.

In the case of [Bitcoin](https://explorer.bitquery.io/bitcoin), for example, the network is still limited to just 7 transactions per second, at an average block confirmation time of 10 minutes.

On the contrary, the team at Velas argue that their native blockchain protocol has the capacity to achieve 50k+t/ps, while at the same time, remaining safe and secure from the threats of a 51% attack. Moreover, the Velas blockchain remains decentralized at all times.

![](/blog/velas-api/image2.png)

Velas Token (VLX ) is used for transactions, payments, fees and for supporting Proof-of-Stake consensus. [Staking](https://blog.coincodecap.com/staking-crypto) allows block producers (validators and their delegators) to provide transaction consensus and receive staking incentives for honest block production.

It is aiming for high performance by splitting its modifiable state across multiple accounts. While this allows Velas to process transactions in parallel on a single shard, it also introduces complications for ordinary DApps developers. Additionally, many dApps already rely on Solidity and the Ethereum technology stack. These two reasons slow down the adoption of non-EVM ecosystems.

In this article, we will talk about **how to use Bitquery to query the Velas blockchain**. In addition, we have enabled GraphQL APIs on Velas for developers and businesses to access Velas and DApps data through our APIs.

> If you are looking for Velas APIs, please [sign up on our Blockchain IDE](https://graphql.bitquery.io/ide) and get your API keys.

Velas Block
-----------

Velas blocks are produced by AI-powered Delegated Proof-of-Stake(AIDPOS) consensus. Till now, the blockchain has produced more than [134955 blocks](https://graphql.bitquery.io/ide/8u6NQKhDYq#). On average, Velas produces ~[20000 blocks per month](https://graphql.bitquery.io/ide/83hr2PEdgV#). If you want to know the latest Velas transactions, you can use [this query](https://graphql.bitquery.io/ide/ayV7b5zSiz#).

Velas Transactions
------------------

One of the vital aspects of Velas hybrid design is that it’s built for scalability. Velas has processed more than [131403 transactions](https://graphql.bitquery.io/ide/JbvCbc04ub#), of which more than [35858 were processed in Sept 2021](https://graphql.bitquery.io/ide/J7wuptKRwn#).

![Velas transactions over time](/blog/velas-api/image-9-1024x576.png)

Velas transactions over time

Velas Gas Analytics
-------------------

Velas is built for scalability and business use cases. You can check Velas’s average gas cost per month using this [query](https://graphql.bitquery.io/ide/lu2gU3t0NK).

![Average transaction price on Velas](/blog/velas-api/image-10-1024x576.png)

Average transaction price on Velas

Velas Transfers
---------------

Velas processed [more than 149639 transfers](https://graphql.bitquery.io/ide/86VphEON30) since its launch, in which 35000 transfers were processed in August 2021.

A transfer is when any token or native currency get transferred. And a transaction can contain 0 to more than 1 transfer.

Velas has more than [17020 unique receivers](https://graphql.bitquery.io/ide/6sACPBiQAf) and 5861 senders.

![Velas Transfers over time](/blog/velas-api/image-11-1024x576.png)

Velas Transfers over time

Tokens on Velas
---------------

At the time of writing this article, there were [40 unique tokens](https://graphql.bitquery.io/ide/0XOkiVucZZ) on Velas. Using this [query](https://graphql.bitquery.io/ide/EeuZ72RxyX), you can check the complete list with some critical data points like total senders, receivers, average transfer value, etc.

VLX (the native token of Velas) is the [most transferred currency on the Velas blockchain](https://graphql.bitquery.io/ide/nHVPqpdil8#), with more than 130457 transfers.

![Top Tokens based on transfers on Velas](/blog/velas-api/image-12-1024x576.png)

Top Tokens based on transfers on Velas

Smart Contracts on Velas
------------------------

Velas also saw massive growth in the smart contract calls; currently, Velas is executing more than [7000 calls per month](https://graphql.bitquery.io/ide/v7GwWMwRk3#). The good part is that these calls come from more than [14K smart contracts](https://graphql.bitquery.io/ide/VznA8J06gE) and [2k unique callers](https://explorer.bitquery.io/velas/calls).

![Smart Contract calls month wise](/blog/velas-api/image-13-1024x576.png)

Smart Contract calls month wise

Querying Address Details on Velas
---------------------------------

Bitquery makes it very easy to query details for a given address such as balance, currency received and sent, transaction etc. We also enabled Money flow APIs on Velas, making it easy to trace any address on the blockchain.

For example, if you want to check the balance of an address, you can use the following [query](https://explorer.bitquery.io/velas/address/0xb66054b35a18d6687756faebae70aa5016b6284e).

Additionally, use [this query](https://graphql.bitquery.io/ide/oGYyt4WF3f) if you want to know the total currencies sent and received by a given address.

![Inbound / Outbound for a given address](/blog/velas-api/image-14.png)

Inbound / Outbound for a given address

Tracking on Velas
-----------------

Additionally, we have enabled our flagship product [Coinpath®](https://bitquery.io/products/coinpath), the money tracking APIs on Velas, which helps [track money on the blockchain](https://bitquery.io/products/coinpath).

For example, check this [visualization](https://explorer.bitquery.io/velas/address/0xb66054b35a18d6687756faebae70aa5016b6284e/graph) and drag and drop address and change setting to get more in-depth transactions related to [this address](https://explorer.bitquery.io/velas/address/0xb66054b35a18d6687756faebae70aa5016b6284e/graph).

![Money Tracking on Velas](/blog/velas-api/image-15-1024x464.png)

Money Tracking on Velas

Conclusion
----------

While it could be argued that the blockchain arena has since become somewhat oversaturated, there is a lot to like about [Velas](https://velas.com/). While still very early days, its unique consensus mechanism — Artificial Intuition Delegated Proof of Stake, has the potential to solve the ongoing conundrum of scaling a blockchain network to significant heights, without compromising on security and decentralization. If you are looking for Velas APIs, please [sign up on our Blockchain IDE](https://graphql.bitquery.io/ide) and get your API keys. If you are building any application related to Velas, we would be delighted to talk to you; you ping us on our [Telegram channel](https://t.me/Bloxy_info).

A**bout** Bitquery
------------------

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

*   **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
*   **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
*   **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.


]]></description>
        </item>
        <item>
            <title><![CDATA[Klaytn APIs | Querying Klaytn Blockchain​]]></title>
            <link>https://bitquery.io/blog/klaytn-api</link>
            <guid>https://bitquery.io/blog/klaytn-api</guid>
            <pubDate>Tue, 05 Oct 2021 05:35:07 GMT</pubDate>
            <description><![CDATA[
Klaytn is a South Korean blockchain platform that made a buzz when [reports](https://www.wsj.com/articles/samsung-launches-smartphone-meant-to-make-blockchain-friendlier-11567656492?mod=e2tw#) emerged that Samsung would integrate Klaytn in their flagship product, Galaxy note 10 and market them as “KlaytnPhone”. Klaytn is a service-centric blockchain platform developed by Ground X, the blockchain subsidiary of South Korea’s no one mobile platform, Kakao.

Klaytn is EVM compatible. It adopts a trust model of private consensus with the public disclosure, where a smaller group of consensus nodes (CNs) executes BFT consensus in a private network while surrounded by a larger public network of permissionless endpoint nodes (ENs) openly accessing (and where necessary, verifying) block generation results.

The image below shows the companies that run Klaytn’s consensus nodes.

![Companies supporting Klaytn](/blog/klaytn-api/image-1024x697.png)

Companies supporting Klaytn

In this article, we will talk about how to use Bitquery to query the Klaytn blockchain. In addition, we have enabled GraphQL APIs on Klaytn for developers and businesses to access Klaytn and BApps data through our APIs.

If you are looking for Klaytn APIs, please [sign up on our Blockchain IDE](https://graphql.bitquery.io/) and get your API keys.

Klaytn Blocks
-------------

Klaytn’s blocks are produced by consensus nodes in private; however, they are publically verifiable. Till now, the blockchain has produced more than [71623927 blocks](https://graphql.bitquery.io/ide/8hiztmYvFR). On average, Klaytn produces [~26 million blocks per month](https://graphql.bitquery.io/ide/c1FZsM7oen). If you want to know the latest Klaytn’s transactions, you can use [this query](https://graphql.bitquery.io/ide/vHbD6gYwLK).

Klaytn Transactions
-------------------

One of the vital aspects of Klaytn hybrid design is that it’s built for scalability. Since its launch in July 2019, Klaytn has processed more than [262 million transactions](https://graphql.bitquery.io/ide/KHy4XOoQO6), of which more than [18 million were processed in Sept 2021](https://graphql.bitquery.io/ide/ZJrpUdqBQi).

Use [this query](https://graphql.bitquery.io/ide/9wNBMtJJZN) to get the latest Klaytn transactions.

![Klaytn Transactions over time](/blog/klaytn-api/image-1-1024x638.png)

Klaytn Transactions over time

Klaytn Gas Analytics
--------------------

Klaytn is built for scalability and business use cases; therefore, the cost of transactions is very low. At the time of writing this article, the cost per transaction is around $0.00605/tx. You can check Klaytn’s average gas cost per month using [this query](https://graphql.bitquery.io/ide/QVYTXAInvY).

![Average Transaction Price on Klaytn](/blog/klaytn-api/image-2-1024x641.png)

Average Transaction Price on Klaytn

Klaytn Transfers
----------------

Klaytn processed [more than 237 million transfers](https://graphql.bitquery.io/ide/halWJzW2RY) since its launch, in which 34 million transfers were processed in August 2021.

A transfer is when any token or native currency get transferred. And a transaction can contain 0 to more than 1 transfers.

Klaytn has more than [5.7 million unique receivers](https://graphql.bitquery.io/ide/8EImK2vc8a) and 2.4 million senders.

![Klaytn Transfers over time](/blog/klaytn-api/image-3-1024x638.png)

Klaytn Transfers over time

Tokens on Klaytn
----------------

At the time of writing this article, there were [2392 unique tokens](https://graphql.bitquery.io/ide/gYoD39xwCv) on Klaytn. Using [this query](https://graphql.bitquery.io/ide/XKgQUx7lk2), you can check the complete list with some critical data points like total senders, receivers, average transfer value, etc.

Klay (the native token of Klaytn) is [the most transferred currency on the Klytan blockchain](https://graphql.bitquery.io/ide/nffEnoAZuW), with more than 105 million transfers.

![Top Tokens based on transfers on Klaytn](/blog/klaytn-api/image-4-1024x642.png)

Top Tokens based on transfers on Klaytn

DEXs on Klaytn
--------------

More than 3800 unique traders executed [800,000 trades](https://graphql.bitquery.io/ide/vDYhoESeyi) with a total volume of $170 million. Use [this query](https://graphql.bitquery.io/ide/PAi78kTJxa) to get the month-wise data for DEX trade count and volume.

To get the latest trades on the Klaytn blockchain, [use this query](https://graphql.bitquery.io/ide/3t2iOwuNzr).

![DEX Trades on Klaytn](/blog/klaytn-api/image-5-1024x641.png)

DEX Trades on Klaytn

Smart Contracts on Klaytn
-------------------------

Klaytn also saw massive growth in the smart contract calls; currently, Klaytn is executing [more than 300 million calls per month](https://graphql.bitquery.io/ide/baPSpEATmn). The good part is that these calls come from more than [60k smart contracts](https://graphql.bitquery.io/ide/BxSgPGW0zJ) and [200K unique callers](https://explorer.bitquery.io/klaytn/calls).

![Smart Contract Calls Month on Month on Klaytn](/blog/klaytn-api/image-6-1024x639.png)

Smart Contract Calls Month on Month on Klaytn

Querying Address details on Klaytn
----------------------------------

Bitquery makes it very easy to query details for a given address such as balance, currency received and sent, transaction etc. We also enabled Money flow APIs on Klaytn, making it easy to trace any address on the blockchain.

For example, if you want to check [the balance of an address](https://explorer.bitquery.io/klaytn/address/0x09e4fc443cb26749281c961b99f71a2c763d1bc2), you can use the following query.

History

​

Additionally, use [this query](https://graphql.bitquery.io/ide/EOCkodbW2T) if you want to know the total currencies sent and received by a given address.

![Currencies sent and received by a given address on Klaytn ](/blog/klaytn-api/image-7-1024x742.png)

Currencies sent and received by a given address on Klaytn

Tracing On Klaytn
-----------------

Additionally, we have enabled our flagship product [Coinpath®](https://bitquery.io/products/coinpath), the money tracking APIs on Klaytn, which helps [track money on the blockchain](https://bitquery.io/products/coinpath).

For example, check [this visualization](https://explorer.bitquery.io/klaytn/address/0x09e4fc443cb26749281c961b99f71a2c763d1bc2/graph) and drag and drop address and change setting to get more in-depth transactions related to [this address](https://explorer.bitquery.io/klaytn/address/0x09e4fc443cb26749281c961b99f71a2c763d1bc2/graph).

![Money Tracking on Klaytn](/blog/klaytn-api/Screenshot-2021-10-05-at-5.43.04-PM-1024x421.png)

Money Tracking on Klaytn

Conclusion
----------

Klaytn is not a complete public chain. However, it has the support of big tech companies. If you are looking for Klaytn APIs, please [sign up on our Blockchain IDE](https://graphql.bitquery.io/) and get your API keys. If you are building any application related to Klaytn, we would be delighted to talk to you; you can ping us on our [Telegram channel](https://t.me/Bloxy_info).

A**bout** Bitquery
------------------

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

*   **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
*   **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
*   **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.
]]></description>
        </item>
        <item>
            <title><![CDATA[Solana API – Querying Solana Blockchain (2023)​]]></title>
            <link>https://bitquery.io/blog/solana-api</link>
            <guid>https://bitquery.io/blog/solana-api</guid>
            <pubDate>Wed, 25 Aug 2021 05:35:07 GMT</pubDate>
            <description><![CDATA[
Solana is a blockchain that allows DApp developers to deploy crypto applications and grow rapidly without the congestion and scalability issues that affect some other networks. Designed for scalability, Solana seeks to provide developers with the infrastructure and bandwidth to facilitate the global adoption of their decentralized products and services.

Today, we are happy to announce the Bitquery launched the support for Solana blockchain. Now you can query Solana’s blockchain data using our [GraphQL APIs](https://graphql.bitquery.io/).

Because we have indexed more than [30 blockchains](https://bloxy.info/status), therefore in this article, we provide some interesting data insights comparing Solana with some other chains and also provide query examples.

**Note:** Solana APIs are currently in beta, and products such as Coinpath (Money Tracking APIs) are not supported.

Monthly Transaction Volume in Solana Mainnet
--------------------------------------------

Solana is continuously [hitting more than 2 billion transactions every month](https://graphql.bitquery.io/ide/gVP6DAOh5P). It’s ten times more transactions what other networks are processing. For example, [Ethereum](https://bitquery.io/products/ethereum-api) did only 35 million transactions, [BSC](https://bitquery.io/blog/binance-smart-chain-api) and [Matic](https://bitquery.io/blog/polygon-matic-api) did around 170 million transactions per month.

![Solana Transactions](/blog/solana-api/image-5-1024x640.png)

Solana Transactions

On the other hand, token transfers on Solana is declining in the last few months. A transfer is when a native coin or the token gets transferred on the blockchain. A transaction can contain zero or multiple transfers.

Compared to other networks, only BSC is now processing more transfers (~325 million per month) than Solana. Where Ethereum is processing ~55 million, and Polygon is doing 110 million transfers.

To check Solana transfers [run this query](https://graphql.bitquery.io/ide/eoJwgOLiuY).

![Solana transfers](/blog/solana-api/image-6-1024x640.png)

Solana transfers

**Solana Blocks**
-----------------

Solana is processing more than [3.2 million blocks](https://graphql.bitquery.io/ide/Wfe76Iihdv) every month. Compared to other networks, Ethereum is processing 200k, BSC 850K, and Polygon 1.2 million blocks.

![Number of blocks processed by Solana each month](/blog/solana-api/image-7-1024x640.png)

Number of blocks processed by Solana each month

Top Currencies on Solana
------------------------

More than 75% of the transfers on Solana is for its native coin SOL and after than Kin and USDC with more than 170 million transfers.

In the following charts, you can see the top 10 currencies based on transfers. You can use [**this query**](https://graphql.bitquery.io/ide/O4C3VaK7w0) to get this data and other details.

![Top Currencies on Solana](/blog/solana-api/image-8-1024x640.png)

Top Currencies on Solana

Other Important Queries related to Solana
-----------------------------------------

You can check Solana GraphQL APIs schema on our [GraphQL IDE](https://graphql.bitquery.io/). It will help you learn more about the data we have exposed for the Solana blockchain.

![Solana Schema on our GraphQL IDE](/blog/solana-api/image-9-1024x492.png)

Solana Schema on [Bitquery GraphQL IDE](https://graphql.bitquery.io/)

We have added few more GraphQL APIs below; however, these are only examples. Our GraphQL APIs can provide any data for the Solana blockchain, and you just need to explorer it.

Solana Block Rewards
--------------------

Using our APIs, you can also get Solana block rewards; for example, If you want to check Solana block rewards for a given block height, you can use the following query.

Latest Solana Instructions 
---------------------------

An [app](https://docs.solana.com/terminology#app) interacts with a Solana cluster by sending it transactions with one or more [instructions](https://docs.solana.com/developing/programming-model/transactions#instructions). Each [instruction](https://docs.solana.com/terminology#instruction) specifies a single program, a subset of the transaction’s accounts that should be passed to the program, and a data byte array that is passed to the program.

In simple words, instructions are equal to smart contract calls.

Using our APIs, you can get Solana instructions, for example, following GraphQL̃ query.

What’s Next?
------------

Next, we are going to parse Serum DEX and other DEXs and DeFi protocols on Solana. If you want us to open APIs for your protocol on Solana, you can reach out to us. Or If you have any questions related to our blockchain data APIs please join our [Telegram Group](https://t.me/Bloxy_info).

A**bout **Bitquery
------------------

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

* **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
* **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
* **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.
]]></description>
        </item>
        <item>
            <title><![CDATA[Polygon (MATIC) APIs | Transfers, Trades, Tokens & DEX​]]></title>
            <link>https://bitquery.io/blog/polygon-matic-api</link>
            <guid>https://bitquery.io/blog/polygon-matic-api</guid>
            <pubDate>Thu, 12 Aug 2021 05:35:07 GMT</pubDate>
            <description><![CDATA[
Last month, we [announced the grant](https://bitquery.io/blog/bitquery-polygon) from the Polygon team. Soon after, our team started the Polygon integration in our products.

Today we are happy to announce that we have integrated Polygon on all Bitquery products. Additionally, we have parsed 100s of DEXs on Polygon such as QuickSwap, ApeSwap, WaultSwap, etc. Therefore now you can query them using our [GraphQl APIs](https://graphql.bitquery.io/).

* Checkout [Polygon Explorer](https://explorer.bitquery.io/matic/dex)
* [Query Polygon network using GraphQL IDE](https://graphql.bitquery.io/ide/explore/matic)
* Polygon’s Money Tracing APIs ([Example](https://explorer.bitquery.io/matic/smart_contract/0x39d316aa7cd6ccf176c8407198412e28877f6c7c/graph))

In this article, we will talk about how to query the Polygon network using Bitquery APIs and access trading data for DEXs on Polygon.

[Polygon](https://polygon.technology/) is a protocol and framework for building and connecting Ethereum-compatible blockchain networks. It is a 2nd layer solution that is designed to solve blockchain scalability issues. MATIC is the Polygon’s native token that powers the Polygon network.

Users can deposit Ethereum tokens to a Polygon smart contract, interact with them within Polygon, and later withdraw them back to the Ethereum main chain. The MATIC token is used to pay transaction fees and participate in proof-of-stake consensus.

This article is also published on our [**community forum**](https://community.bitquery.io/t/polygon-matic-apis/398), therefore if you have any questions regarding this. You can comment on that article.

**Monthly Transaction Volume**
------------------------------

In the following query, we’ll be querying the [monthly transaction volume of the Polygon network](https://graphql.bitquery.io/ide/t6UQzJ9Vsm). 


As you can see in the following visualization, Polygon did more than 200 million transactions in June, at its peak, which is 577% of what Ethereum did in June 2021. In the same month, the Binance Smart chain processed more than 130 million transactions.

If you want the latest Polygon transactions, [use this API](https://graphql.bitquery.io/ide/YcHloUi2L0).

![Monthly Transaction Volume on Polygon](/blog/polygon-matic-api/image-1024x576.png)

Monthly Transaction Volume on Polygon

**Monthly Transfer Count on Polygon**
-------------------------------------

A transfer is when a token gets transferred. One transaction can contain none or multiple transfers. Using the following query, you can check [monthly transfers on the Polygon network](https://graphql.bitquery.io/ide/3cfIOhaHUH).


Polygon saw more than 140 million transfers in July 2021. In the same month, Ethereum saw 61 million transfers, and BSC saw 328 million transfers.

![Monthly Transfers on Polygon](/blog/polygon-matic-api/image-1-1024x576.png)

Monthly Transfers on Polygon

You can use the [following GraphQL API](https://graphql.bitquery.io/ide/5o601ZK43m) to get the latest Polygon transfers.​

**Top Tokens on Polygon based on number of transfers**
------------------------------------------------------

Let’s also see the top currencies on the Polygon network based on the number of transfers. You can get this data using [this GraphQL API](https://graphql.bitquery.io/ide/e2yk1qih3P).

![Top Tokens Traded on Polygon](/blog/polygon-matic-api/image-2-1024x646.png)

Top Tokens Traded on Polygon

Smart Contracts on Polygon
--------------------------

Polygon saw a whopping [1.75 billion smart contract calls](https://explorer.bitquery.io/matic/calls) in July 2021, almost equal to Binance smart chain’s [1.76 billion smart contract call](https://explorer.bitquery.io/bsc/calls).

On the other hand, Ethereum processed around [132 million smart contract calls](https://explorer.bitquery.io/ethereum/calls) in July.

You can use [the following query](https://graphql.bitquery.io/ide/ly7EfKLdbw) to get smart contract calls a month on month basis.

DEXs on Polygon
---------------

Defi is growing on the Polygon network, 100s of DEXs and other DApps are deployed on Polygon. In addition, Aave, Sushiswap, and other famous Dapps are now also integrated with Polygon.

Since its launch, Polygon saw more than 53 million trades, totaling around $24 billion in trade volume, and [all these trades came in the last four months](https://graphql.bitquery.io/ide/VsjSYAJhf8).

DEXs like QuickSwap and SushiSwap on Polygon saw more than 6 billion in trade amount in just a few months.

Use [this API](https://graphql.bitquery.io/ide/Bfg59xekSl) to get the top Polygon DEXs based on trade volume.

![Top Polygon DEXs based on trade volume](/blog/polygon-matic-api/image-3-1024x640.png)

Top Polygon DEXs based on trade volume

Top Tokens Trades on Polygon
----------------------------

As we have seen with other blockchains, stablecoin is also ruling the Polygon network. The top [5 tokens](https://graphql.bitquery.io/ide/hhvsSeGmUH) are involved in more than 95% of trades, and USDC is more popular than USDT.

![Top Tokens Trades on Polygon](/blog/polygon-matic-api/image-4-1024x640.png)

Top Tokens Trades on Polygon

**All Latest Trades on Polygon**
--------------------------------

You can use our [DEX APIs](https://bitquery.io/products/dex) to get all the latest trades on Polygon for any DEX we support.

For example, check [the following API](https://graphql.bitquery.io/ide/mRWw74nkcf) to get the latest Polygon trade.

You can also get trades for specific DEX, check the following example for getting [latest trades from QuickSwap](https://graphql.bitquery.io/ide/dlPiotaij5).

Showing Polygon’s DEXs data on TradingView
------------------------------------------

We provide flexible OHLC data APIs for all the DEXs and all the blockchains we support. Therefore you can easily integrate DEX trading data with the TradingView library to build charts for traders. We have also written tutorials on integrating Bitquery APIs with the TradingView library using [**React**](https://community.bitquery.io/t/bitquery-api-integration-with-tradingview-technical-analysis-charts-dex-apis/244) and [**VueJS**](https://community.bitquery.io/t/integrating-tradingview-s-technical-analysis-charts-with-bitquery-graphql-api-using-vuejs/343).

For example, checkout following query in which we get [CHI-WMATIC pair’s OHLC](https://graphql.bitquery.io/ide/sSiLO6zNQE) data for a minute timeframe.

Latest Trades for a given token on Polygon
------------------------------------------

Let’s say you want the latest trades for a given token on the Polygon network; you can use the following query, where we are getting the latest trades for [the DINO token](https://graphql.bitquery.io/ide/hkDXhVo3z1).

Just replace the baseCurrency with your token’s address.

Conclusion
----------

In the upcoming days, we will write more tutorials on Polygon and how to get different types of data from the Polygon networks using Bitquery APIs.

This article is also published on our [**community forum**](https://community.bitquery.io/t/polygon-matic-apis/398), therefore if you have any questions regarding this. You can comment on that article.]]></description>
        </item>
        <item>
            <title><![CDATA[Polygon is Coming to Bitquery​]]></title>
            <link>https://bitquery.io/blog/bitquery-polygon</link>
            <guid>https://bitquery.io/blog/bitquery-polygon</guid>
            <pubDate>Tue, 06 Jul 2021 05:35:07 GMT</pubDate>
            <description><![CDATA[
[Polygon](https://polygon.technology/), a full-stack Ethereum Solution, has announced a new integration with [Bitquery.io (formerly bloxy.info)](https://bitquery.io/), a blockchain data provider. Polygon will provide a grant to bring Bitquery tooling into its ecosystem.

Bitquery will provide scalable GraphQL APIs and visualization tools such as [GraphQL IDE](https://graphql.bitquery.io/) and [Analytical explorer](https://explorer.bitquery.io/) to help developers build, explore and understand new applications on Polygon. 

This integration will allow developers to access their DApps data, including DEXs, AMMs and other DeFi applications. Therefore, saving time, money, and resources for the teams building atop Polygon by providing them indexed data for their applications. Bitquery will also help boost Polygon’s adoption as their existing customers can easily integrate Polygon’s app using Bitquery’s APIs.

Bitquery will also enable Polygon compliance APIs through [Coinpath®](https://bitquery.io/products/coinpath), helping the community track transactions and addresses on the Polygon chain.

“Our integration with the Polygon team will address the explosive demand by developers to accelerate time to market. Polygon DApps and use cases will reach end users faster by utilizing the data power and data integrity of Bitquery’s APIs and tooling.” **Dean Karakitsos, CEO of Bitquery.**

“We’re thrilled to have Bitquery’s high fidelity tooling on Polygon, allowing developers to access DApp data and build DeFi Legos on top of Polygon’s indexed blockchain data, supercharging the vibrant DeFi ecosystem on Polygon.” **Polygon Team**

**About Polygon**

Polygon is the first well-structured, easy-to-use platform for Ethereum scaling and infrastructure development. Its core component is Polygon SDK, a modular, flexible framework that supports building and connecting Secured Chains like Plasma, Optimistic Rollups, zkRollups, Validium, etc, and Standalone Chains like Polygon POS, designed for flexibility and independence. Polygon’s scaling solutions have seen widespread adoption with 450+ Dapps, ~350M txns, and ~13.5M+ unique users.

If you’re an Ethereum Developer, you’re already a Polygon developer! Leverage Polygon’s fast and secure txns for your Dapp, get started [here](https://docs.matic.network/docs/develop/getting-started).

[Website](https://polygon.technology/) | [Twitter](https://twitter.com/0xPolygon) | [Reddit](https://www.reddit.com/r/0xpolygon/) | [Discord](https://discord.gg/XvpHAxZ) | [Telegram](https://t.me/polygonofficial) | [Community Twitter](https://twitter.com/0xPolygontech)

**About Bitquery**

Bitquery is a blockchain data provider and an API-first product company with support of 30+ blockchains today. Bitquery’s APIs cover multiple data verticals such as blockchain compliance (Coinpath® APIs), decentralized finance (DeFi), decentralized exchange (DEX), on-chain intelligence, and crypto-assets.

Looking for blockchain data? start [here](https://graphql.bitquery.io/).

[Website](https://bitquery.io/) | [Twitter](https://twitter.com/Bitquery_io) | [Telegram](https://t.me/Bloxy_info) | [Community](https://community.bitquery.io/)]]></description>
        </item>
        <item>
            <title><![CDATA[CoinSwap API – Build Charting, Get Latest Trades and Token Price]]></title>
            <link>https://bitquery.io/blog/coinswap-api</link>
            <guid>https://bitquery.io/blog/coinswap-api</guid>
            <pubDate>Thu, 03 Jun 2021 05:35:07 GMT</pubDate>
            <description><![CDATA[
[CoinSwap](https://coinswap.space/) is a DEX(decentralized exchange) that provides users with a suite of services to help them maximize their returns. The exchange wishes to take on [Pancake exchange](https://bitquery.io/blog/pancake-swap-dex-apis) by delivering lower fees and minimizing slippage through techniques like smart contract routing. 

Bitquery recently integrated CoinSwap, which will enable anyone to pull any data for CoinSwap. Let’s see some examples for getting CoinSwap data using Bitquery [DEX APIs](https://bitquery.io/products/dex).

Similar to Uniswap and Pancake, CoinSwap also an AMM without an order book. The way CoinSwap works is that it allows liquidity providers to create token pairs/pools and provide liquidity to them, which will be used to enable trades on the DEX. In return, liquidity providers earn a fee) in every trade. Additionally, It also allows staking to maximize your returns.

**Note:** If you are not familiar with GraphQL APIs, you can start from [here](https://docs.bitquery.io/v1/docs/intro) and sign up on our [GraphQL IDE](https://graphql.bitquery.io/) to get your API keys. Additionally, if you have any questions related to our APIs, please ask them on the [Bitquery community forum](https://community.bitquery.io/).

CoinSwap Volume and Trades
--------------------------

CoinSwap is a pretty new Exchange, only launched in April 2021, and in the last 1 month, they did more than 113,553 trades, totaling more than $85 million in trade volume.


If you run the query below, you will see in the 2nd month of the launch CoinSwap did more than 100K trades and $76 million in trade volume. 


All Latest Trades on CoinSwap
-----------------------------

Our [DEX APIs](https://bitquery.io/products/dex) allow you to pull DEX trading-related data for any DEX from [all the blockchains Bitquery supports](https://bloxy.info/status). 

Let’s see how to get the latest trades from the CoinSwap exchanges.

As you can see, you will get USD value for different values, such as buy amount, sell amount, and transaction fee, because we also provide [market data with our blockchain APIs](https://bitquery.io/blog/market-data-with-blockchain-data).

CoinSwap OHLC Candle Data
-------------------------

[OHLC (Open High Low Close)](https://en.wikipedia.org/wiki/Open-high-low-close_chart) data is essential for charting. We support OHLC data for different timeframes. For example, we are getting WBNB/ BUSD currency pair’s OHLC data for the 5-minute timeframe in the following example.​

Price for All tokens Listed on CoinSwap Exchange
------------------------------------------------

Using the following query, you can get the price for all the tokens listed on the CoinSwap exchange in a single API call.

If you look at the query closely, we only mention quote currency (WBNB) to the price for the tokens traded against WBNB on CoinSwap.

Latest CoinSwap Pairs/Pools
---------------------------

As we discussed before, liquidity providers create token pairs/pools on DEX and provide liquidity.

Using the following API, you can pull all newly created Pancake pools. For this, we will use our `arguments` API to get the `PairCreated` event of the [CoinSwap Factory Contract](https://explorer.bitquery.io/bsc/smart_contract/0xc2d8d27f3196d9989abf366230a47384010440c0).

Pools are essentially BEP20 tokens. You will get these tokens when you add liquidity to the pool. Similarly, you can get your liquidity back by depositing pool tokens back to the protocol.

Let’s see how to get liquidity and other stats for the CoinSwap pool.

CoinSwap Pool’s Liquidity
-------------------------

Use our balance APIs to get the liquidity of any CoinSwap pool. For example, check the following example.

Additionally, you can get trade volume and count for a given pool using DEX APIs.

All Trades of a CoinSwap Pool
-----------------------------

By providing a smart contract address, you can get trades for any given pool token. For example, we will get the latest trades related to [the LINK-WBNB](https://explorer.bitquery.io/bsc/token/0x651d5c7b496eca99278d78518c6b46df5fd1623f/dex_trades) pool on the CoinSwap exchange in the query below.

Getting Pool’s Mint Events
--------------------------

You can use our `SmartContractEvent` API to get data for any smart contract event. For example, whenever someone adds liquidity to a pool, the contract emits a `Mint` event. Similarly, you can use `Burn` events to get data whenever liquidity is removed from the pool.

Trades for a specific token on the CoinSwap DEX
-----------------------------------------------

To get all the trades for a specific token (ex- [WBNB](https://explorer.bitquery.io/bsc/token/0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c/token_dex_trades)) on the CoinSwap DEX; you need to pass that token’s smart contract address as `baseCurrency` in the API. For example, check the following query.

Getting all CoinSwap Pools for a Specific Currency
--------------------------------------------------

let’s say if you want to get all the Pair tokens on CoinSwap for a given currency. Then use the following query.

Conclusion
----------

DEX space is growing faster than ever, and more transaction-efficient blockchains will push this growth to new heights. Another reason for this growth is DEX-related tooling. There are multiple projects such as [Poocoin](https://poocoin.app/), [Bogtools](https://bogtools.io/) that provide a better user experience to traders; this is attracting many new users into the ecosystem.

Many of these DEX-related tools use our APIs and because of our CoinSwap integration, now they can integrate it with their exchange pretty easily.

If you own a DeFi protocol and want us to integrate it with our APIs, please reach out to us on [Telegram](https://t.me/Bloxy_info).

Join our [Telegram](https://t.me/Bloxy_info) if you have any questions or looking to analyze DEX protocols and building DEX-specific tools.

**Also, Read**
--------------

*   [PancakeSwap — Querying DEXs](https://bitquery.io/blog/pancake-swap-dex-apis)
*   [Price Index for DEX Tokens](https://bitquery.io/blog/dex-price-index)
*   [Querying Binance Smart Chain (BSC)](https://bitquery.io/blog/binance-smart-chain-api)
*   [Ethereum DEX GraphQL APIs](https://bitquery.io/blog/ethereum-dex-graphql-api) with Examples
*   [Offline Dashboards](https://bitquery.io/blog/offline-dashboards) | Client only Blockchain data visualization and tools
*   [Analyzing Decentralized Exchange using Bitquery Blockchain Explorer](https://bitquery.io/blog/dex-blockchain-explorer)
*   [Querying Conflux blockchain using GraphQL APIs](https://bitquery.io/blog/conflux-blockchain-api)
*   [How to use GraphQL Alias and Aggregation?](https://bitquery.io/blog/graphql-alias-and-aggregation)
*   [How to use GraphQL with Python, Javascript, and Ruby](https://bitquery.io/blog/graphql-with-python-javascript-and-ruby)

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

*   **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

*   **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

*   **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Non-fungible Token APIs (NFT APIs)]]></title>
            <link>https://bitquery.io/blog/nft-apis</link>
            <guid>https://bitquery.io/blog/nft-apis</guid>
            <pubDate>Thu, 11 Mar 2021 05:35:07 GMT</pubDate>
            <description><![CDATA[
From King of Leon [launching their music album](https://www.rollingstone.com/pro/news/kings-of-leon-when-you-see-yourself-album-nft-crypto-1135192/) to [Grimes and Lindsay lohan](https://slate.com/technology/2021/03/nft-non-fungible-tokens-grimes-mark-cuban-lindsay-lohan-explained.html) memeing herself on the blockchain, NFTs are making real buzz now. However, we think there is a huge gap when it comes to NFT analytics and building tools to integrate NFT in the broader ecosystem. This article will show you how to access and analyze NFT related data using [Bitquery APIs](https://graphql.bitquery.io/).

**Note:** We will take [CryptoKitties](https://www.cryptokitties.co/) as an example and analyze its [CK token](https://explorer.bitquery.io/ethereum/token/0x06012c8cf97bead5deae237070f9587f8e7a266d) (`[0x06012c8cf97bead5deae237070f9587f8e7a266d](https://explorer.bitquery.io/ethereum/token/0x06012c8cf97bead5deae237070f9587f8e7a266d)`), which is an ERC721 (non-fungible) token standard. Here 1CK token represents 1 kitty on the blockchain. Also, check [**here**](https://bloxy.info/token_holders/0x06012c8cf97bead5deae237070f9587f8e7a266d) and [**here**](https://stat.bloxy.info/superset/dashboard/cryptokitties/?standalone=true) to see what analytics can be built using our NFT APIs.

Basic NFT Metrics
-----------------

Let’s get some basic metrics of [CK token](https://explorer.bitquery.io/ethereum/token/0x06012c8cf97bead5deae237070f9587f8e7a266d). For example, how many CK tokens (cryptokitties) exist and transfers, senders, and receivers’ information.

NFT Transfers
-------------

Now let’s look at the [CK transfers](https://explorer.bitquery.io/ethereum/token/0x06012c8cf97bead5deae237070f9587f8e7a266d/transfers); this will also help us understand Cryptokitties activity on-chain and its popularity.

The above query giving the Cryptokitties’ total transfer on a month-by-month basis; you can see the query result in the visualization below.

As you can see Cryptokitties popularity declined significantly over time.

![Transfers](/blog/nft-apis/nft_api1.png)

#### Token Transfers By Date

![Transfers](/blog/nft-apis/nft_api2.png)

NFT Senders
-----------

Let’s dig into [people sending Cryptokitties](https://explorer.bitquery.io/ethereum/token/0x06012c8cf97bead5deae237070f9587f8e7a266d/senders); as you can see, CK unique senders declined over time, and this year on average, ~650 people sent cryptokitties every month.



#### Unique Senders By Time



You can also check the addresses which sent most of Cryptokitties. Use the following query.

Similarly, you can also check top [CryptoKitties receivers](https://explorer.bitquery.io/ethereum/token/0x06012c8cf97bead5deae237070f9587f8e7a266d/receivers) using the following query.

```graphql
{
  ethereum {
    transfers(currency: {is: "0x06012c8cf97bead5deae237070f9587f8e7a266d"}, 
      height: {gt: 0}, amount: {gt: 0}, options: {desc: "amount", limit: 10, offset: 0}) {
      sender {
        address
        annotation
      }
      currency {
        symbol
      }
      amount
      count
      receiver_count: count(uniq: receivers)
      max_amount: maximum(of: amount, get: amount)
      max_date: maximum(of: date)
    }
  }
}
```

NFT Smart Contract Stats
------------------------

Using our APIs, you can get smart contract properties and stats for any NFT smart contract. For example, in the case of Cryptokitties, there were more than 10.3 million [smart contract calls](https://explorer.bitquery.io/ethereum/token/0x06012c8cf97bead5deae237070f9587f8e7a266d/smart_contract) on Cryptokitties’ contracts, in which ~4.3 million internal and ~6 million calls are external. Besides, Cryptokitties Smart contracts processed more than 7 million transactions by 90,742 unique users. At the time of writing this article Total supply of CK token is 1,996,611.

You can also get historical analytics using our APIs; for example, the following image shows the unique smart contracts callers overtime.

![Transfers](/blog/nft-apis/nft_api4.png)

#### Unique Callers By Date
![Transfers](/blog/nft-apis/nft_api3.png)

NFT Smart Contract Methods
--------------------------

NFT’s are created through smart contracts. Using our APIs, you can understand what smart contract methods are getting called and their analytics. For example, check [Cryptokitties smart contract methods](https://explorer.bitquery.io/ethereum/token/0x06012c8cf97bead5deae237070f9587f8e7a266d/methods). Using this data, you can learn what type of activity is most famous for a specific NFT project. For example, in the case of more than [createSaleAuction](https://explorer.bitquery.io/ethereum/token/0x06012c8cf97bead5deae237070f9587f8e7a266d/methods) method was called more than 1million times. This shows Cryptokitties auction feature is popular among its users.

Similarly, you can also get [Cryptokitties smart contract events](https://explorer.bitquery.io/ethereum/token/0x06012c8cf97bead5deae237070f9587f8e7a266d/events) using our APIs.

#### Distribution of Calls Count by Methods

![Transfers](/blog/nft-apis/nft_api4.png)





NFT Transactions
----------------

Using our APIs, you can get [transactions for any NFT asset](https://explorer.bitquery.io/ethereum/token/0x06012c8cf97bead5deae237070f9587f8e7a266d/transactions) on Ethereum and other blockchains. You can also learn about the addresses which are spending most Gas fee on a specific NFT. This can be helpful for a marketing campaign targeting top NFT users of your competitors.

For example, the following are the top Gas spender addresses for Cryptokitties.

![Transfers](/blog/nft-apis/nft_api6.png)


NFT Trades on DEXs
------------------

0x DEX protocol allows native [on-chain NFT trades](https://explorer.bitquery.io/ethereum/token/0x06012c8cf97bead5deae237070f9587f8e7a266d/token_dex_trades); however, as you can see in the following image, there is not much trade activity for CK token.

![Transfers](/blog/nft-apis/nft_api5.png)

#### Trades by time


If you want to learn more about NFT DEX trades, you can get the CK DEX trades using the following query. Besides, check more NFT DEX trade data on our [blockchain explorer](https://explorer.bitquery.io/ethereum/token/0x06012c8cf97bead5deae237070f9587f8e7a266d/token_dex_trades).

```

{
  ethereum {
    dexTrades(options: {desc: ["block.height", "tradeIndex"], limit: 10, offset: 0}, baseCurrency: {is: "0x06012c8cf97bead5deae237070f9587f8e7a266d"}) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      baseAmount
      baseCurrency {
        address
        symbol
      }
      quoteAmount
      quoteCurrency {
        address
        symbol
      }
      transaction {
        hash
      }
    }
  }
}
```

Conclusion
----------

We believe a lot of use cases of NFT in different sectors, especially in the Gaming industry. However, to integrate into the existing business and projects, we need better data access support, which Bitquery solves through simple GraphQL APIs. If you are building any NFT related project, talk to us on our [Telegram channel](https://t.me/Bloxy_info).

**Also Read:**

*   [Price Index for DEX Tokens](https://bitquery.io/blog/dex-price-index)

*   [Bitcoin Analysis: Track bitcoin transactions and address](https://bitquery.io/blog/bitcoin-analysis)
*   [ETH2 API — How to get Ethereum Beacon chain data?](https://bitquery.io/blog/eth2-api)
*   [Building a Blockchain Intelligence System](https://bitquery.io/blog/blockchain-intelligence-system)

*   [ETH2.0 Analytical Explorer, Widgets, and GraphQL APIs](https://bitquery.io/blog/eth2-explorer-api-widgets)
*   [Querying Binance Smart Chain (BSC)](https://bitquery.io/blog/binance-smart-chain-api)
*   [Ethereum DEX GraphQL APIs with Examples](https://bitquery.io/blog/ethereum-dex-graphql-api)
*   [The Graph vs Bitquery — Solving Blockchain Data Problems](https://bitquery.io/blog/thegraph-and-bitquery)

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

*   **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

*   **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

*   **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.
]]></description>
        </item>
        <item>
            <title><![CDATA[Price Index for DEX Tokens]]></title>
            <link>https://bitquery.io/blog/dex-price-index</link>
            <guid>https://bitquery.io/blog/dex-price-index</guid>
            <pubDate>Fri, 05 Mar 2021 05:35:07 GMT</pubDate>
            <description><![CDATA[
One of the major problems we see in DEX space is that many of the DEX assets do not have trading pairs with some popular DEX currencies such as USDT, WETH(Wrapped Ether), USDC, WBNB (Wrapped BNB), etc.

Or if they have pairs with WETH or WBNB, they do not have pairs with stablecoins such as USDT or USDC.

Besides, most of these pairs don’t have much trade data. Therefore calculating USD price against these unpopular assets is challenging, and if you are trying to create TradingView-like charts, then life becomes hell.

![](/blog/dex-price-index/giphy.gif)

## Working with DEXs

We have seen this problem faced by many businesses trying to build DEX-related tools. While our original DEX APIs provided the foundation, we've now launched a dedicated [**Crypto Price API**](https://docs.bitquery.io/docs/trading/crypto-price-api/introduction/) that eliminates most of these challenges.

## How the New Crypto Price API Solves DEX Pricing Problems

The new Crypto Price API (Price Index) and Streams addresses the core issues in DEX space:

### Problem 1: Missing Trading Pairs

- **Before**: Had to calculate prices through intermediate currencies (e.g., 1INCH → WETH → USDT)
- **Now**: Direct USD pricing for any token across all chains via cross-DEX aggregation

### Problem 2: Manual Price Calculations

- **Before**: Required complex GraphQL queries with manual OHLC aggregation
- **Now**: Pre-aggregated OHLC data with 1-second granularity, ready to use

### Problem 3: Low-Quality Trade Data

- **Before**: Had to manually filter out bad trades and outliers
- **Now**: Built-in filtering automatically excludes low-quality trades for accurate pricing

### Problem 4: Chain-Specific Limitations

- **Before**: Separate queries needed for Ethereum, Solana, Tron, etc.
- **Now**: Chain-agnostic API that aggregates data across all supported networks

## What This Means for Developers

Instead of spending hours building complex price calculation logic, you now get:

- **Real-time price streams** that update every second
- **Ready-to-use OHLC data** for TradingView charts. SDK available [here](https://www.npmjs.com/package/@bitquery/tradingview-sdk)
- **Cross-chain price discovery** without manual aggregation
- **Professional-grade data quality** with built-in filtering

This transforms DEX price discovery from a complex engineering task into a simple API call, making it possible to build sophisticated trading applications in minutes rather than weeks.

## DEX Price Index

### The New Crypto Price API

Since we first published this blog, we've launched a new [**Crypto Price API (Price Index) and Streams**](https://docs.bitquery.io/docs/trading/crypto-price-api/introduction/) that solves many of the challenges we discussed above. This new API provides:

- **Pre-aggregated OHLC data** - No more manual calculations needed
- **Real-time streaming** with 1-second granularity
- **Cross-chain aggregation** - Get unified prices across Ethereum, Solana, Tron, and more
- **Built-in filtering** - Automatically excludes low-quality trades and outliers
- **Ready-to-use metrics** - SMA, WMA, EMA, and other technical indicators included

### How It Solves the Original Problem

Instead of manually calculating prices through intermediate currencies like WETH, the new Crypto Price API gives you:

1. **Direct USD pricing** for any token across all chains
2. **Real-time OHLC data** that you can feed directly to TradingView charts
3. **Volume-weighted price calculations** that automatically handle the complexity
4. **Cross-DEX aggregation** that combines data from Uniswap, PancakeSwap, Raydium, and more

**Example : Getting Bitcoin/USD Price in Real-time**

[Run Stream](https://ide.bitquery.io/stream-bitcoin-price-on-across-chains)

```
subscription {
  Trading {
    Pairs(
      where: {
        Currency: {Id: {is: "bid:bitcoin"}},
        QuoteCurrency: {Id: {is: "usdt"}},
        Interval: {Time: {Duration: {eq: 1}}}
      }
    ) {
      Token { Symbol }
      QuoteToken { Symbol }
      Price {
        Ohlc { Open High Low Close }
        Average { Mean WeightedSimpleMoving }
      }
      Volume { Usd Base Quote }
      Interval { Time { Start Duration End } }
    }
  }
}
```

### Key Benefits:

- **No manual calculations** - OHLC data is pre-aggregated
- **Real-time streaming** - 1-second updates
- **Cross-chain data** - Combines prices from all supported networks
- **TradingView ready** - Direct integration with charting libraries
- **Kafka streams** - Available via `trading.prices` topic for high-frequency applications

We are in the process of building a DEX price index, and if you are interested in it, join our [Telegram channel](https://t.me/Bloxy_info).

You might also be interested in:

- [Comparing DEXs — Ethereum and Binance Smart Chain](https://bitquery.io/blog/ethereum-bsc-dex)
- [PancakeSwap – Querying DEXs on Binance Smart Chain using GraphQL APIs](https://bitquery.io/blog/pancake-swap-dex-apis)
- [Ethereum DEX GraphQL APIs with Examples](https://bitquery.io/blog/ethereum-dex-graphql-api)
- [Uniswap APIs: Get Pools Data, Tokens, and Create Charts](https://bitquery.io/blog/uniswap-pool-api)

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

---

_Updated in August 2025_
]]></description>
        </item>
        <item>
            <title><![CDATA[How to use GraphQL Alias and Aggregation?]]></title>
            <link>https://bitquery.io/blog/graphql-alias-and-aggregation</link>
            <guid>https://bitquery.io/blog/graphql-alias-and-aggregation</guid>
            <pubDate>Wed, 10 Feb 2021 05:35:07 GMT</pubDate>
            <description><![CDATA[
This article is a continuation of our GraphQL basics series. In this article, we will talk about how to use alias and aggregation with GraphQL queries.

## GraphQL Alias

Client-side GraphQL aliasing helps in increasing the readability of APIs and avoid confusion.

Let’s understand this with an example.

The query below provides the  [DEX trading volume](https://explorer.bitquery.io/ethereum/dex)  over the years on the  [Ethereum](https://explorer.bitquery.io/ethereum)  blockchain.

```
{
   ethereum {
    dexTrades(options: {asc: ["date.year","date.month"]}) {
      count
      tradeAmount(in: USD)
      date {
        year
        month
      }
    }
  }
}
```
When you run this query, you will get the following result.

```
{
  "data": {
    "ethereum": {
      "dexTrades": [
        {
          "count": 26025471,
          "tradeAmount": 79630600909.80501,
          "date": {
            "year": 2020
          }
        },
        {
          "count": 4839824,
          "tradeAmount": 2352564161.2578993,
          "date": {
            "year": 2019
          }
        },
        {
          "count": 6059070,
          "tradeAmount": 4742543997.574773,
          "date": {
            "year": 2018
          }
        },
```

However, following this result is easy, but the count parameter can create confusion, such as “What does this count represent?”. Let’s make it better.
```
{  
   ethereum {  
    dexTrades(options: {desc: ["date.year"]}) {  
      numberOfTrades: count  
      tradeAmount(in: USD)  
      date {  
        year  
      }  
    }  
  }  
}
```
As you can see, we have changed  `count`  to  `numberOfTrades: count` . It is now more understandable for anyone looking at API results. Additionally, you can give it any name you want.

Sometimes  **alias becomes necessary for queries to work**. For example, check out the query below.

```
{
  ethereum {
    transactions(options: {desc: "date.date", limit: 10}) {
      activeAddress: count(uniq: senders)
      date: date {
        date(format: "%Y-%m")
      }
    }
  }
  binanceSmartChain: ethereum(network: bsc) {
    transactions(options: {desc: "date.date", limit: 10}) {
      activeAddress: count(uniq: senders)
      date: date {
        date(format: "%Y-%m")
      }
    }
  }
}
```
This query is getting active addresses over the years from  [Ethereum](https://explorer.bitquery.io/ethereum)  and  [Binance smart chain](https://explorer.bitquery.io/bsc). However, if we don’t provide an alias for  `ethereum(network: bsc)`, it will throw an error. Therefore, sometimes it is necessary to use an alias to avoid name resolution problems.

**Note:**  Only in GraphQL, you have the power to use aliases in API parameters. It is possible in the Rest APIs.

There are many benefits of using aliases, for example, increasing readability, replacing exiting APIs, etc.

## GraphQL Aggregation

Aggregation is critical for performing data analytics. GraphQL technology doesn’t have any pre-build support for aggregation; it only responds to  [Types](https://graphql.org/learn/schema/). Therefore, you need to define the Types which allow aggregations for your users, and this is exactly what we did. ?

For example, check out the query below, in which we will get  `Gas`  related analytics for the Binance smart chain.

```
query {
  ethereum(network: bsc) {
    transactions(options: {desc: "date.date"},
    date: {since:"2023-06-14"}) {
      date {
        date:startOfInterval(unit: week, offset: 4)
      }
      totalGasUsed: gasValue
      totalGasUsedInUSD: gasValue (in: USD)
      gasValueAvgPerTx: gasValue(calculate: average)
      gasValueAvgPerTxInUSD: gasValue(calculate: average in:USD)
      gasPrice
      avgGasPrice: gasPrice(calculate: average)
      medGasPrice: gasPrice(calculate: median)
      maxGasPrice: gasPrice(calculate: maximum)
      Txs: count 
      Senders: count(uniq: senders)
    }
  }
}
```

In which, we are performing multiple aggregation functions such as average, median, maximum, count, etc. In addition, we are also performing aggregation on the USD value of Gas for every transaction.  `gasValue(calculate: average in:USD)`

Let’s see another example in which we will sum all the input values of Bitcoin transactions.
```
​query {
  bitcoin{
    transactions(options: {desc: "date.date"}, 
      date: {since: "2023-05-30", till: "2023-06-29"}, ) {
   txVolUSD: inputValue(calculate: sum in: USD)      
      date{date}
    }
  }
}
```

## **Aggregating with limitBy**

We recently added an option called  `limitBy`  to aggregate data for any arbitrary field used in the query. For example, let’s say we want to know,  **“what are the top addresses with most transactions daily on the Binance smart chain?**”

For this, we can use the following query.

```
query{
  ethereum(network: bsc){
    transactions(
      date: {since: "2023-06-14"}
      options: {desc: "Txs" asc: "date.date"
      limitBy: {each: "date.date" limit: 10}}
    
    ){
      date{
        date
      }
      
      sender{
        address
      }
      
      gasValue
      Txs: count
    }
  }
}
```

Here we are using  `limitBy`  option to perform our aggregation on every date. You can also perform this for any timeframe, such as hour, week, minute, etc.

`limitBy`  option takes 3 parameters.

-   **each** — each is the field name. The query will return the first “limit” rows for each distinct combination of “each”
-   **limit** — number of records
-   **offset** — number of records to skip, starts with 0

As you can see, you can perform different types of aggregation functions using our GraphQL APIs. If you have any questions please, join our [Telegram group](https://t.me/Bloxy_info) and let us know.

You might also be interested in:

-   [Offline Dashboards | Client only Blockchain data visualization and tools](https://bitquery.io/blog/offline-dashboards)
-   [Ethereum DEX GraphQL APIs with Examples](https://bitquery.io/blog/ethereum-dex-graphql-api)
-   [How to get newly created Ethereum Tokens?](https://bitquery.io/blog/newly-created-ethereum-token)
-   [How to investigate an Ethereum address?](https://bitquery.io/blog/investigate-ethereum-address)
-   [API to get Ethereum Smart Contract Events](https://bitquery.io/blog/ethereum-events-api)
-   [Simple APIs to get Latest Uniswap Pair Listing](https://bitquery.io/blog/uniswap-pool-api)
-   [ETH2.0 Analytical Explorer, Widgets, and GraphQL APIs](https://bitquery.io/blog/eth2-explorer-api-widgets)
-   [The Graph vs Bitquery – Solving Blockchain Data Problems](https://bitquery.io/blog/thegraph-and-bitquery)
-   [Analyzing Decentralized Exchange using Bitquery Blockchain Explorer](https://bitquery.io/blog/dex-blockchain-explorer)

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath)  is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

-   **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog)  APIs**  provide  [blockchain money flow analysis](https://bitquery.io/products/coinpath)  for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read  [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

-   **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)**  provides index information related to all major cryptocurrencies, coins, and tokens.

-   **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)**  provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our  [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Forget SQL  –  Introducing GraphQL charting to visualize blockchain data]]></title>
            <link>https://bitquery.io/blog/graphql-charts</link>
            <guid>https://bitquery.io/blog/graphql-charts</guid>
            <pubDate>Wed, 10 Feb 2021 05:35:07 GMT</pubDate>
            <description><![CDATA[
Blockchains are now a crucial part of our digital infrastructure. They are the place to create new financial assets, companies, and communities. However, to understand this new financial infrastructure we need [blockchain data analytics](https://bitquery.io/blog/blockchain-intelligence-system).

Analysts and blockchain enthusiasts are now analyzing blockchain data and visualizing it to understand DApp and DeFi applications, but it’s not that straight forward.

Many companies in the market provide SQL-based query platforms that are difficult to start with because SQL is not easy. You need to join multiple tables, and understanding schema scattered across hundreds of tables is also challenging.

Sometimes these queries become so big; it’s difficult to understand, track and change them.

We already have GraphQL APIs, which are easy to understand and covers more than 30 blockchains. And you can try these APIs through our [Bitquery IDE](https://graphql.bitquery.io/).

Our [IDE](https://graphql.bitquery.io/) is helpful for our users as they can create, save and share their queries quickly. Today, we have added another feature (in Beta), which will allow our users to visualize our API data on our IDE directly.

Introducing GraphQL Charting
----------------------------

Now you can write GraphQL queries and use charts to visualize the query result in our IDE directly. For example, check out [this query](https://graphql.bitquery.io/ide/7goXQCiPHc), which is pulling Ethereum transactions since its inception and showing it in the charts.

Visualize more than 30 blockchains
----------------------------------

Currently, we support more than [30 blockchains](https://bloxy.info/status) (Mainnet and testnets). With our charting feature, you can now visualize data for all of them. This will help many blockchain ecosystems that lack sophisticated tooling support like Ethereum or Bitcoin. For example, check [this query](https://graphql.bitquery.io/ide/QUKRpLfXXd), which helps visualize active addresses on the [Conflux blockchain](https://bitquery.io/blog/conflux-blockchain-analytics).

You can check more graphs [here](https://graphql.bitquery.io/ide/pLsJl5tCKi), [here](https://graphql.bitquery.io/ide/84hUl7P30s), and [here](https://graphql.bitquery.io/ide/SQjPFbH1Au).

Easy Query, Easy Charting 
--------------------------

We have build Bitquery from scratch to pursue simplicity and scalability. If you never tried our APIs, please check it out. You will find them simple and easy to understand. This is also true when we are enabling charting for our users.

Our system automatically identifies the result data set and shows you only those charts possible with that result data set. Because of this, you will know ways data can be visualized and won’t miss anything.

*   ![](/blog/graphql-charts/Screenshot-2021-02-10-at-1.58.41-PM-1-1536x751.png)
    
*   ![](/blog/graphql-charts/Screenshot-2021-02-10-at-1.59.06-PM-1536x766.png)
    
*   ![](/blog/graphql-charts/Screenshot-2021-02-10-at-2.00.18-PM-1536x747.png)
    
*   ![](/blog/graphql-charts/Screenshot-2021-02-10-at-2.01.01-PM-1536x752.png)
    
*   ![](/blog/graphql-charts/Screenshot-2021-02-10-at-1.58.19-PM-1-1536x729.png)
    

This is just a beginning; we will introduce more charts and features and make Bitquery IDE one stop solution to query blockchain data for developers and data analysts.

Our IDE and the charting library is open source; you can find them [**here**](https://github.com/bitquery).

If you are a developer and want to help us build the most powerful blockchain query data infrastructure and tooling, join us on our [Telegram channel](https://t.me/Bloxy_info).

If you have any questions or need help with your blockchain investigation, just hop on our [Telegram channel](https://t.me/Bloxy_info). Also, let us know if you are looking for blockchain data APIs.

You might also be interested in:

*   [Create your first Blockchain GraphQL query](https://bitquery.io/blog/blockchain-graphql-query)
*   [Building a Blockchain Intelligence System](https://bitquery.io/blog/blockchain-intelligence-system)
*   [Conditional Aggregation in GraphQL APIs](https://docs.bitquery.io/v1/docs/query-features/aggregation)
*   [How to use GraphQL Alias and Aggregation?](https://bitquery.io/blog/graphql-alias-and-aggregation)
*   [Offline Dashboards | Client only Blockchain data visualization and tools](https://bitquery.io/blog/offline-dashboards)
*   [Analyzing Decentralized Exchange using Bitquery Blockchain Explorer](https://bitquery.io/blog/dex-blockchain-explorer)

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

*   **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

*   **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

*   **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Bitcoin Analysis: Track Bitcoin Transactions and Address]]></title>
            <link>https://bitquery.io/blog/bitcoin-analysis</link>
            <guid>https://bitquery.io/blog/bitcoin-analysis</guid>
            <pubDate>Fri, 05 Feb 2021 05:35:07 GMT</pubDate>
            <description><![CDATA[
Have you ever tried to track bitcoin transactions or address on a standard blockchain explorer? Then you must know that It’s almost impossible to conduct a blockchain investigation or track funds using a standard blockchain.


Problem with tracking Bitcoin with Standard Blockchain explorers
----------------------------------------------------------------

Standard blockchain explorers are built for showing basic transactions related data. So when you try to trace bitcoins through them, you need to check one transaction after another and noting them in an excel sheet to understand the flow of funds.

This is a painstaking job, and there is a great chance you will miss transactions and won’t get the complete picture.

So problems with tracking bitcoins using standard blockchains are

*   Time-consuming
*   There is a great chance you will miss the transaction
*   No annotations (Identifiable addresses)

At Bitquery, we have built extensive money flow APIs, and to showcase them, we have build Graphs to trace bitcoin transactions on our blockchain explorer.

This will show you how you can track bitcoin transactions or any other cryptocurrencies using Bitquery explorer for free.

[![https://youtu.be/ZFUl-2fHgnQ](https://img.youtube.com/vi/ZFUl-2fHgnQ/0.jpg)](https://www.youtube.com/watch?v=ZFUl-2fHgnQ)

How to track bitcoin transaction?
---------------------------------

So let’s take [**this**](https://explorer.bitquery.io/bitcoin/tx/89fae5576211552b4e70f962dddf171bbfbb9d243bb9a59dd90bc1d698f9759d) random Bitcoin transaction and trace the recipient of the transaction.

> Let’s call sender **Alice** and recipient **Bob**.

To get the address of the recipient (Bob), you need to scroll down on the same page; you will see transaction Outputs.

As you know, Bitcoin has UTXOs, meaning every transaction has inputs and outputs. These inputs and outputs work like Cash. You give someone money and may or may not get changed based on the transaction amount.

Here, we use heuristics to identify which address is actually the recipient, which you can see labeled as “likely\_not\_change.”

![heuristics](/blog/bitcoin-analysis/1.png)



Money Flow Graph
----------------

Now we have the [**recipient’s (Bob) Bitcoin address**](https://explorer.bitquery.io/bitcoin/address/bc1qfqqed76qxqm2epmxlv7ywgjz8k6tk472pj7msn). Therefore, it’s time to check our first money flow Graph.

You can access them under the money flow tab on the explorer or use [**this link**](https://explorer.bitquery.io/bitcoin/address/bc1q0uvn8pg7n3zh7kgxn274757f0h0pfpac8j2nsh/graph) to jump on the page directly.

![Money Flow Tab](/blog/bitcoin-analysis/2.png)

Money Flow Tab

Once you open the tab you will see the following Graph. This Graph shows all the address which sent or received money to the Bob (recipient) at one **Hop**. You can see Alice’s (sender) address here too.

![Alice transaction to Bob](/blog/bitcoin-analysis/3.png)

Alice transaction to Bob

In one graph, you can see all the sender and recipient to the bob. Isn’t it more convenient? 

> If you left-click on any address here, it will open that address in a separate tab on our explorer.

The above graph shows all the senders and recipients to Bob at one hop; however, you can also increase the numbers of hops to check more detailed money flow for the addresses linked to Bob. This is helpful when you are trying to track a specific transaction. 

For example, if we want to know, who sent money to Alice, you just need to double click on Alice’s icon.

![Alice and Bob transactions](/blog/bitcoin-analysis/4.png)

Alice and Bob transactions

Here “Depth level” option will increase the number of hops. You can increase it in both directions. 

*   Inbound — Inbound are incoming transactions
*   Outbound — Outgoing transactions

> Hops are counted based on intermediaries’ wallet addresses involved in the money flow. N Hope will contain N-1 intermediaries. For ex- one hop is a direct transaction from one address to another. 2 hops will contain one intermediary, and so on.

These GraphQL are powered by our [Coinpath GraphQL APIs](https://bitquery.io/blog/coinpath-api-get-start)a and you can add also add them to your website as a widget, just click on the “JS” button on the bottom right corner.

Sankey
------

Recently we have added another graph to show money flow in one image. This graph is based on the [Sankey diagram](https://en.wikipedia.org/wiki/Sankey_diagram).

Let’s check the Sankey graph of Bob. For this, you need to click on the Sankey Radio button on the [**Money Flow page**](https://explorer.bitquery.io/bitcoin/address/bc1qfqqed76qxqm2epmxlv7ywgjz8k6tk472pj7msn/graph).



Once you click on the Sankey radio button, you will see the following graph.


![sankey](/blog/bitcoin-analysis/5.png)

Here you can see all incoming and outgoing transactions, and the width of the arrow is proportional to the transaction amount.

You can increase the hops to see the source and destination of funds in our image.

![heuristics](/blog/bitcoin-analysis/6.png)

      

Isn’t it better than searching addresses and following transactions on standard explorer? So next time when you are following the money on the blockchain, use our Bitquery explorer.

Currently, we support 30+ blockchains, and we provide money flow graphs for the blockchains and tokens build atop them.

To learn more on investigating a particular token, read our blog post on [investigating the Ethereum address](https://bitquery.io/blog/investigate-ethereum-address).

Above Graphs are built for public use and give you a glance at our [Coinpath APIs’ capabilities](https://bitquery.io/blog/coinpath-api-get-start). If you are looking for Coinpath APIs, please [visit this page](https://bitquery.io/products/coinpath).

If you have any questions or need help with your blockchain investigation, just hop on our [Telegram channel](https://t.me/Bloxy_info). Also, let us know if you are looking for blockchain data APIs.

You might also be interested in:

*   [Coinpath® – Blockchain Money Flow APIs](https://bitquery.io/products/coinpath)
*   [How to trace Bitcoin transactions or address?](https://bitquery.io/blog/trace-bitcoin-transaction-and-address)
*   [Conflux blockchain –  Growth Stats](https://bitquery.io/blog/conflux-blockchain-analytics)
*   [Comparing DEXs — Ethereum and Binance Smart Chain](https://bitquery.io/blog/ethereum-bsc-dex)
*   [Conditional Aggregation in GraphQL APIs](https://docs.bitquery.io/v1/docs/query-features/aggregation)
*   [Building a Blockchain Intelligence System](https://bitquery.io/blog/blockchain-intelligence-system)

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

*   **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

*   **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

*   **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Conflux blockchain –  Growth Stats]]></title>
            <link>https://bitquery.io/blog/conflux-blockchain-analytics</link>
            <guid>https://bitquery.io/blog/conflux-blockchain-analytics</guid>
            <pubDate>Fri, 29 Jan 2021 05:35:07 GMT</pubDate>
            <description><![CDATA[
It’s been almost three months since the [launch](https://medium.com/conflux-network/tethys-mainnet-is-live-cd9819a96ae3) of Conflux’s mainnet, Tethys. And, we wanted to know how the network performed in its first quarter. Therefore, in this article, we will check different on-chain metrics to understand the [Conflux](https://confluxnetwork.org/) network’s status.

Blocks and Transactions
-----------------------

In its first two months of launch, Conflux saw more than [1 million transactions/month](https://explorer.bitquery.io/conflux_tethys/transactions). The blockchain produced ~15 million blocks, in which more than 99% of blocks contained less than ten transactions.

There were 10 million blocks with 0 transactions, and the largest block had 1,006 transactions. When writing this article, users executed more than 3.1 million transactions on the Conflux network.

![](/blog/conflux-blockchain-analytics/conflux1.png)

#### Transactions By Date


The transaction volume also rose during the period, and in Jan 2021, it is crossing $40 million.

Gas spent
---------

In terms of Gas spend, the Conflux network spent only $11 in the total gas fee, which is very low compared to any other smart contract blockchain.

![](/blog/conflux-blockchain-analytics/conflux2.png)

#### Gas Spent By Date

[Docs on Github](https://github.com/bitquery/graphql/wiki)


Apply сhanges Close [GraphiQL on GitHub](https://github.com/graphql/graphiql)

Smart Contract Calls
--------------------

Smart contract calls are a good indicator that shows the usage of a smart contract blockchain. In the first three months, Conflux crossed [1.9 million smart contract calls](https://explorer.bitquery.io/conflux_tethys/calls).

A total of 77,798 users called 326 unique smart contract methods on 446 unique contracts deployed on Conflux at the time of writing this article.

Just to put things in context, Ethereum currently executes [100 million smart contract calls per month](https://explorer.bitquery.io/ethereum/calls) and has more than 37 million unique smart contracts deployed.

![](/blog/conflux-blockchain-analytics/conflux3.png)

#### Smart contract calls(including internal) by date


![](/blog/conflux-blockchain-analytics/conflux5.png)



Most active smart contract
--------------------------

[0x818f0da6ba72feababdabc33cc36300b61167fae](https://explorer.bitquery.io/conflux_tethys/smart_contract/0x818f0da6ba72feababdabc33cc36300b61167fae) is the most used smart contract with more than 424,443 smart contract calls. However, this contract only spent ~ $0.0000000178 in Gas.

Top gas spender
---------------

[cUSDT token](https://explorer.bitquery.io/conflux_tethys/token/0x8b8689c7f3014a4d86e4d1d0daaf74a47f5e0f27) smart contract is the top gas spender on the Conflux blockchain, which spent $0.16 for executing 210,421 transfers with an average of 208 cUSDT / transfer.

Total currencies
----------------

Conflux has a total of [127 different currencies](https://explorer.bitquery.io/conflux_tethys/tokens) deployed on it. In the last three months, the network saw more than 5 million transfers and 154,000 unique senders, and 116,000 receivers.

[The Conflux token (CFX)](https://explorer.bitquery.io/conflux_tethys/token/CFX), the native token of the Conflux blockchain, had ~147,000 users, executing 1.25 million transfers, totaling a $99 million transfer volume. However, in terms of transfers, [CRCL\_USDT\_symbol](https://explorer.bitquery.io/conflux_tethys/token/0x8287cb032e6e72ce5501d6148fda7148d2556064) is on the top with more than 1.3 million transfers.



#### Latest Transfers



Block Producers
---------------

We also looked into the [Conflux block producers](https://explorer.bitquery.io/conflux_tethys/miners) numbers. In the first month, the network saw more than 25,000 unique block producers. However, since then, numbers are stabilizing, and around 10,000 miners participated in the network in January.





#### Active Miners By Time



Wrapped CFX (WCFX)
------------------

Conflux already has its first decentralized exchange, [Moondex](https://moondex.io/) and several other DeFi projects are building on Conflux. That’s why [the Wrapped CFX token](https://explorer.bitquery.io/conflux_tethys/token/0x8d7df9316faa0586e175b5e6d03c6bda76e3d950/transfers) saw 136 million in transfer volume in the last three months.

**Note:** You can learn about any Conflux token’s stats on our [Bitquery explorer](https://explorer.bitquery.io/). Just search your token address.





Money Flow
----------

We have added a new money flow graph, “[Sankey](https://explorer.bitquery.io/conflux_tethys/address/0x197c95ed05478829f632be5d29598e46706d7d28/graph)” to help the community understand the source and destination of funds. This is powered by our Coinpath APIs, which we recently enabled for all tokens built atop Conflux blockchain.
           

Wrapping Up
-----------

Using our GrpahQL APIs you can [query Conflux blockchain](https://bitquery.io/blog/conflux-blockchain-api). Besides, we have several new APIs in the pipeline to help the Conflux community provide a more detailed analysis of the Conflux blockchain, Dapp, Tokens, etc.

You can access our [Conflux explorer here](https://explorer.bitquery.io/conflux_tethys) and [GraphQL APIs](https://graphql.bitquery.io/) here.

If you are here, [**please fill this form**](https://forms.gle/8QwibyqkCmzGyas68), which will help us understand how you are using the Conflux network and what type of data you are looking for Conflux blockchain.

If you have any questions please ask them on our [Telegram channel](https://t.me/Bloxy_info).

**Also Read:**

*   [](https://bitquery.io/blog/conflux-blockchain-api)[Querying Conflux blockchain using GraphQL APIs](https://bitquery.io/blog/conflux-blockchain-api)
*   [Comparing DEXs — Ethereum and Binance Smart Chain](https://bitquery.io/blog/ethereum-bsc-dex)
*   [ETH2 API — How to get Ethereum Beacon chain data?](https://bitquery.io/blog/eth2-api)
*   [Conditional Aggregation in GraphQL APIs](https://docs.bitquery.io/v1/docs/query-features/aggregation)
*   [Building a Blockchain Intelligence System](https://bitquery.io/blog/blockchain-intelligence-system)
*   [The complexity of working with blockchain data](https://bitquery.io/blog/working-with-blockchain-data)
*   [Offline Dashboards | Client only Blockchain data visualization and tools](https://bitquery.io/blog/offline-dashboards)

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

*   **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

*   **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

*   **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Comparing DEXs — Ethereum and Binance Smart Chain]]></title>
            <link>https://bitquery.io/blog/ethereum-bsc-dex</link>
            <guid>https://bitquery.io/blog/ethereum-bsc-dex</guid>
            <pubDate>Fri, 15 Jan 2021 05:35:07 GMT</pubDate>
            <description><![CDATA[
![Ethereum BSC DEX Stats](/blog/ethereum-bsc-dex/image-1-1024x353.png)

DEXs made a lot of noise in 2020; the [trade volume of Ethereum DEXs](https://explorer.bitquery.io/ethereum/dex) grew from $270 million in January to $21 billion in December. Most of this growth was driven by Uniswap, which had more than $56 billion in trade volume (cumulative) in 2020.

Meanwhile, [Binance](https://www.binance.com/) also launched its [Smart chain mainnet](https://explorer.bitquery.io/bsc) in September 2020, and we saw many DEXs getting deployed on it from the start.

In this article, we will compare [DEXs on Ethereum](https://bitquery.io/blog/dex-blockchain-explorer) and Binance Smart Chain based on multiple metrics.

Different DEX Protocols on Ethereum and Binance Smart Chain (BSC)
-----------------------------------------------------------------

We recognized [31 DEX protocols](https://explorer.bitquery.io/graphql/7wwCJHGiC6) on Ethereum and four on Binance smart chain(BSC). On Ethereum, Uniswap(V1 and v2 and their clones and similar) protocols have more than 65% of the [DEX market share](https://explorer.bitquery.io/ethereum/dex). However, on BSC, Uniswap(V1 and v2 and their clones and similar) protocols executing 99.99% of the trades. This shows that Ethereum is the main innovation ground, and successful innovations will be replicated on other chains to enjoy the chain specific benefits.

Let’s dig deeper and check out the trade stats.

DEX Trade Stats
---------------

Ethereum saw more than $132 billion in DEX trade volume since its inception. In which more than 95% came alone in 2020. More than 1.34 million users spent ~$207 million in the transaction fee (Not including trading fee) to execute 46 million trades on Ethereum.

The following chart shows the last ten months of DEX trades stats on the Ethereum blockchain.

![ethereum dex trade stats](/blog/ethereum-bsc-dex/ethereum-dex-trade-stats-1024x706.png)

On the other hand, Binance Smart Chain showed a very promising start.   
More than 121 thousand users executed ~5 million trades on BSC in the last five months, resulting in more than $2.18 billion in trading volume.

However, the main contrast is the **transaction fee**. On BSC, users executed 5 million trades and spent only $456K in transaction fees (Not trading fee). Where on Ethereum, users spend more than $207 million in transaction fees(Not trading fee) for 46 million trades.

![BSC DEX trade stats](/blog/ethereum-bsc-dex/BSC-DEX-trade-stats-1024x726.png)

Currencies on DEXs
------------------

In the last three years, Ethereum DEXs saw more than 29,700 different currencies. Where in the last five months, 729 currencies were traded on the BSC DEXs.

However, the Wrapped tokens are the [most-traded currencies](https://explorer.bitquery.io/ethereum/dex_tokens) on the DEXs. For Ethereum, it’s [WETH](https://explorer.bitquery.io/ethereum/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2/token_dex_trades), and for Binance Smart Chain, it’s [WBNB](https://explorer.bitquery.io/bsc/token/0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c/token_dex_trades).

Traders executed more than 27 million WETH trades resulting in $92 billion in the trade volume. On the other hand, on BSC, 86% of trades (~4.3 million ) included WBNB, resulting in $2 billion in trading volume.

![bsc ethereum unique tokens](/blog/ethereum-bsc-dex/bsc-ethereum-unique-tokens-1024x361.png)

Conclusion
----------

Overall, DEX space saw massive growth in 2020. However, most of this growth is driven by the Uniswap protocol, which gets forked, tweaked, and deployed on Ethereum and Binance smart chain to attract traders. This shows innovation in the DEXs space is challenging; however, it goes a long way.

We think aggregators like [Matcha](https://matcha.xyz/), [1inch.exchange](https://1inch.exchange/), which hides all the complexity, will be the gamechanger in coming years and utilize multiple chains to optimize the trading and transaction fee and profits.

Keep an eye on the DEX space; it’s evolving pretty fast.

If you are thinking of building DEX related tools, try our unified [GraphQL DEX APIs](https://bitquery.io/blog/ethereum-dex-graphql-api), which supports almost all the DEXs on Ethereum and Binance smart chain.

If you have any questions, please join our [Telegram channel](https://t.me/Bloxy_info).

Also Read:

*   [Ethereum DEX GraphQL APIs](https://bitquery.io/blog/ethereum-dex-graphql-api) with Examples
*   [PancakeSwap](https://bitquery.io/blog/pancake-swap-dex-apis) – Querying DEXs on Binance Smart Chain using GraphQL APIs
*   [Analyzing Decentralized Exchange](https://bitquery.io/blog/dex-blockchain-explorer) using Bitquery Blockchain Explorer
*   Querying [Binance Smart Chain](https://bitquery.io/blog/binance-smart-chain-api) (BSC)
*   [Uniswap APIs: Get Pools Data, Tokens,](https://bitquery.io/blog/binance-smart-chain-api) and Create Charts

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

*   **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

*   **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

*   **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[ETH2 API — Beacon chain API data?]]></title>
            <link>https://bitquery.io/blog/eth2-api</link>
            <guid>https://bitquery.io/blog/eth2-api</guid>
            <pubDate>Wed, 06 Jan 2021 05:35:07 GMT</pubDate>
            <description><![CDATA[
On Nov 24th, 2020, Ethereum 2.0 Beacon chain is launched and has more than [1.5 million ETH deposited](https://explorer.bitquery.io/eth2/deposits) in the ETH2 smart contract and with ~50K validators when writing this article.

Today, we will show how to get ETH2.0 data using our GrpahQL APIs. You can also visualize different types of ETH2 data metrics on our [ETH2 explorer](https://explorer.bitquery.io/eth2). If you want to learn about the Beacon chain’s inner workings, read [this article](https://ethos.dev/beacon-chain/).

## ETH2 Deposits API

As soon as the [ETH2.0 deposit smart contract](https://explorer.bitquery.io/ethereum/smart_contract/0x00000000219ab540356cbb839cbe05303d7705fa) launched, everyone was tracking the number of ETHs deposited in the contract. Because to launch the Beacon chain, it needs to cross the threshold of 524,288 ether. Additionally, the number of ETH staked (number of validators) directly impacts ETH2.0 inflation.

You can now use [this API](https://ide.bitquery.io/ETH2-validators-deposits) to get the amount of ETH deposited, the number of validators, and deposits.

```
query ($network: Ethereum2Network!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum2(network: $network) {
    deposits(date: {since: $from, till: $till}) {
      count
      amount
      validators: count(uniq: validators)
    }
  }
}
{
  "limit": 10,
  "offset": 0,
  "network": "eth2",
  "from": "2024-01-25",
  "till": "2024-02-01T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

```

## ETH2 deposit count and amount daily

Let’s say you want to track daily ETH deposits on Ethereum2 smart contract. For that, you use the following query.

```

query ($network: Ethereum2Network!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum2(network: $network) {
    deposits(options: {asc: "date.date"}, date: {since: $from, till: $till}) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt
      amount
    }
  }
}
{
  "limit": 10,
  "offset": 0,
  "network": "eth2",
  "from": "2024-01-25",
  "till": "2024-02-01T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

```

## Top Validators based on the deposit amount

You need to deposit 32ETH to become a validator for the Beacon chain. Use [this query](https://ide.bitquery.io/Top-Validators-ETH2) to learn about the top validators based on the deposit amount.

```
query ($network: Ethereum2Network!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum2(network: $network) {
    validatorUpdates(
      options: {desc: "validatorBalanceChange", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
    ) {
      validator {
        index
        pubkey
      }
      validatorBalanceChange
    }
  }
}
{
  "limit": 10,
  "offset": 0,
  "network": "eth2",
  "from": "2024-01-25",
  "till": "2024-02-01T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

```

## ETH2 Blocks

The Beacon Chain provides the heartbeat to Ethereum 2.0. This beat is a 12-second slot in which validators can propose blocks. 32 slots make an epoch.

![ETH2 Beacon chain](/blog/eth2-api/image.webp)

If you want to know about the count for blocks, slots, and block proposers, use the query below.

## Daily Blocks and Deposits count

To obtain a daily summary of Ethereum 2.0 blocks and deposit counts, the following query can be [run here](https://ide.bitquery.io/Eth2-blocks-count)

```
query MyQuery {
  ethereum2(network: eth2) {
    blocks(options: {limit: 10, desc: "date.date"}) {
      count
      date {
        date
      }
    }
  }
}

```

For insight into daily deposit activities, you can run the below query [here](https://ide.bitquery.io/Eth-deposits-in-Eth2-by-date)
This query provides a day-wise breakdown of deposit counts and amounts, organized in ascending order by date, which can be instrumental for analyzing deposit trends.

```
query ($network: Ethereum2Network!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum2(network: $network) {
    deposits(options: {asc: "date.date"}, date: {since: $from, till: $till}) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt
      amount
    }
  }
}
{
  "limit": 10,
  "offset": 0,
  "network": "eth2",
  "from": "2024-01-17",
  "till": "2024-01-23T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

```

## Attestations

The Beacon chain create groups of validators, called Committees. One validator in this group proposes the block, and the other validators vote on the proposed block. These votes are called attestations.

The following API gives you the number of unique attestations. You can run it [here](https://ide.bitquery.io/Validator-attestation-by-date)

```
{
  ethereum2(network: eth2) {
    attestations(
      options: {asc: "date.date"}
      date: {since: "2024-01-16", till: "2024-01-23"}
      validatorIndex: {is: 1142403}
    ) {
      date: date {
        date(format: "%Y-%m-%d")
      }
      count: countBigInt
    }
  }
}


```

## Proposer Slashing

Ethereum2.0 usage Proof of stake, where honest validators incentivized and dishonest or incompetent validators get punished, is called slashing. In Ethereum2.0 slashing occurs because

- Block producer proposes two conflicting blocks within the same slot
- Or vote more than once with conflicting checkpoint (Chain creates a checkpoint after every 32 blocks)

Bitquery's [ETH2 Proposer API](https://ide.bitquery.io/Recent-Proposer-Slashings) gives you information on recent proposer slaashing including proposer, block and related ETH1 information.

```
query MyQuery {
  ethereum2(network: eth2) {
    proposerSlashings(options: {limit: 10, desc: "block.timestamp.time"}) {
      proposer {
        index
      }
      slashing {
        bodyRoot
        epoch
      }
      eth1 {
        blockHash
        depositCount
        depositRootHash
      }
      block {
        height
        timestamp {
          time
        }
      }
    }
  }
}


```

## Attestor Slashing

Attestors also get slashed if they don’t vote honestly or show incompetency. Use [this](https://ide.bitquery.io/Recent-eth2-Attestor-Slashings) query to track recent attestor slashing events on the Becaon Chain.

```
query ($network: Ethereum2Network!, $dateFormat: String!) {
  ethereum2(network: $network) {
    attesterSlashings(options: {desc: "date.date"}, date: {after: "2024-01-29"}) {
      date: date {
        date(format: $dateFormat)
      }
      parentRoot
      eth1 {
        depositCount
        depositRootHash
        blockHash
      }
      stateRoot
      validator {
        pubkey
        index
      }
    }
  }
}

{
  "limit": 10,
  "offset": 0,
  "network": "eth2",
  "dateFormat": "%Y-%m-%d"
}

```

## Validators Information API

Using our APIs, you can get all sorts of information about one or multiple validators. For example, the following APIs give you blocks proposed by a validator number (45871).

The query below gives you the slot attestations of a validator (45871).

We showed you some examples of our ETH2 APIs; you get all sorts of different ETH2 data using our APIs. Just explore our GraphQL schema to learn the capabilities of ETH2 APIs. If you have any questions about our APIs, ask them our [Telegram group](https://t.me/Bloxy_info).

**Al**so, **Read**

- [ETH2.0 Analytical Explorer, Widgets, and GraphQL APIs](https://bitquery.io/blog/eth2-explorer-api-widgets)
- [Conditional Aggregation in GraphQL APIs](https://docs.bitquery.io/v1/docs/query-features/aggregation)
- [The Graph vs Bitquery](https://bitquery.io/blog/thegraph-and-bitquery) – Solving Blockchain Data Problems
- [Building a Blockchain Intelligence System](https://bitquery.io/blog/blockchain-intelligence-system)
- [How to use GraphQL Alias and Aggregation?](https://bitquery.io/blog/graphql-alias-and-aggregation)
- [Offline Dashboards | Client only Blockchain data visualization and tools](https://bitquery.io/blog/offline-dashboards)
- [Ethereum DEX GraphQL APIs with Examples](https://bitquery.io/blog/ethereum-dex-graphql-api)
- [How to get newly created Ethereum Tokens?](https://bitquery.io/blog/newly-created-ethereum-token)
- [How to investigate an Ethereum address?](https://bitquery.io/blog/investigate-ethereum-address)
- [API to get Ethereum Smart Contract Events](https://bitquery.io/blog/ethereum-events-api)
- [Simple APIs to get Latest Uniswap Pair Listing](https://bitquery.io/blog/uniswap-pool-api)
- [Analyzing Decentralized Exchange using Bitquery Blockchain Explorer](https://bitquery.io/blog/dex-blockchain-explorer)

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.
]]></description>
        </item>
        <item>
            <title><![CDATA[Conditional Aggregation in GraphQL APIs]]></title>
            <link>https://bitquery.io/blog/conditional-aggreagtion</link>
            <guid>https://bitquery.io/blog/conditional-aggreagtion</guid>
            <pubDate>Wed, 30 Dec 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
We have introduced three new functions to enable conditional aggregation in our APIs.

These three functions are:

- any
- maximum
- minimum

These functions allow different types of aggregation on any APIs and also provide a natural way to extract the events that were not possible [previously](/blog/ethereum-events-api).

In this article, we will show you getting events using these as well as how to use these functions in any other API.

## **Fetching Uniswap Events**

In the following example, we are getting `Swap` event for the [USDC/ETH pair](https://v2.info.uniswap.org/pair/0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc) on the Uniswap.

You can run the query below to check the results and see how Bitquery APIs are giving events in a natural way, unlike before, where you need to add some logic to parse them.

```graphql
{
  ethereum(network: ethereum) {
    arguments(
      options: { limitBy: { each: "sender", limit: 1 }, desc: "block.height" }
      smartContractAddress: { is: "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc" }
      smartContractEvent: { is: "Swap" }
    ) {
      block {
        height
      }
      transaction {
        hash
      }
      sender: any(of: argument_value, argument: { is: "sender" })
      to: any(of: argument_value, argument: { is: "to" })
      amount0In: any(of: argument_value, argument: { is: "amount0In" })
      amount0Out: any(of: argument_value, argument: { is: "amount0Out" })
      amount1In: any(of: argument_value, argument: { is: "amount1In" })
      amount1Out: any(of: argument_value, argument: { is: "amount1Out" })
    }
  }
}
```

Let’s dive deep into the above query and see what’s going on.

As you can see, we have a new function `any` that takes multiple optional arguments. (Only `of` is a mandatory argument)

- `of*` : You can use any attribute here, date, txHash, argument_value
- `get`: specific field you want (will see example below)
- Filters: In the above example, it is `argument`

For example, the following line means, give me any argument’s value where the argument is `amount0In` .

```
amount0In: any(of: argument_value, argument: {is: "amount0In"})
```

Also notice, we were using `limitBy` clause for limiting our results based on the argument name. You can use any argument name to limit your results.

Now, let’s say you want the maximum value of a particular argument by comparing all events. You can do something like the following.

```graphql
{
  ethereum(network: ethereum) {
    arguments(
      options: { limit: 10 }
      smartContractAddress: { is: "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc" }
      smartContractEvent: { is: "Swap" }
    ) {
      amount1Out: maximum(of: argument_value, argument: { is: "amount1Out" })
    }
  }
}
```

Focus on the following line, in which we are getting the maximum of the argument’s value where the argument is `amount1Out`.

```
amount1Out: maximum(of: argument_value, argument: {is: "amount1Out"})
```

Let’s say you want to know who was the caller for this transaction or when this transaction was executed. You can replace the above line with the following.

**Getting the Caller for the tx which emitted event with max amount1Out.** ?

```
amount1Out: maximum(of: argument_value, get: caller,
argument: {is: "amount1Out"})
```

**Getting the date for the tx which emitted event with max amount1Out.** ?

```graphql
amount1Out: maximum(of: argument_value, get: date,
argument: {is: "amount1Out"})
```

## **Digging into a particular address**

Now let’s say you want to know the maximum `amount1Out` for a particular address. You can use `txFrom` attributes in the filter or in the `maximum` function.

### **txFrom in maximum function**

```graphql
{
  ethereum(network: ethereum) {
    arguments(
      options: { limit: 10 }
      smartContractAddress: { is: "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc" }
      smartContractEvent: { is: "Swap" }
    ) {
      amount1Out: maximum(
        of: argument_value
        txFrom: { is: "0x514950ab8697f4142ea6ac0bd6c60e06cbb0a009" }
        argument: { is: "amount1Out" }
      )
    }
  }
}
```

### **txFrom in the Filters**

```graphql
{
  ethereum(network: ethereum) {
    arguments(
      options: { limit: 10 }
      txFrom: { is: "0x514950ab8697f4142ea6ac0bd6c60e06cbb0a009" }
      smartContractAddress: { is: "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc" }
      smartContractEvent: { is: "Swap" }
    ) {
      amount1Out: maximum(of: argument_value, argument: { is: "amount1Out" })
    }
  }
}
```

## **Using conditional aggregation in DEX APIs**

Let’s say you want to know the details of Uniswap trade with the maximum buy amount. Here is how you can use the maximum function to get that.

```graphql
{
  ethereum {
    dexTrades(exchangeName: { is: "Uniswap" }) {
      buyamount: maximum(of: buy_amount)
      maker: maximum(of: buy_amount, get: maker)
      taker: maximum(of: buy_amount, get: taker)
      txHash: maximum(of: buy_amount, get: tx_hash)
    }
  }
}
```

## **Transaction APIs**

Let’s say you want to know the biggest transaction done by an address. You can get the using our transaction API and `maximum` function.

```graphql
{
  ethereum {
    transactions(
      txSender: { is: "0x2c82E14352e98c931852D9BB5f0760E36942CC3c" }
    ) {
      amount: maximum(of: amount)
      currency {
        symbol
      }
    }
  }
}
```

If you dig into our schema, you will see that `any`, `maximum` and `minimum` function supports many different attributes and can be used with different types of APIs such as smart contract, transaction, caller, event, etc.

You can use `minimum` function similar to the `maximum` function.

In the coming months, we will be adding more functions to make it easier to work with Blockchain data. These functions are an essential part of our next big update **Flexigraph**, which will allow anyone to build their own schema on our schema and customize it based on your application context.

You might also be interested in:

- [Building a Blockchain Intelligence System](/blog/blockchain-intelligence-system?utm_source=blog)
- [How to use GraphQL Alias and Aggregation?](/blog/graphql-alias-and-aggregation?utm_source=blog)
- [Offline Dashboards | Client only Blockchain data visualization and tools](/blog/offline-dashboards?utm_source=blog)
- [Ethereum DEX GraphQL APIs with Examples](/blog/ethereum-dex-graphql-api?utm_source=blog)
- [How to get newly created Ethereum Tokens?](/blog/newly-created-Ethereum-token?utm_source=blog)
- [How to investigate an Ethereum address?](/blog/investigate-ethereum-address?utm_source=blog)
- [API to get Ethereum Smart Contract Events](/blog/ethereum-events-api?utm_source=blog)
- [Simple APIs to get Latest Uniswap Pair Listing](/blog/uniswap-pool-api?utm_source=blog)
- [ETH2.0 Analytical Explorer, Widgets, and GraphQL APIs](/blog/eth2-explorer-api-widgets?utm_source=blog)
- [The Graph vs Bitquery – Solving Blockchain Data Problems](/blog/thegraph-and-bitquery?utm_source=blog)
- [Analyzing Decentralized Exchange using Bitquery Blockchain Explorer](/blog/dex-blockchain-explorer?utm_source=blog)

## **About Bitquery**

[**Bitquery**](https://bitquery.io/?utm_source=blog&utm_medium=about_coinpath "https://bitquery.io/?source=blog&utm_medium=about_coinpath") is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

-   **APIs** - [Explore API](https://ide.bitquery.io/streaming "https://ide.bitquery.io/streaming"): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

-   **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=about "https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=about"): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

-   **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/data-on-demand?utm_source=blog&utm_medium=about "https://bitquery.io/products/data-on-demand?utm_source=blog&utm_medium=about"): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

-   **Explorer** - [Try Explorer](http://explorer.bitquery.io/ "http://explorer.bitquery.io"): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info "https://t.me/Bloxy_info"). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.]]></description>
        </item>
        <item>
            <title><![CDATA[PancakeSwap API – Real-Time Trades, Volume, Liquidity & Pools]]></title>
            <link>https://bitquery.io/blog/pancake-swap-dex-apis</link>
            <guid>https://bitquery.io/blog/pancake-swap-dex-apis</guid>
            <pubDate>Sun, 20 Dec 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
With more than [$2.15B in Trading volume in PancakeSwap V3](https://dexrabbit.com/bsc/dex_market/pancake_swap_v3), PancakeSwap is one of the most active DEXs, running across BSC (PancakeSwap Infinity), Ethereum, and Base .
Below are up-to-date Bitquery GraphQL APIs and subscriptions you can use to pull trades, volume, liquidity signals, and pool activity in real time or historically—no node or custom ETL needed.

> To call these APIs outside the Bitquery IDE, create an API token first: [How to generate Bitquery API token ➤](https://docs.bitquery.io/docs/authorisation/how-to-generate/).

## PancakeSwap V3 on Ethereum (EVM)

**Latest trades** — [Run in IDE](https://ide.bitquery.io/Latest-Trades-on-PancakeSwap-V3-ETH)  
Live trades on PancakeSwap V3 (Ethereum). Switch `network` to `bsc` to query BSC markets.

```
query LatestTrades {
  EVM(network: eth) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Time}
      limit: {count: 50}
      where: {
        TransactionStatus: {Success: true}
        Trade: {Dex: {ProtocolName: {is: "pancake_swap_v3"}}}
        Block: {Time: {since: "2025-06-17T09:50:13Z"}}
      }
    ) {
      Block { Time }
      Transaction { Hash }
      Trade {
        Dex { OwnerAddress ProtocolFamily ProtocolName }
        AmountInUSD
        Price
        Amount
        Side {
          Type
          Currency { Symbol SmartContract Name }
          AmountInUSD
          Amount
        }
        Currency { Symbol SmartContract Name }
      }
    }
  }
}
```

**Top traded pairs on ETH** — [Run in IDE](https://ide.bitquery.io/Top-token-pairs-on-PancakeSwap-v3)  
Rank pairs by USD volume and fetch recent prices.

```
query pairs($network: evm_network, $market: String!, $eth: String!, $usdc: String!, $usdt: String!, $weth: String!) {
  EVM(network: $network) {
    DEXTradeByTokens(
      where: {
        TransactionStatus: {Success: true}
        Block: {Time: {since: "2025-06-17T09:53:37Z"}}
        Trade: {
          Success: true
          Dex: {ProtocolName: {is: $market}}
        }
        any: [
          {Trade: {Side: {Currency: {SmartContract: {is: $eth}}}}}
          {Trade: {Side: {Currency: {SmartContract: {is: $usdt}}}, Currency: {SmartContract: {notIn: [$eth]}}}}
          {Trade: {Side: {Currency: {SmartContract: {is: $usdc}}}, Currency: {SmartContract: {notIn: [$eth, $usdt]}}}}
          {Trade: {Side: {Currency: {SmartContract: {is: $weth}}}, Currency: {SmartContract: {notIn: [$eth, $usdc, $usdt]}}}}
          {Trade: {Side: {Currency: {SmartContract: {notIn: [$usdc, $usdt, $weth, $eth]}}}, Currency: {SmartContract: {notIn: [$usdc, $usdt, $weth, $eth]}}}}
        ]
      }
      orderBy: {descendingByField: "usd"}
      limit: {count: 70}
    ) {
      Block { Time(maximum: Block_Time, selectWhere: {after: "2025-06-18T08:53:37Z"}) }
      Trade {
        Currency { Symbol Name SmartContract ProtocolName }
        Side { Currency { Symbol Name SmartContract ProtocolName } }
        price_last: PriceInUSD(maximum: Block_Number)
        price_10min_ago: PriceInUSD(maximum: Block_Number, if: {Block: {Time: {before: "2025-06-18T09:43:37Z"}}})
        price_1h_ago: PriceInUSD(maximum: Block_Number, if: {Block: {Time: {before: "2025-06-18T08:53:37Z"}}})
        price_3h_ago: PriceInUSD(maximum: Block_Number, if: {Block: {Time: {before: "2025-06-18T06:53:37Z"}}})
      }
      dexes: uniq(of: Trade_Dex_OwnerAddress)
      amount: sum(of: Trade_Side_Amount)
      usd: sum(of: Trade_Side_AmountInUSD)
      sellers: uniq(of: Trade_Seller)
      buyers: uniq(of: Trade_Buyer)
      count(selectWhere: {ge: "100"})
    }
  }
}
```

**Top traders for a token** — [Run in IDE](https://ide.bitquery.io/Top-Traders-of-a-token-on-PancakeSwap-on-ETH)  
Find the biggest traders for any token on PancakeSwap V3 (example shows USDC on ETH).

```
query topTraders {
  EVM(network: eth) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "volumeUsd"}
      limit: {count: 100}
      where: {
        Trade: {
          Currency: {SmartContract: {is: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}}
          Dex: {ProtocolName: {is:"pancake_swap_v3"}}
        }
      }
    ) {
      Trade { Buyer }
      bought: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: buy}}}})
      sold: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: sell}}}})
      volume: sum(of: Trade_Amount)
      volumeUsd: sum(of: Trade_Side_AmountInUSD)
    }
  }
}
```

## PancakeSwap Infinity on Base

**Subscribe to latest trades** — [Run in IDE](https://ide.bitquery.io/pancakeswap-infinity-trades)

```
query MyQuery {
  EVM(dataset: realtime, network: base) {
    DEXTrades(
      where: {Trade: {Dex: {ProtocolName: {is: "pancakeswap_infinity"}}}}
      limit: {count: 10}
      orderBy: {descending: Block_Time}
    ) {
      Transaction { From To }
      Trade {
        Dex { ProtocolName SmartContract }
        Buy { Currency { Name } Price Amount }
        Sell { Amount Currency { Name } Price }
      }
      Block { Time }
    }
  }
}
```

**Latest price for a token** — [Run in IDE](https://ide.bitquery.io/Get-Latest-Price-of-a-token-on-PancakeSwap-Infinity)

```
query MyQuery {
  EVM(dataset: realtime, network: base) {
    DEXTradeByTokens(
      where: {
        Trade: {
          Currency: {SmartContract: {is: "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf"}}
          Dex: {ProtocolName: {is: "pancakeswap_infinity"}}
        }
      }
      limit: {count: 10}
      orderBy: {descending: Block_Time}
    ) {
      Block { Time }
      Trade {
        Price PriceInUSD Amount AmountInUSD
        Currency { Name Symbol SmartContract }
        Dex { ProtocolName SmartContract }
        Side {
          Amount AmountInUSD
          Currency { Name Symbol SmartContract }
        }
      }
    }
  }
}
```

**Top traders for a token** — [Run in IDE](https://ide.bitquery.io/top-traders-of-a-token-on-pancakeswap)

```
query topTraders($network: evm_network, $token: String) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "volumeUsd"}
      limit: {count: 100}
      where: {
        Trade: {
          Currency: {SmartContract: {is: $token}}
          Dex: {ProtocolName: {is: "pancakeswap_infinity"}}
        }
      }
    ) {
      Trade {
        Dex { OwnerAddress ProtocolFamily ProtocolName }
        Buyer
      }
      bought: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: buy}}}})
      sold: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: sell}}}})
      volume: sum(of: Trade_Amount)
      volumeUsd: sum(of: Trade_Side_AmountInUSD)
    }
  }
}
```

**OHLC (price candles)** — [Run in IDE](https://ide.bitquery.io/OHLC-on-BASE-pancakeswap-infinity)

```
{
  EVM(network: base, dataset: realtime) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "Block_testfield"}
      where: {
        Trade: {
          Currency: {SmartContract: {is: "0x22af33fe49fd1fa80c7149773dde5890d3c76f3b"}}
          Side: {Currency: {SmartContract: {is: "0x4200000000000000000000000000000000000006"}}, Type: {is: buy}}
          PriceAsymmetry: {lt: 0.1}
          Dex: {ProtocolName: {is: "pancakeswap_infinity"}}
        }
      }
      limit: {count: 10}
    ) {
      Block { testfield: Time(interval: {in: hours, count: 1}) }
      volume: sum(of: Trade_Amount)
      Trade {
        high: Price(maximum: Trade_Price)
        low: Price(minimum: Trade_Price)
        open: Price(minimum: Block_Number)
        close: Price(maximum: Block_Number)
      }
      count
    }
  }
}
```

**Volume, buy/sell splits** — [Run in IDE](https://ide.bitquery.io/trade_volume_base_pancakeswap_infinity)

```
query MyQuery {
  EVM(network: base) {
    DEXTradeByTokens(
      where: {
        Trade: {
          Currency: {SmartContract: {is: "0x22af33fe49fd1fa80c7149773dde5890d3c76f3b"}}
          Dex: {ProtocolName: {is: "pancakeswap_infinity"}}
        }
        TransactionStatus: {Success: true}
        Block: {Time: {since: "2025-02-12T00:00:00Z"}}
      }
    ) {
      Trade { Currency { Name Symbol SmartContract Decimals } }
      traded_volume_in_usd: sum(of: Trade_Side_AmountInUSD)
      sell_volume_in_usd: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: buy}}}})
      buy_volume_in_usd: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}
```

**Top bought / sold tokens** — [Run in IDE](https://ide.bitquery.io/top-bought-tokens-on-pancakeswap_infinity)  
Swap `orderBy` between `buy` and `sell` to rank directions.

```
query timeDiagram($network: evm_network) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "buy"}
      limit: {count: 100}
      where: {Trade: {Dex: {ProtocolName: {is: "pancakeswap_infinity"}}}}
    ) {
      Trade {
        Currency { Symbol Name SmartContract }
        Dex { ProtocolName }
      }
      buy: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: buy}}}})
      sell: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}
```

**Token metadata** — [Run in IDE](https://ide.bitquery.io/get-metadata-for-base-pancakeswap-infnity-token)  
Fetch name, symbol, decimals, and protocol details.

```
query MyQuery {
  EVM(network: base, dataset: realtime) {
    DEXTradeByTokens(
      limit: {count: 1}
      orderBy: {descending: Block_Time}
      where: {
        Trade: {
          Currency: {SmartContract: {is: "0x22af33fe49fd1fa80c7149773dde5890d3c76f3b"}}
          Dex: {ProtocolName: {is: "pancakeswap_infinity"}}
        }
      }
    ) {
      Trade {
        Currency {
          Name Symbol SmartContract ProtocolName HasURI Fungible Decimals
        }
      }
    }
  }
}
```

## PancakeSwap V3 on BSC

**Latest trades** — [Run in IDE](https://ide.bitquery.io/Latest-BSC-PancakeSwap-v3-dextrades)

```
{
  EVM(dataset: realtime, network: bsc) {
    DEXTrades(
      orderBy: [
        {descending: Block_Time}
        {descending: Transaction_Index}
        {descending: Trade_Index}
      ]
      where: {
        TransactionStatus: {Success: true}
        Trade: {Dex: {OwnerAddress: {is: "0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865"}}}
      }
      limit: {count: 20}
    ) {
      Block { Time Number }
      Transaction { Hash From To Value ValueInUSD }
      Trade {
        Buy {
          Amount AmountInUSD Buyer Seller
          Currency { Decimals Name Symbol SmartContract }
          Price PriceInUSD
        }
        Sell {
          Amount AmountInUSD Buyer Seller
          Currency { Name Symbol SmartContract }
          Price PriceInUSD
        }
        Dex { ProtocolName SmartContract OwnerAddress }
      }
    }
  }
}
```

**Streaming trades (confirmed)** — [Run in IDE](https://ide.bitquery.io/Latest-BSC-PancakeSwap-v3-dextrades---Stream_2)  
Switch `network: bsc` and keep the same owner filter to get real-time trades.

```
subscription {
  EVM(network: bsc) {
    DEXTrades(
      where: {
        TransactionStatus: {Success: true}
        Trade: {Dex: {OwnerAddress: {is: "0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865"}}}
      }
    ) {
      Block { Time Number }
      Transaction { Hash From To Value ValueInUSD }
      Trade {
        Buy { Amount AmountInUSD Currency { Symbol } Price PriceInUSD }
        Sell { Amount AmountInUSD Currency { Symbol } Price PriceInUSD }
        Dex { ProtocolName SmartContract OwnerAddress }
      }
    }
  }
}
```

**Streaming mempool trades** — [Run in IDE](https://ide.bitquery.io/Mempool---Latest-BSC-PancakeSwap-v3-dextrades---Stream_1)

```
subscription {
  EVM(network: bsc, mempool: true) {
    DEXTrades(
      where: {
        TransactionStatus: {Success: true}
        Trade: {Dex: {OwnerAddress: {is: "0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865"}}}
      }
    ) {
      Block { Time Number }
      Transaction { Hash From To Value ValueInUSD }
      Trade {
        Buy { Amount AmountInUSD Currency { Symbol } Price PriceInUSD }
        Sell { Amount AmountInUSD Currency { Symbol } Price PriceInUSD }
        Dex { ProtocolName SmartContract OwnerAddress }
      }
    }
  }
}
```

**Trades for a specific token** — [Run in IDE](https://ide.bitquery.io/BSC-PancakeSwap-v3-Trades-for-a-token)

```
{
  EVM(dataset: realtime, network: bsc) {
    DEXTradeByTokens(
      limit: {count: 20}
      orderBy: [
        {descending: Block_Time}
        {descending: Transaction_Index}
        {descending: Trade_Index}
      ]
      where: {
        Trade: {
          Dex: {OwnerAddress: {is: "0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865"}}
          Currency: {SmartContract: {is: "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"}}
        }
      }
    ) {
      Block { Time Number }
      TransactionStatus { Success }
      Transaction { Hash From To }
      Trade {
        Amount AmountInUSD Price PriceInUSD Success
        Dex { ProtocolName ProtocolFamily }
        Currency { Name Symbol SmartContract }
        Side {
          Amount AmountInUSD Buyer Seller Type
          Currency { Name Symbol SmartContract }
        }
      }
    }
  }
}
```

**Top traders for a token** — [Run in IDE](https://ide.bitquery.io/top-traders-of-a-token-on-pancakeswap-bsc)

```
{
  EVM(network: bsc) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "volumeUsd"}
      limit: {count: 100}
      where: {
        Trade: {
          Currency: {SmartContract: {is: "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"}}
          Dex: {OwnerAddress: {is: "0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865"}}
        }
      }
    ) {
      Trade { Dex { OwnerAddress ProtocolFamily ProtocolName } Buyer }
      bought: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: buy}}}})
      sold: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: sell}}}})
      volume: sum(of: Trade_Amount)
      volumeUsd: sum(of: Trade_Side_AmountInUSD)
    }
  }
}
```

**Trading volume, buy volume, sell volume** — [Run in IDE](https://ide.bitquery.io/trade_volume_bsc_pancakeswap)

```
query MyQuery {
  EVM(network: bsc) {
    DEXTradeByTokens(
      where: {
        Trade: {
          Currency: {SmartContract: {is: "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"}}
          Dex: {OwnerAddress: {is: "0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865"}}
        }
        TransactionStatus: {Success: true}
        Block: {Time: {since: "2025-02-12T00:00:00Z"}}
      }
    ) {
      Trade { Currency { Name Symbol SmartContract Decimals } }
      traded_volume_in_usd: sum(of: Trade_Side_AmountInUSD)
      sell_volume_in_usd: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: buy}}}})
      buy_volume_in_usd: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}
```

**Token metadata** — [Run in IDE](https://ide.bitquery.io/get-metadata-pancakeswap)

```
query MyQuery {
  EVM(network: bsc, dataset: realtime) {
    DEXTradeByTokens(
      limit: {count: 1}
      orderBy: {descending: Block_Time}
      where: {
        Trade: {
          Currency: {SmartContract: {is: "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"}}
          Dex: {OwnerAddress: {is: "0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865"}}
        }
      }
    ) {
      Trade {
        Currency {
          Name Symbol SmartContract ProtocolName HasURI Fungible Decimals
        }
      }
    }
  }
}
```

**OHLC via Trading cube** — [Run in IDE](https://ide.bitquery.io/bsc-pancakeswap-ohlc-using-trading-api)

```
{
  Trading(dataset: realtime) {
    Pairs(
      where: {
        Price: {IsQuotedInUsd: false}
        Interval: {Time: {Duration: {eq: 1}}}
        Currency: {Id: {is: "bid:eth"}}
        QuoteCurrency: {Id: {is: "usdc"}}
        Market: {Protocol: {is: "pancake_swap_v3"}}
      }
      limit: {count: 10}
      orderBy: {descending: Interval_Time_End}
    ) {
      Token { Id Symbol Address NetworkBid Network Name }
      QuoteToken { Id Symbol Address Name NetworkBid }
      Interval { Time { Start End Duration } }
      Volume { Usd Quote Base }
      Price {
        IsQuotedInUsd
        Ohlc { Open High Low Close }
        Average { Estimate ExponentialMoving Mean SimpleMoving WeightedSimpleMoving }
      }
    }
  }
}
```

**Price change (24h / 1h / 5m)** — [Run in IDE](https://ide.bitquery.io/Percentage-price-change-for-a-pancake-swap-token)

```
query MyQuery($currency: String) {
  EVM(network: bsc) {
    DEXTradeByTokens(
      where: {
        Trade: {
          Currency: {SmartContract: {is: $currency}}
          Dex: {OwnerAddress: {is: "0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865"}}
          Success: true
        }
        Block: {Time: {since_relative: {hours_ago: 24}}}
      }
    ) {
      Trade {
        Currency { Name Symbol SmartContract }
        price_24hr: PriceInUSD(minimum: Block_Time)
        price_1hr: PriceInUSD(if: {Block: {Time: {is_relative: {hours_ago: 1}}}})
        price_5min: PriceInUSD(if: {Block: {Time: {is_relative: {minutes_ago: 1}}}})
        current: PriceInUSD
      }
      change_24hr: calculate(expression: "( $Trade_current - $Trade_price_24hr ) / $Trade_price_24hr * 100")
      change_1hr: calculate(expression: "( $Trade_current - $Trade_price_1hr ) / $Trade_price_1hr * 100")
      change_5min: calculate(expression: "( $Trade_current - $Trade_price_5min ) / $Trade_price_5min * 100")
    }
  }
}
```

**New pools created** — [Run in IDE](https://ide.bitquery.io/New-pools-created-on-PancakeSwap-v3)

```
{
  EVM(dataset: realtime, network: bsc) {
    Events(
      orderBy: [
        {descending: Block_Time}
        {descending: Transaction_Index}
        {descending: Log_Index}
      ]
      where: {
        LogHeader: {Address: {is: "0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865"}}
        Log: {Signature: {Name: {is: "PoolCreated"}}}
      }
    ) {
      Block { Time Number Hash }
      Transaction { Hash From To }
      Receipt { ContractAddress }
      Arguments { Name Value { ... on EVM_ABI_Address_Value_Arg { address } } }
    }
  }
}
```

**Liquidity add/remove events** — [Run in IDE](https://ide.bitquery.io/Stream---Liqiidity-add-for-all-tokens-on-PancakeSwap-v3)  
Filter by `Mint` (add) or `Burn` (remove) signatures.

```
subscription {
  EVM(network: bsc) {
    Events(
      orderBy: [
        {descending: Block_Time}
        {descending: Transaction_Index}
        {descending: Log_Index}
      ]
      where: {
        Log: {Signature: {Name: {is: "Mint"}}}
        Transaction: {To: {is: "0x46A15B0b27311cedF172AB29E4f4766fbE7F4364"}}
      }
    ) {
      Block { Time Number Hash }
      Transaction { Hash From To }
      LogHeader { Address Data }
      Arguments { Name Value { ... on EVM_ABI_Address_Value_Arg { address } } }
    }
  }
}
```

**Latest pool reserves for a pair** — [Run in IDE](https://ide.bitquery.io/Pool-reserves-on-Pancakeswap-v3-pool)

```
{
  EVM(dataset: combined, network: bsc) {
    BalanceUpdates(
      where: {
        Currency: {
          SmartContract: {in: ["0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82", "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"]}
        }
        BalanceUpdate: {Address: {is: "0xafb2da14056725e3ba3a30dd846b6bbbd7886c56"}}
      }
    ) {
      sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
      Currency { Name Symbol SmartContract Decimals }
    }
  }
}
```

**All pairs for a token** — [Run in IDE](https://ide.bitquery.io/All-pools-of-a-token-on-pancake-swap_2)

```
query pairDexList(
  $network: evm_network
  $base: String
  $time_10min_ago: DateTime
  $time_1h_ago: DateTime
  $time_3h_ago: DateTime
  $time_ago: DateTime
  $owner: String
) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "amount"}
      where: {
        TransactionStatus: {Success: true}
        Trade: {
          Currency: {SmartContract: {is: $base}}
          Side: {Amount: {gt: "0"}}
          Dex: {OwnerAddress: {is: $owner}}
        }
        Block: {Time: {after: $time_ago}}
      }
    ) {
      Trade {
        Currency { Name SmartContract }
        Side { Currency { Name SmartContract } }
        Dex { SmartContract }
        price_last: PriceInUSD(maximum: Block_Number)
        price_10min_ago: PriceInUSD(maximum: Block_Number, if: {Block: {Time: {before: $time_10min_ago}}})
        price_1h_ago: PriceInUSD(maximum: Block_Number, if: {Block: {Time: {before: $time_1h_ago}}})
        price_3h_ago: PriceInUSD(maximum: Block_Number, if: {Block: {Time: {before: $time_3h_ago}}})
      }
      amount: sum(of: Trade_Side_AmountInUSD)
      trades: count
    }
  }
}
```

## Build charts and dashboards quickly

All queries return structured JSON you can drop into charting libraries (TradingView, ECharts, Plotly) or pipe into streams/Kafka for low-latency analytics. Swap `network`, contract addresses, or protocol names to cover additional PancakeSwap markets across chains.
]]></description>
        </item>
        <item>
            <title><![CDATA[Building a Blockchain Intelligence System]]></title>
            <link>https://bitquery.io/blog/blockchain-intelligence-system</link>
            <guid>https://bitquery.io/blog/blockchain-intelligence-system</guid>
            <pubDate>Fri, 18 Dec 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
You must have heard about  [MicroStrategy](https://www.microstrategy.com/en)  if you are in crypto, but do you know MicroStatergy sells BI (Business intelligence) tools. Business intelligence tools used by enterprises for decades to make business decisions based on historical, current, and predictive views of business operations.

In Web2, BI tools are used by companies to understand their own data. However, in Web3, we are in a different paradigm. Unlike Web2, where companies own their data behind closed doors. In Web3, data is openly accessible to analyze, find financial opportunities & anomalies, and build intelligent products.

Even though blockchain data is openly accessible, analyzing for useful, actionable insights is still a complicated task.


## Raw data is dumb; we need intelligence

Blockchains only produce transactions and events. These transactions and events are raw data that can’t answer intelligent questions. For example, let me ask you a few questions — 

-   What is the median income of liquidity providers in the Dex market?
-   How many new loans issued on Compound or Aave, and how many of those are returning users? And what are the predictions for total loan volume in 2021?
-   What is the top destination for X token? Is it an exchange, crypto service, or a DeFi protocol?
-   How to analyze if there is any wash trading on any DEX?
-   What is the average income of liquidity providers on the Ethereum vs. Binance chain?
-   How to analyze if a specific transaction is risky and money is coming from an illegitimate source?
-   What is the average price of all Cryptokitties sold till now?
-   How many bitcoin addresses are in a profitable state since its inception?

There are so many questions that can be answered by analyzing and applying different algorithms on blockchain data. However, it’s not easy.

## Blockchains have a big data problem

Blockchain events and transactions contain data from millions of wallets, smart contracts, interacting with each other, and end-users. As technology is maturing, we see more complex smart contract structures.

However, to turn this raw data into decision making information, we need highly sophisticated data pipelines processing billions of transactions and events every day and transforming them into insights.

Data mining and grouping it with other data sets are essential to provide meaningful blockchain information. For example, to make sense of DEX trades, we need to group blockchain data with market data. Another example, in blockchain money tracing, we apply heuristic and cluster algorithms to understand the money flow and recognize different services.

All this takes a lot of processing and data management, and intelligent algorithms.

## Blockchain Intelligence and OLAP

We want to build a highly performative Blockchain intelligence system, which can compute billions of rows in seconds to answer complex blockchain data questions. This is why our technology stack is an OLAP system (Online analytical processing). But what is OLAP?

**OLAP (Online Analytical Processing)**  is the backbone for many Business Intelligence (BI) applications. It is a powerful technology for data discovery, including capabilities for limitless reporting, viewing, complex analytical calculations, and predictive “what if” scenario (budget, forecast) planning.

Unlike relational databases, OLAP tools do not store individual transaction records in two-dimensional, row-by-column format, like a worksheet. Instead, they use multidimensional database structures — known as  **_Cubes_**  in OLAP terminology — to store arrays of consolidated information.[[1]](https://olap.com/olap-definition/)

## Bitquery Architechture

Let’s understand how we built our infrastructure to enable scalable analytical processing. In the simplest form, we are using  [Clickhouse](https://clickhouse.tech/)  (An OLAP database) at our data warehouse and built a GraphQL layer on top of it, and glued them together using a library called  [Activecube](https://github.com/bitquery/activecube), which we have written from scratch and open-sourced. This library transforms GraphQL queries to Clickhouse queries.

![Bitquery architecture ](/blog/blockchain-intelligence-system//image.jpeg)

Now, Let’s dig deep and learn how our system works and its capabilities.

### Cube

We store blockchain data in cubes.  [_Cube_](https://en.wikipedia.org/wiki/OLAP_cube)  is a shorthand for  _multidimensional dataset_, given that data can have an arbitrary number of  [_dimensions_](https://en.wikipedia.org/wiki/Dimension_%28data_warehouse%29)_._ A cube is not a “cube” in the strict mathematical sense, as all the sides are not necessarily equal. To analyze more complex data, we create hypercubes using multiple cubes.

![bitquery cube](/blog/blockchain-intelligence-system//image-1.jpeg)

In our case, a typical cube contains dimensions, filters, and metrics. Let me break this down for you.

Check out the  [following GraphQL query](https://explorer.bitquery.io/graphql/gH9DfsZBDC), which provides DEX trades for USDT/WETH pair on Uniswap DEX. As you can see, it contains multiple attributes.

-   Dataset (Ethereum in this case)
-   DexTrades (Cube name)
-   Filters (Exchange name, Base currency, Quote currency, etc.)
-   Dimensions (Time interval, Base currency, Quote currency)
-   Metrics (Base amount, Traders count, Quote price, etc..)

let’s understand them one by one.

![Dextrades api](/blog/blockchain-intelligence-system//image-2.jpeg)

### Dimensions

Dimensions are defined in the GraphQL schema and have multiple attributes. And Attributes are like sub-dimensions which helps in getting specific data or performing aggregations. Attributes can be multi-level.

![Dimensions](/blog/blockchain-intelligence-system//image-3.jpeg)

**Attributes**  have  **functions**  to enable aggregation. Note, What we call  **functions**, Graphql specifications call them  **attributes**, but we add special meaning to it.

In the above example,  **day**  has function  **count**, so it’s helping in aggregating every five days. You can multiple functions enabling different functionality throughout our schema.

So as I said before,  **functions**  do not exist on Graphql specification, but we added them to make our queries programmatical, this enhances the capabilities of our queries because we provide a lot of functions and continuously add new functions to enable new functionalities. This is the way we map GraphQL with analytics and add programming capabilities to our queries.

### Metrics

Metrics look similar to Dimensions, however, they behave differently. For example, metrics are usually numerics and they calculate maximum, minimum, and other mathematic functions.

![ Metrics](/blog/blockchain-intelligence-system//image-4.jpeg)

### **Dataset and Filters**

Datasets are types of data such as Ethereum and Binance smart chain, both are Ethereum type datasets because they are similar types of blockchains. Filters help in adding scope and range to queries.

## Integrated and Embedded Blockchain intelligence

We think blockchain intelligence integrated with different systems will unlock the immense potential of blockchain applications or DApps. There are tons of potential integrations with Web2 applications that can enhance blockchain data’s value and help in decision making and improving blockchain products.

At Bitquery, we are deeply committed to building open platforms, which can be integrated or embedded in other applications. We are currently working on  [Bitquery IDE](https://graphql.bitquery.io/), a one-stop-shop for developers and analysts to work with blockchain data. We will also launch “Flexigraph” soon, which will allow anyone to create their own schema and deploy them on our infra to process data based on their need.

Check out our  [Github](https://github.com/bitquery)  and if you have any questions, let us know on our  [Telegram channel](https://t.me/Bloxy_info).

**Also Read:**

-   [A marriage of Market data with Blockchain data](https://bitquery.io/blog/market-data-with-blockchain-data)
-   [The Graph vs Bitquery](https://bitquery.io/blog/thegraph-and-bitquery)  – Solving Blockchain Data Problems
-   Eating  [blockchain data using GraphQL](https://bitquery.io/blog/blockchain-graphql)  spoon
-   Best  [Blockchain Analysis Tools](https://bitquery.io/blog/best-blockchain-analysis-tools-and-software)  and How They Work?
-   [ETH2.0 Analytical Explorer, Widgets, and GraphQL APIs](https://bitquery.io/blog/eth2-explorer-api-widgets)

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath)  is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

-   **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog)  APIs**  provide  [blockchain money flow analysis](https://bitquery.io/products/coinpath)  for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read  [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

-   **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)**  provides index information related to all major cryptocurrencies, coins, and tokens.

-   **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)**  provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our  [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Querying Conflux Blockchain using GraphQL APIs]]></title>
            <link>https://bitquery.io/blog/conflux-blockchain-api</link>
            <guid>https://bitquery.io/blog/conflux-blockchain-api</guid>
            <pubDate>Thu, 03 Dec 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
Conflux [launched](https://medium.com/conflux-network/tethys-mainnet-is-live-cd9819a96ae3) its mainnet Tethys in Oct 2020, and today we will show you how to query the [Conflux network](https://confluxnetwork.org/) using our GraphQL APIs.

The APIs in this article are just the tip of the iceberg, you can query any on-chain data for the Conflux network using our APIs. Besides, check out our [Conflux blockchain explorer](https://explorer.bitquery.io/conflux_hydra).

## **Conflux blocks**

Let’s start simple and check the daily blocks on the Conflux network. You can use the following query for this.

```graphql
{
  conflux {
    blocks(
      options: { desc: "height", asc: "address.address", limit: 10, offset: 0 }
      time: { after: "2023-10-10" }
    ) {
      timestamp {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      height
      epoch
      hash
      pivot
      transactionCount
      address: miner {
        address
        annotation
      }
    }
  }
}
```

As you can see, the Conflux network produced more than 5 million blocks in November.

## **Conflux transaction by date**

Now, let’s check the number of transactions the Conflux network processing every day.

```graphql
{
  conflux {
    transactions(
      options: {
        desc: "block.height"
        asc: "address.address"
        limit: 10
        offset: 0
      }
      time: { after: "2023-10-10" }
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
        hash
      }
      address: sender {
        address
        annotation
      }
      hash
      gasValue
      gas_value_usd: gasValue(in: USD)
    }
  }
}
```

## **Conflux blockchain token transfers in USD**

As we mentioned above, the Conflux blockchain launched just a few weeks before, so let’s check token transfers in USD

```graphql
{
  conflux {
    transfers(
      options: {
        desc: "block.height"
        asc: "currency.symbol"
        limit: 10
        offset: 0
      }
      time: { since: "2023-10-10", till: "2023-10-11" }
      amount: { gt: 0 }
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      currency {
        address
        symbol
      }
      amount
      amount_usd: amount(in: USD)
      transaction {
        hash
      }
      external
    }
  }
}
```

As you can see, the volume on the network increased multifold in December.

## **Conflux Gas spent by date**

As shown above, Conflux processed more than 1.12 million transactions in the month of November. Let’s see how much Gas (transaction fee) was used to process these transactions.

```graphql
{
  conflux {
    transactions(
      options: { asc: "date.date" }
      date: { since: "2023-10-04", till: "2023-10-11T23:59:59" }
    ) {
      date: date {
        date(format: "%Y-%m-%d")
      }
      count: countBigInt
      gasValue
    }
  }
}
```

As you can see, the total transaction fee was less than $5 for 1.12 million transactions.

## **Unique smart contracts deployed on Conflux**

Conflux is a [smart contract blockchain](https://explorer.bitquery.io/platform/smart_contract) and supports Solidity. In other words, you can write Solidity smart contracts and [deploy them](https://conflux-chain.github.io/conflux-doc/javascript-example/) on the Conflux network. Let’s see how many unique smart contracts are already deployed on the Conflux network.

```graphql
{
  conflux {
    smartContractCalls {
      count(uniq: smart_contracts)
    }
  }
}
```

## **Top Conflux tokens based on transfer count**

It’s been a month since the launch of Conflux mainnet, and there are plenty of tokens already deployed on the network. Let’s see top Conflux tokens based on the number of transfers.

```graphql
{
  conflux {
    transfers(
      options: { desc: "count", limit: 10, offset: 0 }
      time: { since: "2023-09-10", till: "2023-10-11" }
    ) {
      currency {
        address
        symbol
      }
      count(uniq: transfers)
    }
  }
}
```

## **Conflux active addresses**

Active addresses is one of the critical metrics to understand the growth and usage of any blockchain. So let’s see how to query active addresses on the Conflux network.

```graphql
{
  conflux {
    activeAddresses(
      options: { limit: 10, desc: "count" }
      date: { after: "2023-10-10" }
    ) {
      address {
        address
        annotation
      }
      count(uniq: address)
    }
  }
}
```

## **Data aggregation**

Usually, we need to aggregate different properties while analyzing any dataset. For example, when querying Conflux blockchain, we might ask questions like “What is the average or median Gas fee on the blockchain.” To get this, let me show you how to perform aggregation using our GraphQL APIs.

```graphql
{
  conflux {
    transfers(
      options: { limit: 30, desc: "date.date" }
      date: { since: "2023-09-01" }
      currency: { is: "cfx:accebz8w353x5940c1c4w0f5827f61vjv2ehk8ngv2" }
    ) {
      average: amount(calculate: average)
      median: amount(calculate: median)
      date {
        date(format: "%y-%m-%d")
      }
    }
  }
}
```

## **Conflux blockchain data and APIs**

We just showed you how to get primary on-chain data for the Conflux network. Additionally, our [GrpahQL APIs](https://graphql.bitquery.io/) have comprehensive coverage for the Conflux blockchain data, and you can build more complex APIs using [Bitquery IDE](https://graphql.bitquery.io/).

If you have any questions or building any application on the Conflux network, join our [Telegram group](https://t.me/Bloxy_info) and let us know. 



You might also be interested in:

- [How to use GraphQL Alias and Aggregation?](https://bitquery.io/blog/graphql-alias-and-aggregation)
- [Offline Dashboards | Client only Blockchain data visualization and tools](https://bitquery.io/blog/offline-dashboards)
- [Ethereum DEX GraphQL APIs with Examples](https://bitquery.io/blog/ethereum-dex-graphql-api)
- [How to get newly created Ethereum Tokens?](https://bitquery.io/blog/newly-created-ethereum-token)
- [How to investigate an Ethereum address?](https://bitquery.io/blog/investigate-ethereum-address)
- [API to get Ethereum Smart Contract Events](https://bitquery.io/blog/ethereum-events-api)
- [Simple APIs to get Latest Uniswap Pair Listing](https://bitquery.io/blog/uniswap-pool-api)
- [ETH2.0 Analytical Explorer, Widgets, and GraphQL APIs](https://bitquery.io/blog/eth2-explorer-api-widgets)
- [The Graph vs Bitquery – Solving Blockchain Data Problems](https://bitquery.io/blog/thegraph-and-bitquery)
- [Analyzing Decentralized Exchange using Bitquery Blockchain Explorer](https://bitquery.io/blog/dex-blockchain-explorer)

## **About Bitquery**

**[Bitquery](https://bitquery.io/?utm_source=blog&utm_medium=about_coinpath)** is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

- **APIs** - [Explore API](https://ide.bitquery.io/streaming): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.
- **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=about): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.
- **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/data-on-demand?utm_source=blog&utm_medium=about): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.
- **Explorer** - [Try Explorer](http://explorer.bitquery.io/): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.]]></description>
        </item>
        <item>
            <title><![CDATA[Offline Dashboards | Client only Blockchain data visualization and tools​]]></title>
            <link>https://bitquery.io/blog/offline-dashboards</link>
            <guid>https://bitquery.io/blog/offline-dashboards</guid>
            <pubDate>Tue, 24 Nov 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
Our  [Bitquery explorer](https://explorer.bitquery.io/)  is made out of widgets, meaning every data point shown on the explorer is an independent HTML, JS code that can be embedded into any website on the Internet. However, if you like to work with blockchain data and want to protect your privacy, let me show you a new way to access and visualize blockchain data.

I have created  an HTML file, which you can save locally and open to check the latest Ethereum Gas analytics (This file won’t work on iPhone). To create this file, I copy-pasted the code from  [Ethereum Gas analytics](https://explorer.bitquery.io/ethereum/gas)  widgets from the explorer.

As you can see, whenever you open the HTML file, you will get live data in seconds.

![ETH-Gas-Offline-Dashboard](/blog/offline-dashboards/ETH-Gas-Offline-Dashboard.png)


If you check the code of our HTML file, you will see it’s simple HTML and Javascript, which is showing you live charts. You can modify this file and add your own widgets and change queries to visualize different data.

This way, you collect our different widgets and create your own local dashboard. Besides, you can also use our  [GraphQL APIs](https://graphql.bitquery.io/)  and create new charts for your local dashboard. Let me explain using an example.

## Use our GraphQL APIs to create Blockchain data charts.

For example, let’s say we can create a graph showing  **Active Bitcoin addresses**. To accomplish this, first, we need to get the data.

The following GraphQL API will give us this data. You can also check this API [here](https://explorer.bitquery.io/graphql/DfCeYa2Mj3).

```
{
  bitcoin {
    inputs(options: {desc: ["month.year", "month.month"]}) {
      activeAddress: count(uniq: addresses)
      month: date {
        year
        month
      }
    }
  }
}
```


## Usecases

Using a local HTML file will protect your privacy and allow you to create beautiful and useful blockchain data visualization.

However, we think, there are a lot of use cases of Embeddable widgets. For example, you can create a portfolio template, generate reports for your users, and send them through email. These reports can be viewed with live data or downloaded as PDF.

You can also create client only blockchain data tools for different use cases such as showing  [Uniswap DEX trades](https://bitquery.io/blog/ethereum-dex-graphql-api), or latest blockchain events, etc.

Let me know what you think about our Offline Dashboards. And If you have any questions please, join our [Telegram group](https://t.me/Bloxy_info) and let us know.

You might also be interested in:

-   [Ethereum DEX GraphQL APIs with Examples](https://bitquery.io/blog/ethereum-dex-graphql-api)
-   [How to get newly created Ethereum Tokens?](https://bitquery.io/blog/newly-created-ethereum-token)
-   [How to investigate an Ethereum address?](https://bitquery.io/blog/investigate-ethereum-address)
-   [API to get Ethereum Smart Contract Events](https://bitquery.io/blog/ethereum-events-api)
-   [Simple APIs to get Latest Uniswap Pair Listing](https://bitquery.io/blog/uniswap-pool-api)
-   [ETH2.0 Analytical Explorer, Widgets, and GraphQL APIs](https://bitquery.io/blog/eth2-explorer-api-widgets)
-   [The Graph vs Bitquery – Solving Blockchain Data Problems](https://bitquery.io/blog/thegraph-and-bitquery)
-   [Analyzing Decentralized Exchange using Bitquery Blockchain Explorer](https://bitquery.io/blog/dex-blockchain-explorer)

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath)  is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

-   **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog)  APIs**  provide  [blockchain money flow analysis](https://bitquery.io/products/coinpath)  for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read  [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

-   **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)**  provides index information related to all major cryptocurrencies, coins, and tokens.

-   **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)**  provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our  [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[The Complexity of Working with Blockchain Data]]></title>
            <link>https://bitquery.io/blog/working-with-blockchain-data</link>
            <guid>https://bitquery.io/blog/working-with-blockchain-data</guid>
            <pubDate>Wed, 18 Nov 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
**Note:** In this article, **Robert** (Lead developer, XENTAVO) shares his experience of working with the blockchain data APIs and the problems he faced along the way. Robert is a Bitquery API user.

Most of our clients need customized reports measuring, for example, the current value of their tokens or the value of their portfolio combined with some key indicators. These reports rely on real-time data. For us, the best way to manage these reports is to use a Raspberry Pi device connected to a Hyperpixel 4 display. Our clients can simply place the Raspberry Pi device right on their desk, making it easy for us to collect real-time data and maintain individual reports remotely. Our developers have designed robust checks and balances system to ensure this data is accurate and reliable. We code primarily in Python.

## **Dealing with Cryptocurrency API**

When creating blockchain reports, we do need an API for every new application. In some cases, we are using up to 20 different APIs, all with different settings and from different providers.

Not all APIs are created equal. For any specific task you can likely find multiple competing APIs that use different approaches and provide varying levels of documentation and support. The selection of the API is one of the key issues leading to success or failure of any implementation.

Selecting the correct API is time-consuming, and when the wrong API is chosen, it can lead to unnecessary processing time and costs. The criteria to select the correct API is cost (cost to develop and run the API), quality (incidents, code quality and automated error handling) and output (reuse of API and performance).

## **Error Handling**

Additionally, APIs in our industry are not always reliable. There is often at least one API that is causing some sort of issue. In particular, Error 502 or 504 Gateway Errors pop up frequently.

Error codes are almost the last thing that you want to see in an API response. Generally speaking, it means one of two things: something was so wrong in your request or your handling that the API simply couldn’t parse the passed data, or the API itself has so many problems that even the most well-formed request is going to fail. In either situation, traffic comes crashing to a halt, and the troubleshooting process begins.

## **Data accuracy**

Even when there isn’t an error, an API can deliver an incorrect value. This can happen, for example, when looking at transaction hashes of rebase tokens (such as Ampleforth). If token quantities are changed without being marked by a transaction hash, the values will not add up.

For example, let’s look at the Ampleforth in the address [0x82Eaa009E9CAE43955a3EF9D1DE3bF68f5154200](https://explorer.bitquery.io/ethereum/address/0x82eaa009e9cae43955a3ef9d1de3bf68f5154200/transactions). At the time of this writing, this address has 2193.34 AMPL. However, if you analyze the individual transactions, the sum is 8326.64 AMPL. The difference is coming from the rebase of AMPL. For developers, this discrepancy makes it difficult to know when to rely on the value presented by an API.

## **Multiple providers**

It is easier to manage your APIs if they are coming from a single vendor. There is a lot of knowledge involved in selecting and managing even one API, let alone several.

Questions you will have to ask for *each* API include: Do we need an API key? Is a billing account attached to the project? Is the provided billing method valid (for example, an expired credit card)? Is there an exceeded self-imposed daily limit on the API? Does your API key have an IP address restriction? Keeping track of these details with several different API vendors can be a huge headache.

## **Bitquery API and Explorer**

The above-mentioned issues are the main reasons we started using Bitquery APIs. Bitquery offers a set of tools that make it easy to plug and play, and we know their data is reliable. We use the [Bitquery explorer](https://explorer.bitquery.io/) to plan and configure the accessing of specific data. This tool allows us to effectively test the structure and result of our calls. Once we finish configuring our script, we plug the new script into our code. This process helps us significantly reduce the development time for our applications. In terms of speed, reliability, and simplified error handling, we find the Bitquery solution unbeatable.

**Note**: This article is contributed by Roberto Rey, a Lead Developer at XENTAVO, a Bitquery API user.

You might also be interested in:

- [Building a Blockchain Intelligence System](https://bitquery.io/blog/blockchain-intelligence-system)
- [How to use GraphQL Alias and Aggregation?](https://bitquery.io/blog/graphql-alias-and-aggregation)
- [Offline Dashboards | Client only Blockchain data visualization and tools](https://bitquery.io/blog/offline-dashboards)
- [Ethereum DEX GraphQL APIs with Examples](https://bitquery.io/blog/ethereum-dex-graphql-api)
- [How to get newly created Ethereum Tokens?](https://bitquery.io/blog/newly-created-ethereum-token)
- [How to investigate an Ethereum address?](https://bitquery.io/blog/investigate-ethereum-address)
- [API to get Ethereum Smart Contract Events](https://bitquery.io/blog/ethereum-events-api)
- [Simple APIs to get Latest Uniswap Pair Listing](https://bitquery.io/blog/uniswap-pool-api)
- [ETH2.0 Analytical Explorer, Widgets, and GraphQL APIs](https://bitquery.io/blog/eth2-explorer-api-widgets)
- [The Graph vs Bitquery – Solving Blockchain Data Problems](https://bitquery.io/blog/thegraph-and-bitquery)
- [Analyzing Decentralized Exchange using Bitquery Blockchain Explorer](https://bitquery.io/blog/dex-blockchain-explorer)


## **About Bitquery**

[**Bitquery**](https://bitquery.io/?utm_source=blog&utm_medium=about_coinpath "https://bitquery.io/?source=blog&utm_medium=about_coinpath") is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

-   **APIs** - [Explore API](https://ide.bitquery.io/streaming "https://ide.bitquery.io/streaming"): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

-   **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=about "https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=about"): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

-   **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/data-on-demand?utm_source=blog&utm_medium=about "https://bitquery.io/products/data-on-demand?utm_source=blog&utm_medium=about"): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

-   **Explorer** - [Try Explorer](http://explorer.bitquery.io/ "http://explorer.bitquery.io"): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info "https://t.me/Bloxy_info"). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.
]]></description>
        </item>
        <item>
            <title><![CDATA[A marriage of Market data with Blockchain data]]></title>
            <link>https://bitquery.io/blog/market-data-with-blockchain-data</link>
            <guid>https://bitquery.io/blog/market-data-with-blockchain-data</guid>
            <pubDate>Mon, 16 Nov 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
Blockchains don’t have any outside data. It means blockchains don’t know the fiat price of any asset or token. However, fiat data makes blockchain analytics more meaningful.

For example, it is easier to understand that today’s average bitcoin fee was $1.5 rather than it was 0.00003323 BTC.

Our motto at Bitquery is “Adding meaning to Blockchain data.” Therefore providing market data with our Onchain APIs was on our road map for a long time.

Today I am happy to tell you that we have added market data to our Ethereum dataset. Therefore now you can get fiat valued in our APIs when you query Ethereum data.

Market data will be helpful for many use cases, such as USD-based DEX or token analysis.

## **How to get blockchain values in Fiat?**

Let’s also understand how you can get USD based data using our APIs.

You need to add `(in: USD)` against any value for which you want a USD amount. For example, in the following query, we are adding `(in: USD)` against the `tradeAmount` .

In addition, you can also get these values in USDT and ETH. For example: `tradeAmount(in: USDT)` or `tradeAmount(in: ETH)`.

---

Here are a few more query examples with USD data.

**Note:** Checkout our [GraphQL playground](https://graphql.bitquery.io/), we are making some improvements to make it easy to work with Blockchain data APIs. Another important thing to remember is that, you can use [GraphQL queries as API](https://bitquery.io/blog/graphql-with-python-javascript-and-ruby).

### **Top DEX trades in USD**

The following query gives you the top DEX trades based on USD value.

```graphql
{
  ethereum(network: ethereum) {
    dexTrades(
      options: { desc: ["block.height", "tradeIndex"], limit: 10, offset: 0 }
      time: { since: "2023-07-17T00:00:00", till: "2023-07-17T23:59:59" }
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      buyAmount
      buyCurrency {
        address
        symbol
      }
      buy_amount_usd: buyAmount(in: USD)
      sellAmount
      sellCurrency {
        address
        symbol
      }
      sell_amount_usd: sellAmount(in: USD)
      transaction {
        hash
      }
      PriceInUSD1: expression(get: "buy_amount_usd / buyAmount")
      PriceInUSD2: expression(get: "sell_amount_usd / buyAmount")
    }
  }
}
```

### **Top DEX trades by Gas value in USD**

The query below gives you trades with the highest Gas spent.

```graphql
query MyQuery {
  ethereum {
    dexTrades(
      date: { after: "2023-10-10" }
      options: { desc: "gasValue", limit: 10 }
    ) {
      block {
        timestamp {
          iso8601
        }
      }
      gasValue(in: USD)
      side
      taker {
        address
      }
      transaction {
        hash
      }
    }
  }
}
```

## **USD based metrics on Biquery explorer**

We also added some USD based metrics on explorer to show how market data enriches the blockchain data.

### **DEX market share**

The following image shows to DEX market share based on trade volume.

![DEX Trading Volume](/blog/market-data-with-blockchain-data/dex-trade-volume.png)

### **Ethereum miners reward in USD**

The query below shows the Ethereum miner rewards in USD.

```graphql
query MyQuery {
  ethereum {
    blocks(
      date: { after: "2023-10-10" }
      options: { desc: "timestamp.iso8601", limit: 10 }
    ) {
      timestamp {
        iso8601
      }
      reward(in: USD)
    }
  }
}
```

### **DEX traded currencies**

The following image shows the top DEX currencies based on trading volume.

![Pair Trading Volume](/blog/market-data-with-blockchain-data/trades-by-pairs.png)

We believe mixing market data with blockchain data will help many analysts looking to build custom blockchain analytics. If you have any questions please, join our [Telegram group](https://t.me/Bloxy_info) and let us know.

You might also be interested in:

- [Building a Blockchain Intelligence System](https://bitquery.io/blog/blockchain-intelligence-system)
- [How to use GraphQL Alias and Aggregation?](https://bitquery.io/blog/graphql-alias-and-aggregation)
- [Offline Dashboards | Client only Blockchain data visualization and tools](https://bitquery.io/blog/offline-dashboards)
- [Ethereum DEX GraphQL APIs with Examples](https://bitquery.io/blog/ethereum-dex-graphql-api)
- [How to get newly created Ethereum Tokens?](https://bitquery.io/blog/newly-created-ethereum-token)
- [How to investigate an Ethereum address?](https://bitquery.io/blog/investigate-ethereum-address)
- [API to get Ethereum Smart Contract Events](https://bitquery.io/blog/ethereum-events-api)
- [Simple APIs to get Latest Uniswap Pair Listing](https://bitquery.io/blog/uniswap-pool-api)
- [ETH2.0 Analytical Explorer, Widgets, and GraphQL APIs](https://bitquery.io/blog/eth2-explorer-api-widgets)
- [The Graph vs Bitquery – Solving Blockchain Data Problems](https://bitquery.io/blog/thegraph-and-bitquery)
- [Analyzing Decentralized Exchange using Bitquery Blockchain Explorer](https://bitquery.io/blog/dex-blockchain-explorer)


## **About Bitquery**

[**Bitquery**](https://bitquery.io/?utm_source=blog&utm_medium=about_coinpath "https://bitquery.io/?source=blog&utm_medium=about_coinpath") is your comprehensive toolkit designed with developers in mind, simplifying blockchain data access. Our products offer practical advantages and flexibility.

-   **APIs** - [Explore API](https://ide.bitquery.io/streaming "https://ide.bitquery.io/streaming"): Easily retrieve precise real-time and historical data for over 40 blockchains using GraphQL. Seamlessly integrate blockchain data into your applications, making data-driven decisions effortless.

-   **Coinpath®** - [Try Coinpath](https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=about "https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=about"): Streamline compliance and crypto investigations by tracing money movements across 40+ blockchains. Gain insights for efficient decision-making.

-   **Data in Cloud** - [Try Demo Bucket](https://bitquery.io/products/data-on-demand?utm_source=blog&utm_medium=about "https://bitquery.io/products/data-on-demand?utm_source=blog&utm_medium=about"): Access indexed blockchain data cost-effectively and at scale for your data pipeline. We currently support Ethereum, BSC, Solana, with more blockchains on the horizon, simplifying your data access.

-   **Explorer** - [Try Explorer](http://explorer.bitquery.io/ "http://explorer.bitquery.io"): Discover an intuitive platform for exploring data from 40+ blockchains. Visualize data, generate queries, and integrate effortlessly into your applications.

Bitquery empowers developers with straightforward blockchain data tools. If you have questions or need assistance, connect with us on our [Telegram channel](https://t.me/Bloxy_info "https://t.me/Bloxy_info"). Stay updated on the latest in cryptocurrency by subscribing to our newsletter below.
]]></description>
        </item>
        <item>
            <title><![CDATA[The Graph vs Bitquery – Solving Blockchain Data Problems]]></title>
            <link>https://bitquery.io/blog/thegraph-and-bitquery</link>
            <guid>https://bitquery.io/blog/thegraph-and-bitquery</guid>
            <pubDate>Thu, 05 Nov 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
Blockchains are “[Mirror of Erised](https://harrypotter.fandom.com/wiki/Mirror_of_Erised).” You will always find your interests in them.

Economist sees blockchains as economies. Technologist sees blockchains as platforms to build Decentralized applications. Entrepreneurs see them as a new way to monetize their products, and law enforcement agencies are looking for criminal activities in the blockchain.

Everyone is looking at blockchains in their way. However, without easy and reliable access to blockchain data, everyone is blind.


## Blockchain data problem


Blockchains emit millions of transactions and events every day. Therefore, to analyze blockchains for useful information, you need to extract, store, and index data and then provide an efficient way to access it. This creates two main problems:

- **Infrastructure cost** — Before developing an application, you need reliable access to blockchain data. For this, you need to invest in the infrastructure, which is costly and a barrier for developers and startups.
- **Actionable insights** — To drive blockchain data’s value, we need to add context. For example — Is a blockchain transaction is a standard transaction or a DEX trade. Is it normal DEX trade or an arbitrage? Meaningful blockchain data is helpful for businesses in providing actionable insights to solve real-world problems.

This article will look at similarities and differences between [The Graph](https://thegraph.com/) and [Bitquery](https://bitquery.io/).

## The Graph Overview


[The Graph](https://thegraph.com/) project is building a caching layer on top of [Ethereum](https://ethereum.org/) and [IPFS](https://ipfs.io/). Using The Graph project, anyone can create a GraphQL schema (Subgraph) and define blockchain data APIs according to their need. The Graph nodes use that schema to extract, and index that data and provide you simple GraphQL APIs to access it.

### Problem Addressed by The Graph

Developers building Decentralized applications (Dapps) have to depend on centralized servers to process and index their smart contract data for multiple reasons, such as creating APIs for third party services or providing more data to their Dapp users to enhance UX. However, this creates a risk of a single point of failure for Dapps.   

The Graph project address this problem by creating a decentralized network to access indexed smart contract data for Dapps and removing the need for centralized servers.

## Bitquery Overview

Bitquery is building a blockchain data engine, which provides simple access to data across multiple blockchains. Using [Bitquery’s GraphQL APIs](https://explorer.bitquery.io/graphql), you can access any type of blockchain data for more than 30 blockchains.

### Problem Addressed by Bitquery

Developers, analysts, businesses all need blockchain data for various reasons, such as analyzing the network, building applications, investigating crimes, etc.   
Bitquery provides unified APIs for access data across multiple blockchains to fulfill any blockchain data needs for various sectors such as Compliance, Gaming, Analytics, DEX trading, etc.

Our Unified schema allows developers to quickly scale to multiple blockchains and pull data from multiple chains in a single API.

## Common Things

### GraphQL

Both, The Graph and Bitquery use [GraphQL](https://graphql.org/) extensively and enable GraphQL APIs to provide freedom to end-users to query blockchain data flexibly. When it comes to blockchain data, read here why [GraphQL is better than Rest APIs](https://bitquery.io/blog/blockchain-graphql).

### Removing Infrastructure Cost

Both projects remove infrastructure costs for end-users and provide them with a model where they pay only for what they use.

## The Graph Architecture

The Graph embraces decentralization through an army of [Indexers and curators](https://thegraph.com/docs/introduction#how-the-graph-works).

Indexers run Graph nodes and store and index Subgraph data. And Curators help verify data integrity and signaling new useful subgraphs.

The Graph aims to become a decentralized caching layer to enable fast, secure, and verifiable access to Ethereum and IPFS data.

![the Graph architecture](/blog/thegraph-and-bitquery/the-graph-architecture.png)

## Bitquery Architecture

Bitquery embraces performance and developer experience over decentralization. Our centralized servers process more than 160 terabytes of data from 30+ blockchains.

We are focus on building tools to explore, analyze, and consume blockchain data easily for individuals and businesses.

![Bitquery architecture](/blog/thegraph-and-bitquery/bitquery-architecture.png)

## Differences between The Graph and Bitquery

There are considerable differences between The Graph and Bitquery. Let’ see some of the significant differences.

### Blockchain Support

The Graph only supports Ethereum and IPFS. However, Bitquery supports more than 30 blockchains and allows you to query any of them using GraphQL APIs.

### API Support

The Graph allows you to create your GraphQL schema(Subgraph) and deploy it on Graph nodes. Creating your schema enables developers to access any blockchain data as APIs.

Bitquery follows the Unified schema model, meaning it has a similar GraphQL schema for all blockchains it support. Currently, Bitquery extends this schema to enable broader support of [blockchain data APIs](https://bitquery.io/). However, we are building FlexiGraph, a tool that will allow anyone to extend our schema to enable more complex blockchain data queries.

### Ease of Use

With Bitquery, you only need to learn GraphQL and use our schema to query the blockchain. However, with The Graph, you also need to understand coding because you need to deploy your schema if the data you are looking not available through community schema.

### Decentralization

The Graph is a decentralized network of Graph nodes to index and curate Ethereum data. We think The Graph’s mission to decentralize blockchain data access a novel goal, and we appreciate it. However, Bitquery focuses on building APIs to enable the fastest, scalable multi-blockchain data access, coupled with useful query tooling.

### Performace

Bitquery’s technology stack is optimized for performance and reliability. Besides, our centralized architecture helps us optimizing latency and response rate and other performance metrics.

The Graph decentralization approach makes it a robust network for data access. However, The Graph is still working to achieve continuous performance delivery.

### Open Source

The Graph is a fully [open source project](https://github.com/graphprotocol). Developers can verify the codebase, fork it, or integrate it according to their needs.

We at Bitquery also embrace open source development and make our tools open source as much as we can. For example, our [Explorer’s front end](https://github.com/bitquery) is entirely open-source, but our backend is closed source.

However, we always revisit our technology on time and see if there is an opportunity to open source any module.

### Data Verifiability

Almost all the data on blockchains is financial data; therefore, data verifiability is very important. The Graph network has curators, who are responsible for verifying data accuracy.

At Bitquery, we have built automated systems to check data accuracy for our APIs.

### Pricing

The Graph project created the GRT token, which will drive the pricing on its network. However, The GRT token is not available to the public for now.

Bitquery is also at the open beta stage; therefore, pricing not yet open to the public. However, Bitquery and The Graph are used by many projects in production. Currently, both projects provide their APIs are free.

## Conclusion

Blockchain data is filled with rich information, waiting for analysts to find it. We embrace TheGraph project’s aims to decentralize the Ethereum and IPFS data access for application builders. However, we at Bitquery choose a different path and unlock the true potential of highly reliable multi-blockchain data for individuals and businesses.

We believe The Graph and Bitquery complement each other and address different needs in the blockchain data market with some apparent intersections. We aim to build a suite of products to easily explore, analyze, and consume blockchain data for individuals and businesses. And The Graph aims to build a decentralized network to enable reliable access to Ethereum and IPFS data.

Let us know what similarities and differences you see between The Graph and Bitquery in the comment section.

You might also be interested in:

- [Ethereum DEX GraphQL APIs with Examples](https://bitquery.io/blog/ethereum-dex-graphql-api)
- [How to get newly created Ethereum Tokens?](https://bitquery.io/blog/newly-created-ethereum-token)
- [How to investigate an Ethereum address?](https://bitquery.io/blog/investigate-ethereum-address)
- [API to get Ethereum Smart Contract Events](https://bitquery.io/blog/ethereum-events-api)
- [Simple APIs to get Latest Uniswap Pair Listing](https://bitquery.io/blog/uniswap-pool-api)
- [ETH2.0 Analytical Explorer, Widgets, and GraphQL APIs](https://bitquery.io/blog/eth2-explorer-api-widgets)
- [Analyzing Decentralized Exchange using Bitquery Blockchain Explorer](https://bitquery.io/blog/dex-blockchain-explorer)

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Analyzing Decentralized Exchange using Bitquery Blockchain Explorer]]></title>
            <link>https://bitquery.io/blog/dex-blockchain-explorer</link>
            <guid>https://bitquery.io/blog/dex-blockchain-explorer</guid>
            <pubDate>Wed, 28 Oct 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
In this article, we will show how to analyze [Ethereum DEXs](https://explorer.bitquery.io/ethereum/dex) using our [blockchain explorer](https://explorer.bitquery.io/).

**Note:** You can get all the data metrics mentioned below using our [blockchain GraphQL APIs](https://graphql.bitquery.io/). Besides, we also provide DEX trade data for all the DEX protocols we support.

## DEX market share based Trade counts

Decentralized Exchange (DEX) market saw more than 10x growth in 2020. [DEX trades](https://explorer.bitquery.io/ethereum/dex) grew from 1 million/month at the starting of the year to 10 million trades/month in the 4rth quarter of 2020.

![Total Trade Counts on DEXs](/blog/dex-blockchain-explorer/total-trade-counts-on-dexs.png)


[Uniswap](https://uniswap.org/) protocol alone led this growth and grew ~500k trades/month at the starting of the year to 9.2 million trades in the month of September alone.

Currently, Uniswap has 90% of the DEX market share.

![DEX market share](/blog/dex-blockchain-explorer/dex-market-share.png)

## Top DEX protocols

In the first 10 months, Uniswap (V1 and V2) executed more than 31 million trades. [Balancer](https://balancer.finance/), which is at the 2nd position, executed less than10% of Uniswap’s total trades.

However, if we look for a trader’s trades count, On Uniswap, a trader executed 65 trades on average. However, when compared to others, on IDEX, every trader executed 49 trades on average and for Balancer 821 trades. A high trade count/trader shows a few wealthy traders drive balancer’s trading volume.

![Top DEX protocol](/blog/dex-blockchain-explorer/top-dex-protocol.png)

## Unique Traders on DEX

Total [DEX trading Volume](https://stat.bloxy.info/superset/dashboard/dex/?standalone=true) surpassed more than $25 billion in September 2020. However, the [unique trader’s count](https://explorer.bitquery.io/ethereum/dex_trades) was only ~225k. Therefore, the average trading volume/trader is ~111K for DEXs.

![Unique Traders on DEX](/blog/dex-blockchain-explorer/unique-traders-on-dex.png)

## Currencies Traded on DEXs

DEXs are always popular for long-tail crypto tokens, which are not listed by centralized exchanges. As Trading volume grew, numbers of [new currencies added to DEXs](https://explorer.bitquery.io/ethereum/tokens).

In October 2020, the total number of currencies traded on DEXs surpassed 6000.

![Number of Currencies Traded on DEXs](/blog/dex-blockchain-explorer/number-of-currencies-traded-on-dexs.png)


In terms of specific currencies, other than WETH, stablecoins saw significant growth in DEXs. 

USDC trading volume surpassed more than 17 billion (USDC), and Tether also crossed 14.5 billion (USDT). DAI also saw measurable growth and surpassed 10 billion (DAI) in total trading volume.

Top trading pairs were WETH with USDT, DAI, and USDC.

![Top Currencies Traded on DEXs](/blog/dex-blockchain-explorer/top-currencies-traded-on-dexs.png)


## DEX Trades of Tokens

Our explorer also allows you to analyze DEX trades for any Ethereum token. For example, let’s see [DEX trades for LINK token](https://explorer.bitquery.io/ethereum/token/0x514910771af9ca656af840dff83e8264ecf986ca/token_dex_trades).

LINK trades grew from ~8k trades in January to ~68K trades in August. A growing number of trades can help you identify the popularity of a token.

![LINK DEX Trades](/blog/dex-blockchain-explorer/link-dex-trades.png)

As you can see in the following image, more than 35 million [LINK tokens](https://explorer.bitquery.io/ethereum/token/0x514910771af9ca656af840dff83e8264ecf986ca) were traded in September. However, October saw a significant decrease in the [LINK trading volume](https://explorer.bitquery.io/ethereum/token/0x87febfb3ac5791034fd5ef1a615e9d9627c2665d/dex_trades).

![LINK trade volume on DEX](/blog/dex-blockchain-explorer/link-trade-volume-on-dex.png)

In August, the LINK token was traded against 95 currencies.

The number of trading pairs helps you identify if there are malicious activity to boost the trading volume. For example, a token holder can create two tokens and trade them against each other to increase the trading volume.

Using our APIs, you can also get top trading pairs for any token, which will help you understand the trading volume’s legitimacy.

![LINK trading pairs on DEXs](/blog/dex-blockchain-explorer/link-trading-pairs-on-dexs.png)

As shown below, you can also check the latest LINK token trades, and we also provide APIs to access this data.

![Latest LINK trades](/blog/dex-blockchain-explorer/latest-link-trades.png)

## Supported Protocols

Currently, we support around 17 protocols, and we are adding more protocols every day. Besides, we are also in the process of adding the DEX protocols of other blockchains, such as the Binance smart chain.

- AXNET
- AirSwap Exchange
- Balancer Pool Token
- Bancor Network
- Curve
- DDEX Hydro
- DUBIex
- ETHERCExchange
- EtherDelta
- Ethfinex (Deversifi)
- IDEX
- Kyber Network
- Token.Store
- Uniswap
- Zerox Exchange
- dYdX2
- dex.blue

**NOTE:** All our Explorer data is available through GraphQL APIs. You can check these APIs on any data widget by clicking on the GraphQL button on the bottom right corner.

![Open GraphQL on Bitquery Explorer](/blog/dex-blockchain-explorer/open-graphql-on-explorer.gif)

You might also be interested in:

- [Ethereum DEX GraphQL APIs with Examples](https://bitquery.io/blog/ethereum-dex-graphql-api)
- [How to get newly created Ethereum Tokens?](https://bitquery.io/blog/newly-created-ethereum-token)
- [How to investigate an Ethereum address?](https://bitquery.io/blog/investigate-ethereum-address)
- [API to get Ethereum Smart Contract Events](https://bitquery.io/blog/ethereum-events-api)
- [Simple APIs to get Latest Uniswap Pair Listing](https://bitquery.io/blog/uniswap-pool-api)
- [ETH2.0 Analytical Explorer, Widgets, and GraphQL APIs](https://bitquery.io/blog/eth2-explorer-api-widgets)

## **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[ETH2.0 Analytical Explorer, Widgets, and GraphQL APIs]]></title>
            <link>https://bitquery.io/blog/eth2-explorer-api-widgets</link>
            <guid>https://bitquery.io/blog/eth2-explorer-api-widgets</guid>
            <pubDate>Mon, 19 Oct 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
Today, we will show what we have built in the past few weeks and our plan to support the ETH2.0 infrastructure. 

## ETH2.0 Medalla Testnet Explorer

We have added ETH2.0 Medalla Testnet support on Bitquery Explorer to show ETH2.0 data and analytics. You can access our [Medalla Testnet Analytical explorer here](https://explorer.bitquery.io/medalla).

Bitquery Explorer is [open-source](https://github.com/bitquery/explorer) and built in a modular way to create any data visualizations on-demand.

![ETH2.0 explorer](/blog/eth2-explorer-api-widgets/eth2-explorer.png)

## Embeddable Widgets

Our explorer is made out of [embeddable widgets](https://github.com/bitquery/widgets). We show all data metrics using these widgets. In essence, these widgets are simple HTML, Javascript code, which can embed into any other website to show ETH2.0 data.

For example, check out the following live widget for showing Daily ETH2.0 blocks.

![Graph of Eth2.0 Blocks](/blog/eth2-explorer-api-widgets/eth2-blocks.png)

[![Deposits on Medalla Ethereum 2.0 Testnet Explorer](/blog/eth2-explorer-api-widgets/thumbnail-deposits-on-medalla-ethereum-2-testnet-explorer.png)](https://vimeo.com/469823983)

## ETH2.0 GraphQL APIs

Our GraphQL APIs enable Bitquery explorer widgets, and anyone can use these APIs to create ETH2.0 specific tools.

Our GraphQL API is specially designed to simplify data analysis and help to build complex data visualizations. It follows OLAP ([Online analytic processing](https://en.wikipedia.org/wiki/Online_analytical_processing)), where everything is considered ‘dimensions’ and ‘metrics.’

In ETH2, possible ‘dimensions’ are validators, blocks, proposers, attestations, and everything else that can serve as an entity in the GraphQL query.

Metrics are used to measure anything, so it is numeric, like counting unique amounts of deposits.

For example, to generate a distribution report for deposits against validators, you have to select the dimension ( validator.index ) and metric ( amount of deposit ) and build the query like:

```
{  
    ethereum2(network: medalla) {  
        deposits(options: {desc: "amount", limit: 10}) {  
        validator {  
            index  
        }  
        amount  
        }  
    }  
}
```

The power of GraphQL API comes from the flexibility of combining multiple dimensions and metrics in one query. For example, replacing

```
validator{  
    index  
}
```

With

```
date {  
    date  
}
```

You get the query to respond with the days of the maximum deposit!

You can combine BOTH dimensions in one query, and here you get a 2-dimensional response:

```
{  
    ethereum2(network: medalla) {  
        deposits(options: {desc: "amount", limit: 10}) {  
            date {  
                date  
            }  
            validator {  
                index  
            }  
            amount  
        }  
    }  
}
```

Our GraphQL APIs are highly flexible, and we are expanding them to cover every aspect of the ETH2.0 network.

Use our [**GraphQL playground**](https://graphql.bitquery.io/) to query ETH2.0 on-chain data.

[![Eth2.0 GraphQL APIs](/blog/eth2-explorer-api-widgets/eth2-graphql-apis.png)](https://vimeo.com/469833574)

## Examples of ETH2.0 GraphQL queries

Let’s also see a few more examples of ETH2.0 GraphQL queries. You can run the following queries here — [graphql.bitquery.io](https://graphql.bitquery.io/)

**Note:** GraphQL queries are APIs that can be called programmatically. 

### Daily ETH2.0 blocks count

The following query gets Daily ETH2.0 blocks count.

```
{  
    ethereum2 {  
        blocks(options: {asc: "date.date"}) {  
            date: date {  
                date(format: "%Y-%m-%d")  
            }  
            count: count  
            proposers: count(uniq: block_proposers)  
        }  
    }  
}
```

### Result

```
{  
  "data": {  
    "ethereum2": {  
      "blocks": \[  
        {  
          "date": {  
            "date": "2020-08-04"  
          },  
          "count": 2501,  
          "proposers": 2320  
        },  
        {  
          "date": {  
            "date": "2020-08-05"  
          },  
          "count": 5716,  
          "proposers": 4886  
        },  
        {  
          "date": {  
            "date": "2020-08-06"  
          },  
          "count": 5569,  
          "proposers": 4796  
        },  
        ...  
        ...   
        ...
```

### Daily ETH Deposits

To check the Daily ETH deposits, run the following query.

```
{  
    ethereum2 {  
        deposits(options: {asc: "date.date"}) {  
            date: date {  
                date(format: "%Y-%m-%d")  
            }  
            count: count  
            amount  
        }  
    }  
}
```

### Result

```
{  
  "data": {  
    "ethereum2": {  
      "deposits": [  
        {  
          "date": {  
            "date": "2020-08-04"  
          },  
          "count": 2216,  
          "amount": 70912  
        },  
        {  
          "date": {  
            "date": "2020-08-05"  
          },  
          "count": 3389,  
          "amount": 108448  
        },  
        {  
          "date": {  
            "date": "2020-08-06"  
          },  
          "count": 810,  
          "amount": 25920  
        },  
        ...  
        ...  
        ...
```

GraphQL APIs are hight flexible; therefore, you can change them based on your needs.

## How Bitquery tools will help ETH2.0 ecosystem?

- **Explorer** — Other than showing regular explorer activity, we will enable more in-depth analytics on our explorer to help individuals to understand the ETH2.0 network better.
- **Widgets** — Our widget can be used by others on their platform to add context to data and create more awareness around the ETH2.0 ecosystem.
- **GraphQL APIs** — Our APIs will enable developer, makers, and enthusiast to analyze the ETH2.0 network and build tools enable broader participation in the ETH2.0 ecosystem.

Going forward, we will expand our ETH2.0 network coverage and enable more in-depth data APIs.

We already support GraphQL APIs for Ethereum 1.0 mainnet and Goerli testnet. Check out our blog to see more examples of how to get Ethereum blockchain data.

- [Ethereum DEX GraphQL APIs with Examples](https://bitquery.io/blog/ethereum-dex-graphql-api)
- [How to get newly created Ethereum Tokens?](https://bitquery.io/blog/newly-created-ethereum-token)
- [API to get Ethereum Smart Contract Events](https://bitquery.io/blog/ethereum-events-api)
- [Simple APIs to get Latest Uniswap Pair Listing](https://bitquery.io/blog/uniswap-pool-api)  
    

## **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Ethereum DEX GraphQL APIs with Examples]]></title>
            <link>https://bitquery.io/blog/ethereum-dex-graphql-api</link>
            <guid>https://bitquery.io/blog/ethereum-dex-graphql-api</guid>
            <pubDate>Fri, 16 Oct 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
We are now supporting Ethereum DEX trading data on our GraphQL APIs. You can get DEX trades, OHLC, trading volume, and other DEX related data for more than 18 Ethereum DEX protocols such as Uniswap, Balancer, Kyber, 0x, IDEX, etc.

Before we show some examples, here are a few important things to note: 

- GraphQL is an API query language, read this [create your first GraphQL query](https://bitquery.io/blog/blockchain-graphql-query).
- Read [this](https://bitquery.io/blog/graphql-with-python-javascript-and-ruby) to learn how to call GraphQL queries as APIs programmatically.
- GraphQL queries are highly flexible; therefore, you can change the following queries based on your needs or create a new one by following our GrpahQL schema (Available on our [playground](https://graphql.bitquery.io/).)
- You can **test the following GraphQL queries** on our [**Playground**](https://graphql.bitquery.io/).
- Our GraphQL endpoint is — [https://graphql.bitquery.io/](https://graphql.bitquery.io/)
- Our GraphQL APIs support more than 20 blockchains. Check out our [blog](https://bitquery.io/blog) to see more examples.
- You can also check DEX data on our [blockchain explorer](https://explorer.bitquery.io/), [here](https://explorer.bitquery.io/ethereum/dex), [here](https://explorer.bitquery.io/ethereum/dex_trades), and [here](https://explorer.bitquery.io/ethereum/dex_tokens).

## Top DEX Protocols

The following query returns top DEX protocols based on the number of trades.

```
{
    ethereum(network: ethereum) {
        dexTrades(options: {limit: 100, desc: "trades"}){
            protocol
            started: minimum(of: date)
            trades: count
        }
    }
}
```

### Result

```
{
  "data": {
    "ethereum": {
      "dexTrades": [
        {
          "protocol": "Uniswap v2",
          "started": "2020-05-05",
          "trades": 24836192
        },
        {
          "protocol": "IDEX",
          "started": "2017-09-27",
          "trades": 11819652
        },
        {
          "protocol": "EtherDelta",
          "started": "2016-07-09",
          "trades": 7441188
        },
        {
          "protocol": "Uniswap",
          "started": "2018-10-27",
          "trades": 4011690
        },
        {
          "protocol": "Zerox Exchange v2",
          "started": "2018-09-18",
          "trades": 2437436
        },
        ...
        ...
        ...
```

## Latest trades on a DEX Protocol

The following query shows how to get the latest trades for any DEX protocol. In this query, we are using the “Uniswap V2” protocol as an example.

```
{
    ethereum(network: ethereum) {
        dexTrades(options: {limit: 10, desc: "trades"}, protocol: 
        {is: "Uniswap v2"}) {
            protocol
            buyCurrency {
                symbol
                address
            }
            buyAmount
            sellCurrency {
                symbol
                address
            }
            sellAmount
            trades: count
        }
    }
}
```

### Result

```
{
  "data": {
    "ethereum": {
      "dexTrades": [
        {
          "protocol": "Uniswap v2",
          "buyCurrency": {
            "symbol": "USDT",
            "address": "0xdac17f958d2ee523a2206206994597c13d831ec7"
          },
          "buyAmount": 1842158918.313746,
          "sellCurrency": {
            "symbol": "WETH",
            "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
          },
          "sellAmount": 4977863.830826052,
          "trades": 379716
        },
        {
          "protocol": "Uniswap v2",
          "buyCurrency": {
            "symbol": "WETH",
            "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
          },
          "buyAmount": 4920992.445139087,
          "sellCurrency": {
            "symbol": "USDT",
            "address": "0xdac17f958d2ee523a2206206994597c13d831ec7"
          },
          "sellAmount": 1831207530.946584,
          "trades": 368346
        },
        ...
        ...
        ...
```

## Latest trades of a specific currency pair on a DEX protocol

Now, if you want the latest trades for a specific currency pair, use the following query. We are getting the latest trade for USDT — WETH currency pair on Uniswap protocol (V2) in this query.

As you can see, you need to pass the smart contract address for the tokens to get the latest trades for them.

Here we are passing 0xdac17f958d2ee523a2206206994597c13d831ec7 for buyCurrency which is the USDT token’s address. And, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 for sellCurrency which is the WETH token’s address.

```
{
    ethereum(network: ethereum) {
        dexTrades(options: {limit: 10, desc: ["block.height", "tradeIndex"]},
        protocol: {is: "Uniswap v2"}, 
        buyCurrency: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"},
        sellCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}) {
            block {
                height
                timestamp {
                iso8601
                }
            }
            transaction {
                hash
            }
            tradeIndex
            buyCurrency {
                symbol
                address
            }
            buyAmount
            sellCurrency {
                symbol
                address
            }
            sellAmount
            maker {
                address
                annotation
            }
            taker {
                address
                annotation
            }
            protocol
            smartContract {
                address {
                address
                annotation
                }
                contractType
            }
        }
    }
}
```

### Result

```
{
  "data": {
    "ethereum": {
      "dexTrades": [
        {
          "block": {
            "height": 11067734,
            "timestamp": {
              "iso8601": "2020-10-16T15:21:58Z"
            }
          },
          "transaction": {
            "hash": "0xa71a2c54355fb04b93d891a0750d4006238d8960da19db39e33d15c43debe08b"
          },
          "tradeIndex": "8",
          "buyCurrency": {
            "symbol": "USDT",
            "address": "0xdac17f958d2ee523a2206206994597c13d831ec7"
          },
          "buyAmount": 472.192504,
          "sellCurrency": {
            "symbol": "WETH",
            "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
          },
          "sellAmount": 1.2889359336599604,
          "maker": {
            "address": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",
            "annotation": "Router 2, Uniswap, Router"
          },
          "taker": {
            "address": "0x0b7ded783106803dc03197028d26c86e548910a5",
            "annotation": null
          },
          "protocol": "Uniswap v2",
          "smartContract": {
            "address": {
              "address": "0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852",
              "annotation": null
            },
            "contractType": "DEX"
          }
        },
       ...
       ...
       ...
```

## OHLC data for currency pair on DEX

[**Open-high-low-close**](https://en.wikipedia.org/wiki/Open-high-low-close_chart)(also **OHLC**) data used to create an OHLC chart, which illustrates movements in the price of a [financial instrument](https://en.wikipedia.org/wiki/Financial_instrument) over time.

Using the following query, you can get the OHLC data for any currency pair for any DEX protocol.

In this query, we are getting USDT-WETH currency pair’s OHLC data for 5 minutes interval.

We support the following time interval units. 

- second
- minute
- hour
- day
- month
- year

Using the above units, you can create any type of chart candles. For example

- 5-minute interval

```
timeInterval {  
        minute(count: 5)  
}
```

- 1-day interval 

```
timeInterval {  
        day(count: 1)  
}
```

Here is the query to get 5-minute OHLC data for the USDT-WETH currency pair on Uniswap protocol.

```
{
  ethereum(network: ethereum) {
        dexTrades(options: {limit: 10, asc: "timeInterval.minute"}, 
        protocol: {is: "Uniswap v2"}, 
        date: {is: "2020-10-10"}
        buyCurrency: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}, 
        sellCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}) {
            timeInterval {
                minute(count: 5)
            }
            buyCurrency {
                symbol
                address
            }
            buyAmount
            sellCurrency {
                symbol
                address
            }
            sellAmount
            trades: count
            maximum_price: price(calculate: maximum)
            minimum_price: price(calculate: minimum)
            open_price: minimum(of: block, get: price)
            close_price: maximum(of: block, get: price)
        }
    }
}
```

### Result

```
{
  "data": {
    "ethereum": {
      "dexTrades": [
        {
          "timeInterval": {
            "minute": "2020-10-10 00:00:00"
          },
          "buyCurrency": {
            "symbol": "USDT",
            "address": "0xdac17f958d2ee523a2206206994597c13d831ec7"
          },
          "buyAmount": 15094.490436,
          "sellCurrency": {
            "symbol": "WETH",
            "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
          },
          "sellAmount": 41.44903367094046,
          "trades": 15,
          "maximum_price": 0.002746776341103444,
          "minimum_price": 0.002737048849470252,
          "open_price": "0.002738970885840717",
          "close_price": "0.002746681535948033"
        },
        {
          "timeInterval": {
            "minute": "2020-10-10 00:05:00"
          },
          "buyCurrency": {
            "symbol": "USDT",
            "address": "0xdac17f958d2ee523a2206206994597c13d831ec7"
          },
          "buyAmount": 20978.805418,
          "sellCurrency": {
            "symbol": "WETH",
            "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
          },
          "sellAmount": 57.611814558084596,
          "trades": 25,
          "maximum_price": 0.002746774536198633,
          "minimum_price": 0.002738320503436713,
          "open_price": "0.002739092079021605",
          "close_price": "0.002746774536198633"
        },
        ...
        ...
        ...
```

## Monthly DEX trading volume for a specific Token

The following query gives us aggregated trading volume for a specific token on all DEX protocols. For example, in the query below, we are getting the trading volume for USDT token on all DEXs.

Note: We are passing the USDT token’s contract address, 0xdac17f958d2ee523a2206206994597c13d831ec7 to get the data in the query below. Our queries do not recognize token names. They only recognize smart contract addresses. So if you want to get trading volume for any other token, use the contract address for that token.

```
{
    ethereum(network: ethereum) {
        dexTrades(options: {asc: "date.date"}, 
        buyOrSellCurrency: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}) {
            date {
                date(format: "%Y-%m")
            }
            amount
            currency {
                symbol
            }
        }
    }
}
```

### Result

```
{
  "data": {
    "ethereum": {
      "dexTrades": [
        {
          "date": {
            "date": "2018-08"
          },
          "amount": 195789.099416,
          "currency": {
            "symbol": "USDT"
          }
        },
        {
          "date": {
            "date": "2018-09"
          },
          "amount": 304211.822172,
          "currency": {
            "symbol": "USDT"
          }
        },
        ...
        ...
        ...
```

If you have any questions or need help with your blockchain investigation, just hop on our [Telegram channel](https://t.me/Bloxy_info). Also, let us know if you are looking for blockchain data APIs.

You might also be interested in:

- [Create your first Blockchain GraphQL query](https://bitquery.io/blog/blockchain-graphql-query)
- [API to get Ethereum Smart Contract Events](https://bitquery.io/blog/ethereum-events-api)
- [Why GraphQL is better for blockchain data APIs](https://bitquery.io/blog/blockchain-graphql)
- [APIs to get Latest Uniswap Pair Listing](https://bitquery.io/blog/uniswap-pool-api)
- [Simple rest APIs to get Uniswap data (DEX Data APIs)](https://bitquery.io/blog/dex-data-apis)
- [API to Get Ethereum Token Balance](https://bitquery.io/blog/ethereum-token-api)
- [Simple API To Get Ethereum Supply And Data](https://bitquery.io/blog/get-ethereum-total-supply)
- [How to investigate an Ethereum address?](https://bitquery.io/blog/investigate-ethereum-address)
- [Who is actually using Ethereum?](https://bitquery.io/blog/who-is-actually-using-ethereum)
- [How to get newly created Ethereum Tokens?](https://bitquery.io/blog/newly-created-ethereum-token)
- [Querying Binance Smart Chain (BSC)](https://bitquery.io/blog/binance-smart-chain-api)

## **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[How to use GraphQL with Python, Javascript, and Ruby]]></title>
            <link>https://bitquery.io/blog/graphql-with-python-javascript-and-ruby</link>
            <guid>https://bitquery.io/blog/graphql-with-python-javascript-and-ruby</guid>
            <pubDate>Thu, 15 Oct 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
In the last few articles, we talked argued [using GraphQL APIs for blockchain](https://bitquery.io/blog/blockchain-graphql) data and how to create your first [blockchain GraphQL](https://bitquery.io/blog/blockchain-graphql-query) query. In this article, we will show how to call GraphQL APIs using different programming languages.

However, you should always use our [GraphQL playground](https://graphql.bitquery.io/) to create and test your queries before embedding in your code.


## Basics

Before starting, let’s cover some basics.

- All GraphQL requests are [POST method](https://en.wikipedia.org/wiki/POST_%28HTTP%29).
- You also need API Key, which you get after signing up on our [GraphQL IDE](https://graphql.bitquery.io/ide).
- The API key must be included as an HTTP header in every GraphQL request. The header name is X-API-KEY
- In GraphQL APIs endpoint remain the same for all the requests
- Our GraphQL endpoint is — [https://graphql.bitquery.io/](https://graphql.bitquery.io/)

We will be using the following GraphQL query in all our examples.

```
query{  
    bitcoin{  
        blocks{  
            count  
        }  
    }  
}
```

## Getting API Key

To get the API Key, sign up on our GraphQL IDE and then get the API key, which you can find under you account.

![Bitquery GraphQL API Key](/blog/graphql-with-python-javascript-and-ruby/bitquery-graphql-api-key.png)

The API key must be included as an HTTP header in every GraphQL request. The header name is X-API-KEY

Now let’s see how to call GraphQL APIs using different programming languages.

## GraphQL APIs using cURL

[cURL](https://en.wikipedia.org/wiki/CURL) allows using [HTTP methods](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods) directly through our terminal. It is best for quick testing of any API request.

```
curl \\
  -X POST \\
  -H "Content-Type: application/json" \\
  -H "X-API-KEY: YOU API KEY" \\
  --data '{ "query": "{ bitcoin { blocks {count} } }" }' \\
https://graphql.bitquery.io/
```

## GraphQL APIs using Python

Python is a beginner-friendly programming language. The example below shows how to call a GraphQL API using python.

```
#!/usr/bin/python
# -*- coding: utf-8 -*-
import requests


def run_query(query):  # A simple function to use requests.post to make the API call.
    headers = {'X-API-KEY': 'YOUR API KEY'}
    request = requests.post('https://graphql.bitquery.io/',
                            json={'query': query}, headers=headers)
    if request.status_code == 200:
        return request.json()
    else:
        raise Exception('Query failed and return code is {}.      {}'.format(request.status_code,
                        query))


# The GraphQL query

query = """
query{
  bitcoin{
    blocks{
      count
    }
   }
}
"""
result = run_query(query)  # Execute the query
print 'Result - {}'.format(result)
```

### GraphQL Python Libraries

The libraries below are the most widely used libraries using GraphQL with python.

- [Graphene](https://graphene-python.org/) — Graphene is an opinionated Python library for building GraphQL schemas/types fast and easily.
- [Ariadne](https://ariadnegraphql.org/) — Ariadne is a Python library for implementing GraphQL servers using a schema-first approach.
- [Strawberry](https://strawberry.rocks/) — Strawberry is a new GraphQL library for Python 3, inspired by data classes.

## GraphQL APIs using Javascript

Javascript is one of the most adopted programming languages among developers all over the world. You can call a post request to get results from GraphQL APIs.

```
const query = `
  query{
  bitcoin{
    blocks{
      count
    }
   }
}
`;
const url = "https://graphql.bitquery.io/";
const opts = {
    method: "POST",
    headers: {
        "Content-Type": "application/json",
      "X-API-KEY": "YOUR API KEY"
    },
    body: JSON.stringify({
        query
    })
};
fetch(url, opts)
    .then(res => res.json())
    .then(console.log)
    .catch(console.error);
```

### GraphQL Javascript(NodeJS) Libraries

The following are the most popular javascript libraries for GraphQL.

- [GraphQL.js](https://github.com/graphql/graphql-js) — The JavaScript reference implementation for GraphQL, a query language for APIs created by Facebook.
- [graphql-request](https://www.npmjs.com/package/graphql-request) — Minimal GraphQL client supporting Node and browsers for scripts or simple apps.
- [Apollo client](https://www.npmjs.com/package/@apollo/client) — Apollo Client is a fully-featured caching GraphQL client with integrations for React, Angular, and more. It allows you to build UI components that fetch data via GraphQL easily.

## GraphQL APIs using Ruby

Ruby is also one of the most simple programming languages. The following example shows how to call a GraphQL API using ruby. 

```
require 'net/http'
require 'uri'
require 'json'

uri = URI.parse("https://graphql.bitquery.io/")
header = {'Content-Type': 'application/json'; 'X-API-KEY': 'YOUR API KEY'}
query = "{ bitcoin { blocks { count } } }"

# Create the HTTP objects
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Post.new(uri.request_uri, header)
request.body = {query: query}.to_json

# Send the request
response = http.request(request)
puts "Body: #{response.body}"
```

### GraphQL Ruby Libraries

You can use the libraries below to use GraphQL with ruby.

- [graphql-ruby](https://github.com/rmosolgo/graphql-ruby) — Ruby implementation of Facebook’s GraphQL.
- [graphql-client](https://github.com/github/graphql-client) — A Ruby library for declaring, composing, and executing GraphQL queries.
- [graphql-batch](https://github.com/Shopify/graphql-batch) — A query batching executor for the graphql gem.
- [agoo](https://github.com/ohler55/agoo) — Ruby web server that implements Facebook’s GraphQL.
- [GQLi](https://github.com/contentful-labs/gqli.rb) — A GraphQL client and DSL. Allowing to write queries in native Ruby.

## Additional Resources

To see the examples of other programming languages, check the official [website of GraphQL](https://graphql.org/code/). In addition, to learn more about more GraphQL tools and libraries, check [Awesome GraphQL](https://github.com/chentsulin/awesome-graphql).

If you have any questions or need help with your blockchain investigation, just hop on our [Telegram channel](https://t.me/Bloxy_info). Also, let us know if you are looking for blockchain data APIs.

You might also be interested in:

- [Create your first Blockchain GraphQL query](https://bitquery.io/blog/blockchain-graphql-query)
- [API to get Ethereum Smart Contract Events](https://bitquery.io/blog/ethereum-events-api)
- [Why GraphQL is better for blockchain data APIs](https://bitquery.io/blog/blockchain-graphql)
- [APIs to get Latest Uniswap Pair Listing](https://bitquery.io/blog/uniswap-pool-api)
- [Simple rest APIs to get Uniswap data (DEX Data APIs)](https://bitquery.io/blog/dex-data-apis)
- [API to Get Ethereum Token Balance](https://bitquery.io/blog/ethereum-token-api)
- [Simple API To Get Ethereum Supply And Data](https://bitquery.io/blog/get-ethereum-total-supply)
- [How to investigate an Ethereum address?](https://bitquery.io/blog/investigate-ethereum-address)
- [Bitcoin Taproot](https://blog.coincodecap.com/bitcoin-taproot) –  A Technical Explanation
- [Who is actually using Ethereum?](https://bitquery.io/blog/who-is-actually-using-ethereum)
- [How to get newly created Ethereum Tokens?](https://bitquery.io/blog/newly-created-ethereum-token)
- [Querying Binance Smart Chain (BSC)](https://bitquery.io/blog/binance-smart-chain-api)

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[How is StableXswap using Bitquery?]]></title>
            <link>https://bitquery.io/blog/stablexswap</link>
            <guid>https://bitquery.io/blog/stablexswap</guid>
            <pubDate>Thu, 15 Oct 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
**Note:**  This article is written by the StableXswap team and edited by the Bitquery team.

[StableXswap](https://www.stablex.finance/#/swap)  is an AMM built on  [Binance Smart Chain](https://explorer.bitquery.io/bsc), which supports low-impermanent loss assets like Stablecoin pairs. We pride ourselves on transparency and open communication with the community to build a more robust DeFi ecosystem.

Currently, StableXSwap utilizes Bitquery in several key areas:

1. Powering our flexible staking program

2. Providing analytics on user actions

3. Backchecking our data for any promotions and incentives

## Powering our flexible staking Program

When thinking of our current programs and promotions, one that stands out is our  [flexible snapshot-based staking system](https://medium.com/stablexswap/the-new-stax-500-apy-flexible-staking-program-d6a9d3696e60), which was powered by taking snapshot data using Bitquery to grab user balances during a random snapshot during November. This allowed us to handle this all off-chain.

![StableXSwap AMM](/blog/stablexswap/image-2.png)

## User Analytics

To continue growing our project and grow more of our userbase, we must perform detailed analytics to better understand our userbase. We dig heavily into the specific smart contract calls that take place on-chain, so we utilized  [Bitquery’s GraphQL APIs](https://graphql.bitquery.io/)  to modify existing tables regarding transactions, deposits, and other smart contract calls to dig deep into the data. We’ve already been able to adjust several campaigns to improve their efficacy.

![Smart Contract Analytics](/blog/stablexswap/image-1.png)

Here’s an analysis from Bitquery where we can see that deposits far outweigh withdrawals on our product.

As a side tangent, we could also utilize Bitquery’s ability to filter into smart contract calls to help PancakeSwap find some  [SYRUP pool exploiters](https://medium.com/pancakeswap/update-on-the-syrup-incident-8f54bf5c054d)  who utilized the emergencyWithdraw function in their staking pool. Bitquery’s tools make it easy to do smart contract intelligence work, too. ?

#### Backchecking our data for any promotions and incentives

Finally, to make sure that the distributions of our rewards and other incentives programs are correct. We use Bitquery’s ability to export CSVs to display everything in a transparent google doc to see the participating addresses in all promos and what they received. Thus,  **Bitquery powers our open, transparent operations of the StableXSwap project.**

![CSV export](/blog/stablexswap/image-3.png)

You can monitor all of our distributions that we have conducted on-chain  [**here**](https://docs.google.com/spreadsheets/d/e/2PACX-1vQQ-xxMgHnjHv-DgCDoVwLVAUPKfcWcpRUofENFBp6JUYNqWdJ-okf8t2h8CvT-hgt1mwmtmimtuBVk/pubhtml), as Bitquery’s convenient CSV function allows us to save it for all users to monitor in the future.

We look forward to using Bitquery in more ways to advanced StableXswap and grow the community for a better ecosystem tomorrow!

If you are looking for Blockchain data APIs or have questions, join our  [Telegram channel](https://t.me/Bloxy_info).

**Also, Read**

-   [PancakeSwap – Querying DEXs on Binance Smart Chain using GraphQL APIs](https://bitquery.io/blog/pancake-swap-dex-apis)
-   [Querying Binance Smart Chain](https://bitquery.io/blog/binance-smart-chain-api)  (BSC)
-   [Ethereum DEX GraphQL APIs](https://bitquery.io/blog/ethereum-dex-graphql-api)  with Examples
-   [Querying Conflux blockchain using GraphQL APIs](https://bitquery.io/blog/conflux-blockchain-api)
-   [How to use GraphQL with Python, Javascript, and Ruby](https://bitquery.io/blog/graphql-with-python-javascript-and-ruby)
-   [Create your first Blockchain GraphQL query](https://bitquery.io/blog/blockchain-graphql-query)
-   [Uniswap APIs: Get Pools Data, Tokens and Create Charts](https://bitquery.io/blog/uniswap-pool-api)

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath)  is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

-   **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog)  APIs**  provide  [blockchain money flow analysis](https://bitquery.io/products/coinpath)  for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read  [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

-   **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)**  provides index information related to all major cryptocurrencies, coins, and tokens.

-   **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)**  provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our  [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[How to investigate an Ethereum address?]]></title>
            <link>https://bitquery.io/blog/investigate-ethereum-address</link>
            <guid>https://bitquery.io/blog/investigate-ethereum-address</guid>
            <pubDate>Tue, 13 Oct 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
Recently, we saw a lot of researchers trying to uncover scams throughout the Ethereum ecosystems. However, we noticed that most of the researchers are able to explain “What happened” but not able to track “Who actually pulled the rug.” 

We think this problem arises from the lack of sophisticated blockchain tracing tools available to the public. And it is a challenging task to trace the blockchain transactions using simple explorers. 

Therefore, In this article, I will show how you can investigate blockchain addresses or transactions using [Bitquery](https://bitquery.io/) tools.

**Note:** In this article, we will show the Ethereum blockchain as an example; however, our tools support 40+ blockchains. Therefore, you can investigate addresses and transactions for all those blockchains.

Looking for end to end Crypto investigation tool?  Explore Coinpath Moneyflow, built for investors and law enforcement agencies. [Check it out here!](https://share.hsforms.com/1r66O41lbSuOElm1REXeptQ3rc4g)

## Visualizing an Ethereum address

In this article, we will take this Ethereum address ([**0x477573f212a7bdd5f7c12889bd1ad0aa44fb82aa**](https://explorer.bitquery.io/ethereum/address/0x477573f212a7bdd5f7c12889bd1ad0aa44fb82aa)) as an example and analyze it.

### Associated addresses and Transactions

[Bitquery explorer](https://explorer.bitquery.io/) allows you to visualize transactions and addresses associated with a particular address. You can check money inflow and outflow, as shown in the following video.

You can also visualize the details on the associated addresses by **double-clicking** on those addresses, or you can open them in a separate tab by right-clicking on them.


![investigate address](/blog/investigate-ethereum-address/investigate-ethereum-address.gif)


As it is clearly visible, the given address interacted with a lot of exchanges. Therefore you can request those exchanges to get more details about the address.

In addition, we also provide some other details that can help identify the nature of the address, check all the tabs on the explorer.

## Address Annotation

We annotate addresses everywhere, which helps you provide context. For example, you can see the latest transactions of the given [address](https://explorer.bitquery.io/ethereum/address/0x477573f212a7bdd5f7c12889bd1ad0aa44fb82aa) where we annotated the addresses of the receivers. 

![Transaction Details](/blog/investigate-ethereum-address/transaction-details.webp)

## Go deep into the data

All data frames on Bitquery explorer are widgets powered by our [GraphQL APIs](https://bitquery.io/labs/graphql). You can check the query showing the given data by clicking on the GraphQL button in the bottom right corner. You can also edit these queries based on your need and desired results.

If you don’t know about GraphQL, read our article to [create your first GraphQL query](https://docs.bitquery.io/v1/docs/graphql-ide/how-to-start).



[![https://youtu.be/pOFVc-kgSxc](https://img.youtube.com/vi/pOFVc-kgSxc/0.jpg)](https://www.youtube.com/watch?v=pOFVc-kgSxc)


## Using Coinpath® APIs

Coinpath®​ is a set of blockchain money tracing APIs based on a sophisticated mathematical algorithm that can perform complex calculations between blockchain addresses to show the money flow. Coinpath®​ uses heuristics and machine learning to determine clusters, transaction flow, account balance, etc. Our Coinpath®​ APIs are the backbone of multiple blockchain investigation and compliance solutions.

Coinpath® is a set of API endpoints to trace money for any source and destination, create money flow graphs, and aggregate transfers to addresses. You can determine the origin and destination of money, transaction amount, and flow path.

Coinpath® depicts a clean data graph for money flow by analyzing wallet transactions and addresses and creates a clear path from funds’ origin to different crypto services and VASPs.

![Coinpath Ethereum Address](/blog/investigate-ethereum-address/coinpath-investigation-ethereum-address.png)

### Outbound addresses received coins or tokens from ana address in a number of hops

This API gives you all the addresses which sent money to [the given address](https://explorer.bitquery.io/ethereum/address/0x477573f212a7bdd5f7c12889bd1ad0aa44fb82aa) over the number of hops. A hop is a transfer from one address to another address. We use heuristic and machine learning algorithms to provide accurate tracking of digital assets over the number of hops.

Our APIs are highly configurable, and you can customize the number of hops, tokens, and other parameters.

[![Sankey Method](https://img.youtube.com/vi/uojWLq8PbMc/0.jpg)](https://www.youtube.com/watch?v=uojWLq8PbMc)


### Inbound addresses received coins or tokens from ana address in a number of hops

This API gives you all the addresses which received money to the given address over the number of hops.

A combination of these two APIs will quickly provide your fund’s origin and destination and we also annotate address, which gives you the ability to identify exchanges, smart contracts, wallets, and other crypto services.

You can read more about Coinpath® APIs [here](https://docs.bitquery.io/v1/docs/building-queries/Coinpath-Explained/Overview) and to visualize Coinpath data in more details see [this video](https://youtu.be/uojWLq8PbMc).


If you have any questions or need help with your blockchain investigation, just hop on our [Telegram channel](https://t.me/Bloxy_info). Also, let us know if you are looking for blockchain data APIs.

You might also be interested in:

- [Bitquery NFT Marketplace APIs: How to get NFT Data](https://bitquery.io/blog/nft-opensea-blur-marketplace-api)
- [Understanding Wealth Distribution with Gini and Nakamoto Coefficients](https://bitquery.io/blog/wealth-distribution-in-token-economy)
- [Building a Blockchain Intelligence System](https://bitquery.io/blog/blockchain-intelligence-system)
- [USDC vs USDT: Analyzing On-Chain Activities with the Token Holders API](https://bitquery.io/blog/usdc-vs-usdt-analyzing-on-chain-activities-using-token-holders-api)

## **About Coinpath®**

[Coinpath®](https://bitquery.io/products/coinpath?utm_source=about) APIs provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools.

If you have any questions about [Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog), ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

Coinpath® is a Bitquery product. [**Bitquery**](https://bitquery.io?source=blog&utm_medium=about_coinpath) is a set of tools that parse, index, access, search, and use information across blockchain networks in a unified way.

## **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Create your first Blockchain GraphQL query]]></title>
            <link>https://bitquery.io/blog/blockchain-graphql-query</link>
            <guid>https://bitquery.io/blog/blockchain-graphql-query</guid>
            <pubDate>Fri, 09 Oct 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
In the [previous article](https://bitquery.io/blog/blockchain-graphql), we have argued why you should GraphQL over Rest for [blockchain data APIs](https://bitquery.io/). In this article, we will talk about some basic concepts of [GraphQL](https://graphql.org/) in the context of Bitquery and show steps to create a simple GraphQL query.

## GraphQL Query

If you have never seen a GraphQL query, the following image shows an example.

![Bitcoin Block Count Query](/blog/blockchain-graphql-query/bitcoin-block-count.webp)

The left side is the query, and the right side showing the result.

As you can see, query and result look similar because, in GraphQL, your query actually specifies what exact data you are looking for.

1.  We start with a special “root” object.
2.  We selected the data hierarchy based on the schema to get the desired result.

## GraphQL Types

GraphQL types area basically data objects that contain one or multiple fields. For example, in the image above. 

- `bitcoin` is a type with the `blocks` field.

## GraphQL Type System

GraphQL is a strongly typed language. Type System defines various data types that can be used in a GraphQL application. The type system helps to define the GraphQL schema. All the queries validated and executed against that schema.

## What is GraphQL schema?


GraphQL server uses a **schema** to describe the shape of your data graph. This schema defines a hierarchy of data **types** with fields. 

GraphQL schema is a contract between the client and the server, which specifies exactly which **queries** and **mutations** are available for clients to execute against your data graph.

## How does GraphQL Schema will help to use Bitquery?


GraphQL schema is a documentation of our APIs.

With GraphQL schema, you can search for **types** available in the APIs, different fields of those **types**, and their data format.

![Seaching Types in Schema](/blog/blockchain-graphql-query/schema-query.webp)

## GraphQL Playground

[GraphQL playground](https://graphql.bitquery.io/) is where you will spend most of your time when integrating which [Bitquery](https://bitquery.io/). 

The playground allows you to create and run your queries and see the results. Besides, it also has an embedded Bitquery GraphQL schema.

![GraphQL playground with Query showing Bitcoin Block Count](/blog/blockchain-graphql-query/graphql-playground-with-query-which-shows-bitcoin-block-count.webp)

## Creating Queries

Now, let’s create a simple GraphQL query using the Bitquery GraphQL playground.

**Note:** Our GraphQL queries support more than [20 blockchains](https://explorer.bitquery.io/) such as Ethereum, Zcash, Cardano, etc. Therefore you can query any blockchain using our APIs.

### Getting the latest bitcoin blocks

So let’s say we want to create a query to get the latest Bitcoin blocks details. So, let’s see step by step process of creating this query.

- First, we need to search the schema for the `Bitcoin` type. 

![Bitcoin Type Schema](/blog/blockchain-graphql-query/bitcoin-type-query.webp)

- Once found, click on `Bitcoin` type to see the fields available. As you can see, we found the `blocks` field. 

![Bitcoin Blocks Schema Type](/blog/blockchain-graphql-query/bitcoin-schema-blocks-type.webp)

- So, for now, our query looks like below. As you can see, it’s showing a red underline, indicating there is some error. As we mentioned above, GraphQL is a strongly types language; therefore, you see this validation error.

![Bitcoin Blocks Query](/blog/blockchain-graphql-query/bitcoin-blocks-query.webp)

- As you can see in the above image, `blocks` is also a **type** that contains multiple fields. We also need to mention what `blocks` fields we want in our query. Let’s say we want only to see the block height, so let’s mention that.

![Bitcoin Blocks Height Query](/blog/blockchain-graphql-query/bitcoin-blocks-height-query.webp)

- But before we run this query, let’s limit the results first. 

**Note:** You can see the available query option in the `blocks` schema.

![Bitcoin Blocks Query Limit](/blog/blockchain-graphql-query/bitcoin-blocks-query-limit.webp)

- Now, when you run this query, you will get the following result.

![Initial Result](/blog/blockchain-graphql-query/bitcoin-block-height-result.webp)

- But we want the latest bitcoin blocks, not the oldest. So we need to sort them based on the height.

![Query to Arrange Result in Descending Order](/blog/blockchain-graphql-query/bitcoin-blocks-query-desc.webp)

- Now, rerun the query, you will get the following results.

![Result of Query](/blog/blockchain-graphql-query/bitcoin-blocks-desc-result.webp)

- If we want to get more details about these blocks, we just need to add it to the query. You can check `blocks` schema, to know what block fields you can query.

![Query to get more detailed result from Bitcoin Network](/blog/blockchain-graphql-query/bitcoin-detailed-query.webp)

- Once you are done with your query, you can use them programmatically in your applications. Our GraphQL endpoint is — [graphql.bitquery.io](https://graphql.bitquery.io/). Unlike Rest, where every APIs have different endpoints, in GraphQL, all the APIs use the same endpoints.

## Using examples to create queries

If you want to see more examples of GraphQL queries, you can check our [blockchain explorer](https://explorer.bitquery.io/). On our explorer, every widget is created using GraphQL queries. You can just click on the GraphQL button on the bottom right corner to see the query.

You can also modify these queries to get the desired results. 

![Explorer Widget with GraphQL Query](/blog/blockchain-graphql-query/bitcoin-block-explorer.gif)



Wrapping Up
-----------

Using GraphQL, you can write expressive queries to get the exact data you want. You can leverage the schema to understand what kind of data you can get using our APIs.

In the next article, we will talk about how to use arguments in your GraphQL queries.

If you have any questions or need help with queries, just hop on our [Telegram channel](https://t.me/Bloxy_info). Also, let us know if you are looking for blockchain data APIs.

You might also be interested in:

- [API to get Ethereum Smart Contract Events](https://bitquery.io/blog/ethereum-events-api)
- [Why GraphQL is better for blockchain data APIs](https://bitquery.io/blog/blockchain-graphql)
- [APIs to get Latest Uniswap Pair Listing](https://bitquery.io/blog/uniswap-pool-api)
- [Simple rest APIs to get Uniswap data (DEX Data APIs)](https://bitquery.io/blog/dex-data-apis)
- [API to Get Ethereum Token Balance](https://bitquery.io/blog/ethereum-token-api)
- [Simple API To Get Ethereum Supply And Data](https://bitquery.io/blog/get-ethereum-total-supply)
- [Who is actually using Ethereum?](https://bitquery.io/blog/who-is-actually-using-ethereum)
- [How to get newly created Ethereum Tokens?](https://bitquery.io/blog/newly-created-ethereum-token)
- [Querying Binance Smart Chain (BSC)](https://bitquery.io/blog/binance-smart-chain-api)

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.
]]></description>
        </item>
        <item>
            <title><![CDATA[Binance Smart Chain API | BNB Chain Indexing (BSC API)]]></title>
            <link>https://bitquery.io/blog/binance-smart-chain-api</link>
            <guid>https://bitquery.io/blog/binance-smart-chain-api</guid>
            <pubDate>Wed, 07 Oct 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
On September 1st, Binance [launched](https://www.binance.com/en/blog/421499824684900933/Binance-Smart-Chain-Launches-Today) one of the most awaited projects BNB chain. 

BNB chain is an EVM-compatible blockchain to create Dapps and digital assets. Now developers can create smart contracts and build decentralized applications atop BSC.

## Migrating Dapps made easy

Currently, a growing ecosystem of Dapps on Ethereum is struggling with scalability problems. That’s why the BNB chain is built to tackle the problem of scalability. 

However, to make migration easy for Ethereum Dapps, BSC is based on Ethereum EVM and supports solidity. You can copy-paste your smart contract from Ethereum to BSC, and it will just work.

But, deploying a smart contract is just a part of building a Dapp. You need to show your smart contract-related data to your Dapp users.

To accomplish this, you need to run a Binance chain node and store, index data related to your application, and then use it in your Dapp. This is a huge bottleneck for many developers.

Bitquery solves this problem by providing a scalable platform for building [GraphQL](https://graphql.org/) queries for your on-chain data needs and consuming them as APIs. Conceptually Similar to what [TheGraph](https://thegraph.com/) protocol on Ethereum.

This article shows how to query your Dapp data from BNB chain mainnet and testnet using our GraphQL APIs.

But before we start, let’s understand a few important concepts.

- Our GraphQL endpoint is [graphql.bitquery.io](https://graphql.bitquery.io/). It also hosts a GraphQL playground, where you can create, test, and run your queries.
- We organize blockchain protocols into a few specific categories, for example — “Bitcoin Type,” “Ethereum Type.”
- We put BNB chain in the “Ethereum Type” category.

Now, let’s understand how Bitquery helps Dapp developers using a few examples.

## Band protocol’s Oracle smart contract event API

[Band Protocol](https://bandprotocol.com/) is a cross-chain data oracle platform, using which you can get real-world data and APIs to smart contracts.

An [Oracle smart contract](https://kovan.etherscan.io/address/0x65B61aa2D8bA63fC488FF07568558Ad150c3e876#code) of Band protocol is currently deployed on an Ethereum testnet Kovan and provides token prices to other smart contracts.

To check the smart contract price updates, the Band protocol created a subgraph on the The Graph protocol. A practice followed by many Dapps in the Ethereum ecosystem.

When deployed in this subgraph, it exposes API for Oracle smart contract price update events. 

An [exact version](https://explorer.bitquery.io/bsc_testnet/smart_contract/0x56761c813fecb76b4df87ddb1912f5855b22ae5a) of that Oracle smart contract is deployed on the BNB testnet. But how to create the same APIs of this BSC testnet smart contract? Because the graph protocol only supports Ethereum. 

Bitquery solves this problem.

To get the API for Oracle contract (deployed on BSC) price update events, you just need to create the following query and consume it as API.

That’s it, no subgraph, just a simple query.

```
{
    ethereum(network: bsc_testnet) {
        smartContractEvents(options: {desc: "block.height", limit: 10}, 
        smartContractEvent: {is: "RefDataUpdate(string,uint64,uint64,uint64)"},
        smartContractAddress: {is: "0x352aaf9ad953d1edd41c872a84bfa70b6374c87a"}) {
            transaction {
                hash
            }
            block {
                height
                timestamp {
                iso8601
                unixtime
                }
            }
            eventIndex
            arguments {
                value
                argument
            }
        }
    }
}
```

As you can see, we are using “bsc\_testnet” as a parameter for the network.

“**bsc**” represents the BSC mainnet and “**bsc\_testnet**” the BSC testnet.

Besides, we are wrapping the query in “ethereum” because, as we mentioned, we categorize BSC as an “Ethereum Type” protocol.

Besides, we are passing the Oracle’s event signature `RefDataUpdate(string,uint64,uint64,uint64)` and the [contract address](https://explorer.bitquery.io/bsc_testnet/smart_contract/0x56761c813fecb76b4df87ddb1912f5855b22ae5a) as parameters in our query to get the data. 

You can change those parameters to get APIs for other BSC smart contract events.

### Result

The Oracle price event query above gives the following results.

```
{
  "data": {
    "ethereum": {
        "smartContractEvents": [
            {
            "transaction": {
                "hash": "0xf5cb9a16e21d25e667e89f4505e828f5d6c57e720c378b330a44c3dac26ebd0e"
            },
            "block": {
                "height": 2557438,
                "timestamp": {
                    "iso8601": "2020-10-07T03:43:25Z",
                    "unixtime": 1602042205
                }
            },
            "eventIndex": "12",
            "arguments": [
                {
                    "value": "PBTC",
                    "argument": "symbol"
                },
                {
                    "value": "10283373250000",
                    "argument": "rate"
                },
                {
                    "value": "1602042133",
                    "argument": "resolveTime"
                },
                {
                    "value": "451199",
                    "argument": "requestId"
                }
            ]
            },
            ...
            ...
```

## Querying BNB chain

The query above is just an example to get smart contract events as APIs. 

You can write different types of queries, simple or complex, to get any type of on-chain data for more than 20 blockchains, including the BNB chain.

Let’s see a few more examples of how to get different types of data from the BNB.

### Getting Latest Transaction

To get the latest transactions on BNB chain, use the following query. 

You can run this query here — [graphql.bitquery.io](https://graphql.bitquery.io/)

```
{
    ethereum(network: bsc) {
        transactions(options: {desc: "block.height", limit: 10}) {
            block {
                timestamp {
                    time(format: "%Y-%m-%d %H:%M:%S")
                }
                height
            }
            address: sender {
                address
                annotation
            }
            hash
            gasValue
        }
    }
}
```


### **Result**

The query above gives the following result.

```
"data": {
    "ethereum": {
        "transactions": [
            {
            "block": {
                "timestamp": {
                    "time": "2020-10-07 09:17:37"
                },
                "height": 1130159
            },
            "address": {
                "address": "0x2d4c407bbe49438ed859fe965b140dcf1aab71a9",
                "annotation": null
            },
            "hash": "0xac7f663477324708eeb6e49ab1e29b04e4f7fb115f714b959b4df8eefe65b347",
            "gasValue": 0
            },
        ...
        ...
```

## Token Transfer analytics on BSC

Let’s say we want to see the most transferred token on the BNB chain and related analytics, use the query below.

```
{
    ethereum(network: bsc) {
        transfers(options: {desc: "count", limit: 10}, 
        amount: {gt: 0}) {
            currency {
                symbol
                address
            }
            count
            senders: count(uniq: senders)
            receivers: count(uniq: receivers)
            days: count(uniq: dates)
            from_date: minimum(of: date)
            till_date: maximum(of: date)
            amount
        }
    }
}
```

### **Result**

The above query provides the following result.


```
{
    "data": {
        "ethereum": {
            "transfers": [
                {
                    "currency": {
                        "symbol": "BNB",
                        "address": "-"
                    },
                    "count": 3116636,
                    "senders": 57247,
                    "receivers": 74561,
                    "days": 41,
                    "from_date": "2020-04-20",
                    "till_date": "2020-10-07",
                    "amount": 409963716.082384
                },
                {
                    "currency": {
                        "symbol": "Cake",
                        "address": "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"
                    },
                    "count": 910592,
                    "senders": 9406,
                    "receivers": 14671,
                    "days": 16,
                    "from_date": "2020-09-22",
                    "till_date": "2020-10-07",
                    "amount": 257813488.92522457
                },
                ...
                ...
```

## Wrapping up

We are excited to see what developers build on the BNB chain. Also, check out our [BNB chain explorer](https://explorer.bitquery.io/bsc).

If you have any questions or need help with queries, just hop on our [Telegram channel](https://t.me/Bloxy_info). Also, let us know if you are looking for blockchain data APIs.

You might also be interested in:

- [API to get Ethereum Smart Contract Events](https://bitquery.io/blog/ethereum-events-api)
- [](https://bitquery.io/blog/blockchain-graphql)[Why GraphQL is better for blockchain data APIs](https://bitquery.io/blog/blockchain-graphql)
- [APIs to get Latest Uniswap Pair Listing](https://bitquery.io/blog/uniswap-pool-api)
- [Simple rest APIs to get Uniswap data (DEX Data APIs)](https://bitquery.io/blog/dex-data-apis)
- [API to Get Ethereum Token Balance](https://bitquery.io/blog/ethereum-token-api)
- [Simple API To Get Ethereum Supply And Data](https://bitquery.io/blog/get-ethereum-total-supply)
- [Who is actually using Ethereum?](https://bitquery.io/blog/who-is-actually-using-ethereum)
- [How to get newly created Ethereum Tokens?](https://bitquery.io/blog/newly-created-ethereum-token)

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

]]></description>
        </item>
        <item>
            <title><![CDATA[How to Get Newly Created Ethereum Tokens?]]></title>
            <link>https://bitquery.io/blog/newly-created-ethereum-token</link>
            <guid>https://bitquery.io/blog/newly-created-ethereum-token</guid>
            <pubDate>Tue, 06 Oct 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
Anyone can create different types of tokens using Ethereum smart contracts. At the time of writing this article, more than 112,373 different tokens were already created on the Ethereum blockchain using [ERC20](https://bloxy.info/list_tokens/ERC20), [ERC721](https://bloxy.info/list_tokens/ERC721), [ERC223](https://bloxy.info/list_tokens/ERC223), [ERC827](https://bloxy.info/list_tokens/ERC827) standards.

Ethereum users create more than 100 tokens on an average day. This data can help you to get early access to new projects, which can 

This article will show you how to get newly created Ethereum tokens using a simple GraphQL query.

The following query provides all the newly created token for ERC20, ERC721, ERC223, ERC827 standards. It means whenever a new smart contract of this standard is deployed, our database index those smart contract as Tokens.

You can run the given query, our [Bitquery GraphQL editor](https://graphql.bitquery.io/). ([https://graphql.bitquery.io/](https://graphql.bitquery.io/))

## Newly created Ethereum Tokens

```
{
    ethereum {
        smartContractCalls(options: {desc: "block.height", limit: 10}, 
        smartContractMethod: {is: "Contract Creation"}, 
        smartContractType: {is: Token}) {
            block {
                height
                timestamp {
                    time
                }
            }
            smartContract {
                contractType
                address {
                    address
                    annotation
                }
                currency {
                    name
                    symbol
                    decimals
                    tokenType
                }
            }
        }
    }
}
```

[Here](https://gist.github.com/buddies2705/33ada862f305a9f4d0145298f96aa564) is the Github gist for the above query. Besides, the above GraphQL query can be used as an API.

## Results

```
{
    "data": {
        "ethereum": {
            "smartContractCalls": [
                {
                    "block": {
                        "height": 10999795,
                        "timestamp": {
                            "time": "2020-10-06 03:36:28"
                        }
                    },
                    "smartContract": {
                        "contractType": "Token",
                        "address": {
                            "address": "0xc5ffbdce0a51b96f3df227b48245389d4c3ed833",
                            "annotation": null
                        },
                        "currency": {
                            "name": "MachiX Dao Shares",
                            "symbol": "MACHIXDAO",
                            "decimals": 18,
                            "tokenType": "ERC20"
                        }
                    }
                },
                {
                    "block": {
                        "height": 10998520,
                        "timestamp": {
                            "time": "2020-10-05 22:47:49"
                        }
                    },
                    "smartContract": {
                        "contractType": "Token",
                        "address": {
                            "address": "0x6065651e64e94e3148490ab56027034aebb3fe86",
                            "annotation": null
                        },
                        "currency": {
                            "name": "ydex.finance",
                            "symbol": "YDEX",
                            "decimals": 18,
                            "tokenType": "ERC20"
                        }
                    }
                },
                {
                    "block": {
                        "height": 10998232,
                        "timestamp": {
                            "time": "2020-10-05 21:38:47"
                        }
                    },
                    "smartContract": {
                        "contractType": "Token",
                        "address": {
                            "address": "0x02413c345233f06963cf86c642f5f41f3a189c16",
                            "annotation": null
                        },
                        "currency": {
                            "name": "Gifts by Adam Priester",
                            "symbol": "GIFTSBYADAMPRIESTER",
                            "decimals": 0,
                            "tokenType": "ERC721"
                        }
                    }
                }
```

As you can see above query provide the token details and also the token standard types. 

You can tweak the query to get more details or filter the results based on your needs. Besides, you can also add a data time filter if you want.

Here is an example:

```
{
    ethereum {
        smartContractCalls(options: {desc: "block.height", limit: 10}, 
        date:{since: "2020-10-01", till: "2020-10-31"},
        smartContractMethod: {is: "Contract Creation"}, 
        smartContractType: {is: Token}) {
            block {
                height
                timestamp {
                    time
                }
            }
            smartContract {
                contractType
                address {
                    address
                    annotation
                }
                currency {
                    name
                    symbol
                    decimals
                    tokenType
                }
            }
        }
    }
}
```

Let us know how you plan to use this API. If you have any questions, you can ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, let us know if you are looking for blockchain data APIs.

You might also be interested in:

- [API to get Ethereum Smart Contract Events](https://bitquery.io/blog/ethereum-events-api)
- [Why GraphQL is better for blockchain data APIs](https://bitquery.io/blog/blockchain-graphql)
- [APIs to get Latest Uniswap Pair Listing](https://bitquery.io/blog/uniswap-pool-api)
- [Simple rest APIs to get Uniswap data (DEX Data APIs)](https://bitquery.io/blog/dex-data-apis)
- [API to Get Ethereum Token Balance](https://bitquery.io/blog/ethereum-token-api)
- [Simple API To Get Ethereum Supply And Data](https://bitquery.io/blog/get-ethereum-total-supply)
- [Who is actually using Ethereum?](https://bitquery.io/blog/who-is-actually-using-ethereum)

## **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[API to get Ethereum Smart Contract Events]]></title>
            <link>https://bitquery.io/blog/ethereum-events-api</link>
            <guid>https://bitquery.io/blog/ethereum-events-api</guid>
            <pubDate>Mon, 05 Oct 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
As we know Ethereum blockchain only output events and transactions. Therefore, events provide very important insights into smart contract activities.

However, extracting, storing, and indexing these events can be troublesome for many developers.

Therefore, we provide [Blockchain GraphQL APIs](https://bitquery.io/labs/graphql) to get events data for any Ethereum smart contract.

In this article, we will see how to get smart contract events from famous Ethereum protocols using Bitquery GraphQL API.

## Tether denylist and destroying funds for denylisted users

[Tether (USDT) stablecoin smart contract](https://explorer.bitquery.io/ethereum/token/0xdac17f958d2ee523a2206206994597c13d831ec7) has a mechanism to embargo addresses and destroyed funds of those addresses by simply subtracting the balance from the total supply.

![Smart contract example](/blog/ethereum-events-api/smart-contract-events.png)

Every time Tether bans a user, it will emit an “AddBlackList” event. Using the following query you can get these events.


```
{
    ethereum {
        smartContractEvents(options: {desc: "block.height", limit: 10},
        smartContractEvent: {is: "AddedBlackList"},
        smartContractAddress: 
        {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}) {
            block {
                height
                timestamp {
                    iso8601
                    unixtime
                }
            }
            arguments {
                value
                argument
            }
        }
    }
}
```

If you also want to know about the destroyed USDT funds of embargoed users. You can track the “DestroyedBlackFunds” event.

```
{
    ethereum {
        smartContractEvents(options: {desc: "block.height", limit: 10},
        smartContractEvent: {is: "DestroyedBlackFunds"},
        smartContractAddress: 
        {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}) {
            block {
                height
                timestamp {
                    iso8601
                    unixtime
                }
            }
            arguments {
                value
                argument
            }
        }
    }
}
```

## Tracking ENS registrations

If you want to know the newly registered ENS domains, you can track the “NameRegistered” event of the [ENS Base Registrar smart contract](https://explorer.bitquery.io/ethereum/token/0xdac17f958d2ee523a2206206994597c13d831ec7) by using the query below.

```
{
    ethereum {
        smartContractEvents(options: {desc: "block.height", limit: 10},
        smartContractEvent: {is: "NameRegistered"},
        smartContractAddress: 
        {is: "0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85"}) {
            block {
                height
                timestamp {
                    iso8601
                    unixtime
                }
            }
            arguments {
                value
                argument
            }
        }
    }
}
```

## Tracking Aave Flash loans

Interested in flash loans? use the following query to get the latest FlashLoan events emitted by the Aave’s [Lending pool smart contract](https://explorer.bitquery.io/ethereum/smart_contract/0x398ec7346dcd622edc5ae82352f02be94c62d119). 

```
{
    ethereum {
        smartContractEvents(options: {desc: "block.height", limit: 10},
        smartContractEvent: {is: "FlashLoan"},
        smartContractAddress: 
        {is: "0x398eC7346DcD622eDc5ae82352F02bE94C62d119"}) {
            block {
                height
                timestamp {
                    iso8601
                    unixtime
                }
            }
            eventIndex
            arguments {
                value
                argument
            }
        }
    }
}
```

## Uniswap’s newly created Pools/Pools

Want to know about newly created Uniswap pools/pairs? Use the query below to track the “PairCreated” event emitted by the [Uniswap Factory smart contract](https://explorer.bitquery.io/ethereum/smart_contract/0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f).

```
{
    ethereum {
        smartContractEvents(options: {desc: "block.height", limit: 10},
        smartContractEvent: {is: "PairCreated"},
        smartContractAddress: 
        {is: "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f"}) {
            block {
                height
                timestamp {
                    iso8601
                    unixtime
                }
            }
            eventIndex
            arguments {
                value
                argument
            }
        }
    }
}
```

If you have any questions, you can ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, let us know if you are looking for blockchain data APIs.

You might also be interested in:

- [Why GraphQL is better for blockchain data APIs](https://bitquery.io/blog/blockchain-graphql)
- [APIs to get Latest Uniswap Pair Listing](https://bitquery.io/blog/uniswap-pool-api)
- [Simple rest APIs to get Uniswap data (DEX Data APIs)](https://bitquery.io/blog/dex-data-apis)
- [API to Get Ethereum Token Balance](https://bitquery.io/blog/ethereum-token-api)
- [Simple API To Get Ethereum Supply And Data](https://bitquery.io/blog/get-ethereum-total-supply)
- [Who is actually using Ethereum?](https://bitquery.io/blog/who-is-actually-using-ethereum)

## **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Eating blockchain data using GraphQL spoon]]></title>
            <link>https://bitquery.io/blog/blockchain-graphql</link>
            <guid>https://bitquery.io/blog/blockchain-graphql</guid>
            <pubDate>Mon, 28 Sep 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
In this article, we will talk about how to get blockchain data (on-chain data) using Bitquery GraphQL APIs and why it’s better than the product out there. 

**Note:** The article is focused on developers and engineering teams.

## Data problems in the Blockchain space

Blockchains only emits transactions and events. You can run a blockchain node and consume this raw data, store it, and then query it based on your application needs. 

However, if you are a developer, you just want to focus on your application. Running, marinating, and then storing, indexing, and maintaining the database is a overhead. This extra effort kills many blockchain ideas everyday.

Many blockchain data provides like provide simple APIs to consume blockchain data. However, almost all of them provide you with rest APIs. 

Rest API good enough to get your job done, but they are not the best choice when we talk about consuming complex blockchain data. 

In this article, I will argue, why our GraphQL APIs are better for building complex blockchain products. If you already know GraphQL, then get started with the first [Blockchain GraphQL query](https://bitquery.io/blog/blockchain-graphql-query).

## What is GraphQL?

GraphQL is the syntax that describes how to ask for the data. It is a query language for APIs using which you can describe your exact data needs. 

GraphQL is better than rest APIs for many reasons.

## Get exactly you ask for

With GraphQL, you get what you describe in your queries. Nothing more, nothing less. This reduce network call size and increase performance.

Let’s take an example where you just need the latest block height number nothing else.

Usually, in rest APIs, you get an endpoint like — `/get/latestblock`and it provides you all the details of the latest block for a given blockchain, even if you just need the height.

With GraphQL you can write something like below. 

Note: You can test these queries here — [https://graphql.bitquery.io/](https://graphql.bitquery.io/)

```
{
    ethereum {
        blocks(options: {desc: "height", limit: 1}) {
            height
        }
    }
}
```

And you get the following result

```
{
    "data": {
        "ethereum": {
            "blocks": [
                {
                    "height": 10928214
                }
            ]
        }
    }
}
```

Let’s say you also want to know the transaction count in the latest block. You just need to add the `transactionCount` in the query.

```
{
    ethereum {
        blocks(options: {desc: "height", limit: 1}) {
            height
            transactionCount
        }
    }
}
```

Run the query above and you will get the following result:

```
{
    "data": {
        "ethereum": {
            "blocks": [
                {
                    "height": 10928214,
                    "transactionCount": 142
                }
            ]
        }
    }
}
```

Did you see it? we are only getting what we need, nothing more, nothing less.

## One request, many resources

Let’s say you want to see the block count of Bitcoin and Ethereum blockchain. Usually, in rest APIs, you have `/bitcoin/blocks` and `/ethereum/blocks` endpoints and you need to call both of them to get the numbers of blocks in both blockchains.

However, with GraphQL you can write a single query to get data from both blockchains.

```
{
    bitcoin {
        blocks {
            count
        }
    }
    ethereum {
        blocks {
            count
        }
    }
}
```

When you run the query above, you will get the following result.

```
{
    "data": {
        "bitcoin": {
            "blocks": [
                {
                    "count": 650429
                }
            ]
        },
        "ethereum": {
            "blocks": [
                {
                    "count": 10953695
                }
            ]
        }
    }
}
```

This is a significant boost for your application performance and also help you build application faster and extend them easily.

## Single Endpoint for every request

Unlike rest, where you need to manage multiple resource endpoints. With GraphQL, you only get a single endpoint and you hit all your queries to that endpoint. For example, our GraphQL endpoint is [graphql.bitquery.io](https://graphql.bitquery.io/).

## Scale, Documentation, Integration, and better readability

GraphQL is easy to scale, for example, currently, we support more than 20 blockchains through our APIs and you can get data across blockchain using our GraphQL endpoint. GraphQL automatically generates schema documentation, which is easier to read and understand when integrating with APIs.

In addition, GraphQL descriptive query provides better code readability.

However, there are also some disadvantages of using GraphQL APIs like browser caching. Because, there is only a single end point, therefore browser caching for GraphQL requests doesn’t work. In addition, error handling is also different then rest APIs.

You can read more about why [GraphQL is better than rest APIs](https://www.howtographql.com/basics/1-graphql-is-the-better-rest/).

**Also, Read**

- [APIs to get Latest Uniswap Pair Listing](https://bitquery.io/blog/uniswap-pool-api)
- [Simple rest APIs to get Uniswap data (DEX Data APIs)](https://bitquery.io/blog/dex-data-apis)
- [API to Get Ethereum Token Balance](https://bitquery.io/blog/ethereum-token-api)
- [Simple API To Get Ethereum Supply And Data](https://bitquery.io/blog/get-ethereum-total-supply)
- [Who is actually using Ethereum?](https://bitquery.io/blog/who-is-actually-using-ethereum)

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Crypto Regulations in Major Jurisdictions]]></title>
            <link>https://bitquery.io/blog/crypto-regulations-in-major-countries</link>
            <guid>https://bitquery.io/blog/crypto-regulations-in-major-countries</guid>
            <pubDate>Mon, 28 Sep 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
DISCLAIMER: _The information provided in this article is for general informational and educational purposes only. It is not intended as, and should not be construed as legal advice. While efforts were made to ensure the accuracy of the information, laws, and regulations may vary by jurisdiction and are subject to change. Readers are advised to consult with a qualified legal professional for advice tailored to their specific circumstances. The author and publisher disclaim any liability for any actions taken or not taken based on the contents of this article._

Throughout history, states have pursued control over economic transactions using a wide array of regulatory tools, from the Sherman Act and the Securities Act in the U.S. to the complex regulation of derivatives. Just a few years after Satoshi Nakamoto published the now infamous whitepaper, states all around the world realized that a new potential disruption for the financial system was being born and that it required a regulatory framework.

In this article, we analyze crypto regulations and their developments across the most important jurisdictions. The range of analyzed issues was chosen on the basis of their applicability in the course of business activities, that can be done in the selected jurisdictions.

The reason behind such a choice of described jurisdictions is, such as the existence of regulatory policy for crypto-assets and blockchain, the history of its application, and the exciting business activity in the described countries.

## Importance of Crypto Compliance

For companies in the crypto sphere it is extremely imporant to be aware of different requirements to meet their compliance obligations. That’s is because a lot of entities have faced charges, fines, and penalties, in some cases, up to criminal liability for various violations. Mistakes in terms of compliance in some jurisdictions can easily entail a whole array of legal troubles.

This article is written for those interested in entering the crypto domain, but are not about the regulations or are currently looking for the best suitable legal regime. Please note, that this is an educational article and we strongly advice to consult with a qualified attorney for any specifics.

## Common Approaches

A number of states prefer not to draft any new legislation regarding crypto-assets and try to fit to exciting scopes of regulation. For example, usually, governments refer to cryptocurrency as “virtual assets”. Thus, they are not creating a special legal regime for cryptocurrencies by extending the exciting one for virtual asset relates transactions: payment methods, sales, Initial Coin Offerings, Anti Money Laundering, etc.

## The Regulators

Usually, regulations for digital assets and crypto are drafted by national financial regulators. For instance, in Singapore, the regulations are issued by the Monetary Authority of Singapore (“MAS”). Some states devote the regulations to their respective Central Banks.

![](/blog/blockchain/crypto-regulations-in-major-countries/table.png)

## The United States

### Legality

In the United States, the legal status of cryptocurrencies is shaped by federal agencies like the Securities Exchange Comission (“SEC”), Commodity Futures Trading Commission (“CFTC”), and the US Treasury. While the Fed has been active in addressing cryptocurrencies, formal regulations remain limited. Recent legislative efforts, such as the Responsible Financial Innovation Act [[1](https://www.congress.gov/bill/118th-congress/senate-bill/2281#:~:text=Lummis%2DGillibrand%20Responsible%20Financial%20Innovation%20Act,-This%20bill%20provides&text=The%20bill%20also%20establishes%20consumer,by%20an%20independent%20public%20accountant.)] and the Digital Commodities Consumer Protection Act [[2](https://www.congress.gov/bill/117th-congress/senate-bill/4760)], aim to provide clarity and integrate digital assets into existing legal frameworks. States vary in their approach, with some, like Wyoming, enacting favorable laws to attract blockchain businesses, while others impose stricter regulations, such as requiring money transmitter licenses for cryptocurrency transactions.

### AML/KYC

Congress, the DOJ, and the Treasury have targeted anti-money laundering in the digital asset industry. In 2023, Senator Warren introduced the Digital Asset Anti-Money Laundering Act [[3](https://www.congress.gov/bill/118th-congress/senate-bill/2669#:~:text=Shown%20Here%3A&text=Under%20the%20act%2C%20financial%20institutions,establish%20rules%20regarding%20digital%20assets.)]. This legislation would require virtual asset service providers to report suspicious transaction activity to federal regulators. The bill mandates that FinCEN require U.S. persons to report digital asset transactions exceeding $10,000 through foreign accounts. Additionally, it directs the Treasury to create regulations for financial institutions dealing with digital assets and requires the SEC and CFTC to implement anti-money laundering risk assessments.

VASPs are also under an obligation to obliged to take precautions against economic crimes, including implementing Know Your Customer (KYC).

### Taxation

In the US, cryptocurrencies are treated as property for tax purposes. Crypto holders must report capital gains or losses upon selling, trading, or disposing of their crypto assets. Short-term capital gains (for assets held less than one year) are taxed at the same rates as ordinary income, ranging from 10% to 37% based on the individual’s total taxable income. Long-term capital gains (for assets held for more than one year) are taxed at lower rates, which can be 0%, 15%, or 20% depending on the taxpayer's income level. Additionally, cryptocurrency transactions such as receiving crypto as payment for goods or services, staking rewards, mining, airdrops, or referral bonuses are considered taxable income.

### Trading

The sale of cryptocurrency is regulated if it involves selling a security under state or federal law, or counts as money transmission under state law or makes the seller a money services business (MSB) under federal law. For example, the CFTC took action against Avraham Eisenberg for allegedly misappropriating over US$100 million in digital assets through "oracle manipulation" on the Mango Markets platform [[4](https://www.cftc.gov/PressRoom/PressReleases/8647-23#:~:text=The%20complaint%20alleges%20that%20on,Mango%20Markets%2C%20which%20he%20used)].

## United Kingdom

Cryptocurrency is legal in the United Kingdom. The UK government and Parliament had adopted a pro-innovation approach while protecting consumers and maintaining stability of the financial system. HM Treasury and the Financial Conduct Authority (FCA), have set up frameworks to regulate various aspects of cryptoassets, including security tokens, exchange tokens (BTC), utility tokens, and NFTs.

The UK does not directly regulate cryptocurrency itself. Instead, the regulators decided to regulate specific characteristics and activities involving this type of asset. Crypto-related activities in the UK are subject to two main regulatory frameworks. First, if a cryptoasset activity poses a money laundering risk, firms must register with the FCA under the Money Laundering Regulations (MLRs) [[5](https://www.legislation.gov.uk/uksi/2017/692/contents)]. Second, the regulation applies if a crypto asset qualifies as a "specified investment" under the UK’s security regulation [[6](https://www.fca.org.uk/publication/finalised-guidance/fg23-3.pdf)].

### AML/KYC

The UK’s MLRs require cryptoasset businesses to implement risk-based policies and procedures to prevent their systems from being used for money laundering or terrorist financing. Since January 2020, when the Fifth Money Laundering Directive (MLD5) was incorporated into UK law, businesses involved in cryptoasset activities must register with the FCA and comply with these regulations.

The MLRs apply to cryptoasset businesses identified as being at higher risk for money laundering or terrorist financing. These businesses, referred to as “relevant persons,” must ensure they follow the MLRs to operate legally in the UK.

### Taxation

There is currently no specific tax regime in the UK for cryptoasset transactions, so existing tax rules apply, though some uncertainty remains. Tax treatment depends on the nature and use of the cryptoasset, not just its classification.

HMRC has issued guidance, mainly on the taxation of exchange tokens, but this guidance is not legally binding. Notably, exchange tokens are not treated as money or fiat currency for tax purposes, and contributions of these tokens to pension funds are not tax-relievable. In April 2022, the government announced plans to review the tax system to support the cryptoasset market, including considerations for DeFi loans, extending the Investment Manager Exemption to cryptoassets, and negotiating new global tax reporting standards.

### Trading

There is currently no specific regulation on crypto trading in the UK, however the general consensus is that trading in cryptocurrencies is legal.

## China

### Legality

China has implemented a prohibitory stance on cryptocurrency. Chinese regulations emphasize that virtual currencies lack legal status and classify related activities as illegal financial operations. Offshore exchanges are also prohibited from serving Chinese residents, with strict enforcement against any form of assistance to these exchanges.

### Taxation

Up to this moment, there are no express provisions for taxing crypto assets. But, if cryptocurrencies are being traded as commodities, the transaction may be imposed with value-added tax for the sale of intangible assets.

### AML and KYC

AML mechanisms in China largely focus on the KYC system, primarily on the client identity data and transaction records, and on transactions in which large amounts of funds are used (including dubious transactions). However, most of operations in PRC are made not in the sight of AML mechanisms. Moreover, the cross-border flow of crypto assets bypasses the monitoring and approval of the State Administration of Foreign Exchange.

### Crackdown on traders

As recently as in June 2020 the Chinese authorities have cracked down on several thousands of bank accounts belonging to cryptocurrency traders. Chinese police allege that accounts were involved in illicit activities, including money laundering. This shows the intent of the PBOC (People's Bank of China) to actively hunt down money laundering schemes. However, most of the time such crackdowns of authorities are groundless.

## India

India still needs to adopt specific legislation on cryptocurrencies. However, it has amended its corporate legislation, to require reporting of virtual digital assets.

The government’s stance on VDAs, which was expected to be clarified with the proposed Cryptocurrency and Regulation of Official Digital Currency Bill, 2021, remains pending. Public statements suggest a shift towards a globally coordinated regulatory framework. As G20 president, India is leading international discussions on crypto regulation and has issued a Presidency Note to guide global efforts in establishing a framework for crypto assets.

### AML/KYC

The Prevention of Money Laundering Act (PMLA) and its accompanying rules aim to prevent money laundering, seize assets obtained through such activities, and ensure that those involved are prosecuted.

On March 7, 2023, the Ministry of Finance issued a notification expanding the scope of the PMLA to include all entities dealing with Virtual Digital Assets (VDAs), such as exchanges, custodians, and wallet providers [[7](https://www.saikrishnaassociates.com/department-of-revenue-brings-virtual-digital-assets-within-the-ambit-of-the-prevention-of-money-laundering-act-2002/)]. This allows authorities to closely monitor and track encrypted transactions, including those that cross international borders. These entities are now also subject to the reporting obligations set out in the PMLA and its rules.

However, since the PMLA only applies within India, it is implied that foreign cryptocurrency exchanges operating outside India, even if they offer services to Indian users, are not subject to this notification.

### Taxation

The Finance Act, 2022, and subsequent guidelines have placed VDAs under the tax regime. A broad definition of VDAs includes both digital assets and NFTs. Income from the transfer of VDAs is taxed at 30%, with no deductions allowed except for the cost of acquisition. Additionally, a 1% withholding tax is required on VDA transactions. Gifts of VDAs are also taxable if they exceed INR 50,000 in value.

### Trading

In the absence of specific laws governing Virtual Digital Assets (VDAs), existing regulations related to securities trading, commodities, foreign exchange, and deposit acceptance may apply depending on the nature and use of the VDA.

An asset like Bitcoin can be freely traded by individuals in India, with only income tax obligations. However, Indian entities are obliged to report their VDA holdings in their annual returns. If digital assets are traded by Indian residents outside India, they may fall under foreign exchange regulations. If VDAs issued by Indian entities grant ownership rights or constitute securities, those entities may need to comply with securities and investment regulations.

## Singapore

The Singapore Government adopts a permissive and pragmatic approach towards cryptocurrency regulation. Cryptocurrencies are not treated as legal tender; instead, their classification varies based on their characteristics, potentially falling under-regulated categories such as capital markets products, e-money, or digital payment tokens (DPTs). The Monetary Authority of Singapore (“MAS”) has not issued any cryptocurrencies but launched exploratory projects to test blockchain and CBDCs for financial applications [[8](https://www.mas.gov.sg/schemes-and-initiatives/project-ubin)].

To address emerging risks, Singapore has introduced cryptocurrency trading guidelines, amended the Payment Services Act 2019 (PSA), and enacted the Financial Services and Markets (FSM) Act. Additionally, in a 2023 landmark ruling, the Singapore High Court recognized crypto assets as personal property, capable of being claimed or held in trust, solidifying their legal standing.

### AML/KYC

Singapore’s AML regulations apply to cryptocurrencies, requiring reporting and compliance measures. Entities must report suspicious transactions and comply with guidelines under various AML acts. MAS imposes specific regulations on digital payment token services, including mandatory reporting, compliance with financial sanctions, and additional safeguards to protect consumers and ensure financial stability. The regulations extend to entities operating both within and outside Singapore, ensuring comprehensive oversight in the fight against money laundering and terrorism financing.

### Taxation

Taxation of cryptocurrency in Singapore depends on the nature of the activity undertaken by a person or entity. Profits from cryptocurrency trading conducted as part of regular business activities are subject to income tax. However, capital gains from cryptocurrencies held as long-term investments are not taxed, as Singapore does not impose CGT. When cryptocurrencies are used for payment, the business providing goods or services is taxed on the value of those goods or services, as cryptocurrencies are treated as intangible property and transactions are considered to be facilitated by a “barter trade”.

### Trading

Cryptocurrency trading in Singapore is subject to regulation based on whether the cryptocurrency falls under the Payment Services Act or the Securities and Futures Act. If the cryptocurrency is classified as a security, securities-based derivative, or a unit in a collective investment scheme, a prospectus must be prepared and lodged with the Securities Comission before offering it for sale, unless an exemption applies under the SFA, such as private placement or small offer exemptions.

## SAR Hong Kong

Under Hong Kong law, cryptocurrencies are not recognized as legal tender and are not regulated by the Hong Kong Monetary Authority (“HKMA”). The Securities and Futures Commission (SFC) and the HKMA define virtual assets broadly as digital representations of value, including digital tokens, stablecoins, and security or asset-backed tokens, regardless of whether they are classified as securities or futures contracts under the Securities and Futures Ordinance. However, CBDCs are excluded from this definition.

### AML/KYC

Under Hong Kong's Anti-Money Laundering and Counter-Terrorist Financing Ordinance (AMLO), financial institutions—including HKMA-authorized institutions (banks), SFC-licensed corporations, licensed insurance companies, stored value facility issuers, and money service operators, are subject to AML/KYC obligations. These obligations also extend to licensed VASPs under the new regulatory regime.

### Taxation

Hong Kong follows a territorial taxation treatment, meaning only profits derived from business activities within Hong Kong are subject to profits tax (15% for unincorporated businesses and 16.5% for corporations). Notably, Hong Kong does not impose turnover taxes, CGT, withholding tax on dividends and interest, or generally tax dividend income.

### Trading

In Hong Kong trading of virtual asset products is regulated under the Securities and Futures Ordinance and is considered as dealing in "complex products." The SFC and the HKMA require intermediaries distributing digital asset products to adhere to industry guidelines, including ensuring suitability, conducting thorough due diligence, and providing specific risk disclosures. Intermediaries must also ensure that clients meet the "Sufficient Net Worth Requirement," meaning they have enough financial capacity to bear potential losses.

## United Arab Emirates

The UAE is considered to be one of the top business and crypto hubs in the world. Emirates are deemed to be considered one of the most progressive crypto jurisdictions on the planet.

### AML/KYC

VASPs are obliged to implement AML/KYC measures to prevent the use of virtual assets for illicit purposes. This includes measures to identify and report suspicious activity, aligning the reporting with national AML legislation and FATF requirments.

### Taxation

UAE, provides a highly favorable tax environment for cryptocurrency investors. Jurisdiction imposes no personal income tax or CGT on individual crypto holdings, making it an attractive destination for global investors. This means that profits from activities such as the sale, staking, or mining of cryptocurrencies remain untaxed for individuals.

### Trading

Crypto traders in the UAE must comply with the country's regulatory framework, which includes licensing requirements, AML regulations, and KYC procedures. At the federal level, the Securities and Commodities Authority oversees these activities through the Crypto Assets Activities Regulation which governs the offering, issuing, listing, trading, and associated financial services like custody and fundraising platforms.

In Dubai, the Virtual Asset Regulatory Authority was established to regulate virtual asset services and ensure investor protection and financial stability. VARA enforces the Virtual Assets Law No. 4 of 2022, which applies throughout Dubai, excluding the DIFC zone, and covers various related activities, including brokerage, custody, and exchange services [[9](https://amca.ae/dubai-virtual-assets-regulation-law-4-2022)].


## European Union

Cryptocurrency is legal within the European Union, where the EU's Markets in Crypto-Assets (“MiCA”) regulation provides a comprehensive framework for the sector [[10](https://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELEX:32023R1114)]. MiCA categorizes crypto-assets into three main types: utility tokens, asset-referenced tokens, and electronic money tokens. The regulation aims to ensure market integrity, consumer protection, and financial stability, while also fostering innovation. Additionally, MiCA introduces specific rules for significant ARTs and EMTs, but generally excludes NFTs and financial instruments from its scope.

The deeper regulation is within the jurisdiction of the Member States. MiCA provides just the bedrock for national legislation.

### AML/KYC

The Anti-Money Laundering and Countering the Financing of Terrorism regulation framework within the European Union is primarily governed by the Anti-Money Laundering Directive (AMLD). The EU is currently preparing the sixth version of this directive (AMLD6), which is expected to be enacted between late 2024 and early 2025 [[11](https://www.europarl.europa.eu/legislative-train/theme-an-economy-that-works-for-people/file-6th-directive-on-amlcft-(amld6))]. This framework mandates that AML/CFT policies must be proportionate to the risks posed by the entity, considering its scale and type of business. For instance, Virtual Asset Service Providers (VASPs) operating as exchanges are deemed to have higher risk profiles compared to those offering custodian services, which are less vulnerable to money laundering activities.

In addition to these general requirements, VASPs must implement specific measures to mitigate risks associated with transactions involving self-hosted addresses. These measures include taking risk-based actions to identify and verify the identities of the originators or beneficiaries of transfers involving self-hosted addresses, as well as gathering additional information on the origin and destination of the crypto-assets. Furthermore, VASPs are required to conduct enhanced ongoing monitoring of such transactions and adopt any other necessary measures to mitigate the risks of money laundering, terrorism financing, and evasion of targeted financial sanctions.

### Taxation

There is no EU-wide taxation. However, some EU implement taxation of digital assets.

### Trading

MiCA introduces a comprehensive framework for the regulation of crypto-assets across the European Union. MiCA harmonizes rules related to the issuance, offering, and trading of crypto-assets, ensuring consistency with existing financial services legislation. It establishes a clear regulatory structure, categorizing various types of crypto-assets, including unclassified crypto-assets (e.g., Bitcoin), E-Money tokens (stablecoins), and Asset-Referenced tokens (RWA stablecoins pegged to assets).

Furthermore, MiCA requires crypto-asset service providers to obtain authorization from their respective national authority, aligning with EU financial services regulations. CASPs must adhere to strict requirements regarding governance, conduct of business, and economic substance. The regulation also introduces market abuse rules to combat insider trading and market manipulation in the crypto space. MiCA's provisions, have taken effect from June 2024, signifing a crucial step towards a unified and transparent regulatory environment for crypto-assets in the EU, contributing to the broader digital finance ecosystem.

## Conclusion

All companies engaged in crypto-related operations must be ready for compliance procedures, primarily in the sphere of taxation and AML, as it seems like those fields are the most worrying for all the major jurisdictions.

Some of the laws of the major jurisdiction are already being applied to companies in various, as it is proved by litigation examples. Sooner or later, we will witness the same level of regulation and liabilities linked with it, as it is currently in the banking sector and in the sphere of securities. That means that in some time in the future there will be criminal cases against crypto companies, who do not comply with the necessary requirements. Why? Because such a process is inevitable. Governments worldwide always had pursued control over the financial sector and crypto is a part of this future.]]></description>
        </item>
        <item>
            <title><![CDATA[Who is actually using Ethereum? (September)]]></title>
            <link>https://bitquery.io/blog/who-is-actually-using-ethereum</link>
            <guid>https://bitquery.io/blog/who-is-actually-using-ethereum</guid>
            <pubDate>Mon, 28 Sep 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
Recently we have seen TLV (Total locked value) plastered all over the crypto sphere touting the success and growth of DeFi protocols. Today, we will use a simple metric “Unique smart contract callers” to understand how many users actually using these protocols.

**Note:** We have used data from 1–27 September 2020. For many complex protocols, we used one or multiple smart contracts to calculate unique callers.

**Smart Contract Unique Callers** — Unique addresses which called a smart contract for any reason.

## Stablecoins are leading the way

Tether(USDT) is one of the most popular stablecoin in the crypto domain. [USDT token smart contract](https://explorer.bitquery.io/ethereum/token/0xdac17f958d2ee523a2206206994597c13d831ec7) has been called by **937,820** unique callers in the month of September. On the other hand, [USDC token smart contract](https://explorer.bitquery.io/ethereum/token/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48) is called by **132,944** callers and the popular DeFi stablecoin [DAI Token smart contract](https://explorer.bitquery.io/ethereum/token/0x6b175474e89094c44da98b954eedeac495271d0f) is called by **76,811** unique callers.

Other than these 3 stablecoins, every other stablecoin has less than 10K unique callers this month.

## DEXs are leading the DeFi protocols

Uniswap is the most popular DeFi project and its [router contract](https://explorer.bitquery.io/ethereum/smart_contract/0x7a250d5630b4cf539739df2c5dacb4c659f2488d) had 242,010 unique callers in September.

On the other hand, Sushiswap which made news by forking Uniswap had 15,548 unique callers on its [Masterchef staking pool smart contract](https://explorer.bitquery.io/ethereum/smart_contract/0xc2edad668740f1aa35e4d8f227fb8e17dca888cd). However, [SushiSwap router’s smart contract](https://explorer.bitquery.io/ethereum/smart_contract/0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f) is only called by 13,467 unique users.

Another popular DEX protocol [Kyber token contract](https://explorer.bitquery.io/ethereum/token/0xdd974d5c2e2928dea5f71b9825b8b646686bd200) had called by 15,197 unique callers where the main protocol contracts (NetworkProxy contracts) is only called by 3669 times.

One of the earliest DEX protocols, the [0x Token contract](https://explorer.bitquery.io/ethereum/token/0xe41d2489571d322189246dafa5ebde1f4699f498) called by 10,236 unique callers but [0x exchange contract](https://explorer.bitquery.io/ethereum/smart_contract/0x61935cbdd02287b511119ddb11aeb42f1593b7ef) only called by 710 unique callers.

Other popular DEX/DEX aggregators such as 1inch.exchange had 8,338 and Tokenlon has 7.862 unique callers on their smart contracts in the month of September.

## Few using DeFi protocols

As we were looking into data, we realized that almost all the DeFi protocols have more users interacting with their token contracts rather than protocol contracts. In other words, more people are investing in protocols tokens rather than using these protocols.

Recently launched [Uniswap token contract](https://explorer.bitquery.io/ethereum/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984), had 242,010 unique callers in the month of September, which is pretty close when it comes to unique callers on its [Uniswap exchange contract](https://explorer.bitquery.io/ethereum/smart_contract/0x7a250d5630b4cf539739df2c5dacb4c659f2488d) (242,010).

[Sushi token contract](https://explorer.bitquery.io/ethereum/token/0x6b3595068778dd592e39a122f4f5a5cf09c90fe2) had 32,986 unique callers, which is ~2.5 times more unique callers of SushiSwap protocol contracts. (15,548)

## Automatic Money Markets (AMMs)

[Compound (COMP) token contract](https://explorer.bitquery.io/ethereum/token/0xc00e94cb662c3520282e6f5717214004a7f26888) had 18,507 unique callers; however, the protocol [Comptroller contract](https://explorer.bitquery.io/ethereum/smart_contract/0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b), which validates user actions has only 2,313 unique callers.

Similarly, [Aave (LEND) token contract](https://explorer.bitquery.io/ethereum/token/0x80fb784b7ed66730e8b1dbd9820afd29931aab03) has been called by 12,032 unique callers, however, [Aave’s lending pool contract](https://explorer.bitquery.io/ethereum/smart_contract/0x398eC7346DcD622eDc5ae82352F02bE94C62d119) is called by 8,058 times.

Another famous Stable coin AMM Curve.finance has 8,833 unique callers on its [Curve Token (CRV) smart contract](https://explorer.bitquery.io/ethereum/token/0xd533a949740bb3306d119cc777fa900ba034cd52), but it has 10,437 unique callers on its multiple token swap smart contracts. 

Swerve.finance, a fork of Curve.finance had 7,950 unique callers [Swerve Token contract](https://explorer.bitquery.io/ethereum/token/0xb8baa0e4287890a5f79863ab62b7f175cecbd433) in the month of September.

## Wrapped Tokens

Wrapped tokens are the ERC20 representation of other crypto assets such as Ethereum, Bitcoin. 

Because of the DeFi protocols, [WETH (Wrapped Ethereum)](https://explorer.bitquery.io/ethereum/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2) is also a widely used ERC20 token, which had 21,979 unique callers.

[WBTC (Wrapped Bitcoin)](https://explorer.bitquery.io/ethereum/token/0x2260fac5e5542a773aa44fbcfedf7c193bc2c599) is also had tremendous growth in the past few months and had 10,580 unique callers in the month of September. [WBTC’s unique callers](https://explorer.bitquery.io/ethereum/token/0x2260fac5e5542a773aa44fbcfedf7c193bc2c599/smart_contract) grew 300% from the month of August.

![Unique Caller by Date on Ethereum](/blog/who-is-actually-using-ethereum/unique-callers-by-date.png)

## DeFi Yield Farming Aggregators

DeFi yield aggregators made a lot of noise recently. One of the most popular yield aggregator token [YFI token](https://explorer.bitquery.io/ethereum/token/0x0bc529c00c6401aef6d220be8c6ea1667f6ad93e) has the highest price in the digital asset. [YFI token contract](https://explorer.bitquery.io/ethereum/token/0x0bc529c00c6401aef6d220be8c6ea1667f6ad93e) had 14,761 unique callers in the month of September.

However, a similar project YFvalue, had 19,016 unique callers on its [YFvalue (YFV) token contract](https://explorer.bitquery.io/ethereum/token/0x45f24baeef268bb6d63aee5129015d69702bcdfa).

A few other DeFi yield farming projects such as [KIMCHI.finance](https://explorer.bitquery.io/ethereum/token/0x1e18821e69b9faa8e6e75dffe54e7e25754beda0), had 9,741 unique callers, [YFII.finance](https://explorer.bitquery.io/ethereum/token/0xa1d0e215a23d7030842fc67ce582a6afa3ccab83) had 8,092, and [Cream.finance](https://explorer.bitquery.io/ethereum/token/0x2ba592f78db6436527729929aaf6c908497cb200) had 7,654 unique callers on their token contracts in the month September.

## Don’t forget Ponzis

A lot of Ponzi projects are also thriving on Etherum. 

[Forsage](https://explorer.bitquery.io/ethereum/smart_contract/0x5acc84a3e955bdd76467d3348077d003f00ffb97), a Ponzi project’s smart contract is one of the top 10 smart contracts based on unique callers. It had 40,066 unique callers in the month September.

Another high-risk project, such as [Etherchain](https://explorer.bitquery.io/ethereum/smart_contract/0xfa85069e3d1ca1b09945cf11d2365386b1e4430a) had 13,735 and [Million.money](https://explorer.bitquery.io/ethereum/smart_contract/0xbcf935d206ca32929e1b887a07ed240f0d8ccd22) had 8,485 unique callers on their smart contract.

## How to check Unique Callers for any contract?

You can check any callers for any given contract on Bitquery explorer or our APIs. 

To check unique callers for a given contract, just search that contract on Bitquery explorer, and there you will see a “Unique Callers By Date” widget.

For Ethereum token’s you will find this detail under the “Smart Contract” tab.

## Getting Unique callers for smart contracts using Bitquery APIs

You can also use our GraphQL APIs to get unique callers data.

Use this link — [https://graphql.bitquery.io/](https://graphql.bitquery.io/) and run the following query to get top smart contracts with the highest unique callers.

```
query  {
    ethereum {
        smartContractCalls(
        options: { desc: "unique_callers",   limit: 100}, 
        date: {since: "2020-09-01"}, 
        external: true) {
            unique_callers: count(uniq: callers) 
            smartContract {
                address {
                    address
                    annotation
                }
            }
        }
    }
}
```

To get unique callers for a particular smart contract you can use the following query. 

```
query  {
    ethereum {
        smartContractCalls(
        options: { desc: "unique_callers"}, 
        date: {since: "2020-09-01"}, 
        external: true,
        smartContractAddress: {is: "0x2be5d998c95de70d9a38b3d78e49751f10f9e88b"}) {
        
            unique_callers: count(uniq: callers) 
            smartContract {
                address {
                    address
                    annotation
                }
            }
        }
    }
}
```

**Also Read:**

- [APIs to get Latest Uniswap Pair Listing](https://bitquery.io/blog/uniswap-pool-api)
- [Single API to Get Ethereum Token Balance](https://bitquery.io/blog/ethereum-token-api)
- [API To Get Ethereum Supply And Data](https://bitquery.io/blog/get-ethereum-total-supply)
- [Simple rest APIs to get Uniswap data (DEX Data APIs)](https://bitquery.io/blog/dex-data-apis)

## **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.










]]></description>
        </item>
        <item>
            <title><![CDATA[An Overview of Markets in Crypto-assets (MiCA)]]></title>
            <link>https://bitquery.io/blog/markets-in-crypto-assets-mica</link>
            <guid>https://bitquery.io/blog/markets-in-crypto-assets-mica</guid>
            <pubDate>Mon, 21 Sep 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
European regulators are working on a regulatory framework for crypto assets since 2019. An outcome of this work, a draft legislation **Market in Crypto Assets (MiCA),** was [leaked](https://www.politico.eu/wp-content/uploads/2020/09/CLEAN-COM-Draft-Regulation-Markets-in-Crypto-Assets.pdf). In this article, we will highlight some of the crucial points of the draft legislation.

This legislation is extensive in its scope and covers all existing crypto assets and tokens. It will be applicable throughout the EEA (European Economic Area) without the need for the member nation’s specific legislation.

The legislation primarily focuses on stablecoins, and by reading the draft, you might think it as a response to mitigate the risk which might arise from the stablecoins like Facebook’s Libra.

The legislation will reform the EU crypto market and will also impact the other markets because of broad scope.

## Objectives of MiCA

The main objective of MiCA is to provide a framework for the issuance and provision of services related to crypto-assets (such as custodial wallet providers, exchanges, and trading platforms), which are not currently captured by EU financial service legislation. MiCA sets four objectives in place:

- Provide legal certainty through a sound regulatory framework for all crypto assets.
- Support innovation and fair competition, which helps in the broader adoption of crypto assets and services.
- Enforce consumer and investor protection rules and safeguard market integrity.
- Maintain financial stability by mitigating the risk that arises from stablecoins.

## Problems addressed by MiCA

EU member states currently have their state-level regulations for crypto assets. The definition of “Crypto-assets” and “Crypto service providers” are also different throughout the Union member states. Because of this, businesses face many problems, such as :

- Scaling — Businesses need to get multiple authorizations based on jurisdiction, which takes time and adds burden on the businesses.
- Access to other financial services — Many states do not allow access to other financial services such as banking because of stricter laws.
- Limit funding availability — Legal uncertainties in crypto space limits funding avenues for small businesses and startups.

Because of unclear regulations, crypto businesses need to adjust their business model throughout the union, putting additional cost and legal complexity.

Other problems, such as regulatory arbitrage, market fragmentation, fraud, cyber-attacks, and market manipulation, stifle innovation in digital asset space and discourage wider adoption.

MiCA solves this problem by providing a legal framework and establishing a single European crypto market, which reduces complexity and financial and administrative burden.

## Crypto assets Categorization

The “crypto-assets” definition(mentioned below) described by MiCA correspond to the virtual asset” definition provided by the [FATF](https://www.fatf-gafi.org/). However, it recognizes three main subcategories of the crypto assets.

1.  Utility tokens — Assets that provide access to digital applications, services, and resources on DLT.
2.  Asset reference tokens — Assets that maintain a stable value by referencing several currencies, one or more commodities, one or several crypto-assets, or a basket of such assets. For example, DAI and other commodity tokens.
3.  E-money Tokens — Assets that are based on a single fiat currency. For example, Stablecoins such as USDT, USDC.

MiCA recognizes that stablecoins can be widely adopted and pose a systemic and monetary policy risks if not regulated. Therefore, it adds a more stringent requirement for asset-reference tokens and especially for e-money tokens (Stablecoins).

## Important highlights of the MiCA

Some of the crucial points of the regulations are highlighted below:

- Under this Regulation, an issuer of crypto-assets should be considered any person offering crypto-assets to third parties.
- Crypto-assets issuers need to produce a white paper when making a public offering in the EU or seeking to list the asset on trading platforms. This white paper should include general info on the issuer, project roadmap, listing related information, rights, and obligations attached to the crypto asset, tech, and related risk.
- The issuers of crypto-assets should also be required to establish a legal entity, either in the EU or in a third country. And before offering, need to notify its white paper and marketing channel to authorities of the member state where it is registered or have a branch.
- Authorities need **not** review whitepaper before its publication.
- If you are offering your crypto asset for free or offering it to a small number of investors and have a small threshold, then you are exempted from the obligation of publishing a white paper.
- Central banks issuing crypto assets and providing services are not subject to this Regulation.
- The Regulation adds provisions to curb [cryptocurrency money laundering](https://bitquery.io/blog/cryptocurrency-money-laundering), fraud, and market manipulation activities in the EU market

## Addition requirements from Asset Reference Tokens

- Issuers of asset-referenced tokens should be subject to more stringent requirements, compared to other issuers of crypto-assets. Before issuing an asset-referenced token in the EU, the issuer needs permission from the authorities and approval of their whitepaper.
- There will be minimal capital requirements when issuing an asset-referenced token.
- The governance structure should be clearly defined for the organizations issuing asset-referenced tokens.
- Issuers of asset-referenced tokens, and any crypto-asset service providers, should be prohibited from granting interests to users of asset-referenced tokens for the length of time such users are holding the asset-referenced tokens.

## Addition requirements from E-money Tokens

-  The Regulation imposes strict conditions on the issuance of the e-money tokens, including the obligation for these e-money tokens to be issued either by a credit institution or by an electronic money institution.
-  E-money token holders should always be granted with a redemption right at any moment and at par value with the fiat currency that the e-money token is referencing.

Above all, MiCA also provides more explicit guidelines for crypto service providers and add restrictions to protect consumer rights and mitigate fraud and market manipulation.

## MiCA promotes the institutional adoption of crypto assets

MiCA treats crypto assets as traditional financial instruments while recognizing its potential in payments and capital funding. The regulation also allows existing financial institutions such as credit institutions, investment firms, and payment institutions to provide crypto assets services with any prior authorization, incentivizing institution adoption of crypto assets.

## Wrapping up

MiCA provides a much needed single market framework for crypto assets for EEA. By enabling EU-wide legislation will help businesses to offer their services throughout the EEA by passporting their services.

One of the main objectives of the legislation is to support innovation. However, requirements like establishing a legal entity and white paper approval might pose some challenges for the DeFi market. It remains to be seen how this new regime impacts the EU crypto market.

The legislation also provides a transition period and will only enter into the application after 18 months after entry into the force, except e-money provisions, which will be applicable as soon as this Regulation enters into the force.

## Major Definitions under MiCA

The Regulation provides some major definitions of various terms used throughout the document.

**Distributed ledger technology’ or ‘DLT’** — A class of technologies that support the distributed recording of encrypted data.

**Crypto Assets** — A digital representation of value or rights, which may be transferred and stored electronically, using distributed ledger or similar technology.

**Asset-referenced tokens** — A type of crypto-assets whose main purpose is to be used as a means of exchange and that purports to maintain a stable value by referring to the value of several fiat currencies, one or several commodities or one or several crypto-assets, or a combination of such assets.

**Electronic money token or e-money token** — A type of crypto-assets whose main purpose is to be used as a means of exchange and that purports to maintain a stable value by being denominated in (units of) a fiat currency.

**Utility token** — A type of crypto-assets which are intended to provide access digitally to an application, services or resources available on a distributed ledger and that are accepted only by the issuer of that token to grant access to such application, services or resources available.

**Crypto-asset service provider** — Any person whose occupation or business is the provision of one or more crypto-asset services to third parties on a professional basis;

**Crypto-asset service** — Any of the services and activities listed below relating to any crypto-assets.

- The custody and administration of crypto-assets on behalf of third parties.
- The operation of a trading platform for crypto-assets
- The exchange of crypto-assets for fiat currency
- The exchange of crypto-assets for other crypto-assets
- The execution of orders for crypto-assets on behalf of third parties
- The placement of crypto-assets
- The reception and transmission of orders for crypto-assets on behalf of third parties
- The advice on crypto-assets
- The execution of payment transactions in asset-referenced tokens

**Note**

This article is based on the draft of the proposed MiCA Regulation circulating at the time of publication, a copy of which Bitquery has obtained from public sources. It does not constitute legal or regulatory advice.

## **About Coinpath®**

[Coinpath®](https://bitquery.io/products/coinpath?utm_source=about) APIs provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

If you have any questions about [Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog), ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter [codice attivazione avast driver updater 2019](https://vipcrack.net/avast-driver-updater-crack/) below, we will keep you updated with the latest in the cryptocurrency world.

Coinpath® is a Bitquery product. [**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way.

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.
- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.
]]></description>
        </item>
        <item>
            <title><![CDATA[Uniswap API: Get Pools Data, Tokens and Create Charts]]></title>
            <link>https://bitquery.io/blog/uniswap-pool-api</link>
            <guid>https://bitquery.io/blog/uniswap-pool-api</guid>
            <pubDate>Mon, 14 Sep 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
In the last article, we showed you how to get [Uniswap trades](https://bitquery.io/blog/dex-data-apis) using simple rest APIs. Today, we will show how you get the latest Uniswap data using a single GraphQL apis.

Before we move forward, let’s understand what Uniswap pair listing is?

Anyone can create a pool of two tokens on [Uniswap](https://uniswap.org/). While creating, they need to provide initial liquidity (whatever they want) to both tokens for price discovery. This pool is an ERC20 token smart contract, which was created by the Uniswap Factory contract.

Don’t worry; we will show you an example of everything as we will progress.

For now, let’s get the newly created pools listing from the Uniswap.

**Note:** We are Uniswap V2 in this article.

## Uniswap Pools APIs

To get the newly creates Uniswap pools, we need to use the following GraphQL API. Here —  [https://graphql.bitquery.io/](https://graphql.bitquery.io/). This is also our endpoint for GraphQL APIs.

```
{
    ethereum {
        arguments(smartContractAddress: {is: "0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f"}, smartContractEvent: {is: "PairCreated"}, options: {desc: "block.height", limit: 3}) {
            block {
                height
            }
            argument {
                name
            }
            reference {
                address
            }
        }
    }
}
```

**Result**

```
{
    "data": {
        "ethereum": {
            "arguments": [
                {
                    "block": {
                        "height": 10836664
                    },
                    "argument": {
                        "name": "token0"
                    },
                    "reference": {
                        "address": "0x930ed81ad809603baf727117385d01f04354612e"
                    }
                },
                {
                    "block": {
                        "height": 10836664
                    },
                    "argument": {
                        "name": "pair"
                    },
                    "reference": {
                        "address": "0x7bc3a77b1b8daa4bf4b38c710119b932c5b27925"
                    }
                },
                {
                    "block": {
                        "height": 10836664
                    },
                    "argument": {
                        "name": "token1"
                    },
                    "reference": {
                        "address": "0xdf5e0e81dff6faf3a7e52ba697820c5e32d806a8"
                    }
                }
            ]
        }
    }
}
```

## Understing the query and the result

In this query, we are pulling data from Uniswap events. Whenever a pool is created Uniswap emits an event name ‘**PairCreated’** with 3 main parameters.

- token0 — A ERC20 token
- token1 — Another ERC20 token
- pair — Newly created Pair (aka pool) token address

![Pair Created Event](/blog/uniswap-pool-api/pair-created-event.png)

We will be using ‘PairCreated’ events in our query to get the latest Uniswap pairs/pools.

If you notice, we are using [Uniswap Factory](https://explorer.bitquery.io/ethereum/smart_contract/0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f) contact address (0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f) in our query and a limit 3 to get the latest 3 arguments.

As you can see in the result, these arguments are token0 address, token1 address, and the newly created pair address.

## Learning about the Tokens

To know the token details, just run the following query with the token address.

For example, if we want to know the details of token0 from the above result.

```
{
    ethereum {
        address(address: {is: "0x930ed81ad809603baf727117385d01f04354612e"}) {
            annotation
            address
            smartContract {
                contractType
                currency {
                    symbol
                    name
                    decimals
                    tokenType
                }
            }
            balance
        }
    }
}
```

**Result**

```
{
    "data": {
        "ethereum": {
            "address": [
                {
                    "annotation": "",
                    "address": "0x930ed81ad809603baf727117385d01f04354612e",
                    "smartContract": {
                        "contractType": "Token",
                        "currency": {
                            "symbol": "SOLARITE",
                            "name": "SOLARITE",
                            "decimals": 18,
                            "tokenType": "ERC20"
                        }
                    },
                    "balance": 0
                }
            ]
        }
    }
}
```

## Learning about the Pair(Pool)

Now let’s look at some detail of the newly created pool.

### APIs to get Initial Liquidity of the Pools

As we mentioned above, while creating a pool, you need to provide liquidity for both tokens; therefore, if we want to know the initial amount for both tokens in the pool, run the following query.

Here we are getting 1st two transactions received by the pool (pair).

**Note**: 0x7bc3a77b1b8daa4bf4b38c710119b932c5b27925 is pool (pair) address from the result above.

```
{
    ethereum {
        transfers(options: {asc: "block.timestamp.time", limit: 2}, amount: {gt: 0}, receiver: {is: "0x7bc3a77b1b8daa4bf4b38c710119b932c5b27925"}) {
            block {
                timestamp {
                    time(format: "%Y-%m-%d %H:%M:%S")
                }
                height
            }
            address: sender {
                address
                annotation
            }
            currency {
                address
                symbol
            }
            amount
            transaction {
                hash
            }
            external
        }
    }
}
```

**Result**

```
{
    "data": {
        "ethereum": {
            "transfers": [
                {
                    "block": {
                        "timestamp": {
                        "time": "2020-09-10 22:10:16"
                        },
                        "height": 10836664
                    },
                    "address": {
                        "address": "0x37d50885b44500a2eacab7c93dd349590600f05f",
                        "annotation": null
                    },
                    "currency": {
                        "address": "0x930ed81ad809603baf727117385d01f04354612e",
                        "symbol": "SOLARITE"
                    },
                    "amount": 0.08,
                    "transaction": {
                        "hash": "0xf69e4560ae36fd2948cfe5b6a5d22654b46307fe0ef04022bc68c8a3ee55f957"
                    },
                    "external": true
                },
                {
                    "block": {
                        "timestamp": {
                        "time": "2020-09-10 22:10:16"
                        },
                        "height": 10836664
                    },
                    "address": {
                        "address": "0x37d50885b44500a2eacab7c93dd349590600f05f",
                        "annotation": null
                    },
                    "currency": {
                        "address": "0xdf5e0e81dff6faf3a7e52ba697820c5e32d806a8",
                        "symbol": "yDAI+yUSDC+yUSDT+yTUSD"
                    },
                    "amount": 200,
                    "transaction": {
                        "hash": "0xf69e4560ae36fd2948cfe5b6a5d22654b46307fe0ef04022bc68c8a3ee55f957"
                    },
                    "external": true
                }
            ]
        }
    }
}
```

### Getting Total Balance of different tokens in the Pool

Let’s say now you want to check the balance of both tokens in the Uniswap pool. You can use the below query for that.

By default, every pool/pair currency name is “UNI-V2”. Remember, we mentioned that pool itself is an ERC20 token.

```

{
    ethereum {
        address(address: {is: "0x7bc3a77b1b8daa4bf4b38c710119b932c5b27925"}) {
            balances {
                currency {
                    symbol
                }
                value
            }
        }
    }
}
```

**Results**

```
{
    "data": {
        "ethereum": {
            "address": [
                {
                    "balances": [
                        {
                            "currency": {
                                "symbol": "UNI-V2"
                            },
                            "value": 0
                        },
                        {
                            "currency": {
                                "symbol": "SOLARITE"
                            },
                            "value": 619.42286725
                        },
                        {
                            "currency": {
                                "symbol": "yDAI+yUSDC+yUSDT+yTUSD"
                            },
                            "value": 199915.11344483
                        }
                    ]
                }
            ]
        }
    }
}
```

## Wrapping Up

Our GraphQL APIs are highly flexible and performative. You can write GraphQL queries to get any data from any Ethereum protocol. In future articles, we will show how to get data for different DeFi protocol. If you have any questions, ping us on our [Telegram](https://t.me/Bloxy_info) channel.

**Also Read:**

- [Simple API To Get Ethereum Supply And Data](https://bitquery.io/blog/get-ethereum-total-supply)
- [Single API to Get Ethereum Token Balance](https://bitquery.io/blog/ethereum-token-api)
- [Simple rest APIs to get Uniswap data](https://bitquery.io/blog/dex-data-apis) (DEX Data APIs)
- [Top SushiSwap APIs](https://bitquery.io/blog/top-sushiswap-apis)
- [Tron DEX API](https://bitquery.io/blog/tron-dex-api)
- [PancakeSwap API - Trades, Volume and Pools](https://bitquery.io/blog/pancake-swap-dex-apis)
- [Comparing DEXs — Ethereum and Binance Smart Chain](https://bitquery.io/blog/ethereum-bsc-dex)
- [The Ultimate Guide to NFT Analytics](https://bitquery.io/blog/the-ultimate-guide-to-nft-analytics)
- [Ethereum DEX GraphQL API](https://bitquery.io/blog/ethereum-dex-graphql-api)      
- [Streaming APIs Help Gather Top Holders on Ethereum](https://bitquery.io/blog/streaming-apis-help-gather-top-holders-on-ethereum)

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/moneyflow) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.



]]></description>
        </item>
        <item>
            <title><![CDATA[Simple rest APIs to get Uniswap data (DEX Data APIs)]]></title>
            <link>https://bitquery.io/blog/dex-data-apis</link>
            <guid>https://bitquery.io/blog/dex-data-apis</guid>
            <pubDate>Fri, 11 Sep 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
2020 is the DEX year, in which [DEX volume](https://explorer.bitquery.io/ethereum/dex) skyrocketed from $250 million to $15 billion and still growing.

![DEX Trade Volume in USD](/blog/dex-data-apis/dex-trade-volume-in-usd.webp)

However, 90% is growth is came from the Uniswap.

On 30th August, [Uniswap](https://uniswap.org/) surpassed [idm crack](https://indircrack.net/internet-download-manager-indir-crack/) the Coinbase daily trading volume.

![Hayden Adams Tweet about DEX Trade Volume](/blog/dex-data-apis/hayden-adams-tweet.webp)

However, getting DEX data is still hard when compared to centralized crypto exchange.

We at [Bitquery (Bloxy)](https://bitquery.io/) is all about blockchain data and provide APIs to access to on-chain data at scale.

Currently, our APIs provide data for more than 30 DEX protocols.

![Supported DEX Protocol](/blog/dex-data-apis/supported-dex-protocol.webp)

## DEX Data APIs

Currently, we provide multiple APIs to get DEX trade-related data.

![DEX API Methods](/blog/dex-data-apis/dex-api-methods.webp)

_Note:_ [_You need to sign up on Bloxy to access these APIs._](https://bloxy.info/)

## Getting Uniswap Trade Data

Today we are going to show you how to get DEX data using Uniswap as an example.

Let’s see how we can get Uniswap DEX trades data using our APIs. For this, you need to use DEX Trades APIs.

![DEX API call](/blog/dex-data-apis/dex-api-call-ss.webp)

You can call DEX trades API directly which provide you all the trade data for all DEX.

To get only Uniswap data, set parameter “Uniswap V2”.

![DEX Trades at DEX](/blog/dex-data-apis/dex-trade-at-dex.webp)

![DEX Trade List](/blog/dex-data-apis/dex-trade-result.webp)

## Getting $YFI Trades on Uniswap

However, if you want to filter data, you can use API parameters.

For example, you want all the YFI trades from the Uniswap. You need to set the YFI token address in “Filter by Any token address.”

This will give you all trades related to YFI token on Uniswap.

![$YFI Trade APIs](/blog/dex-data-apis/yfi-trade-api.webp)

![YFI Trade Result](/blog/dex-data-apis/yfi-trade-result.webp)

## Understanding all parameters

The following image describes all the parameters of DEX trades APIs.

![DEX Trade Parameters](/blog/dex-data-apis/dex-trade-parameters.webp)

## DEX Trade API parameters described

If you have any questions, just hop in on our [Telegram channel](https://t.me/Bloxy_info).

## Build Applications on DEXs

We saw many successful trading, analytics apps getting built on centralized exchanges. Now it’s time to build applications on DEX.

As we showed above, we have multiple DEX related APIs such as arbitrage trades, deposits, withdrawal, active traders, etc.

We are eager to see what type of applications the Ethereum community built on top of DEXs.

## About Bitquery

[Bitquery](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- [Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).
- [Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about) provides index information related to all major cryptocurrencies, coins, and tokens.
- [DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about) provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.
]]></description>
        </item>
        <item>
            <title><![CDATA[Single API to Get Ethereum Token Balance]]></title>
            <link>https://bitquery.io/blog/ethereum-token-api</link>
            <guid>https://bitquery.io/blog/ethereum-token-api</guid>
            <pubDate>Fri, 11 Sep 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
Recently, we have added a new [GraphQL API](https://bitquery.io/labs/graphql) to query the token balance for Ethereum and other smart contract chains such as Algorand, Celo, Binance smart chain.

Let’s see some examples of how to get the token balances for the Ethereum addresses.

## Get all token balances for an Ethereum address

To get all the token balances associated with an address. Run the following query.

Run below queries here — [**graphql.bitquery.io**](https://graphql.bitquery.io)

**Query**

```
{
    ethereum {
        address(address: {is: "0xc43db41aa6649ddda4ef0ef20fd4f16be43144f7"}) {
            balances {
                currency {
                    symbol
                }
                value
            }
        }
    }
}
```

## Get ETH and USDT balance for an Ethereum address

To get the balance of specific tokens, you need to pass the smart contract address of that token in the currency filter. However, for Etherum balance, just pass “Eth” as a parameter.

**Query**

```
{
    ethereum {
        address(address: {is: "0xc43db41aa6649ddda4ef0ef20fd4f16be43144f7"}) {
            balances(currency: {in: ["ETH", "0xdac17f958d2ee523a2206206994597c13d831ec7"]}) {
                currency {
                    symbol
                }
                value
            }
        }
    }
}
```

## Token balance for 2 Ethereum addresses

To get the token balances for multiple Ethereum addresses, you need to pass those addresses in `address` filter.

```
{
    ethereum {
        address(address: {in: ["0xc43db41aa6649ddda4ef0ef20fd4f16be43144f7", "0xF92ED3c3926Ad83f88878243FAcFDa68e745E98f"]}) {
            balances {
                currency {
                    symbol
                }
                value
            }
        }
    }
}
```

## Balance with the transfer history of Ethereum address

If you also want the history of transfers with balances, you can use the following query.

```
{
    ethereum {
        address(address: {is: "0xF92ED3c3926Ad83f88878243FAcFDa68e745E98f"}) {
            balances {
                value
                history {
                    block
                    timestamp
                    transferAmount
                    value
                }
            }
        }
    }
}
```

## How to query balances and history till the block ( inclusive )

If you want transfer the history and balance of an address till a particular block, use the following query.

```
{
    ethereum {
        address(address: {is: "0xc43db41aa6649ddda4ef0ef20fd4f16be43144f7"}) {
            address
            balances(height: {lteq: 10814942}) {
                currency {
                    symbol
                    address
                    name
                    decimals
                }
                value
                history {
                    value
                    transferAmount
                    block
                    timestamp
                }
            }
        }
    }
}
```

If you face any problem or have any question about our GraphQL APIs, you can ask them on our [Telegram channel](https://t.me/Bloxy_info).

**Also Read:**

- [Simple API To Get Ethereum Supply And Data](https://bitquery.io/blog/get-ethereum-total-supply)
- [window crack software](https://exwindows.com/)
- [Simple rest APIs to get Uniswap data](https://bitquery.io/blog/dex-data-apis) (DEX Data APIs)









]]></description>
        </item>
        <item>
            <title><![CDATA[Simple API To Get Ethereum Supply And Data]]></title>
            <link>https://bitquery.io/blog/get-ethereum-total-supply</link>
            <guid>https://bitquery.io/blog/get-ethereum-total-supply</guid>
            <pubDate>Fri, 21 Aug 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
Recently, there has been [debate on Twitter](https://twitter.com/pierre_rochard/status/1291734946323795968) on how to calculate the total supply of [Ethereum](https://ethereum.org/en/)?

In this article, we will showcase how to use are simple GraphQL APIs to get Ethereum supply and all sorts of other Ethereum blockchain data.

Before moving forward, a word about [GraphQL](https://graphql.org/).

GraphQL provides a complete and understandable description of the data in your API, to ask for precisely what data is needed.

Think of GraphQL as writing queries on a database through an API endpoint.

You can query more than 20 blockchains using [Bitquery APIs](https://bitquery.io/labs/graphql), but today we will only talk about Ethereum.

[Bitquery](https://bitquery.io/) GraphQL endpoint — [https://graphql.bitquery.io/](https://graphql.bitquery.io/)

Yes, a single endpoint to get all sorts of blockchain data?

## Ethereum total supply

To get Ethereum’s total supply, run the following query on [Bitquery GraphQL IDE](https://graphql.bitquery.io/).

```
{
    ethereum {
        transactions {
            gasValue
        }
        transfers(
            currency: { is: "ETH" }
            sender: { is: "0x0000000000000000000000000000000000000000" }
        ) {
            amount
        }
    }
}
```

Here is an example of how to run above the GraphQL query?

![How to run GraphQL API](/blog/get-ethereum-total-supply/ethereum-transactions-transfers.webp)

As you can query result has two values, amount and gasValue. To get total Ethereum supply to subtract gasValue from the amount.

__Total Ethereum supply = amount — gasValue__

## Total pre-mined Eth

More than 72 million ETH were initially pre-mined. To get the exact value of pre-mined ETH, use the following query.

```
{
    ethereum {
            transfers(
            currency: { is: "ETH" }
            height: { is: 0 }
            sender: { is: "0x0000000000000000000000000000000000000000" }
            receiver: { not: "0x0000000000000000000000000000000000000000" }
        ) {
            amount
        }
    }
}
```

## Ethereum pre-mine distribution

To know which addresses got the money in the Ethereum pre-mine, run the query below.

```
{
    ethereum {
        transfers(
            currency: { is: "ETH" }
            height: { is: 0 }
            options: { desc: "amount" }
            sender: { is: "0x0000000000000000000000000000000000000000" }
            receiver: { not: "0x0000000000000000000000000000000000000000" }
        ) {
            amount
            receiver {
                address
                annotation
            }
        }
    }
}

```

## Total ETH sent to the genesis address

To know how many ETH were sent to the Ethereum genesis address, run the following query.

ETH or other tokens sent to genesis address is not recoverable.

```
{
    ethereum {
        burnt: transfers(
            currency: { is: "ETH" }
            receiver: { is: "0x0000000000000000000000000000000000000000" }
        ) {
            amount
        }
    }
}
```

## Large ( >100 ETH ) transfers to Ethereum genesis address

Run the query below to get the transactions sent to the Ethereum genesis address. The results will be in descending order of the transaction amount.

```
{
    ethereum {
        transfers(
            currency: { is: "ETH" }
            amount: { gt: 100 }
            options: { desc: "amount" }
            sender: { not: "0x0000000000000000000000000000000000000000" }
            receiver: { is: "0x0000000000000000000000000000000000000000" }
        ) {
            amount
            transaction {
                hash
            }
            block {
                height
            }
            sender {
                address
                annotation
            }
        }
    }
}
```

## Total Gas spent on Ethereum.

Ethereum is an EVM, where any execution cost a fee, which is called Gas.

To calculate the total Gas spent on Ethereum, run the query below.

```
{
    ethereum {
        transactions {
            gasValue
        }
    }
}
```

## Total uncle blocks, transaction count and block reward

[Uncles](https://ethereum.stackexchange.com/questions/34/what-is-an-uncle-ommer-block) are stale blocks that contribute to the security of the main chain but are not considered the canonical “truth” for that particular chain height.

In contrast to orphan blocks (which have no parent), uncle blocks are linked to the chain but are not part of the final selection.

To get total uncle blocks, total transaction count, and total block rewards, run the following query.

```
{
    ethereum {
        blocks {
            uncleCount
            transactionCount
            reward
        }
    }
}
```

## Largest Ethereum transfers

Run the following query to get the largest Ethereum transactions. As you can see, the query is filtering transactions where more than 1 million ETH is transferred in a single transaction.

```
{
    ethereum {
        transfers(
            currency: { is: "ETH" }
            options: { desc: "amount", limit: 100 }
            amount: { gt: 1000000 }
            sender: { not: "0x0000000000000000000000000000000000000000" }
            receiver: { not: "0x0000000000000000000000000000000000000000" }
        ) {
            amount
            transaction {
                hash
            }
            sender {
                address
                annotation
            }
            receiver {
                address
                annotation
            }
        }
    }
}
```

## ETH emission and Gas spent for a given block

If you want to know how many Eth emitted and Gas spent for a given block, run the following query. In this query, we took block number 51 as an example.

```
{
    ethereum {
        transactions(height: { is: 51 }) {
            gasValue
        }
        transfers(
            height: { is: 51 }
            currency: { is: "ETH" }
            sender: { is: "0x0000000000000000000000000000000000000000" }
        ) {
            amount
        }
    }
}
```

## DAO fork transfers

DAO fork created Ethereum and Ethereum classic, therefore, to get the transactions that were included only in Ethereum during the fork, run the query below.

```
{
    ethereum {
        transfers(
            height: { is: 1920000 }
            currency: { is: "ETH" }
            options: { desc: "amoun" }
            receiver: { is: "0xbf4ed7b27f1d666546e30d74d50d173d20bca754" }
        ) {
            amount
            sender {
                address
                annotation
            }
        }
    }
}
```

## Ethereum transactions which used most Gas

Recently, there were two transactions([Tx1](https://explorer.bitquery.io/ethereum/tx/0xc215b9356db58ce05412439f49a842f8a3abe6c1792ff8f2c3ee425c3501023c), [Tx2](https://explorer.bitquery.io/ethereum/tx/0xca8f8c315c8b6c48cee0675677b786d1babe726773829a588efa500b71cbdb65)) that used 10668 ETH Gas to transfer 350 ETH and 0.55 ETH.

Crazy! Right? Most probably, it was a mistake or coding error.

To know the Ethereum transactions that spent the largest gas amount, run the following query.

```
{
    ethereum {
        transactions(
            options: { desc: "gasValue", limit: 10 }
            gasValue: { gt: 100 }
        ) {
            gasValue
            sender {
                address
                annotation
            }
            hash
        }
    }
}
```

## Get Ethereum token balance in a single API (Including NFTs)

Run the following query with parameters to get all Ethereum token balance in a single call. However, you need to subtract the sum_out from sum_in to get the actual balance.

__balance = sum_in — sum_out__

**Query**

```
query ($network: EthereumNetwork!, $address: String!) {
    ethereum(network: $network) {
        transfers(amount: { gt: 0 }, options: { desc: "count_in" }) {
            sum_in: amount(calculate: sum, receiver: { is: $address })
            sum_out: amount(calculate: sum, sender: { is: $address })
            count_in: count(receiver: { is: $address })
            count_out: count(sender: { is: $address })
            currency {
                symbol
            }
        }
    }
}
```

**Parameter**

```
{
    "network":"ethereum”,
    "address":"0x2c82E14352e98c931852D9BB5f0760E36942CC3c"
}
```

## Get Ethereum balance only

To get only the Ethereum balance of a given address, run the query below.

```
{
    ethereum {
        address(address: { is: "0x2c82E14352e98c931852D9BB5f0760E36942CC3c" }) {
            balance
        }
    }
}
```

## [Bitquery](https://bitquery.io/) Ethereum GraphQL APIs

Using our GraphQL APIs is similar to querying Ethereum blockchain directly.

You can get any data for Ethereum and other blockchains using [Bitquery GraphQL APIs](https://bitquery.io/labs/graphql).

If you face any problem with the above queries or looking for any data, ping us on [Telegram](https://t.me/Bloxy_info).

**Also Read**

- [How to trace Bitcoin transactions or address?](https://bitquery.io/blog/trace-bitcoin-transaction-and-address)
- [Blockchain Analytics: Everything you need to know](https://bitquery.io/blog/blockchain-analytics-everything-you-need-to-know)
- [Create a WhaleAlert like service in 10 minutes (Crypto Alert)](https://bitquery.io/blog/crypto-alert-service-like-whale-alert)
- [gbwhatsapp télécharger](https://gratuitcrack.com/telecharger-gbwhatsapp-apk/)
- [Crypto chart widgets for your website (Including WordPress)](https://bitquery.io/blog/crypto-chart-on-your-website-wordpress)
- [Coinpath® – Blockchain Money Flow APIs](https://bitquery.io/products/coinpath)
- [Best Blockchain Analysis Tools and How They Work?](https://bitquery.io/blog/best-blockchain-analysis-tools-and-software)



]]></description>
        </item>
        <item>
            <title><![CDATA[10 Best Blockchain Analysis Tools]]></title>
            <link>https://bitquery.io/blog/best-blockchain-analysis-tools-and-software</link>
            <guid>https://bitquery.io/blog/best-blockchain-analysis-tools-and-software</guid>
            <pubDate>Tue, 18 Aug 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
When a former FBI special agent Ilhwan Yum described how he [traced](https://www.wired.com/2015/01/prosecutors-trace-13-4-million-bitcoins-silk-road-ulbrichts-laptop/) 3,760 bitcoin transactions over 12 months ending in August 2013 from [Silk Road](https://bitquery.io/blog/bitcoin-seized-us-government) servers to Ross Ulbricht’s laptop, it was almost a done deal for Silk Road creator “Dread Pirate Roberts” aka Ross Ulbricht.

To accomplish this, Yum followed more than 700,000 bitcoins on the blockchain, from the Silk Road marketplace to Ulbricht’s personal wallets. It was the first time people realized the potential of blockchain analysis to solve a criminal investigation. Today, blockchain analysis technology is used by financial institutions, crypto businesses, and law enforcement authorities to prevent and investigate cryptocurrency crimes worldwide.

## Financial Crime in a world of cryptocurrency

Cryptocurrencies are internet native currencies powered by blockchain technology. All the transactions are visible on the blockchain; however, blockchains do not contain real-world identities. Therefore associating these activities with real-world actors and stopping criminals is an ongoing challenge. [Crypto trading bots](https://youtu.be/_74wKjMBwOU) and exchanges and other services are generating billions of crypto transactions every day, at the same time getting hacked now and then.

With the rise of new memecoin creation platforms like [Sunpump](https://dexrabbit.com/tron/sunpump) and [Pumpfun](https://dexrabbit.com/pumpfun), the potential for misleading novice investors has significantly increased.

Bitquery has been investigating funds lost to scams and malicious social engineering schemes, with losses ranging from a few thousand to several million USDT.

## What is the blockchain analysis?

Blockchain analysis is a process of investigating, classifying, and monitoring blockchain addresses and transactions to understand the activities of various actors on the blockchain.

Crypto businesses must deploy blockchain analysis solutions to be regulatory compliant and prevent the exposure of illicit funds to their businesses.

## Blockchain analysis tools in a nutshell

Blockchain analysis solutions provide a full suite of transaction monitoring, risk assessment, and investigations tools. The core idea is to associate blockchain addresses with real-world identities and provide tools to analyze the transaction activities. The following are the primary functions of a blockchain analysis tool.

**Address Classification** — One of the main applications of blockchain analysis software is to associate blockchain addresses with real-world identities. Without it, nothing will make sense; therefore, these tools apply multiple techniques to identify real-world entities on the blockchain.

**Transaction monitoring and Risk analysis** — Monitor every transaction related to your businesses and assess risk based on the fund’s origin, money flow, and the history of sender or recipient wallets.

**Investigation tools** — provide visualization tools to investigate transactions and blockchain addresses manually.

## Blockchain analysis Technology: Under the hood

As we mentioned above, the primary functions of blockchain analysis products, let’s also look at how these products achieve this functionality with technology.

**Classification and identification** — Blockchain analysis tools use methods like clustering algorithms, [wash trading](http://bitquery.io/blog/how-to-track-nft-wash-trading), scam database monitoring, and dust attacks to understand the real-world identity of blockchain addresses. Clustering is the most common way using which analysis software identifies entities like exchanges, payment processors, wallets, etc.

**Risk analysis is performed by creating** risk models and train them using machine learning to provide a risk score to every blockchain transactions. Risk models are based on multiple parameters such as transaction amount, the origin of funds, and money flow history.

**Investigation Tools** are the graphic interface representing transaction graphs to understand the association among them.

## Best blockchain analysis software and tools

1. [Moneyflow by Bitquery](https://lite.bitquery.io/)

Moneyflow by Bitquery is a crypto investigation tool that provides auto-tracing, multi-level entity resolution and case management features across multiple blockchains including Bitcoin, Ethereum, Solana etc.

**Counterparty Information** : Moneyflow provides extensive labels on whales, flagged accounts, scams, heists among others, offering good counterparty information. This feature helps users identify and monitor large holders of cryptocurrency (whales), accounts associated with fraudulent activities, and other flagged entities, enhancing the ability to detect and prevent crypto fraud.

**Auto Tracing** By using custom algorithms for tracing, it helps you track relationships between wallets, CEXs and origin of funds in mixing services.

![](/blog/best-blockchain-analysis-tools-and-software/lite.png)

**Compliance:** Moneyflow can be used for [KYC and AML compliance](https://bitquery.io/solutions/compliance) with strong verification processes, ensuring regulatory adherence and building stakeholder trust.

**Custom Reports**: Moneyflow generates customizable reports, including [transaction histories and risk assessments,](https://bitquery.io/products/crypto-investigation-services) to support strategic decision-making and regulatory compliance.

**Real-time Data**: Most importantly, it provides [low-latency real-time onchain data for popular chains like Solana](https://youtu.be/UlqZ8DgzNLc) that you can use to trace quickly deposits, withdrawals and trades.

2. Uppsala Security

Uppsala Security provides risk management solutions for cryptocurrency AML, Regulation Compliance, and cybersecurity. Established in January 2018, Uppsala Security built the first crowdsourced threat Intelligence platform known as the Sentinel Protocol. Uppsala products include

**Crypto Analysis Risk Assessment (CARA)** uses machine-learning technology to classify the risk level of crypto addresses based on learned behaviors of both known malicious wallets and normal wallets.

**Crypto Analysis Transaction Visualization (CATV)** is a crypto forensic tool that tracks both incoming and outgoing transactions of an inspected wallet. It provide a visual interface to analyze the flow of tokens and the types of wallets with which it interacts, helping find suspicious flow behavior.

![Uppsala Security](/blog/best-blockchain-analysis-tools-and-software/uppsala-security.webp)

3. TRM Labs

TRM helps financial institutions to fight crypto money laundering activities, prevent fraud, and stay in compliance. TRM Labs products include:

- **TRM Investigator** is an easy-to-use interface for cryptocurrency investigation. You can visualize transactions and blockchain money flow with an automated path detection.
- **Transaction monitoring** continually monitors blockchain wallets and prevent fraudulent activities. It also provides risk scores to transactions by monitoring irregular behavior and patterns.

![TRM Labs](/blog/best-blockchain-analysis-tools-and-software/trm-labs.webp)

4. Elliptic

Elliptic is used by major crypto exchange and financial institutions worldwide. It provides multiple solutions for cryptocurrency compliance and blockchain investigation. Some of the Elliptic products include:

- **Elliptic Lens** gives you the insight you need to protect your business and your customers. Lens is used by fraud, compliance, and operations teams to provide exposure for crypto wallets, giving you insight into who is behind each address as well as the money flow in the wallet.
- **Elliptic Navigator’s** powerful tracing capabilities and configurable risk rules bring a consistent and accurate understanding of the source and destination of funds, for over 100 crypto assets.

![Elliptic](/blog/best-blockchain-analysis-tools-and-software/elliptic-analysis-tool.webp)

5. Chainalysis

Chainalysis is one of the leading blockchain analysis companies which provides compliance and investigation software to banks, crypto businesses, and government agencies. It offers multiple tools for transaction monitoring, risk assessment, and visualization.

**Chainalysis KYT** (Know Your Transaction) detects risky cryptocurrency transactions from darknet markets, scams, sanctioned addresses. It provides an easy to use interface to analyze and investigate transactions.

**Reactor** helps you visualize blockchain money flow for any cryptocurrency address, such as Bitcoin or Ethereum. It also provides information on the real-world identity of blockchain addresses, which is critical for cryptocurrency investigations.

**Chainalysis Kryptos** provides complete profiles of more than 1800 cryptocurrency businesses based on KYC details. It is the industry’s reference directory for cryptocurrency services and their on-chain activity.

![Chainanalysis](/blog/best-blockchain-analysis-tools-and-software/chainanalysis-web-app.webp)

6. AnChain.AI

Founded in 2018, AnChain provides a suite of cryptocurrency compliance and investigation products powered by artificial intelligence. Some of the AnChain products include:

- **Blockchain Ecosystem Intelligence API (BEI API)** provide real-world identity information for blockchain addresses and risk analysis for crypto transactions.
- **Compliance. Investigation. Security Operation (CISO)** is a visualization product to analyze blockchain transactions manually and addresses with their real-world identity attached.
- **Smart Contract Auditing Sandbox (CAS)** is a sandbox, which analyzes the source code of millions of Ethereum smart contracts to provide the security score of any Solidity-based smart contract.

![anchain.ai](/blog/best-blockchain-analysis-tools-and-software/anchain-ai.webp)

7. CipherTrace

CipherTrace provides a full suite of VASP (Virtual asset service provider) risk monitoring and compliance solutions. It supports more than 800 tokens and detects crypto money laundering activities, enables law enforcement investigations, and regulatory supervision to help become your business crypto compliant. ChiperTrace products include:

- **Armada** flags high-risk payments between banks and VASPs and reveals risk associated with hundreds of VASPs and other virtual asset entities using deep intelligence into their Know Your Customer (KYC) and AML practices.
- **Sentry** helps investigate cryptocurrency money laundering activities by integrating with both open and closed-source intelligence, and leverages proprietary clustering algorithms to aggregate and correlate a variety of indicators rapidly, and then provides users with actionable attribution.
- **Inspector** is a search and visualization tool for investigating cryptocurrency transactions.

![Ciphertrace](/blog/best-blockchain-analysis-tools-and-software/ciphertrace.gif)

8. Crystal Blockchain

Crystal Blockchain is a Bitfury product that provides blockchain money flow APIs and other web-based tools to various exchanges and banks. It offers three different licenses for its products based on use cases.

- **Crystal Expert** is a cloud-based bitcoin investigation tool build for small crypto businesses.
- **Crystal APIs** provide fully automated transaction monitoring and build for financial organizations with a high volume of transactions, such as exchanges, payment processors, trading services.
- **Crystal Pro** provides the option for dedicated hosting for banks and other large financial institutions to enhance data protection capabilities.

![Crystal Blockchain](/blog/best-blockchain-analysis-tools-and-software/crypstal-blockchain.webp)

9. Coinfirm

Coinfirm is created in 2016, by the ex-AML leadership of the Royal Bank of Scotland. It provides multiple AML and compliance solutions. Besides, it also solutions to quickly transfer, register, and report all Travel Rule data, listed in FATF’s guidelines. Coinfirm products include:

- **Coinfirm’s AML platform** helps crypto businesses monitor addresses and transactions in real-time.
- **Travel rule solution** by Coinfirm provides VASP identification, risk analysis, case management to help your business to be compliant with FATF recommendations.

![Coinfirm](/blog/best-blockchain-analysis-tools-and-software/coinfirm.webp)

10. Solidus Labs

Solidus Labs is automated market surveillance and risk monitoring hub tailored for digital assets. It manages all compliance in one place and minimizes risk and costs. Solidus products include.

- **Market surveillance and transaction monitoring** solutions help in identifying wash-trading and spoofing to crypto-specific threats like cross-market manipulation.
- **Unified risk and case management** help you to avoid threats, operational headaches, and manage your compliance in unified, intuitive, and collaborative interface tailored for digital assets.

![Solidus Labs](/blog/best-blockchain-analysis-tools-and-software/solidus.gif)

## Wrapping up

Unlike traditional finance, blockchain technology enables permissionless innovation. The availability of open data allows makers to build advanced tracking software.

Today, blockchain companies are protecting thousands of businesses worldwide and helping law enforcement agencies to prevent cryptocurrency crimes.

However, there is always a concern about user privacy with blockchain analysis technologies. But, it is the only way to identify cryptocurrency-related criminal activities. Without them, both law enforcement agencies and crypto businesses are almost blind. Therefore, we believe blockchain analysis software are vital for mass crypto adoption and sustainability.

**Also Read**

- [Coinpath® – Blockchain Money Flow APIs](https://bitquery.io/products/coinpath)
- [Cryptocurrency Money Laundering Explained](https://bitquery.io/blog/cryptocurrency-money-laundering)
- [Blockchain Analytics: Everything you need to know](https://bitquery.io/blog/blockchain-analytics-everything-you-need-to-know)
- [Visualize Coinpath® results using Gephi](https://bitquery.io/blog/visualize-coinpath-results-using-gephi)
- [How to get started with Coinpath® APIs?](https://bitquery.io/blog/coinpath-api-get-start)
- [download idm with crack](https://forevercrack.com/idm/)
- [How to trace Bitcoin transactions or address?](https://bitquery.io/blog/trace-bitcoin-transaction-and-address)
- [Attacker Stole 807K ETC in Ethereum Classic 51% Attack](https://bitquery.io/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack)
- [How Upbit hackers laundered millions using crypto exchanges?](https://bitquery.io/blog/upbit-hack-crypto-money-laundering)
- [Twitter Hack — Track Bitcoin crimes in real-time using Coinpath®](https://bitquery.io/blog/twitter-hack-tracking-bitcoin-using-coinpath)
]]></description>
        </item>
        <item>
            <title><![CDATA[Tracing Bitcoin Transactions and Addresses]]></title>
            <link>https://bitquery.io/blog/trace-bitcoin-transaction-and-address</link>
            <guid>https://bitquery.io/blog/trace-bitcoin-transaction-and-address</guid>
            <pubDate>Sat, 15 Aug 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
In the early days, criminals used Bitcoin as a safe haven, thinking [Bitcoin is anonymous](https://coincodecap.com/buy-bitcoin-anonymously), and transactions can’t be traced. However, today, sophisticated blockchain analysis software can trace bitcoin transactions to identify criminal activities on the blockchain.

## Is Bitcoin anonymous?

No, Bitcoin is not anonymous. Bitcoin is pseudonymous. In other words, Bitcoin does not store any real-world identities. However, it is possible to link real-world identities to bitcoin addresses by using [bitcoin analysis software](https://bitquery.io/products/coinpath).

## What makes Bitcoin traceable?

Today, bitcoin blockchain confirms ~[10 million transactions](https://explorer.bitquery.io/bitcoin/transactions) every month. All these transactions are visible on the bitcoin blockchain. However, the blockchain only store addresses, public keys, and not real-world identities. Therefore, [Virtual asset service providers](https://www.fatf-gafi.org/glossary/u-z/#:~:text=Virtual%20asset%20service%20provider%20means,ii.) (VASP) are the primary way to link real-world identities with bitcoin transactions. For example, VASPs such as Exchanges, wallets, custodians provide cryptocurrency services to retail users and businesses. Most of these services implement [KYC (Know-your-customer)](https://en.wikipedia.org/wiki/Know_your_customer) solutions. Therefore, linking real-world identity with bitcoin addresses and transactions.

## How to trace Bitcoin transactions?

Standard [blockchain explorers](https://explorer.bitquery.io/) are not suitable for tracking Bitcoin transactions efficiently. For example, if a criminal is using hundreds of intermediate wallets, it can take days to track and map all those transactions.

However, our [Coinpath®](https://bitquery.io/products/coinpath) technology is built to trace blockchain transactions efficiently. It uses advanced algorithms to track [money flow on the blockchain](https://bitquery.io/products/coinpath). In addition, our [Bitquery explorer](https://explorer.bitquery.io/) provides a money flow graph, which is a visualization tool for investigating bitcoin transactions.

Let’s see an example on how to trace bitcoin transactions [idm 6.30 full](https://itacrack.com/idm-crack/) using [Coinpath®](https://bitquery.io/products/coinpath) technology.

Recently, a [Twitter hacker](https://bitquery.io/blog/twitter-hack-tracking-bitcoin-using-coinpath) took the whole world by surprise when he tweeted giveaway tweets from hundreds of world leaders and influencers’ accounts.

![Jeff Bezos Scam Tweet](/blog/trace-bitcoin-transaction-and-address/jeff-bezos-scam-tweet.png)

The bitcoin address mentioned here belongs to the hacker —[bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh](https://explorer.bitquery.io/bitcoin/address/bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh/graph)

To identify the real identity of the hacker, we will start our investigation by finding all the transactions related to the above bitcoin address. Our [Coinpath®](https://bitquery.io/products/coinpath) APIs give you all the source and destination addresses that sent or received transactions from any bitcoin address.

For example, in this case, the image below shows the top 10 addresses, which received bitcoins from the hacker’s address.

![Coinpath Twitter Scam Investigation](/blog/trace-bitcoin-transaction-and-address/coinpath-twitter-scam-investigation.png)

As we can see, a Binance exchange wallet received the transaction from the hacker’s address. However, the hacker used multiple intermediate wallets before sending money to the Binance wallet.

**Note:** In this case, using the Binance KYC solution, we can identify who received this money and conduct further investigation.

It would have been taken hours to trace bitcoin transactions using a standard explorer because on every layer involves multiple intermediate wallets. However, our [Coinpath®](https://bitquery.io/products/coinpath) technology provides this information in a single API call. Similarly, you can trace bitcoin address which sent money to the hacker’s wallet. However, in this case, the scammer was asking bitcoins publically, therefore determining who sent the money to this address is not useful because hundreds of victims sent money to the hacker.

To learn more about Twitter hack, read our complete investigation [here](https://bitquery.io/blog/twitter-hack-tracking-bitcoin-using-coinpath).

## Money flow graph

Visual tools are beneficial when investigating addresses and transactions. Using [Coinpath®](https://bitquery.io/products/coinpath) technology, anyone can build visual tools to understand the money flow. We have built one on our Bitquery explorer. You can visualize all the [incoming and outgoing transactions from the hacker’s address here.](https://explorer.bitquery.io/bitcoin/address/bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh/graph).

> **Also Read: [How to show blockchain data widget on your website](https://bitquery.io/blog/crypto-chart-on-your-website-wordpress)**

## Bitcoin address classification

[Coinpath®](https://bitquery.io/products/coinpath) Bitcoin addresses classification technology provides ways to identify patterns on the blockchains. For example, you can determine if an exchange owns a specific address by looking at the number of transactions it performs every day and the transaction amount. Usually, these patterns create different types of clusters. By analyzing these clusters, you can identify payment services, custodians, and other types of virtual asset service providers.

Now, if you are able to identify the crypto service, you can investigate the identity of every address interacting with that crypto service if it has implemented KYC solutions.

Tracing Bitcoin transactions through [VASP](https://www.fatf-gafi.org/glossary/u-z/#:~:text=Virtual%20asset%20service%20provider%20means,ii.) is a much easier and the backbone of many crypto compliance solutions.

## Challenges in tracing Bitcoin transactions

The bitcoin blockchain is a database of alphanumeric strings and numbers. It does not contain any real-world identity. Therefore, it presents some challenges when it comes to identifying the transactions.

- **Self custody and Intermediate wallets** — It is effortless to create thousands of wallets on the bitcoin blockchain and self-custody your funds. As we discussed in our last blog, [cryptocurrency money laundering](https://bitquery.io/blog/cryptocurrency-money-laundering), criminals create intermediate wallets and process funds through these intermediaries to remove the source identity.
- **Mixers** — Services like mixers are build to enhance privacy. However, criminals use them to mix funds, which creates problems when tracing bitcoin transactions.
- **Unregulated crypto service (VASP)** — Bitcoin is a universal digital currency enabled by a public blockchain, and anyone can create services on top of it. Many countries do not enforce proper KYC/AML laws to crypto services (VASPs). Therefore, criminals process illicit funds through these services and convert them into fiat.

## Use cases of Bitcoin transactions tracing

One of the most critical use cases of tracking Bitcoin transactions is in preventing [bitcoin money laundering](https://bitquery.io/blog/cryptocurrency-money-laundering) and identifying criminal activities. Law enforcement authorities all over the world use sophisticated tracing and [blockchain analysis tools](https://bitquery.io/products/coinpath) to prevent money laundering activities.

## User privacy

Privacy is a human right established in the [Universal Declaration of Human Rights](https://www.un.org/en/universal-declaration-human-rights/index.html) (article 12). Therefore, preserving the user’s privacy should be the utmost priority for any business and enforcement agencies.

In 2019, a [survey](https://medium.com/blockchain-capital-blog/bitcoin-is-a-demographic-mega-trend-data-analysis-160d2f7731e5) revealed that more than 11% of Americans own Bitcoin. Millions of users use cryptocurrencies for commercial purposes every day. Therefore, it is critical that businesses understand the value of user’s privacy when deploying [bitcoin compliance solutions](https://bitquery.io/products/coinpath) and tracing technologies.

If you are an individual who is concerned with your economic privacy, you should use proper tools and services when using cryptocurrencies.

## Wrapping up

Protecting user privacy and enabling commercial activity is not a zero-sum game. It is critical for cryptocurrency adoption, that law authorities are able to identify criminal activities on the blockchain. Otherwise, we will see sweeping legislation, prohibiting all commercial activities related to cryptocurrencies.

However, users in the crypto space are more aware of privacy problems and inventing privacy-focused solutions every day, which makes tracing blockchain transactions an ongoing challenge for law-enforcement agencies worldwide.

## About Coinpath®

[Coinpath®](https://bitquery.io/products/coinpath?utm_source=about) APIs provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools.

If you have any questions about [Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog), ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

Coinpath® is a Bitquery product. [**Bitquery**](https://bitquery.io?source=blog&utm_medium=about_coinpath) is a set of tools that parse, index, access, search, and use information across blockchain networks in a unified way.

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

**Also Read**

- [Coinpath® – Blockchain Money Flow APIs](https://bitquery.io/products/coinpath)
- [Cryptocurrency Money Laundering Explained](https://bitquery.io/blog/cryptocurrency-money-laundering)
- [Blockchain Analytics: Everything you need to know](https://bitquery.io/blog/blockchain-analytics-everything-you-need-to-know)
- [Visualize Coinpath® results using Gephi](https://bitquery.io/blog/visualize-coinpath-results-using-gephi)
- [How to get started with Coinpath® APIs?](https://bitquery.io/blog/coinpath-api-get-start)]]></description>
        </item>
        <item>
            <title><![CDATA[Blockchain Analytics: Everything you need to know]]></title>
            <link>https://bitquery.io/blog/blockchain-analytics-everything-you-need-to-know</link>
            <guid>https://bitquery.io/blog/blockchain-analytics-everything-you-need-to-know</guid>
            <pubDate>Wed, 12 Aug 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
Crypto networks are economic systems with native currencies called cryptocurrencies. And the evolution of smart contracts enabled more complex financial transactions on blockchains.

Unlike fiat currencies where central authorities enable economic activities and control financial data, blockchains are public ledgers where many entities participate in various economic activities.

Blockchain analytics helps us understand these economic activities in a meaningful way.

## What is Blockchain analytics (On-chain analytics)?

Blockchain analytics or On-chain analytics is analyzing the [blockchain data](https://bitquery.io/) to understand various aspects of crypto networks. With blockchain analytics, you can monitor multiple economic indicators for cryptocurrencies and blockchain native protocols.

## Different use case of blockchain analytics

Recent growth in the cryptocurrency market attacked mainstream financial institutions and created demand for more sophisticated blockchain analytics tools to analyze the fundamentals and the performance of crypto networks and smart contracts protocols.

There are multiple use cases of blockchain analytics. However, for now, the most significant use case is in the fundamental investment analysis of the crypto networks.

### Investment analysis

Cryptocurrencies are monetary assets that provide investment opportunities. However, crypto networks have intricate designs and various limitations. Besides, there are multiple types of entities participating in the network, such as miner, stakers for economic incentives.

Therefore, blockchain analytics provides insights into these networks and helps you understand the economics, performance, and inner workings of these crypto networks.

For example, the Bitcoin network is secured by miners. In return, miner get block rewards and [transaction fees](https://explorer.bitquery.io/bitcoin/transactions) to provide security to the network. A critical metric for [Bitcoin blockchain analytics](https://explorer.bitquery.io/bitcoin) is the changes in miner incentives.

![Mined Value By Time](/blog/blockchain-analytics-everything-you-need-to-know/mined-value-by-time.png)

[Miners return over time (In Bitcoin)](https://explorer.bitquery.io/bitcoin/miners)

Unlike, cryptocurrencies that are native assets for blockchains, tokens are created using scripting or smart contracts. Tokens accrue value based on the protocol’s design. These protocols are connected with economic systems inside and outside of the blockchains. Understanding the protocol design and protocol usage is critical when investing in these tokens. [Blockchain token analytics](https://bitquery.io/products/digital-assets) helps you to track the usage of the protocols.

For example, metrics like active addresses, total transactions, the on-chain volume can help you understand how many participants are using the token.

![Token Transfer By Date](/blog/blockchain-analytics-everything-you-need-to-know/token-transafer-by-date.png)

Tether(USDT) transactions over time

### Decentralized Finance analytics (DeFi Analytics)

Decentralized finance (DeFi) is an ecosystem of blockchain native financial instruments such as lending, staking, liquidity mining, etc. Smart contract protocols enable these financial instruments. To analyze the health of DeFi protocols, you need to analyze the metrics related to specific protocol design.

For example, Uniswap, a decentralized exchange (DEX) protocol, can be analyzed using metrics likes total exchange volume and average transaction size.

Another example is Compound, a [lending protocol](https://stat.bloxy.info/superset/dashboard/lending/?standalone=true). Here metrics, like total borrowers, lenders, and volume, can help you understand the growth of the protocols and evaluate your investment decisions.

![Compound V2 Locked on Contract](/blog/blockchain-analytics-everything-you-need-to-know/compound-v2-locked-on-contract.png)

### Market assessment

Blockchain analytics can also help you understand macro trends in the crypto industry. By analyzing the metrics like active addresses, transaction volume, asset distribution, you can follow the overall health and growth of the crypto network.

For example, the recent increase in [volume on decentralized exchanges](https://stat.bloxy.info/superset/dashboard/dex/?standalone=true)(DEX) indicates the growth in Decentralized exchange space and wealth creation on Ethereum.

![Ethereum Macro Trends](/blog/blockchain-analytics-everything-you-need-to-know/ethereum-macro-trends.png)

### Research

Blockchain technology is still in the nascent stage and an exciting area of research from both technical and economic aspects. Blockchain analytics provide valuable insights into crypto networks and help researchers to understand them better.

## Top companies for blockchain analytics

Today, multiple companies provide institutional-grade blockchain analytics solutions.

### Coinmetrics

[Coinmetrics](https://coinmetrics.io/) is a leading blockchain analytics solution that provides fundamental analysis through 250+ different metrics for 60+ assets. Metrics include on-chain exchange flows, wealth bands, realized cap, coinage metrics, transaction breakdowns, etc. Besides, Coinmetrics also has a unique index calc agent services for benchmarking crypto assets.

![Coinmetrics](/blog/blockchain-analytics-everything-you-need-to-know/coinmetrics.png)

### **Bitquery (Bloxy)**

[Bloxy](https://bloxy.info/) provides in-depth blockchain analytics and reporting. Our analytics reports include decentralized exchange analytics, [DeFi analytics](https://stat.bloxy.info/superset/dashboard/defivalue/?standalone=true), ICO, smart contract analytics, and macro [ethereum data analytics](https://bloxy.info/).

Besides, [Bitquery](https://bitquery.io/) also provides GraphQL [APIs to query blockchain data](https://bitquery.io/labs/graphql). You can build all sorts of solutions using our blockchain APIs, such as custom analytics, [avast free antivirus 2015 crack](https://crack-cd.net/avast-free-antivirus-2015-crack/) reporting, monitoring, etc.

Currently, Bitquery supports more than 20 blockchains and every token built atop these blockchains. You can also visualize different [blockchain data metrics](https://bloxy.info/analytics) on Bitquery explorer.

![Monthly Transactions Count by Blockchains](/blog/blockchain-analytics-everything-you-need-to-know/monthly-transaction-count-by-blockchains.png)

### Glassnode

[Glassnode](https://glassnode.com/) provides crypto analytics and reporting using 200+ metrics for multiple crypto assets. These metrics include address, transactions, UTXO, indicators, fees, blocks, supply, mining, distribution, and market analytics. Also, you can [visualize blockchain data](https://explorer.bitquery.io/) using various charts and compare different cryptocurrencies based on multiple metrics.

![Glassnode](/blog/blockchain-analytics-everything-you-need-to-know/glassnode-analytics.png)

### Dune Analytics

Using [Dune Analytics](https://www.duneanalytics.com/), you can write Mysql queries and create your custom metrics. Currently, Dune analytics supports only Ethereum blockchain. However, you can get some useful insights into DeFi space through Dune analytics.

![Loopring Protocol Analytics](/blog/blockchain-analytics-everything-you-need-to-know/loopring-analytics-dune.png)

### Aleth

[Aleth](https://aleth.io/) provides [ethereum blockchain data](https://bloxy.info/) solutions such as reporting, analytics, and monitoring. It also provides rest APIs to access blockchain data. Besides, you can visualize [Decentralized Exchange analytics](https://stat.bloxy.info/superset/dashboard/dex/?standalone=true) and Defi analytics using Aleth.

![ETH Locked in DeFi](/blog/blockchain-analytics-everything-you-need-to-know/eth-locked-in-defi.png)

### Santiment

[Santiment](https://santiment.net/) is a behavior analytics platform for cryptocurrencies, sourcing on-chain, social, and development information on 900+ coins. Other than blockchain analytics, it also provides market data, sentiment analytics, and development analytics.

![Santiment](/blog/blockchain-analytics-everything-you-need-to-know/santiment.png)

## Benefits of blockchain analytics

Blockchains analytics provides valuable insights into crypto networks. It helps you to understand the network design, wealth creation, governance, and performance of different blockchain protocols.

The following are some key benefits of blockchain analytics tools.

- Investment analysis
- Performance monitoring
- Macro trends
- Blockchain Research
- Market sentiment

## Wrapping Up

Blockchains are constantly generating incorruptible financial data that can be transformed into investment opportunities. Conventional valuation metrics that exist in traditional finance are not sufficient for analyzing crypto networks.

Blockchain analytics plays a critical role in monitoring the economic activities of the crypto network, which is vital for deploying significant capital into cryptocurrency space.

## **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

**Also Read**

- [Crypto chart widgets for your website (Including WordPress)](https://bitquery.io/blog/crypto-chart-on-your-website-wordpress?customize_changeset_uuid=edcddbf3-742f-43d4-ac84-f7ccde31fd82&customize_messenger_channel=preview-0&customize_autosaved=on)
- [Coinpath® – Blockchain Money Flow APIs](https://bitquery.io/products/coinpath)
- [Cryptocurrency Money Laundering Explained](https://bitquery.io/blog/cryptocurrency-money-laundering)
- [Attacker Stole 807K ETC in Ethereum Classic 51% Attack](https://bitquery.io/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack)
- [How Upbit hackers laundered millions using crypto exchanges?](https://bitquery.io/blog/upbit-hack-crypto-money-laundering)
- [Twitter Hack — Track Bitcoin crimes in real-time using Coinpath®](https://bitquery.io/blog/twitter-hack-tracking-bitcoin-using-coinpath)
- [Create a WhaleAlert like service in 10 minutes (Crypto Alert)](https://bitquery.io/blog/crypto-alert-service-like-whale-alert?customize_changeset_uuid=edcddbf3-742f-43d4-ac84-f7ccde31fd82&customize_messenger_channel=preview-0&customize_autosaved=on)]]></description>
        </item>
        <item>
            <title><![CDATA[Ethereum Classic 51% Chain Attack July 31, 2020]]></title>
            <link>https://bitquery.io/blog/ethereum-classic-51-chain-attack-july-31-2020</link>
            <guid>https://bitquery.io/blog/ethereum-classic-51-chain-attack-july-31-2020</guid>
            <pubDate>Fri, 07 Aug 2020 10:06:00 GMT</pubDate>
            <description><![CDATA[
> This article is based on excellent [exploration](https://hackmd.io/@cUBb4hAvQciAEPoU2yfrzQ/Skd4X6MZw) by Yaz Khoury, Sam Johnson, Austin Roberts and on on-chain data from [Bitquery.io](https://explorer.bitquery.io/ethclassic)


### What happened

Ethereum Classic yesterday experienced a huge ‘[51% attack](https://www.investopedia.com/terms/1/51-attack.asp)’. One miner, [0x75d1e5477f1fdaad6e0e3d433ab69b08c482f14e](https://explorer.bitquery.io/ethclassic/address/0x75d1e5477f1fdaad6e0e3d433ab69b08c482f14e) generated a series of more than 3500 blocks, as a huge fork from block 10904146 till 10907740. He mined these blocks for many hours and broadcasted them afterward to other miners. As this sequence of the block had more weight than the chain, built by all other miners, they had to accept these blocks, effectively **replacing the blockchain history with attacker’s one**.

### What else happened

It appeared, that not all nodes equally processed this event. Nodes based on [Open Ethereum](https://github.com/openethereum/openethereum) ( and we at [Bitquery.io](https://explorer.bitquery.io/ethclassic) among them ) did not do accept attacker series of blocks. This resulted in fork on 2 blockchains depending on **what software installed on nodes**:

1.  [Geth](https://github.com/etclabscore/core-geth) and [Hyperledger Besu](https://github.com/hyperledger/besu) — based nodes accepted attacker blocks and selected the longest ( heaviest ) forked chain
2.  [Open Ethereum](https://github.com/openethereum/openethereum) — based nodes remained on the “old” forked chain

Previously at July [Open Ethereum](https://github.com/openethereum/openethereum) announced that they skip support for ETC, but we did not expect that the software will break in such a weird and unpredictable way. Especially when nobody make any changes to it 🙂

### What it means for users

Some transfers of ETC that happened during 12 hours, starting from 16:30 UTC July, 31, till 3:30 AM August, 1st, are not included in the new blockchain. If anyone transferred money at this time, now it will not appear in her or his wallet.

There was a period of time at August, 1st, when there was a number of miners ( probably based on open ethereum ) continuing to mine the ‘old’ chain. Users of that wallets made transfers, and they were not reflected in the main ETC chain.

### What it means for miners

Miners probably lost a large amount of ETC mined during the attack. Also some miners spent more hash power, mining blocks on wrong ‘old’ fork after the attack.

### What it means for all of us

‘Proof of work’ blockchains mostly considered more secure than other consensus types. However in the core idea is the probability theory, which can only gives some level of confidence, never reaching 100%:

![Confirmation probability](https://miro.medium.com/max/637/1*reo5SvFym7y2m-9uIbrNQg.png)

### Confirmation probability

It starts from 0%, when transaction just happened and not included in blockchain, rapidly raising to ‘almost 100%’ when more blocks are added on top of the block, containing the transaction. Proof of work consensus just helps to raise this curve to 100% very very quickly, as 99.99999 confidence in 6 blocks. Thats why wallets and exchanges have a confidence window of blocks.

It is a big mistake to consider the probability numbers and confidence in the predictions. From the high probability you can never derive, that event will never happen, for example, because its probability is very low and it takes an age of universe for this to happen. It just does not work this way, Taleb in his [Black Swan](https://en.wikipedia.org/wiki/The_Black_Swan:_The_Impact_of_the_Highly_Improbable) book shown that in many examples.

When you own crypto currency on your wallet, it only means that there is some probability of that, and it never 100%. Today example shown, that no reasonable amount of time can raise confidence to the level, when you can assume that it is actually 100%. Nobody can predict that more than 12 hours of history with all transfers could disappear, but it did.

### Mining Power

Attacking miner ([0x75d1e5477f1fdaad6e0e3d433ab69b08c482f14e](https://explorer.bitquery.io/ethclassic/address/0x75d1e5477f1fdaad6e0e3d433ab69b08c482f14e) ) should have more than 50% of mining power of all miners to make such an attack and sustain it for 12 hours.

We observe the raise of price on mining hashrate provider [daggerhashimoto](https://www.nicehash.com/algorithm/daggerhashimoto), during the attack period:

![Mining hashrate price spike in the market](https://miro.medium.com/max/2671/1*FLRcET1TobeWyi2WG6CsMA.png)

Mining hashrate price spike in the market

The time here is UTC+3, so the spike in the price ( blue line ) starts at the same time as attack, and matches the attack period exactly. It is **all time high** price for hash power at this service! It may be coincidence, but the matching data telling it can be related to ETC attack.

The price for the hashrate, bought on this service can be estimated from the numbers shown on graph:

5 BTC / TH / day * 1/2 day * 7 TH= 17.5 BTC

Assuming that attacker bought all hash power ( 7 TH / s ). This is in the same order of magnitude as the graph for ETC at [2miners](https://2miners.com/etc-network-hashrate).


Attacker spent just 17.5 BTC ( $170K ) to fool all network for 12 hours.

The miner, [0x75d1e5477f1fdaad6e0e3d433ab69b08c482f14e](https://explorer.bitquery.io/ethclassic/address/0x75d1e5477f1fdaad6e0e3d433ab69b08c482f14e) only appeared active since July, 29 and for 3 days generated modest number of blocks, 30 per day:

![Activity of miner, based on bitquery.io data ( non-reorg fork)](https://miro.medium.com/max/1498/1*l8YCQhiIUXE7vQFCU4iu_A.png)

Activity of miner, based on [bitquery.io data](https://explorer.bitquery.io/ethclassic/address/0x75d1e5477f1fdaad6e0e3d433ab69b08c482f14e/inflow?from=2020-07-04&till=2020-08-02) ( non-reorg fork)

### On-chain activity during the attack

We made a preliminary investigation only based on non re-org’ed data, not including the attacker’s blocks. We were very actually lucky that were running Open ethereum nodes, as of now, we will have the ability to have both forks data and match one against the other.

When attacker mined his ‘forked’ blocks he actually was not publishing them, and nobody knew it is happening. Users sent transactions to the chain, and the largest transactions in ETC were:

![Data is from Bitquery.io non-reorg database](https://miro.medium.com/max/1903/1*Bbn73ioOLDgUuX1oKkdSJA.png)

Data is from Bitquery.io non-reorg database

Some of the transfers from these are included in the forked blockchain, as the largest one. In non-reorg database it is at block [10906346](https://explorer.bitquery.io/ethclassic/block/10906346) and in re-orged it is on block [10907763](https://blockscout.com/etc/mainnet/blocks/10907763)

However, not all of these are so lucky. For example, the transfer _0x069db204ea87f62817dff7320d0177815c9a7f56811a3a4be00e0c2d862dda39_ now is not included in the chain, and the balances of addresses ( say, [0x97b2a6ca77e2a0fccd15e082b27cb566ddb31ee4](https://explorer.bitquery.io/ethclassic/address/0x97b2a6ca77e2a0fccd15e082b27cb566ddb31ee4) ) differs in non-reorg’d and re-org’ed chains.

This chain of transfers will not appear in org’ed chain:

![money flow](https://miro.medium.com/max/3080/1*QH9Yc43pLHwJWzFF8J7DzQ.png)

money flow

We are now upgrading our node to geth, and soon will have the data for both chains — re-org’ed and non-reorg, and will be able to match the transactions between them. As we see, there are major differences in these forks, and some addresses may be suspected for double spending.

### Conclusion

What happened is a major accident in ETC blockchain. It can be observed in any proof of work blockchain in the future, so any such accident need careful analysis.

There are facts showing that the miner did the attack intentionally, buying hash rate power from external sources.

Further analysis required to find mismatches on re-orged and non-reorged chains to reveal the possible facts of double spending and other issues. We will be happy to share the data for both databases with all interested parties, doing their analysis and investigation of accident. Please write your query in our [Telegram channel](https://t.me/Bloxy_info).

Not all software run by nodes and miners, behave the same. The diversity of versions and software made the accident worse than it could be.

Looking for end to end Crypto investigation tool?  Explore Coinpath Moneyflow, built for investors and law enforcement agencies. [Check it out here!](https://share.hsforms.com/1r66O41lbSuOElm1REXeptQ3rc4g)

**Also Read**

-   [How Upbit hackers laundered millions using crypto exchanges?](https://bitquery.io/blog/upbit-hack-crypto-money-laundering)
-   [Coinpath® – Blockchain Money Flow APIs](https://bitquery.io/products/coinpath)

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath)  is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

-   **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog)  APIs**  provide  [blockchain money flow analysis](https://bitquery.io/products/coinpath)  for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read  [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

-   **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)**  provides index information related to all major cryptocurrencies, coins, and tokens.

-   **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)**  provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Ethereum Classic Attack, 8 August: Catch me if you can]]></title>
            <link>https://bitquery.io/blog/ethereum-classic-attack-8-august-catch-me-if-you-can</link>
            <guid>https://bitquery.io/blog/ethereum-classic-attack-8-august-catch-me-if-you-can</guid>
            <pubDate>Fri, 07 Aug 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
After attacking the Ethereum classic chain on [July 31, 2020](https://bitquery.io/blog/ethereum-classic-51-chain-attack-july-31-2020), the same Attacker attacked the ETC chain [again yesterday](https://twitter.com/binance/status/1291225022866944000). The massive reorganization of 4236 blocks happened in Ethereum Classic blockchain at 2020–08–06 02:54:27 UTC.

It affected blocks from 10935623 to 10939858. Attacker mined the first block at 2020–08–05 11:50:20 UTC, so this attack lasted **15 hours and 6 minutes**.

## Key Takeaway

This time attacker was trying to double-spend 465,444 ETC(approx $3.3 M). Based on our investigation, the attacker successfully double-spent 238,306 ETC ($1.68 M) through Bitfinex and another crypto service. In addition, the attacker also got 14.2K ETC as a block reward, which we are not included in our double-spent calculation.

### Hash Power

The attacker probably used the same mining source, Nicehash [daggerhashimoto](https://www.nicehash.com/algorithm/daggerhashimoto), as observed on the following graph.


![Avg. Speed for time range of attack](/blog/ethereum-classic-attack-8-august-catch-me-if-you-can/avg-speed-for-selected-time-range.png)

[nicehash](https://www.nicehash.com/algorithm/daggerhashimoto) showing the price and TH/sec in UTC+3 timezone

Attacker, [0x3936968a445b723fdd0c0407efffcaecb07cab19](https://explorer.bitquery.io/ethclassic/address/0x3936968a445b723fdd0c0407efffcaecb07cab19) mined 4236 blocks consecutively, plus some extra blocks after the re-org. The block reward from this attack was, 14,234.30 ETC, which still resides on the attacker’s wallet.

The attack is clearly visible on the [miner distribution chart on Bitquery](https://explorer.bitquery.io/ethclassic/miner_distrib?from=2020-07-08&till=2020-08-06).

![Miner Distribution Graph on Bitquery Explorer](/blog/ethereum-classic-attack-8-august-catch-me-if-you-can/miner-distribution-graph-on-bitquery-explorer.png)

### Double-Spent

Our analysis shows, it was the same Attacker, using exactly the scheme as we described in our recent [investigation](https://bitquery.io/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack) of the attack on [July 31st](https://bitquery.io/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack).

This time Attacker included seven transfers in the mined blocks. The total amount of these transactions was 465,444 ETC (approx $3.3 M).

![Double Spend Transactions](/blog/ethereum-classic-attack-8-august-catch-me-if-you-can/double-spend-transactions.png)

### Where the money comes from?

This time the attacker used the money from the first attack, July 31. In our [last analysis](https://bitquery.io/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack), we showed how the attacker double spent the money by sending it to Exchange and also his/her own wallet. This time, the attacker used the ETC left from the first attack.

For example the address [0x305292887ad1ffa867e8564c804575f3d7a19a1f](https://explorer.bitquery.io/ethclassic/address/0xc39241a847c550bbef4489653b1006b980709e4b/graph) is the source of money for the first transaction in the list. This address was used in the first attack. Similarly, other addresses mentioned in the above transaction list also got money from the first attack.

![Transaction Flow of attack](/blog/ethereum-classic-attack-8-august-catch-me-if-you-can/transaction-flow-of-attack.png)

[0xc39241a847c550bbef4489653b1006b980709e4b](https://explorer.bitquery.io/ethclassic/address/0xc39241a847c550bbef4489653b1006b980709e4b/graph)

### Where the Attacker double-spent this time?

The blocks mined by the attacker included transactions in which the attacker sent his/her money to different wallets controlled by him/her. This activity was not visible to anyone as the attacker did not publish any transactions or the blocks, similar to the [last attack](https://bitquery.io/blog/ethereum-classic-51-chain-attack-july-31-2020).

On the other hand, the chain which was visible to everyone (now reorged and discarded), the attacker first collected the money on the address [0x38cd54fc7b1fe7994355fce1d75c9c4bd7335a46](https://explorer.bitquery.io/ethclassic_reorg/address/0x38cd54fc7b1fe7994355fce1d75c9c4bd7335a46/graph?from=2020-08-05&till=2020-08-07). After that, the attacker distributed money to different addresses.

All these transactions happened during the time of the attack when the attacker silently mined the forked blocks.

![Money distributed to multiple addresses from 0x38cd54fc7b1fe7994355fce1d75c9c4bd7335a46](/blog/ethereum-classic-attack-8-august-catch-me-if-you-can/money-distributed-to-multiple-addresses-from-attacker.png)


Money distributed to multiple addresses from [0x38cd54fc7b1fe7994355fce1d75c9c4bd7335a46](https://explorer.bitquery.io/ethclassic_reorg/address/0x38cd54fc7b1fe7994355fce1d75c9c4bd7335a46/graph?from=2020-08-05&till=2020-08-07)

Apparently, the final target was some exchanges and other crypto services, and we can find some of them in the following image.

![Money Originated From 0x38cd54fc7b1fe7994355fce1d75c9c4bd7335a46](/blog/ethereum-classic-attack-8-august-catch-me-if-you-can/money-originated-from-attacker.png)

Money originated from [0x38cd54fc7b1fe7994355fce1d75c9c4bd7335a46](https://explorer.bitquery.io/ethclassic_reorg/address/0x38cd54fc7b1fe7994355fce1d75c9c4bd7335a46/graph?from=2020-08-05&till=2020-08-07), end up on exchanges

The “fireworks” on the right side of the graph are Exchanges, where Attacker sent the money. The attacker must have converted those ETC into fiat or other cryptocurrencies.

The following address which received money from the attacker belongs to Exchanges and other crypto services.

1.  [0x618f37d7ff7b140e604172466cd42d1ec35e0544](https://explorer.bitquery.io/ethclassic_reorg/address/0x618f37d7ff7b140e604172466cd42d1ec35e0544), which we believe, belongs to Bitfinex exchange based on [this post](https://forum.ethereumclassic.org/t/transaction-without-confirmation-closed-exchange-issue/2459/5), received **143,000 ETC** in several transactions. You can find the complete transaction details [here](https://explorer.bitquery.io/ethclassic_reorg/txs/transfers?sender=0xb0580ae6f23ab23810116fe3645b0a8d02f5f106&currency=ETC).
2.  [0x9662a0648aa48592a63509c092ab05adf0a84cc9](https://explorer.bitquery.io/ethclassic/address/0x9662a0648aa48592a63509c092ab05adf0a84cc9) received **95,650 ETC** in multiple transactions. We were not able to identify the crypto service which owns this address. The two biggest transactions, which was received by this address are mentioned below.

- 41,950 ETC in [transaction](https://explorer.bitquery.io/ethclassic_reorg/tx/0x2c7715ab02b218321cfcbb00642bd1d843eabb2df8e92994f3481429dbc21816) 
- 53356 ETC in [transaction](https://explorer.bitquery.io/ethclassic_reorg/tx/0xebf573a4c70b9a8eb11e5970e76ea0a524d25877cc9927987da80f44d86245ad)

### Total money loss

Our investigation shows that Bitfinex lost 143K ETC (~$1M) and we were not able to identify the other service mention above who lost 95K ETC (~680K). In total, we were able to able to verify that the attacker profited $1.68M (At least) from this attack.

The mentioned crypto service can identify the attacker based on the above transactions. 

### Wrapping up…

We believe the double-spent this time would have been caught. Our transaction monitoring technology, [Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog), built to [trace blockchain money flow](https://bitquery.io/products/coinpath) and would have flagged these transactions for further investigation. If you are looking for blockchain transaction monitoring technology, get in touch with us on our [Telegram channel](https://t.me/Bloxy_info).

**Note:**  Special thanks to [Yaz Khoury](https://twitter.com/Yazanator) for reviewing the article.

## About Coinpath®

[Coinpath®](https://bitquery.io/products/coinpath?utm_source=about) APIs provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools.

If you have any questions about [Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog), ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

Coinpath® is a Bitquery product. [**Bitquery**](https://bitquery.io?source=blog&utm_medium=about_coinpath) is a set of tools that parse, index, access, search, and use information across blockchain networks in a unified way.

## About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

**Also Read**

- [](https://bitquery.io/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack)[Ethereum Classic 51% Chain Attack July 31, 2020](https://bitquery.io/blog/ethereum-classic-51-chain-attack-july-31-2020)
- [Attacker Stole 807K ETC in Ethereum Classic 51% Attack](https://bitquery.io/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack)
- [Coinpath® – Blockchain Money Flow APIs](https://bitquery.io/products/coinpath)
- [avast premier license file 2018](https://itnewscorner.net/avast-premier-license-file-2018/)
- [Cryptocurrency Money Laundering Explained](https://bitquery.io/blog/cryptocurrency-money-laundering)
- [How Upbit hackers laundered millions using crypto exchanges?](https://bitquery.io/blog/upbit-hack-crypto-money-laundering)
- [Twitter Hack — Track Bitcoin crimes in real-time using Coinpath®](https://bitquery.io/blog/twitter-hack-tracking-bitcoin-using-coinpath)]]></description>
        </item>
        <item>
            <title><![CDATA[Cryptocurrency Money Laundering Explained]]></title>
            <link>https://bitquery.io/blog/cryptocurrency-money-laundering</link>
            <guid>https://bitquery.io/blog/cryptocurrency-money-laundering</guid>
            <pubDate>Thu, 06 Aug 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
In the 1920s, [Al Capone](https://en.wikipedia.org/wiki/Al_Capone), an American gangster, was earning millions in extortion, prostitution, gambling, and bootleg liquor. Still, he needed to show a legitimate source of his income. Hence he bought multiple laundromats business to mix his illicit earnings with their legitimate earnings. Gangsters choose laundromats because they were cash businesses. Many believe this as the origin story of the term “Money Laundering.”

Nevertheless, Al Capone was prosecuted and convicted in October 1931 for tax evasion because [Money laundering was not a crime until 1986](https://en.wikipedia.org/wiki/Money_Laundering_Control_Act) in the United States.

![AI Capone in 1931](/blog/cryptocurrency-money-laundering/al-capone-1931.jpg)

Al Capone ([Source](https://en.wikipedia.org/wiki/Al_Capone))

## What is Money Laundering?

Money laundering is an illegal process of legitimizing the money obtained from illicit activities. The term money laundering has been used for both business and financial crimes. In general, money laundering is the misuse of the financial system involving cryptocurrencies, securities, banking, credit cards, and traditional currency, including bypassing international sanctions and terrorism financing.

In the realm of digital currencies, money laundering poses a far greater challenge in front of regulators worldwide.

## How Cryptocurrency Money Laundering works

Money Laundering process involves creating a complex money trail to remove the direct association of the funds’ origin and then obtaining the money again by integrating it into the mainstream economy.

In general, the Money laundering process involves three steps. We will talk about how this process works in the context of cryptocurrencies.

![Cryptocurrency Money Laundering](/blog/cryptocurrency-money-laundering/cryptocurrency-money-laundering.webp)

### Placement

Cryptocurrencies can be obtained using fiat or other cryptocurrencies on exchanges and other crypto services. Criminals use illicit funds to purchase cryptocurrencies, hence introducing the new money into the system. This is where criminals are most vulnerable, and by implementing strict KYC (Know your customer) solutions, the ownership of the funds can be established.

Today, crypto services have varying levels of compliance with regulations regarding financial transactions. Many exchanges are following regulatory requirements and implemented KYC/AML solutions to identify the source of funds. However, many crypto services fall behind to fulfill compliance requirements and are vulnerable to cryptocurrency and bitcoin money laundering.

### Layering

Layering is the next phase where criminals use different types of crypto services to create a complex transaction trail to remove the direct association with the funds’ origin.

These transactions are visible on the Blockchain. However, services like tumblers/mixers, crypto gambling, exchange, DeFi (decentralized finance), etc.. can make tracing these funds difficult and, in some cases, impossible.

Our [Coinpath®](https://bitquery.io/products/coinpath) technology helps you to [trace money flow on Blockchain](https://bitquery.io/products/coinpath) in an efficient manner.

### Integration

Once the funds’ source is untraceable, the final phase of the cryptocurrency money laundering is to legitimize the funds. For this, criminals process funds through various crypto services, providing fiat gateways.

However, launderers have to explain how they earn this money. There are many ways to do this; sometimes, criminals create new businesses providing services and accepting crypto payments. Then convert the crypto into fiat through off-shore banking services.

Another example is where criminals use gambling and gaming websites, ICOs to show the earnings as profit from the investment.

### Common services misused by Crypto launderers

In general, we found that the following services are the most used in cryptocurrency money laundering.

### Anonymization services (Tumblers/Mixers)

Crypto tumblers or mixing services enhance privacy for personal and business-related transactions. Tumblers mix funds from different origins to make the source of funds unidentifiable.

For example, Mixers split up transactions into multiple smaller transactions and then combine them again. They repeat this process numerous times and every time, making it difficult to determine which funds belong to which source.

Money launders use mixer multiple times at various steps, making funds unidentifiable. Usually, criminals transfer money through multiple hops before and after using any Tumbler.

![Cryptocurrency Mixer spiting and mixing Bitcoins](/blog/cryptocurrency-money-laundering/cryptocurrency-mixer.png)

Cryptocurrency Mixer spiting and mixing Bitcoins

### Decentralized & Unregulated Exchanges

Decentralized exchanges(DEX) are mostly unregulated and don’t provide fiat gateways. However, DEX can be used to covert a cryptocurrency into another cryptocurrency. For example, a hacker can use a Decentralized exchange to covert stolen Ethereum into Bitcoin, making it difficult to trace. Besides, there are many unregulated exchanges all over the world, providing fiat gateways also pose challenges to regulators.

### Peer to Peer(P2P) exchanges

P2P exchanges also one of the top avenues to dump illicit funds obtained from crypto hacks. Criminals can exchange crypto with fiat in a peer to peer manner, which is difficult to trace. However, the biggest P2P exchange, [LocalBitcoins, recently implemented an AML](https://localbitcoins.com/blog/aml-features-update/) solution to control money laundering activities.

### Privacy Coins

Cryptocurrencies such as Zcash, Monero, Verge are privacy-focused cryptocurrencies. If funds are converted into these coins, tracking them is almost impossible. For example, no transaction monitoring system exists for Monero at the time of writing this article. However, our [Coinpath® APIs](https://bitquery.io/products/coinpath) support tracing money on Zcash blockchain.

### Bitcoin ATMs

There are more than [8900 Bitcoin ATMs](https://www.statista.com/statistics/343127/number-bitcoin-atms/) all over the world. Many of these ATMs support multiple cryptocurrencies. Lack of regulatory oversight makes these ATMs vulnerable to Bitcoin money laundering. A [report by CipherTrace](https://ciphertrace.com/spring-2020-cryptocurrency-anti-money-laundering-report/) shows that the percentage of funds sent to high-risk exchanges from US Bitcoin ATMs has doubled every year since 2017. The report also predicts that “Bitcoin ATMs are likely to be the next major regulatory target.”

### DeFi (Decentralized Finance)

Ethereum ushered a new era of Decentralized finance (DeFi). Most of the DeFi applications do not need any legal support to enable different financial instruments. Tracing the complex DeFi transactions to stop Ethereum money laundering will post a great challenge for regulators in the coming years.

### Gambling and gaming sites

Gambling sites are one of the most attractive avenues for money laundering. Many gambling websites accept cryptocurrencies. Therefore, vulnerable to Bitcoin money laundering. In other words, criminals use these gaming and gambling websites to legitimize their illicit funds and show them as earning.

### Challenges in Cryptocurrency money laundering

[Private banks create more than 90% of the money](https://blog.coincodecap.com/all-the-money-in-the-world) in the digital form. All these banks are regulated and follow regulatory guidelines to stop money laundering. However, the United Nations Office of Drugs and Crime [estimated in 2011](https://www.unodc.org/documents/data-and-analysis/Studies/Illicit_financial_flows_2011_web.pdf) that the criminals laundered $800 billion — $2 trillion in that one year, which was 2–5% of the global economy.

In a world where central banks and governments control the origin of money, money laundering persists at a large scale. Therefore, tackling the money laundering problem in cryptocurrency will be a more significant challenge for regulators. Because in crypto:

- Any central authority does not control the origin of money.
- No KYC needed to start transacting.
- Tracing problem because anyone can create a complex money trail
- New financial primitives and Internet-only businesses (Decentralized Autonomous Organizations) do not require legal registration.

[The Chainalysis 2020 Crypto Crime Report](https://go.chainalysis.com/rs/503-FAP-074/images/2020-Crypto-Crime-Report.pdf) shows that more than $10 billion of cryptocurrency transaction volume generated from illicit activities in 2019.

![Cryptocurrency Volume from illicit activities](/blog/cryptocurrency-money-laundering/cryptocurrency-volume-from-illicit-activities.png)

Cryptocurrency volume from illicit activities ([source](https://go.chainalysis.com/rs/503-FAP-074/images/2020-Crypto-Crime-Report.pdf))

The evolution of money and speed of innovation in the blockchain domain poses a hard challenge for regulators worldwide. Law-enforcement authorities need next-generation monitoring tools to restrain cryptocurrency money laundering. At the same time, regulators need to develop regulations that do not hurt innovation and the user’s privacy. 

### US and global approaches to crypto regulations

In the United stated, The Financial Crimes Enforcement Network (FinCEN) doesn’t consider cryptocurrencies as legal tender. 

However, the guidelines published in 2013 by FinCEN suggested that the [Bitcoin trading and mining business will be treated as ‘Money transmitters’](https://www.fincen.gov/resources/statutes-regulations/guidance/application-fincens-regulations-persons-administering)(based on the jurisdiction). Therefore, these businesses are subject to KYC (Know your customers) and AML (Anti-money laundering) measures as other financial institutions.

In March 2018, the [Securities and Exchange Commission](https://www.sec.gov/news/public-statement/statement-clayton-2017-12-11) (SEC) stated that it was looking to apply securities laws for cryptocurrency wallets and exchanges, considering crypto assets as securities. 

On the other hand, The [Commodities Futures Trading Commission](https://www.cftc.gov/Bitcoin/index.htm) (CFTC) described bitcoin as a commodity and allowing cryptocurrency derivatives to trade publicly.

In June 2019, The Financial Action Task Force (FATF), a global money laundering and terrorist **financing** watchdog, published its [guidelines](https://www.fatf-gafi.org/publications/fatfrecommendations/documents/regulation-virtual-assets-interpretive-note.html) stating that crypto exchanges need to abide by “Travel rule” and share sender and recipient information. The countries should make sure that when crypto businesses send money, they:

_“… obtain and hold required and accurate originator \[sender\] information and required beneficiary \[receipient\] information and submit the information to beneficiary institutions … if any. Further, countries should ensure that beneficiary institutions … obtain and hold required (not necessarily accurate) originator information and required and accurate beneficiary information …”_

### Fifth Money Laundering Directive (5AMLD)

[5AMLD](https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=celex:32018L0843), European Anti-money laundering legislation, came into force on January 10, 2020. The legislations also guide the treatment of digital currencies. 

It provides a new legal definition of cryptocurrency in general:

“a digital representation of value that can be digitally transferred, stored or traded and is accepted…as a medium of exchange.”

CFT/AML regulations mentioned in 4AMLD now apply for all cryptocurrency businesses under 5AMLD. Now, cryptocurrency businesses need to conduct customer due diligence (CDD) and submit suspicious activity reports (SAR). 

Additionally, crypto exchanges and other businesses have obligations to provide customer’s personal information to Financial Intelligence Units (FIU). 

Furthermore, all crypto exchanges and wallets need to register with their respective domestic authorities such as Germany’s [BaFin,](https://www.bafin.de/EN/Homepage/homepage_node.html) or the UK’s [Financial Conduct Authority](https://www.fca.org.uk/).

The [5th Anti-Money Laundering Directive](https://europa.eu/rapid/press-release_STATEMENT-18-3429_en.htm) signifies a decisive development in cryptocurrency regulation. It provides transparency to cryptocurrency businesses on their AML and counter-terrorism financing (CTF) obligations.

Governments all over the world started regulating cryptocurrency exchanges. These exchanges are fiat on-off ramp for cryptocurrencies. Therefore exchanges must implement strict KYC solutions and limit the amount of money that can be transacted without KYC verification.

### Impact of regulations on the crypto industry

Clear regulatory guidance is the necessity for crypto adoption and the legitimacy of the domain. However, enforcing the system centralization, AML process, and procedure, compliance can harm businesses with many crypto users avoiding such rules and regulations.

For example, Bottle Pay, a UK-based wallet provider, announced its service shut down at the end of the last year. According to a [company blog post](https://bottlepay.helpscoutdocs.com/article/40-official-announcement-on-the-shutdown-of-bottle-pay):

_“As we are a UK based custodial Bitcoin wallet provider, we will have to comply with the 5AMLD EU regulation coming into effect on January 10, 2020. The amount and type of extra personal information we would be required to collect from our users would alter the current user experience so radically, and so negatively, that we are not willing to force this onto our community.”_

In any case, regulations are essential to legitimize the industry, remove any friction for adoption, and guide entrepreneurs to introduce new products.

### How to combat crypto money laundering

Regulators, businesses, and the crypto community need to work together to combat cryptocurrency and bitcoin money laundering. Multiple companies are providing technology to regulators and law enforcement agencies to identify criminal activities such as bitcoin hacks on the Blockchain. However, regulators also need to understand the fundamental values of cryptocurrencies, such as anonymity, and do not [push businesses](https://www.coindesk.com/fatf-crypto-travel-rule) to erode their user’s privacy.

Businesses committed to providing the best service to their users for the long term should look to crypto compliance more closely. And work with authorities to implement proper KYC and AML solutions. 

Implementing these solutions can also scare away criminals looking to launder their money through your service.

Since hiding and obfuscating transactions are primary methods of Bitcoin money laundering, proper transaction monitoring, and educating users on the importance of using proper channels when using cryptocurrency will help stop laundering activities.

### How to be a crypto AML compliance business?

Deploying anti-money laundering solutions and working with compliance experts can help your business to become and remain AML compliant. However, hiring an in-house compliance team might not feasible for many small businesses. Therefore you can finds experts and engage them on a contract basis. Besides, you need to deploy the right set of compliance tools, which help you with cryptocurrency transaction monitoring and automatically detect and notify about suspicious activities.

You also need to implement proper KYC processes and identity systems for sharing information with other vendors and authorities (in required) while preserving your user’s privacy.

### Try Coinpath®

Our [Coinpath®](https://bitquery.io/products/coinpath) technology allows you to trace money flow on Blockchain. Currently, we support more than 24 blockchains. Learn more about how Coinpath® APIs can help you [build Cryptocurrency compliance solutions](https://bitquery.io/products/coinpath), Bitcoin forensic tools, and Blockchain transaction monitoring systems.

### About Coinpath®

[Coinpath®](https://bitquery.io/products/coinpath?utm_source=about) APIs provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools.

If you have any questions about [Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog), ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

Coinpath® is a Bitquery product. [**Bitquery**](https://bitquery.io?source=blog&utm_medium=about_coinpath) is a set of tools that parse, index, access, search, and use information across blockchain networks in a unified way.

### About Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

**Also Read**

- [Coinpath® – Blockchain Money Flow APIs](https://bitquery.io/products/coinpath)
- [Attacker Stole 807K ETC in Ethereum Classic 51% Attack](https://bitquery.io/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack)
- [How Upbit hackers laundered millions using crypto exchanges?](https://bitquery.io/blog/upbit-hack-crypto-money-laundering)
- [Twitter Hack — Track Bitcoin crimes in real-time using Coinpath®](https://bitquery.io/blog/twitter-hack-tracking-bitcoin-using-coinpath)]]></description>
        </item>
        <item>
            <title><![CDATA[Attacker Stole 807K ETC in Ethereum Classic 51% Attack]]></title>
            <link>https://bitquery.io/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack</link>
            <guid>https://bitquery.io/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack</guid>
            <pubDate>Wed, 05 Aug 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
In the last article, [Ethereum Classic 51% Chain Attack Jul 31 2020](https://bitquery.io/blog/ethereum-classic-51-chain-attack-july-31-2020), we have described the facts related to Ethereum classic attack, which took place between Jul 31 and Aug 1. In this article, we have analyzed the transactions during the attack in both forks of the chain.

**Key Takeaway**: Attacker double-spent 807,260 ETC ($5.6 million) during this attack and spent 17.5 BTC ($192K) to acquire the hash power for the attack. The attacker also got 13K ETC as a block mining reward, which we are not including in our double-spent calculation.

## Data collection from reorged and non-reorged chain

We at [Bitquery](https://bitquery.io?utm_source=blog) collected data from the Ethereum Classic node based on [Open Ethereum](https://github.com/openethereum/openethereum) software. As it appeared after the fork, this software had a bug that prevented chain-reorg past a certain block number. As a result, we had all data preserved, including a series of blocks that were mined by other miners on [Open Ethereum](https://github.com/openethereum/openethereum) software after the reorg happened.

It appeared that the only way to catch up with the reorged chain is to move to other node software, and we selected [Geth](https://github.com/etclabscore/core-geth). But before doing that, we stored all the data of the non-reorged chain, in a separate database for future analysis.

After the [Geth](https://github.com/etclabscore/core-geth) node synced and we re-indexed the data starting from the block **10904146**, where reorg started.

As a result, we now have two datasets, that we exposed in Bitquery explorer interface and GraphQL API:

1.  Non-reorged chain, from [Open Ethereum](https://github.com/openethereum/openethereum) node (On which every miner worked)
2.  Reorg’d chain from [Geth](https://github.com/etclabscore/core-geth) node (On which attacked worked)

These datasets have precisely the same data until the block 10904146, and the difference starts from the next block. For example, compare the next block, 10904147:

![block 10904147 attribute](/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack/block-10904147-attribute.png)

[10904147](https://explorer.bitquery.io/ethclassic_reorg/block/10904147) for non-reorged chain

![non-reorg 10904147 attribute](/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack/block-10904147-non-reorg-attribute.png)

[10904147](https://explorer.bitquery.io/ethclassic/block/10904147) for reorged chain

In general, you can use the URLs in the form:

[https://explorer.bitquery.io/ethclassic](https://explorer.bitquery.io/ethclassic/block/10904147) to query reorged chain ( currently accepted chain, and the chain with attacker’s mined blocks )

[https://explorer.bitquery.io/ethclassic_reorg](https://explorer.bitquery.io/ethclassic_reorg/block/10904147) to query non-reorged chain (Chain with blocks which are discarded)

There are a couple of differences in these blocks in the chain:

1.  Height is the same, but hashes are different, as these blocks have different content.
2.  The parent hashes are the same, as they were pointing to the same original block, from which the fork started (10904146)
3.  Miners are different. Miner for the reorg’ed chain is the attacker [0x75d1e5477f1fdaad6e0e3d433ab69b08c482f14e](https://explorer.bitquery.io/ethclassic/address/0x75d1e5477f1fdaad6e0e3d433ab69b08c482f14e) , who mined more than 3500 blocks during 12 hours to execute the reorg. Miners for the non-reorged chain are some regular miners, who continued to mine the blocks, not knowing about the attacker.
4.  Not just blocks, but transactions, transfers, smart contract calls, and events are different in the reorged and non-reorged chain.

Let’s have a look at the attacker’s mining activities.

## Attacker’s mining activity

The Attacker managed to insert blocks from the block height from 10904147 to 10907761. After the block 10907761, he continued to mine some blocks, but that did not cause major reorgs. The attacker’s activity can be seen at:

![I/O Transfer Count by Date](/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack/etc-io-transfer-count.png)

[attacker’s mining activity](https://explorer.bitquery.io/ethclassic/address/0x75d1e5477f1fdaad6e0e3d433ab69b08c482f14e?from=2020-07-07&till=2020-08-05)

In total, the attacker mined 4280 blocks for four days. Note that he did only a little mining before and stopped mining after the attack. This is not the behavior of a regular miner.

In result, the miner sent all the mining reward money (13K ETC ) to address [0x401810b54720faad2394fbe817dcdeae014066a1](https://explorer.bitquery.io/ethclassic/address/0x401810b54720faad2394fbe817dcdeae014066a1), where it resides at the time of writing:

![ETC Attacker Mining Reward](/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack/attacker-mining-reward.webp)

[attacker’s mining reward transactions](https://explorer.bitquery.io/ethclassic/address/0x75d1e5477f1fdaad6e0e3d433ab69b08c482f14e/graph?from=2020-07-07&till=2020-08-05)

## Attack Timeline

Based on our investigation, the attacker performed the following action to execute the 51% attack:

1.  July 29–31. The attacker withdraws 807K ETC from a Crypto exchange to several wallets.
2.  Jul 31, 16:36 UTC. The attacker started mining blocks by purchasing the hash power for double price from Nicehash provider [daggerhashimoto](https://www.nicehash.com/algorithm/daggerhashimoto), as we found in the [first article](https://bitquery.io/blog/ethereum-classic-51-chain-attack-july-31-2020). The total cost of mining is approx 17.5 BTC ( ~$192,000 )
3.  Jul 31, 17:00–17:40 UTC. The attacker created private transactions, sending money to his/her own wallets, and inserted these transactions in the blocks he/she was mining. No one saw these transactions because the attacker didn’t publish the blocks.
4.  Jul 31, 18:00– Aug 1, 2:50 UTC. The attacker sends money back to the Crypto exchange using intermediary wallets on the non-reorged chain, which was visible to everyone. During this, the attacker has plenty of time to monetize this money — convert to USD and withdraw or change them to BTC, whatever. Long attack duration(12 hours) allowed attackers to split operations into smaller parts to avoid any suspicion.
5.  Aug 1, 4:53 UTC, the attacker publishes his/her blocks with the version of the transaction created in step #3 and executed the chain re-organization. It means that transactions on step #4 replaced with transactions on step #3.

![ETC Attack Timeline](/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack/attack-timeline.webp)

Now let’s see a detailed look at the steps and how miner was able to get away with more than **~807K ETC ($5.6 million)**.

## Transactions inserted by the attacker ( in reorged chain )

There are just 11 transactions, that miner inserted during the attack. This fact probably caused the [speculations](https://www.theblockcrypto.com/linked/73700/ethereum-classic-experiences-3693-block-long-reorg) that “The offending miner has lost access to internet access for a while when mining.” Noteworthy, that these transactions were not sent to other miner’s transaction memory pool (mempool). So they are not mined by other miners in the network.

Take a look at these transactions:

![Transaction mined by the ETC Attacker](/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack/transactions-mined-by-etc-attacker.png)

Notice, first five transactions with high amounts of ETC value. Let’s check these transactions one by one.

**First Transaction (Value — 353005 ETC)** ([**Tx**](https://explorer.bitquery.io/ethclassic/tx/0x18d835370c38e0733fc2999daf243ceeb2bc96c783c9a02887dd9133d11de57f))

![First transaction mined by the ETC attacker](/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack/first-transaction-mined-by-attacker.png)

[The first transaction mined by attacker 353K ETC](https://explorer.bitquery.io/ethclassic/address/0x439ff9e3a81a4847d0c2041c06e5a272883f69f2/graph)

**Second Transaction (Value — 77955 ETC)** ([**TX**](https://explorer.bitquery.io/ethclassic/tx/0x415ee99beb653f4fe4e2442774b4993ed2421d9b9aa39224f5391dae0c755f38))

![The second transaction mined by the ETC attacker](/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack/second-transaction-mined-by-attacker.png)

[The second transaction mined by attacker 77.955K ETC](https://explorer.bitquery.io/ethclassic/address/0x1e3a5208db53be56b6340f732ec526b4bdc37981/graph)

**Third Transaction (Value — 194100 ETC)** ([**TX**](https://explorer.bitquery.io/ethclassic/tx/0x690298a3f4f55aa7d6af11758347357ebeb4f1be7f04d7fddcf5c0d3f361ddf5))

![The third transaction mined by the ETC attacker](/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack/third-transaction-mined-by-attacker.png)

[Third transaction mined by the attacker, value — 194.1K ETC](https://explorer.bitquery.io/ethclassic/address/0xa56cfaef495a45f17f44fd0b2d85e0fe63b9ba7d/graph)

**Fourth Transaction (Value — 97710 ETC)** ([**TX**](https://explorer.bitquery.io/ethclassic/tx/0xe00e703aea1147c6922f53f830a0062cbf305246ca5868793af1419f0c6ad31a))

![the fourth transaction mined by the ETC attacker](/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack/fourth-transaction-mined-by-attacker.png)

[Fourth Transaction mined by the attacker, value — 97.1 ETC](https://explorer.bitquery.io/ethclassic/address/0x4b77501d21c3c3488c60fcea640b590be321bc5f/graph)

**Fifth Transaction (Value — 84490 ETC)** ([**TX**](https://explorer.bitquery.io/ethclassic/tx/0xab2b99ed600e3d985e2a743676d8ee07d0c5d0cae3d9f0ea85abb6f03eb47895))

![The fifth transaction mined by the ETC attacker](/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack/fifth-transaction-mined-by-attacker.png)

[fifth transaction mined by the attacker, value — 84.49 ETC](https://explorer.bitquery.io/ethclassic/address/0xc39241a847c550bbef4489653b1006b980709e4b/graph)

Comparing these transactions, you will notice the pattern:

1.  Amounts are in thousands of ETC
2.  All the Transaction originated from the address **0x63a8ab05ae4a3bed92580e05e7dce3b268b54a7f**
3.  All the transactions happen within a 40 minutes time range starting from 17:00 July, 31, just before the attack began.

## Wallets are ready to execute the 51% attack

To perform a 51% attack, the attacker had to own the money in wallets he/she controls. There are 5 addresses, that had prepared balances before the attack:

1.  [0x439ff9e3a81a4847d0c2041c06e5a272883f69f2](https://explorer.bitquery.io/ethclassic/txs/transfers?receiver=0x439ff9e3a81a4847d0c2041c06e5a272883f69f2&currency=ETC), received 353K ETC from [0x63a8ab05ae4a3bed92580e05e7dce3b268b54a7f](https://explorer.bitquery.io/ethclassic/address/0x63a8ab05ae4a3bed92580e05e7dce3b268b54a7f) in 22 transactions at 29–30 July, 2020
2.  [0x9ac1785943ead4dafb2198003786b4b29143f081](https://explorer.bitquery.io/ethclassic/txs/transfers?receiver=0x9ac1785943ead4dafb2198003786b4b29143f081&currency=ETC), received 78K ETC from [0x63a8ab05ae4a3bed92580e05e7dce3b268b54a7f](https://explorer.bitquery.io/ethclassic/address/0x63a8ab05ae4a3bed92580e05e7dce3b268b54a7f) in 7 transactions at 30–31 July, 2020
3.  [0xad599aa123c2b5b00773b9bfadacf8c3e97ea72d](https://explorer.bitquery.io/ethclassic/txs/transfers?receiver=0xad599aa123c2b5b00773b9bfadacf8c3e97ea72d&currency=ETC), received 194K ETC from [0x63a8ab05ae4a3bed92580e05e7dce3b268b54a7f](https://explorer.bitquery.io/ethclassic/address/0x63a8ab05ae4a3bed92580e05e7dce3b268b54a7f) in 16 transactions at 30–31 July, 2020
4.  [0xda88ea478545581eafffa3598fd11fc38f13c508](https://explorer.bitquery.io/ethclassic/address/0xda88ea478545581eafffa3598fd11fc38f13c508/inflow), received 97.7K ETC from [0x63a8ab05ae4a3bed92580e05e7dce3b268b54a7f](https://explorer.bitquery.io/ethclassic/address/0x63a8ab05ae4a3bed92580e05e7dce3b268b54a7f) in 7 transactions at 30–31 July, 2020
5.  [0x305292887ad1ffa867e8564c804575f3d7a19a1f](https://explorer.bitquery.io/ethclassic/txs/transfers?receiver=0x305292887ad1ffa867e8564c804575f3d7a19a1f&currency=ETC), received 84K ETC from [0x63a8ab05ae4a3bed92580e05e7dce3b268b54a7f](https://explorer.bitquery.io/ethclassic/address/0x63a8ab05ae4a3bed92580e05e7dce3b268b54a7f) in 5 transactions at 30–31 July, 2020

In total, before the attack, the total ETC value on these addresses was **~ 807K ETC** (**$5.6 million**).

## Transactions in non-reorged chain

When the attack started, nobody knew about it, as the attacker did not publish any blocks. However, the attacker created private transactions that we recorded in our second dataset ( non-reorged chain ).

This graph expands for the addresses that we mentioned before, shows how the attacker withdrew money from the Exchange to his/her own wallet and sent back the money to Exchange again.

![Transfers made by the attacker](/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack/transfers-made-by-the-attacker.png)

Graph of [transfers made by the attacker](https://explorer.bitquery.io/ethclassic_reorg/address/0x4581db46b930f0f9ae0deca05bdf698378d86593/graph), Note, that you have to manually expand addresses by double-click to get this picture.

When combining the data from Non-reorged chain and reorged chain, we can see that in the non-reorged chain, the money goes back to the Exchange:

* Before the attack, money was withdrawn from address 0x63a8 to the 5 different addresses. We believe 0x63a8 is an Exchange wallet.
* during the attack, the money was sent back to exchange 0x63a8 through 1–3 intermediary addresses
* As a result, all money withdrawn from exchange 0x63a8, got back to the exchange 0x63a8 and these transactions were confirmed as no one knew about the attack that was undergoing.

For example, the transactions below shows how the attacker sent money back to exchange in small portions:

![Money transferred by the attacker back to the Exchange](/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack/money-transferred-by-the-attacker-back-to-the-exchange.png)

[Money transferred by the attacker back to the Exchange](https://explorer.bitquery.io/ethclassic_reorg/txs/transfers?sender=0xe682fdbb07d1ba8b0bc51011a6abd6f83c7e9a5f&currency=ETC)

This was visible in the non-reorged chain, and these transactions were valid for at least 12 hours, while miner created new blocks privately.

As a result, the attacker got away with 807K ETC plus mining rewards ( 13K ETC ) by successfully executing the 51% attack on Ethereum classic. In total, it is approx. $5,650,820. Much more than money spent on mining ( $192K ).

## Following attacker’s double-spent ETC

The attacker now needs to monetize the double-spent ETC remaining at his/her wallets. And here, we see a typical pattern of splitting amounts for many addresses and multiple hops transfers.

![Following attacker’s double-spent ETC](/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack/following-attacker-double-spent-etc.png)

[https://explorer.bitquery.io/ethclassic/address/0x1e3a5208db53be56b6340f732ec526b4bdc37981/graph](https://explorer.bitquery.io/ethclassic/address/0x1e3a5208db53be56b6340f732ec526b4bdc37981/graph), expanded to the right

However, with our [Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) technology, we traced the double-spent ETCs. The current distribution to the time of writing is:

![Coinpath Report on ETC attacker](/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack/coinpath-report-etc-attack.png)

[Coinpath API](https://bitquery.io/products/coinpath) report starting from 0x1e3a5208db53be56b6340f732ec526b4bdc37981 address

## Identifying the Crypto Exchange

We do not know the exact owner for the address [0x63a8ab05ae4a3bed92580e05e7dce3b268b54a7f](https://explorer.bitquery.io/ethclassic/address/0x63a8ab05ae4a3bed92580e05e7dce3b268b54a7f), but we are pretty confident this is a Crypto exchange because of the high volumes in transactions and other behavioral patterns.

What we can guess is this address belongs to the OKEx exchange or its affiliates. The same address in Ethereum Mainnet has a lot of related activity to OKEx wallets.

![All transfers were with OKEx other wallets](/blog/attacker-stole-807k-etc-in-ethereum-classic-51-attack/all-transfers-were-with-okex-other-wallets.png)

All transfers were with OKEx other wallets, [https://explorer.bitquery.io/ethereum/address/0x63a8ab05ae4a3bed92580e05e7dce3b268b54a7f/outflow](https://explorer.bitquery.io/ethereum/address/0x63a8ab05ae4a3bed92580e05e7dce3b268b54a7f/outflow)

Victor Fang, CEO of Blockchain Ecosystem Intelligence [Anchain.ai](https://www.anchain.ai/), confirmed that this address belongs to the OKEx exchange.

**Note:** Special thanks to [Victor Fang(Anchain](https://twitter.com/AnChainAI)) and [Yaz Khoury](https://twitter.com/Yazanator) for helping in preparing the article.

**Also Read**

- [How Upbit hackers laundered millions using crypto exchanges?](https://bitquery.io/blog/upbit-hack-crypto-money-laundering)
- [Cryptocurrency Money Laundering Explained](https://bitquery.io/blog/cryptocurrency-money-laundering)
- [Coinpath® – Blockchain Money Flow APIs](https://bitquery.io/products/coinpath)
- [Create a WhaleAlert like service in 10 minutes (Crypto Alert)](https://bitquery.io/blog/crypto-alert-service-like-whale-alert)
- [Crypto chart widgets for your website (Including WordPress)](https://bitquery.io/blog/crypto-chart-on-your-website-wordpress)
- [Twitter Hack — Track Bitcoin crimes in real-time using Coinpath®](https://bitquery.io/blog/twitter-hack-tracking-bitcoin-using-coinpath)

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens.

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Create a WhaleAlert like service in 10 minutes (Crypto Alert)​]]></title>
            <link>https://bitquery.io/blog/crypto-alert-service-like-whale-alert</link>
            <guid>https://bitquery.io/blog/crypto-alert-service-like-whale-alert</guid>
            <pubDate>Sat, 25 Jul 2020 00:03:00 GMT</pubDate>
            <description><![CDATA[
[WhaleAlert](https://twitter.com/whale_alert)  is a service that notifies about large crypto transactions.

In this article, we will learn how you can build a crypto alert service like WhaleAlert using Bitquery APIs within a few minutes.

Our crypto alert service will notify users whenever there is a transaction with more than 2 million USDT in value.

The hardest part of building a crypto alert service to get the relevant blockchain data. Let’s say we want our alert service should “give all Bitcoin transactions with more than 1000 BTC.”

Commonly, to build a crypto alert service from scratch, you need to do the following steps:

1.  Run a Bitcoin node

2. Get transaction data continuously and index them

3. Then query on that data to get the desired results

However, Bitquery solves the first and second steps for you. Therefore, you just need to call our APIs to the desired results across multiple blockchains.

Yes, multiple blockchains. We expose unified APIs for more than 20 blockchains. Therefore integrating with multiple blockchains becomes very easy.


### Prerequisite

To build a crypto alert service, you need to have programming knowledge and the ability to write GraphQL queries. If you don’t know about GraphQL check here and don’t worry, we provide a lot of example queries which help you to get started.

-   Programming knowledge
-   GraphQL

Bitquery exposes  [a single GraphQL endpoint](https://explorer.bitquery.io/graphql)  to query more than 20 blockchains. Our GraphQL APIs are detailed and scalable and provide a unified interface. Learn more about Bitquery GraphQL APIs  [here](https://bitquery.io/labs/graphql).

**Also Read:  [Crypto chart widgets for your website (Including WordPress)](https://bitquery.io/blog/crypto-chart-on-your-website-wordpress)**

### Tether (USDT) alert service

Let’s say we want an alert for every USDT(Tether) transaction with more than $2 million in value. As we want very specific results, we need to write a GraphQL query for this and test it on the Bitquery GraphQL interface.

[Here](https://gist.github.com/buddies2705/7c3cbc14a368106e2c9855e2ac41be70)  is the query, which you can test on the  [Bitquery GraphQL interface](https://explorer.bitquery.io/graphql).

```
{"token":"0xdac17f958d2ee523a2206206994597c13d831ec7",

"from":"2020-07-23T01:00:00Z",

"till":"2020-07-23T01:10:00Z",

"limit":10,

"network":"ethereum",

"amount":2000000

}
```

[view raw](https://gist.github.com/buddies2705/7c3cbc14a368106e2c9855e2ac41be70/raw/2a4fdb3d4ac63c7499a14ea9b9b10f89ba35cbe7/parameters.json)[parameters.json](https://gist.github.com/buddies2705/7c3cbc14a368106e2c9855e2ac41be70#file-parameters-json) hosted with ❤ by  [GitHub](https://github.com/)


```
query ($network: EthereumNetwork!, $token: String!, $limit: Int!,

$from: ISO8601DateTime, $till: ISO8601DateTime, $amount: Float!) {

ethereum(network: $network) {

transfers(options: {desc: "block.timestamp.time", limit: $limit},

amount: {gt: $amount}, time: {since: $from, till: $till},

currency: {is: $token}) {

block {

timestamp {

time(format: "%Y-%m-%d %H:%M:%S")

}

height

}

sender {

address

annotation

}

receiver {

address

annotation

}

transaction {

hash

}

amount

currency {

symbol

}

external

}

}

}
```

[view raw](https://gist.github.com/buddies2705/7c3cbc14a368106e2c9855e2ac41be70/raw/2a4fdb3d4ac63c7499a14ea9b9b10f89ba35cbe7/USDT_Transactions.graphql)[USDT_Transactions.graphql](https://gist.github.com/buddies2705/7c3cbc14a368106e2c9855e2ac41be70#file-usdt_transactions-graphql) hosted with ❤ by  [GitHub](https://github.com/)

Just copy-paste the query and the parameters as shown below and run the query to test it. You will see the desired result in the middle panel of the page.

The query mentioned above is a standard GraphQL query. GraphQL has a little bit of learning curve, but you can find a lot of tutorials online.

![](https://cdn-images-1.medium.com/max/1200/1*iNSzwqmXRB_LOu14VcIBeQ.png)

### Understanding Query and Results

Let’s understand our query and parameters before moving forward. As you can see, we are using passing a few parameters in the query and then retrieving details we need for our alert.

Because we want constant alerts; therefore, we will run our query every 10 minutes to see if there is any transaction USDT transaction with more than $2 million in value.

-   token — Here, we are passing  [USDT token contract address](https://explorer.bitquery.io/ethereum/token/0xdac17f958d2ee523a2206206994597c13d831ec7). To get a similar result of any other token on Ethereum, you can pass the contract address for that token.
-   from: starting time
-   till: end time
-   limit: how many results we want
-   network — Ethereum
-   amount — 2000000 (2 million)

The important notice in the results is annotations. We have built an in-house address classification technology to identify blockchain addresses, and we provide them in query results.

Therefore, the above query is telling us that one Bittrex exchange wallet transferred 2499990 USDT to another Bittrex exchange wallet. You can also verify this transaction on  [Bitquery explorer](https://explorer.bitquery.io/).

### Building Alert Service

Getting the data was the hardest part, which we made easy for you. Now you can Tweet these alerts or create a notification tool for traders.

If you plan to build a twitter bot, just google a Twitter library in your favorite programming language. For brevity, we are not making the Twitter bot.

### More Crypto alerts

We have shown an example of USDT Tether alert. However, you can check Bitquery explorer to see more query examples.

For example, to build Bitcoin alerts, you can check the query  [here](https://explorer.bitquery.io/bitcoin/transactions)  (Click on the “GraphQL” on the bottom right corner). You just need to manipulate the query a little bit to get the desired result.

![](/blog/crypto-alert-service-like-whale-alert/Bitcoin Mainnet Transactions.png)

### Wrapping Up

Our tools help you to query blockchains in the simplest manner possible. At Bitquery, we are passionate about blockchain data and enabling developers to utilize this data to build useful tools. If you have any particular use case of blockchain data in your mind or you stuck anywhere while following the tutorial, let us know on our  [Telegram channel](https://t.me/Bloxy_info).

**Also Read:  [Crypto chart widgets for your website (Including WordPress)](https://bitquery.io/blog/crypto-chart-on-your-website-wordpress)**

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath)  is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

-   **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog)  APIs**  provide  [blockchain money flow analysis](https://bitquery.io/products/coinpath)  for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read  [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

-   **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)**  provides index information related to all major cryptocurrencies, coins, and tokens.

-   **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)**  provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our  [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[Conflux Explorer and Money flow]]></title>
            <link>https://bitquery.io/blog/conflux-explorer-and-money-flow-bitquery</link>
            <guid>https://bitquery.io/blog/conflux-explorer-and-money-flow-bitquery</guid>
            <pubDate>Thu, 23 Jul 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[

We are happy to announce that  [Bitquery](https://bitquery.io/?source=blog)  products now support the newly launched  [Conflux Oceanus network](https://medium.com/conflux-network/oceanus-phase-2-is-live-7147e1d5c225). Try  [Bitquery explorer to search Conflux transactions](https://explorer.bitquery.io/conflux_oceanus), addresses, blocks, etc.

![explorer](/blog/conflux-explorer-and-money-flow-bitquery/explorer.png)

In addition,  [Conflux](https://confluxnetwork.org/)  users can also use  [Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog)  APIs to trace money flow on the Conflux blockchain. Learn more about Coinpath® use cases  [here](https://bitquery.io/products/coinpath).

Besides, you can also visually track the  [money flow for any Conflux address](https://explorer.bitquery.io/conflux_oceanus/address/0x1e61c5dab363c1fdb903b61178b380d2cc7df999/graph)  using the Bitquery explorer’s graph.

At the time of writing this article(23 July 2020), the Conflux network successfully processed 50354 transactions, and miners on the blockchain created a total of 482615 blocks. Among these blocks, 359916 blocks are on the main thread (Pivot blocks).

In addition, the Conflux currently has 65 tokens and a total of 49222 smart contract calls.

Bitquery explorer provides blockchain data in a meaningful way by using various visualization tools. We hope our efforts add value to the Conflux community. If you need any analytics related to the Conflux blockchain, contact us.]]></description>
        </item>
        <item>
            <title><![CDATA[Bitquery Products Updates July 2020]]></title>
            <link>https://bitquery.io/blog/bitquery-products-updates-july-2020</link>
            <guid>https://bitquery.io/blog/bitquery-products-updates-july-2020</guid>
            <pubDate>Mon, 20 Jul 2020 18:52:00 GMT</pubDate>
            <description><![CDATA[
### – July 29 2020 Updates

#### Filecoin Testnet Integration

Last year, in December,  [Filecoin released its testnet](https://filecoin.io/blog/filecoin-testnet-is-live/). This week we are happy to announce that we integrated Filecoin testnet in our API products. You can get Filecoin data on our  [Digital assets APIs](https://bitquery.io/products/digital-assets)  and  [Coinpath®](https://bitquery.io/products/coinpath)  APIs.

#### Binance Smart Chain Testnet Integration

Binance recently released the testnet for its smart contract blockchain, Binance Smart chain (BSC). We are happy to announce that we have integrated with Binance smart chain testnet. You can now explorer  [BSC testnet transactions](https://explorer.bitquery.io/bsc_testnet)  on our Bitquery explorer.

#### Kyber network Analytics Upgrade

[Kyber network](https://kyber.network/about/knc)  recently updated the smart contract protocol and deployed  [here](https://bloxy.info/dexes/0x7c66550c9c730b6fdd4c03bc2e73c5462c5f7acc?blockchain_id=1), We call it as version number 4 ( Kyber Network v4 ). The new data is also available on  [DEX trades tracker API](https://bloxy.info/dex_trades).

The new version is a replacement for the previous version of the protocol, with similar trade parameters.

[DEX analytics](https://stat.bloxy.info/superset/dashboard/dex/?standalone=true)  across all DEXes shows that Kyber is taken 5th place in terms of amount and count of trades.

In July, DEX volumes skyrocketed to ~$3.7 billion, primarily due to Uniswap. You can find detailed DEX analytics on the  [Bloxy website](https://stat.bloxy.info/superset/dashboard/dex/?standalone=true)  and  [APIs](https://bloxy.info/api_methods#dex).

![Ethereum DEX Volume in July](https://bitquery.io/wp-content/uploads/2020/07/Screenshot-from-2020-07-29-17-32-12-1-1024x317.png)

Ethereum DEX Volume in July

### – July 15 2020 Updates

#### Conflux Blockchain Support

We have added the support of the Conflux blockchain for all our products. read details  [here](https://bitquery.io/blog/conflux-explorer-and-money-flow-bitquery).

#### Coinpath API changes

In addition, we have optimized the implementation of ‘paths’ API (List all paths between addresses within N hops in/outbound) in all the versions of  [Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog). The changes are the following

-   **Path API Changes**

Changes in the logic of path computations for optimization purposes. For example, there are two transaction paths.

-   A->B->C
-   A->D->C

Earlier, they were two paths in the API. Now, we aggregated them in one path ABDC, where B and D path segments will be on depth=2.

-   **New limit and offset Parameter**

We added new parameters  **limit**  and  **offset**  in paths API. By default, API will return 100 paths in the shortest path order.

-   **API results in GEXF format**

A new format parameter (Graph XML/ GEXF) was added to all Coinpath® APIs. With this, you can  [visualize the Coinpath® API results in Gephi](https://bitquery.io/blog/visualize-coinpath-results-using-gephi).

The above changes are backward compatible. Users implementing Coinpath® APIs may not require any significant changes.

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath)  is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

-   **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog)  APIs**  provide  [blockchain money flow analysis](https://bitquery.io/products/coinpath)  for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read  [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

-   **[Digital Assets API](https://bitquery.io/products/digital-assets?utm_source=blog&utm_medium=about)**  provides index information related to all major cryptocurrencies, coins, and tokens.

-   **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)**  provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our  [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.]]></description>
        </item>
        <item>
            <title><![CDATA[How Upbit hackers laundered millions using crypto exchanges?]]></title>
            <link>https://bitquery.io/blog/upbit-hack-crypto-money-laundering</link>
            <guid>https://bitquery.io/blog/upbit-hack-crypto-money-laundering</guid>
            <pubDate>Mon, 20 Jul 2020 18:52:00 GMT</pubDate>
            <description><![CDATA[
In 2019, hackers stole  [$283 million](https://go.chainalysis.com/rs/503-FAP-074/images/2020-Crypto-Crime-Report.pdf)  worth of cryptocurrencies in 11 hacks. Among these hacks, hackers also successfully targeted the  [Upbit exchange](https://sg.upbit.com/). In this article, we will investigate the Upbit hack and follow the stolen cryptocurrencies, using  [Coinpath® APIs](https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=upbit).

![stole crypto funds in 2019](/blog/upbit-hack-crypto-money-laundering/1_PnmWDSpFLRPiFhWDkGW-4Q.png)

[Source](https://go.chainalysis.com/rs/503-FAP-074/images/2020-Crypto-Crime-Report.pdf)


### What is Coinpath®?

[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=upbit)  APIs provide  [blockchain money flow analysis](https://bitquery.io/products/coinpath)  for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read  [this to get started with Coinpath®](https://bitquery.io/blog/coinpath-api-get-start).

Looking for end to end Crypto investigation tool?  Explore Coinpath Moneyflow, built for investors and law enforcement agencies. [Check it out here!](https://share.hsforms.com/1r66O41lbSuOElm1REXeptQ3rc4g)

### The Upbit Hack

On November 27, 2019, at 1:06 PM,  [Upbit](https://sg.upbit.com/), a Korean cryptocurrency exchange, observed a large transaction that went out from the exchange wallet. The next day, Upbit’s team  [notified](https://upbit.com/service_center/notice?id=1085)  that there was a security breach, and hackers stole 342K ETH (approx. $48.1 million) and transferred funds to  [**this**](https://explorer.bitquery.io/ethereum/address/0xa09871aeadf4994ca12f5c0b6056bbd1d343c029)  address.

In this article, we will investigate Upbit’s stolen money by following the transactions created by hackers in subsequent days and months.

### Tracking money outflow

Criminals often use multiple intermediate wallets and other services to launder stolen cryptocurrencies. In other words, they create layers of transactions to make tracing difficult before converting funds into fiat or other cryptocurrencies. This process is called layering, in which every layer represents a segment.

A  **hop**  is referred to the number of segments(groups of wallets) that funds move through from its source to its destination.

![hops explained](/blog/upbit-hack-crypto-money-laundering/1_QRY1g7blQPU7daBEKPN1iQ.png)

Hops explained

[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=upbit)  technology helps in tracking funds over multiple hops to discover the source or destination of the money.

Now, let’s track money outflow for Upbit’s hackers’ address over five hops. As you can see in the image below, hackers transferred large amounts of ETH to unknown addresses. If you noticed, many addresses received a similar amount of ETH(Ex- 5000 ETH) through multiple transactions, over 3–5 hops. Most probably, these addresses belong to hackers.

![Upbit hackers money outflow over 5 hops](/blog/upbit-hack-crypto-money-laundering/1_flDnJkjeQ5_RYe8TO66clw.png)

Upbit hackers money outflow over 5 hops

Let’s dig deeper by increasing hops to 10. Note, in the backend, Coinpath® is processing thousands of transactions to provide these results.

As you can see, over 10 hops, some known exchanges started to appear. For example, one of the Binance exchange wallets received 59,833 ETH through multiple transactions, over 10 hops. 

![Upbit hackers money outflow over 10 hops](/blog/upbit-hack-crypto-money-laundering/1_Gkr43yj9uSHX1JrrRHHUkA.png)

Upbit hackers money outflow over 10 hops

### Tracking funds using Coinpath®

Coinpath® also provide a  `Paths API`  using which you can get all the intermediate transactions from a source to destination. For example, let’s see how hackers transferred stolen funds to Bity.com.

![Bity received 541 ETH from hackers ](/blog/upbit-hack-crypto-money-laundering/1_wycLtMg2qUy1WBKMwxt9Iw.png)

Bity received 541 ETH from hackers

As you can see, Bity.com, a crypto exchange service, received 541 ETH over 7 hops from hackers’ addresses. However, hackers created multiple intermediate wallets and distributed the funds to make them untraceable.

> Upbit hackers’ initial wallet → 6 intermediate wallets →Bity’s wallet (7th hop)

With Path’s API data, we have created the following image to visualize how funds moved through intermediate wallets before reaching Bity.com. 

![Graph view of hackers laundering funds to Bity.com (created using Gephi)](/blog/upbit-hack-crypto-money-laundering/1_0Q0PH0FvVwtydNJHh8c1AQ.png)

Graph view of hackers laundering funds to Bity.com (created using [Gephi](https://gephi.org/))

In addition, we can also get the transactions that hackers sent to bity.com. Notice, date, and the amount of the transactions. All transactions were sent to Bity within 45 minutes and they all are around 60 ETH. 

![Transactions received by Bity from upbit hackers' address](/blog/upbit-hack-crypto-money-laundering/1_Uu1bUcTuCRm7o3p_ezkCLw.png)

Transactions received by Bity from upbit hackers’ address

### Majority of Upbit funds end up on Exchanges

However, when we checked for 12 hops, we found that hackers sent 3,661 ETH to Bity. Besides, hackers also sent the majority of the funds on prominent crypto exchanges.

As you can notice in the following image, hackers sent more than 100K ETH to Binance. Besides, they sent money to exchanges like Huobi, Bitmex, Kraken, and Liquid exchange (Check attached data).


![Upbit hackers money flow over 12 hops (Top 20 results)](/blog/upbit-hack-crypto-money-laundering/1_gcb3yh3kNO0rvUMFz98PrQ.png)

Upbit hackers money flow over 12 hops (Top 20 results)

### Investigating crypto crimes using Coinpath® APIs

We don’t know how much funds Upbit had recovered. However, a significant amount of funds could have been retrieved by real-time monitoring of stolen cryptocurrencies. Exchanges like Binance and Bitmex can freeze funds as soon as they receive a transaction from a suspected wallet.

Using Coinpath® APIs you can  [stop cryptocurrency money laundering in real-time](https://bitquery.io/blog/twitter-hack-tracking-bitcoin-using-coinpath). Learn more about the Coinpath use cases  [here](https://bitquery.io/products/coinpath).

#### **About Coinpath®**

[Coinpath®](https://bitquery.io/products/coinpath?utm_source=about)  APIs provide  [blockchain money flow analysis](https://bitquery.io/products/coinpath)  for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools.

If you have any questions about  [Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog), ask them on our  [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

Coinpath® is a Bitquery product.  [**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath)  is a set of tools that parse, index, access, search, and use information across blockchain networks in a unified way.

**Also Read**

-   [Coinpath® — Blockchain Money Flow APIs](https://bitquery.io/products/coinpath)
-   [FairWin Scam Smart Contract Coinpath Investigation](https://bitquery.io/blog/fairwin-scam-smart-contract-coinpath-investigation)]]></description>
        </item>
        <item>
            <title><![CDATA[Twitter Hack — Track Bitcoin crimes in real-time using Coinpath®]]></title>
            <link>https://bitquery.io/blog/twitter-hack-tracking-bitcoin-using-coinpath</link>
            <guid>https://bitquery.io/blog/twitter-hack-tracking-bitcoin-using-coinpath</guid>
            <pubDate>Fri, 17 Jul 2020 14:41:00 GMT</pubDate>
            <description><![CDATA[
On 16 July 2020, [Twitter’s internal tool was hacked](https://twitter.com/TwitterSupport/status/1283518038445223936), and hackers tweeted [giveaway](https://bitcoin.org/en/scams#free-giveaways) tweets with Bitcoin addresses from influential peoples and top companies’ profiles.

Hackers targeted profiles of prominent peoples like Barak Obama, Jeff Bezos, Warren Buffet, Elon Musk, and companies like Apple, Uber, and Binance. Other than these top profiles, hackers tweeted similar tweets from thousands of Twitter profiles.

![Bezos twitter account hacked](/blog/twitter-hack-tracking-bitcoin-using-coinpath/tweet.png)

To contain the situation, Twitter temporarily removed the ‘blue-tick’ from all the profiles and deleted the spam tweets.

However, by that time, many people saw those tweets and immediately transferred Bitcoins to hackers’ bitcoin addresses.

In the next few hours, Hackers’ Bitcoin addresses received 20.553 BTC in more than 600 transactions.

![Twitter hacker's Bitcoin and ripple addresses](/blog/twitter-hack-tracking-bitcoin-using-coinpath/1_AmIZ3CGGZZlFkE0TfoTF8Q.png)

### Analyzing Transactions

We analyzed the transactions to trace hacker’s funds.

Around 567 peoples fallen victim to this Twitter hack, and 24 people sent more than one transaction to hackers. For instance, top addresses sent a total of 26 transactions to hackers.

![Top addresses which sent most transactions to hackers](/blog/twitter-hack-tracking-bitcoin-using-coinpath/1_A93wJdnqNC-pqkFd74lN8Q.png)

Besides, 4 people sent more than 1 BTC to the hacker. The top 4 addresses sent 10.03 BTCs to the hacker.

The highest amount transaction of 4.49BTC came from a Japanese exchange account.

![Top bitcoin addresses who sent most bitcoins to hackers](/blog/twitter-hack-tracking-bitcoin-using-coinpath/1_U-p_a9MvEHzfpC1B0MLzvw.png)

We also saw people sending BTC from their exchange account. For example, check out the [following transaction](https://explorer.bitquery.io/bitcoin/tx/ef92279f3f3ac69c0e41764c86936037a2b08e22628dcb3d3fee445ffd80cde3) in which someone sent a transaction from their Binance exchange account. In these cases, Exchanges can censor addresses to protect people’s money.

![Transaction Graph from Bitquey](/blog/twitter-hack-tracking-bitcoin-using-coinpath/1_NOVSYVQfEi2ckaXKthGHOw.png)

[Transaction Graph from Bitquey](https://explorer.bitquery.io/bitcoin/address/bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh/graph)

### Hackers started laundering bitcoins

Within an hour of the hack, hackers started moving funds to other bitcoin wallets. This process is called layering, in which criminals use intermediate wallets to distribute the assets, making fund tracing difficult.

![Hacker moving fund to other wallets](/blog/twitter-hack-tracking-bitcoin-using-coinpath/1_-4OYBMeuM27EQrxMFm_83w.png)

Hacker moving fund to other wallets

As per our analysis, hackers also send a transaction to the Binance cold wallet. You can check the complete path from the hacker’s address to the Binance address using Coinpath’s APIs.

In the last 36 hours, hackers moved funds quickly and transferred the funds to hundreds of Bitcoin addresses. Using [Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs, we tracked all activities related to hackers in real-time, and you can also do so.

We have also created a [public excel sheet for the Twitter hack](https://docs.google.com/spreadsheets/d/1rsHd8B738SGC-QHOooWjPJAm4Vr2StNCCqcguxzRlsk/edit#gid=1146513258) where you can analyze these transactions.

You can also conduct a visual investigation using the [Bitquery explorer widget](https://explorer.bitquery.io/bitcoin/address/bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh/graph).

### Coinpath® APIs to solve Bitcoin crimes

Next, Hackers will attempt to send these bitcoins to crypto services to convert the funds into fiat or exchange them in other cryptocurrencies. With our [blockchain money flow](https://bitquery.io/products/coinpath) technology, you can trace these funds in real-time and investigate crypto crimes. To learn more about our money flow technology, read the [introduction to Coinpath®](https://bitquery.io/products/coinpath).

Looking for end to end Crypto investigation tool? Explore Coinpath Moneyflow, built for investors and law enforcement agencies. [Check it out here!](https://share.hsforms.com/1r66O41lbSuOElm1REXeptQ3rc4g)

#### **About Coinpath®**

[Coinpath®](https://bitquery.io/products/coinpath?utm_source=about) APIs provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools.

If you have any questions about [Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog), ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

Coinpath® is a Bitquery product. [**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of tools that parse, index, access, search, and use information across blockchain networks in a unified way.

**Also Read:**

- [Do not be Fooled by Crypto Quiz Games!](https://bitquery.io/blog/crypto-quiz-games-or-scams)
- [FairWin Scam Smart Contract Coinpath Investigation](https://bitquery.io/blog/fairwin-scam-smart-contract-coinpath-investigation)
- [How Upbit hackers laundered millions using crypto exchanges?](https://bitquery.io/blog/upbit-hack-crypto-money-laundering)
]]></description>
        </item>
        <item>
            <title><![CDATA[How to get started with Coinpath® APIs?]]></title>
            <link>https://bitquery.io/blog/coinpath-api-get-start</link>
            <guid>https://bitquery.io/blog/coinpath-api-get-start</guid>
            <pubDate>Fri, 17 Jul 2020 09:32:00 GMT</pubDate>
            <description><![CDATA[
[Coinpath®](https://bitquery.io/products/coinpath) is a set of API endpoints to trace money on Blockchain. These apis help you provide money trails for more than 40 blockchains and all the tokens built atop. To get your API Keys, sign up on our [GraphQL IDE](https://graphql.bitquery.io/).

## Coinpath® API Use Cases

There are many use cases of Coinpath® APIs, however most interesting use cases of Coinpath® APIs are:

### Compliance

Coinpath® API helps [compliance companies](https://bitquery.io/blog/best-blockchain-analysis-tools-and-software) with the money flow data. In order to build compliance tools you need money flow data as backbone. On this data, you build deploy tech to deanonymize addresses, monitor transactions, provide risk analysis etc.

Coinpath® APIs help you build solutions for KYT(Know your transactions) and [Travel rules](https://www.fincen.gov/sites/default/files/advisory/advissu7.pdf). If you are looking to build a compliance tool. Reach [out to us](https://bitquery.io/forms/api), we might save a ton of money and time for you.

### Investigation

Crypto Investigation companies investigate crypto crimes such as stolen cryptocurrency, wallet thefts, crypto scams and crimes that involve or utilize blockchain and cryptocurrencies. Using money flow APIs, you can build more sophisticated investigation tooling without worrying about maintaining a large data warehouse.

If you are building any blockchain data application do [**_reach out to us using this link_**](https://bitquery.io/forms/api).

## How to get started with Coinpath® API?

There are two ways to [get started with our GraphQL API](https://community.bitquery.io/t/how-to-get-started-with-bitquerys-blockchain-graphql-apis/13). Using our Explorer or directly using our IDE.

### Getting started with Coinpath® APIs using Bitquery Explorer

The easiest way to start with Coinpath® APIs is to use Bitquery Explorer. Our Explorer is the showcase of our APIs, you can simply search any address or transaction and see what data we show there and click on “Open GraphQL API ” button to see the API behind the data.

Simply search any address on our Explorer and check “Money flow tab”. You will see the following visuals. [Try this link](https://explorer.bitquery.io/ethereum/address/0xdaba632fdee1f04dd21e0aca22107b0c6d08157a/graph?from=2021-12-01&till=2022-01-11).

If you click on the “Open GraphQL IDE” on the bottom right, then you will see the API getting data behind the visualization.

**Note**, these visualizations are just a showcase of what Coinpath® APIs can do, you can build any type of tools or get any sort of data using our Coinpath® APIs.

![Coinpath API - Graph](/blog/coinpath-api-get-start/graph.png)

![Coinpath API - Sankey](/blog/coinpath-api-get-start/sankey.png)

### Getting started with Coinpath® APIs using GraphQL IDE

Our [GraphQL IDE](https://graphql.bitquery.io/ide) has Docs and builder in it, additionally there are a lot of existing examples created by us and other users. For example, check [this](https://graphql.bitquery.io/ide/sKpGjoGH5c), [this](https://graphql.bitquery.io/ide/nsN3HXK236) and [this](https://graphql.bitquery.io/ide/d0er7Fa9hZ).

Also, you can use our Builder (as shown below) to create APIs.

![IDE Builder](/blog/coinpath-api-get-start/builder.png)

## Limitations

Coinpath® API only tells you about the money flow but we didn’t deploy de-anonymize technologies(identity of wallets). Because of this we don’t provide ready made risk analysis. However you can build such services using our APIs.

Additionally, Here are few limitations of Coinpath® API:

**Cross Chain**: As we are seeing more bridges to move asset cross chain and better blockchain interoperability, tracking them becomes more default. As we support more than 40 chains, we have data to trace cross chain, however current Coinpath® APIs don’t allow cross chain tracing.

**Mixers**: A mixer (or tumbler) is a service that mixes different streams of potentially identifiable cryptocurrency and outputs potentially unidentified cryptocurrency. Because mixers are built to anonymize crypto it becomes an arms race to trace crypto through mixers because on both ends tech is evolving. Coinpath® APIs don’t provide efficient tracing through mixers.

**Centralized service**: Centralized services are designed in a way that makes it almost impossible to trace funds through them. However because they are centralized they have KYCs and they are the biggest resource when tracing funds on chain.

## Conclusion

Coinpath® APIs are unique offerings that saves tons of money and time for our existing clients. Currently we support Coinpath® APIs on more than 30 blockchains. By using our ready to use data infrastructure you can focus on your application. If you are building any blockchain data application do [**_reach out to us using this link_**](https://bitquery.io/forms/api).

**Note**: Our Coinpath® APIs are targeted to companies building end products for various use cases. We do not provide consulting services or cater to retail customers.

That’s it, if you have any questions, you can ask us on our [Telegram group](https://t.me/Bloxy_info).

## Frequently Asked Questions(FAQs)

- Do you guys support tracking Mixers and Tumblers?

In simple cases Coinpath® APIs can trace through Mixers or Tumblers, However, complex cases do not have broad support.

- Do you have cross-chain tracking?

No, currently, we don’t have cross-chain support, however work in progress.

- How many blockchains do you support?

We support more than 30 blockchains, you can check them all [here](https://bloxy.info/status).

- Other than GraphQL, do you have any other interface?

Yes, for Enterprise customers, we can expose our database directly.

- What about pricing, where can I check it?

You can check out [Bitquery pricing here](https://bitquery.io/pricing).

- Do you have annotations on all blockchains?

We have annotations on Bitcoin and Ethereum from public sources. As we do not deploy any deanonymizing technology, we don’t have annotations on other blockchains.

- Where can I read more about  Coinpath®?

Here's a detailed breakdown of how Coinpath® [works](https://docs.bitquery.io/v1/docs/building-queries/Coinpath-Explained/Overview)

- What is the best way to contact you guys?

You can ping us on [Telegram](https://t.me/bloxy_info).

#### **About Coinpath®**

[Coinpath®](https://bitquery.io/products/coinpath?utm_source=about) APIs provide [blockchain money flow analysis](https://bitquery.io/products/coinpath) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools.

If you have any questions about [Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog), ask them on our [Telegram channel](https://t.me/Bloxy_info). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

Coinpath® is a Bitquery product. [**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of tools that parse, index, access, search, and use information across blockchain networks in a unified way.
]]></description>
        </item>
        <item>
            <title><![CDATA[Do not be Fooled by Crypto Quiz Games!]]></title>
            <link>https://bitquery.io/blog/crypto-quiz-games-or-scams</link>
            <guid>https://bitquery.io/blog/crypto-quiz-games-or-scams</guid>
            <pubDate>Tue, 14 Jul 2020 12:06:00 GMT</pubDate>
            <description><![CDATA[
### What is the Quiz?

There are a number of “Crypto Quiz Games” smart contracts appearing in the Ethereum network. The game is simple: you have to guess the answer to the question. The prize is from 1 to 6ETH and even more.

Example is this one:

![Example QUIZ_GAME](https://miro.medium.com/max/1042/1*aOLP5i1NaF3Ffein_SO0fg.png)

Example QUIZ_GAME ( source: [Bloxy.info](https://bloxy.info/address/0x37c8da5a09a0afdce72371764473d88cc1374f61))

You can find sources of these contracts at  [Etherscan](https://etherscan.io/address/0x37c8da5a09a0afdce72371764473d88cc1374f61#code)

Rules are simple: you can answer the question and the contract will compare the hash of the correct answer and your hash, and of they match, transfer you all the contract balance, which is at time of writing is 6 ETH. Not bad deal!

Oh, yes… almost forgot… to answer you have to deposit at the call minimum 3 ETH. So the cost of answer is 3 ETH and the prize is 6 ETH. Again, not a bad deal.

> **Also Read:  [FairWin Scam Smart Contract Coinpath Investigation](https://bitquery.io/blog/fairwin-scam-smart-contract-coinpath-investigation)**

### Easy Money

There are just 2 transactions in Etherscan at the time of writing: contract creation and set_game() call:

![transactions](https://miro.medium.com/max/1165/1*0uu7i_fZzmqsMMGG0HY5Mg.png)

Only 2 transactions shown in [Etherscan](https://etherscan.io/address/0x37c8da5a09a0afdce72371764473d88cc1374f61)

The first one is just contract creation, and the second is set_game() call, sending 6 ETH to the contract as well. this one is pretty interesting, as it

SHOWS THE ANSWER TO QUIZ IN PLAIN TEXT!!!

If you open  [Etherscan](https://etherscan.io/tx/0xbc3b60fbbe2efda73b2f1febaec05550362dbcd19d02d83aa9c14948d70d041f):, switch call arguments to UTF-8 representation, you will see:

![input data](https://miro.medium.com/max/686/1*f9lburW_cxgOqFgE2HuRAA.png)

Source: [Etherscan](https://etherscan.io/tx/0xbc3b60fbbe2efda73b2f1febaec05550362dbcd19d02d83aa9c14948d70d041f)

This is even better shown in Bloxy.info:

![Transaction details](https://miro.medium.com/max/1047/1*IFQ8GunFMz0XR8OdVkJE9g.png)

Transaction details source: [Bloxy.info](https://bloxy.info/tx/0xbc3b60fbbe2efda73b2f1febaec05550362dbcd19d02d83aa9c14948d70d041f)

So it appears that you already get an answer (“GlovE”) and can easily get 3 ETH from the contract?

As you may guess, no.

### Where is the Trap?

First, look at Bloxy detailed page of this contract, and you will see something different from Etherscan showing:

![Smart contract calls](https://miro.medium.com/max/509/1*0B_fQwfMEanqKOIZH4tITg.png)

Smart contract calls Source: [bloxy.info](https://bloxy.info/address/0x37c8da5a09a0afdce72371764473d88cc1374f61)

What? You have more than 2 calls? And more than 2 transactions with smart contract? Yes.

Yes. The calls can be internal. When one smart contract calls another smart contract, they will be internal transactions, and they are equally important to see, as they also may change the internal state of the smart contract.

The creator of this smart contract looks as a cheater. He used another smart contract ( [0x4a3c2ead2a2ce2051e409ba51b710e4e09163492](https://bloxy.info/address/0x4a3c2ead2a2ce2051e409ba51b710e4e09163492) ) to make internal calls, setting another answer hash, different from the answer, visible in Etherescan. It is done using this transaction:

![Question is the same, answer is not. ](https://miro.medium.com/max/2113/1*J_dBvzgxmE0VZ-i62yS2mA.png)

Question is the same, answer is not. Source: [Bloxy.info](https://bloxy.info/tx/0x01fd7a64239ac65f5f49c37a6d010aabe2e013596b9f8ca4bdacc38e7f538bbe)

If you carefully look at the smart contract code, especially on the function set_game:

**function** _set_game_(string _question,string _response) public payable {  
 **if**(**responseHash**==0x0)   
     {  
     **responseHash** = keccak256(_response);  
     **question** = _question;  
     **questionSender** = msg.**sender**;  
     }  
 }

It only sets the answer hash (**responseHash**) IF and ONLY IF it was not set before. The creator of this smart contract used internal smart contract call ( not visible in Etherscan ! ) to change the answer hash.

**responseHash** is not intentionally shown as public smart contract variable. However, it can easily be fetched programmatically:

>>> web3.eth.getStorageAt( Web3.toChecksumAddress(smart_contract_address),2).hex()  
**'0xf152950bed091c9854229d3eecb07fae4c84127704751a692c8409543dc02bd3'**

As you see, it is equal to what is set in internal transaction, and is NOT equal to the hash of the “GlovE” answer, which is equal to:

>>> web3.sha3(**text**=**'GlovE'**)  
HexBytes(**'0x28a2cf3d43e08c03112de5742b068e23ab3cede00f14059427e6264859fd462c'**)

Totally different.

If you now look at Etherscan transactions, and will try to answer question, depositing 3 ETH, you will loose them.

So what is the right answer? Probably, it does not exist at all. The smart contract has this function:

**function** _StopGame_() public payable {  
    require(msg.**sender**==**questionSender**);  
    msg.**sender**.transfer(**this**.balance);  
}

And the contract creator took care how he will use it, by making another internal transaction newQuestioner:

![new Questioner](https://miro.medium.com/max/1152/1*lkFZsWbDuB2oKAcGO-V_8A.png)

new Questioner source: [Bloxy.info](https://bloxy.info/tx/0x6cc4a4534d60b4917ddfa30487aac15b5e531f3db1d24f0635ee5b8ae22eecb0)

So even if nobody will get the right answer, he will get all deposited money.

### Scam Scheme

1.  Scammer creates Contract
2.  He calls methods of this new smart contract from another contract ( created by him specially ) to setup the question, answer hash and beneficiary. These calls are **not visible in Etherscan**!
3.  Then he calls external transaction (these are **visible in Etherscan**) with the same question and visible ( but wrong ) answer
4.  People looking at this transaction and on smart contract code, thinking this is an easy way to get the prize. They try to answer, deposit money and loose them
5.  After people deposited some money, scammer then can withdraw it.

### How Many Victims?

The list of smart contracts, related to this particular , is quite large. The smart contract 0x4a3c2ead2a2ce2051e409ba51b710e4e09163492 is related to a good number of them:

![https://bloxy.info/address/0x4a3c2ead2a2ce2051e409ba51b710e4e09163492](https://miro.medium.com/max/533/1*tvNRJZ7Dn2Cb-QxGs9cmng.png)

Source: [bloxy.info](https://bloxy.info/address/0x4a3c2ead2a2ce2051e409ba51b710e4e09163492)

But how to get people involved in the scam? Probably the most evident way is to look of Try() method calls, where money where deposited to answer the quiz.

Bloxy shows the statistics of the method usage in all smart contracts by the name or signature. And the most successful are…

![Try method usage in smart contracts.](https://miro.medium.com/max/1017/1*RU4XcKQJgMWD_8VKjd7Yvg.png)

Try method usage in smart contracts. Source: [bloxy.info](https://bloxy.info/functions/3853682c)

The statistics of how many times the Try(**string _response**) function was called, by months:

![Scam is on the rise](https://miro.medium.com/max/2063/1*Xu24QjfHMZew73R9uXi_Tg.png)

Scam is on the rise…Source: [bloxy.info](https://bloxy.info/functions/3853682c)

In these calls, there is a fraction of “bait” calls, but there are real ones, where people trying to cheat using the visible answers from Etherscan, and lost their money.

### Conclusions

We analyzed the scam example, mostly based on the fact, that Etherscan **does not show the important information** about internal transactions with smart contract. This allows cheater to fool people, who look at external transactions only. To prevent this in future, consider that:

1.  Easy money never exists. If you think you can fool somebody, most probable scenario is this is the bait of scammer
2.  Pay attention to internal transactions between smart contracts. In good developer hands, they are the powerful tool ( we will hopefully cover this in the future materials about DEX and derivatives ). Bad developers can cheat you with their smart usage.
3.  Consider using more information about the smart contract transactions, and Bloxy.info is a great resource for that. Etherscan shows not all transactions, coming to the smart contract.
4.  Keep your money in your pocket 🙂]]></description>
        </item>
        <item>
            <title><![CDATA[MakerDAO Transactions Illustrated]]></title>
            <link>https://bitquery.io/blog/makerdao-transactions-explained</link>
            <guid>https://bitquery.io/blog/makerdao-transactions-explained</guid>
            <pubDate>Tue, 14 Jul 2020 11:26:00 GMT</pubDate>
            <description><![CDATA[

The MakerDAO protocol is implemented as smart contracts:

**_[Sai Tub](https://explorer.bitquery.io/ethereum/smart_contract/0x448a5065aebb8e423f0896e6c5d525c040f59af3)_**: which accepts wrapped Ether ( WETH ) as the collateral for DAI debt.

**_[Sai Tap](https://explorer.bitquery.io/ethereum/smart_contract/0xbda109309f9fafa6dd6a9cb9f1df4085b27ee8ef)_**: for DAI debt liquidation clearance ( DAI <-> PETH exchange of bad debts )

The MakerDAO protocol is described  [here](https://developer.makerdao.com/dai/1/api/vox). We took the text description from this source, but illustrated it by the real example of transactions, using the graphical presentation from  [bloxy.info](https://bloxy.info/?utm_source=blog)  web site. Every illustration is accompanied by the link to the transaction it shows. You can investigate this particular transaction by clicking the link, or investigate even further, by finding similar transactions on the contract.

We believe this material will help to better understand MakerDAO protocol and use it in all possible variety of ways.

> **Also Read:  [MakerDAO Tokens Explained: DAI, WETH, PETH, SIN, MKR](https://bitquery.io/blog/makerdao-tokens-explained?utm_source=blog)**


### Methods Overview

All protocol methods can be categorized in categories, working with different entities:

![MakerDAO Smart Contract methods](https://miro.medium.com/max/1011/1*ogbKqosPjqQP0bheSwT-5g.png)

MakerDAO Smart Contract methods

They describes what in general you can do with MakerDAO system:

1.  Deposit / withdraw your Ether ( PETH Pool )
2.  Control your CDP’s ( Collateral positions ) and get a loan (in DAI) from them. This effectively controls the total supply of DAI.
3.  Liquidate debts in DAI/PETH

### Join Collateral Pool

Join the collateral pool by depositing `ETH` in exchange for `PETH` (pooled ether).

-   The amount should be specified in units of `PETH`.
-   ETH will be debited from the caller at the join price (`ask`)

![Join Collateral Pool](https://miro.medium.com/max/916/1*hl1Q_66w1aFnbxH0HGo_eA.png)

[source](https://bloxy.info/tx/0x68802029f7dd70895f1c773082f049b71d325581000d23ccbebdd4530ce444ff)

### Exit Collateral Pool

Withdraw collateral by returning `PETH` to the vault in exchange for the proportional amount of `ETH`.

-   The amount should be specified in units of `ETH`.
-   PETH will be debited from the caller at the exit price (`bid`)

Will return more or less `ETH` tokens for each `PETH` than at `join` depending whether the system made a profit or loss over the lifetime of the collateral deposited to the pool.

![Exit Collateral Pool](https://miro.medium.com/max/822/1*fc1Hg34r72cIj2BYum0PzA.png)

[source](https://bloxy.info/tx/0xde0045b4e2386612396e3113b82f37928a980785516806f1ab4a49cb0d78cd00)

### Open CDP

Create an empty CDP and set the caller to be the owner.

![https://bloxy.info/tx/0xaf9814ac29554f2e0c7ccb0ebe87c73a343f43886bb21c10da54bef35d4b0b7b](https://miro.medium.com/max/350/1*L4HIIRFL6RmCxgQhqxPMaQ.png)

[source](https://bloxy.info/tx/0xaf9814ac29554f2e0c7ccb0ebe87c73a343f43886bb21c10da54bef35d4b0b7b)

### Give CDP

Transfer a CDP to a different owner. (changes `lad`)

![https://bloxy.info/tx/0xef45f2faaa0b908d57131e32e1af856c0b3c0f7e9a68222e05f00c9584cd58fe](https://miro.medium.com/max/564/1*ElgwyGdatusTrP86RZRuBg.png)

[source](https://bloxy.info/tx/0xef45f2faaa0b908d57131e32e1af856c0b3c0f7e9a68222e05f00c9584cd58fe)

### Lock CDP

Add `PETH` collateral (increases `ink`).

![https://bloxy.info/tx/0x8666e2871274c806b77e3b4046fa41b7a3bc02f120f0ab5f5e4f03f92c6edd39](https://miro.medium.com/max/546/1*0q070Sug3FXqgOYHOTgd5w.png)

[source](https://bloxy.info/tx/0x8666e2871274c806b77e3b4046fa41b7a3bc02f120f0ab5f5e4f03f92c6edd39)

More complicated case, with ETH initially converted:

![https://bloxy.info/tx/0x7e5858980d985f62342828f2e3018d4cea3012312d991a3eecd78577df149294](https://miro.medium.com/max/734/1*P5v_rEXrr8IVVjqhBtW-Vg.png)

[source](https://bloxy.info/tx/0x7e5858980d985f62342828f2e3018d4cea3012312d991a3eecd78577df149294)

### Free CDP

Remove `PETH` collateral (decreases `ink`).

![https://bloxy.info/tx/0x95a8e38236ba459ab0ec44bc53a4561c1626e1f08950fb92466d7ae33e4230f8](https://miro.medium.com/max/871/1*5COf6yzxwVYCr-WuQl0A_A.png)

[source](https://bloxy.info/tx/0x95a8e38236ba459ab0ec44bc53a4561c1626e1f08950fb92466d7ae33e4230f8)

More complicated case, with the conversion back to ETH

![https://bloxy.info/tx/0x714bee5d4c352acfe1edf5b8286ffbab46f54946a24e7c7edd1cacca41a8cfcf](https://miro.medium.com/max/850/1*kPhWH4uqo-FEAZkEr5PW9A.png)

[source](https://bloxy.info/tx/0x714bee5d4c352acfe1edf5b8286ffbab46f54946a24e7c7edd1cacca41a8cfcf)

### Draw DAI

Issue a specified amount of Dai (increases `art`, `rum`)

![https://bloxy.info/tx/0xa675314e644aea0320c72f3107e6cb5c427a51885999c1e42484ddbdb46ad29b](https://miro.medium.com/max/749/1*0RZaC31n0k_OfZeH1fm9sA.png)

[source](https://bloxy.info/tx/0xa675314e644aea0320c72f3107e6cb5c427a51885999c1e42484ddbdb46ad29b)

More complicated, with intermediary smart contract sending DAI to the guy

![0xe847cd30af2826e37170ae2c736a0d0f0adc4a7f3b0e32a20f2768440d2c3f10](https://miro.medium.com/max/851/1*jEGNREXTCocKieO4UHhmrw.png)

[source](https://bloxy.info/tx/0xe847cd30af2826e37170ae2c736a0d0f0adc4a7f3b0e32a20f2768440d2c3f10)

### Wipe DAI

Repay some portion of outstanding Dai debt (decreases `art`, `rum`).

![MakerDAO: Wipe DAI](https://miro.medium.com/max/852/1*6O1LAR-sQDOWcwwUq0EZ6w.png)

[source](https://bloxy.info/tx/0x6466f98209f92dc32921988c016a75b9946a9d44f58d2b5eaecf898500cdab84)

More complicated case, where DAI exchanged to pay MKR fee. DEX exchange Oasis used for this:

![https://bloxy.info/tx/0xc28febfa30c5233c1f0a69cc8ed0dc1c7c6dfe5809d7e18cf38bba5fb8c161c3](https://miro.medium.com/max/950/1*j4npS3GFQ31bcN5QfM6cFw.png)

[source](https://bloxy.info/tx/0xc28febfa30c5233c1f0a69cc8ed0dc1c7c6dfe5809d7e18cf38bba5fb8c161c3)

### Shut CDP

Close a CDP. Clear all debt, unlock all collateral and delete the record.

Collateral will be used to pay any outstanding debt at market rate. Remaining collateral will be returned to the pool.

![MakerDAO: Shut CDP](https://miro.medium.com/max/622/1*RFTlFksQA_v7Thsl_c57YQ.png)

[source](https://bloxy.info/tx/0x41d126cf65e57585b79f5ab178188b30716e9590e540fa4530030cf18d50512d)

More complicated case, using Oasis to exchange DAI to MKR:

![https://bloxy.info/tx/0x0cfcad36a457135111f4e0cfb309bc784488d066f527d8e4ab27e87b338da8e5](https://miro.medium.com/max/670/1*3iqYilRjF_yH7pfj3_Vpxw.png)

[source](https://bloxy.info/tx/0x0cfcad36a457135111f4e0cfb309bc784488d066f527d8e4ab27e87b338da8e5)

Even more complicated, with Uniswap involved:

![https://bloxy.info/tx/0x38eeae65901c6ff749999b83d121d35e49a025c8d57c294f19f3d029137d2841](https://miro.medium.com/max/702/1*UaqsIztjGtvXBlQ2ALgcjQ.png)

[source](https://bloxy.info/tx/0x38eeae65901c6ff749999b83d121d35e49a025c8d57c294f19f3d029137d2841)

### Bite CDP

Liquidate a vunerable CDP (zeros `art`, decreases `ink`).

Unsafe CDPs need to be liquidated. When a `cup` is not `safe`, anyone can perform `bite(cup)`, which takes on all CDP debt and confiscates sufficient collateral to cover this, plus a buffer.

This returns the CDP to a safe state (possibly with zero collateral).

There are other possible implementations of `bite`, e.g. only taking sufficient collateral to just transition the CDP to safe, but the described implementation is chosen for simplicity.

![MakerDAO : Bite CDP ](https://miro.medium.com/max/1501/1*Lcqiz08TFoO6N1SEycdHLA.png)

[source](https://bloxy.info/tx/0xa569c5e31c978aa5f281a584d14ebc0fcbb41de4f69acb8629d16e6f6277f219)

More complicated case

![https://bloxy.info/tx/0x627ff7151575daaa93c63e5bf470e58011c71c8893807ad17e1d4a09aeaa21bd](https://miro.medium.com/max/1796/1*Xqu_uNBmGSSoR3NtrAqV0g.png)

[source](https://bloxy.info/tx/0x627ff7151575daaa93c63e5bf470e58011c71c8893807ad17e1d4a09aeaa21bd)

### Boom Debt

Buy `dai` when the system is in surplus.

Can be thought of as buy and burn. Given a net Dai balance, sell the Dai in return for PETH, which is burned.

![MakerDAO Boom Debt](https://miro.medium.com/max/1670/1*JrSFFGl_KkborodG6RgG8w.png)

[source](https://bloxy.info/tx/0x50f77fadf3ff0282a160cc4602081737252a906f6661469afb1f2de3ada84a2b)

### Bust

Sell `dai` when the system is in deficit.

`bust` is really two functions in one: collateral sell off (aka `flip`), and inflate and sell (aka `flop`). When `fog` is non zero it is sold in return for Dai, which is used to cancel out the bad debt, `woe`. If `fog` is zero but the `tap` has a net Sin balance, then PETH is minted and sold in return for Dai, up to the point that the net Sin balance is zero.

![bust](https://miro.medium.com/max/1544/1*8ndKzz4vhdphCgvmVJJevQ.png)

[source](https://bloxy.info/tx/0xc69d05644d525a8404b7c93509e8d51f6cedaeb35351368376ff5a0250cbc198)

### Vox Target Price

The `vox` provides the Dai _target price_, given in terms of the reference unit, by `par`. For example, `par == 2` with USD as the reference unit implies a target price of 2 USD per Sai.

The target price can vary in time, at a rate given by `way`, which is the multiplicative rate of change per second.

In Dai 1.0 the sensitivity, `how`, is set to zero. Adjustments to the target price are made by adjusting the rate of change, `way`, directly with `coax`. In future iterations, `how` may be non-zero and `way` adjustments will then follow automatically via the feedback mechanism. The `vox` component is subject to ongoing economic modelling research.

![MarkerDAO: Dai stablecoin](https://miro.medium.com/max/878/1*b7_6xmXYa0111HNvBiWPvQ.png)

[source](https://bloxy.info/tx/0x45f816f35b28550e9eec3e876d35247ee1e75dcc6cd215d4ed9c816a31c5dfda)

### Cumbersome Complexity

To show an example of a REAL transaction, take a look at this:

![Cumbersome Complexity](https://miro.medium.com/max/1976/1*HmGMYtF3ULvwPdaPyo0nww.png)

[source](https://bloxy.info/tx/0xa745b2c9f7621f5a9a3a3cdcc5b321c2e61de0148d88047296a9ddcd642948c5#)

Apart from MakerDAO contracts, 3 DEX involved: Oasis, Uniswap and Kyber Network. This transaction orchestrated by smart contract **[SaverProxy](https://bloxy.info/address/0xc19d0f1e2b38aa283e226ca4044766a43aa7b02b).**

What it does is withdraws Eth collateral, swaps Eth -> Dai with Kyber, and pays back the debt in Dai

### Further Research

Bloxy.info [Dashboard for MakerDAO](https://stat.bloxy.info/superset/dashboard/makerdao/?standalone=true) shows interesting dynamics of the methods usage over time:

![ Dashboard for MakerDAO](https://miro.medium.com/max/2254/1*XaMTF-zNenjoKZ1LRy_Vaw.png)

Bloxy.info [Dashboard for MakerDAO](https://stat.bloxy.info/superset/dashboard/makerdao/?standalone=true)

As different methods are used by traders for purpose, these dynamics may tell many stories about the important events and behavior in the MakerDAO ecosystem.

-   [MakerDAO Spike of Popularity](https://bitquery.io/blog/makerdao-spike-of-popularity)
-   [Bitcoin and Ethereum Balances and its Entropy](https://bitquery.io/blog/bitcoin-and-ethereum-balances-and-its-entropy)
-   [FairWin Scam Smart Contract Coinpath Investigation](https://bitquery.io/blog/fairwin-scam-smart-contract-coinpath-investigation)]]></description>
        </item>
        <item>
            <title><![CDATA[Bitcoin and Ethereum Balances and its Entropy​]]></title>
            <link>https://bitquery.io/blog/bitcoin-and-ethereum-balances-and-its-entropy</link>
            <guid>https://bitquery.io/blog/bitcoin-and-ethereum-balances-and-its-entropy</guid>
            <pubDate>Mon, 13 Jul 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
Why Entropy?
------------

Entropy is a known measure of "randomness" of the system. It is applied to thermodynamics. The second law of thermodynamics claims that in closed system, entropy will never decrease [3].

On statistical level, entropy also measures the amount of information, that is needed to completely “describe” the system. It comes from the information definition [4]:

![entropy-cal](/blog/bitcoin-and-ethereum-balances-and-its-entropy/Information-measure.png)

Information measure is difference of prior and posterior entropy [4]

I(X;Y) = information about X, originated from Y

H(X) = X entropy

H(X|Y) = X entropy, knowing Y

As consequence, it means, that to completely describe the system, you need not less that entropy H(x) bits of information. if the system is completely uniform, the measure is 0, and maximum number is measured as log2(N) where N is the number of elements.

How many information does the blockchain actually carry? If we will know the answer to this question, we will be more conscious on analytical boundaries and the value, that we get by extracting information from the blockchain. The more entropy we have, the more interesting information can be extracted from the on-chain data.

We start with an easy experiment of calculating actual entropy measures from bitcoin (BTC), and ethereum (ETH) balances. Note, that we will leave smart contracts and scripts/data in bitcoin apart, for the future investigations. This is fairer to BTC, as to ETH, where smart contracts are a very important part of blockchain analytics.

**Also Read: [FairWin Scam Smart Contract Coinpath Investigation](/blog/fairwin-scam-smart-contract-coinpath-investigation)**


Data Extraction
----------------

We at [Bloxy.info](https://bloxy.info/) already indexed several blockchains, with the most extensive data from Bitcoin and Ethereum Main nets. These datasets allow us to easily query over the whole dataset of addresses using standard SQL. This is how SQL query looks like for all bitcoin addresses:

![Query](/blog/bitcoin-and-ethereum-balances-and-its-entropy/query-for-bitcoing-wallet.png)

Query for Bitcoin address balances

Bitcoin Balance Distribution
-----------------------------

We got the list of 26,835,583 addresses. The number of unique balances in this list is lower, count of 1,528,767.Which balances from these 1,528,767 balances are found in most number of addresses? In other words, which balances are more popular?

We are talking about balance distribution of Bitcoin balances, and here it is sorted by count of addresses holding the unspent balance:

![Query](/blog/bitcoin-and-ethereum-balances-and-its-entropy/count-of-bitcoin-address.png)

Count of bitcoin addresses, holding specific balances, top by popularity


Top of the list are addresses holding just 0.00000001 BTC. This is most probable the result of the change functionality of software wallets, as this appear to be very small amount of money ( 1/100 of a US cent for now ). Almost 2 percent of all bitcoin addresses hold just this small amount.

Notable there are a lot of rounded numbers in the list, decimal fraction of 1. People, you know, love round numbers.

Number of 50 BTC appear as a trace of history, when you could mine 50 BTC for one block. So many of these are not yet spent, and residing on the wallets as the balance.

Some other numbers, as 0.00000546 BTC, 0.00007800 BTC, 0.00005461 BTC, which are minority in the list, are most likely to be artificially generated. For example, 0.00000546 BTC balance is the result of Omni [1] protocol.

Did not dig too much, if somebody knows the appearance of other "strange" numbers in popular balances, please comment article with thoughts!

Ethereum Balances
------------------

Doing the same with Ethereum, found that most popular balances also appear in sub-cent zone. We truncated the balance value to 8 digits in fractional part to be conformant with Bitcoin data.

The total count of Ethereum addresses with a balance is 26,352,814 from which 1,136,686 (4.3%) have nonunique balances. And the top list is:

![Query](/blog/bitcoin-and-ethereum-balances-and-its-entropy/top-popular-balances.png)

Ethereum top popular balances

We see very similar pattern of distribution, but the top balance now is 0.00558 ETH. More than 2% non-zero Ethereum addresses hold this amount.

These "strange" number in balance is explained by a result of large tumbler work. It has this side effect of generating these small balance addresses, as in this example:

![Ethereum tumblr](/blog/bitcoin-and-ethereum-balances-and-its-entropy/ethereum-tumbler.png)

Address receiving the "change" from "Ethereum tumbler". [Source](https://bloxy.info/graphs/0x2db4a358b9582256d6c4dcbc37943c8dacb6cf72)

In total, these addresses hold 3515 ETH, equivalent now to ~850,000 USD. Even with gas value coverage, this will be significant amount. Likely that all private keys from this addresses is in hands of one person, but he does not care or do not want to take it out.

Entropy Calculation
---------------------

Knowing balance distribution, we can calculate entropy using the formula [2]:


![entropy-cal](/blog/bitcoin-and-ethereum-balances-and-its-entropy/entropy-cal.png)
Calculating Entropy Formula [2]

It can be expressed as SQL query, that executes pretty fast:


![entropy-query-bitcoin](/blog/bitcoin-and-ethereum-balances-and-its-entropy/entropy-query-bitcoin.png)

Entropy calculation query for Bitcoin


We get number around 17. Is it large or small, good or bad? Maximum theoretical limit for entropy is when the distribution is a complete uniform, and it gives a number for this number of bitcoin addresses:

![Maximum Entropy](/blog/bitcoin-and-ethereum-balances-and-its-entropy/thereotical-maximum-entropy-query.png)

Theoretical maximum entropy query for Bitcoin

As entropy is a logarithmic measure, the difference of 7 “bits” from maximum gives us approximate difference 2⁷ = 128 times. From this we can draw a conclusion, that Bitcoin addresses have far from random uniform balance distribution. In average, we need just 17 bits of information to describe the balance of an address. it is around 2¹⁷ = 128K combinations.

Entropy Development
--------------------

If we repeat the query limiting the date frame for the transactions, we will get the measures of entropy by time:

![Entropy by years](/blog/bitcoin-and-ethereum-balances-and-its-entropy/entropy-by-years.png)

Entropy by years, for ETH and BTC

At the beginning, most addresses in BTC hold the mined amounts ( 50 / 25 BTC ), and the entropy was very low ( below 1 bit ).

Entropy is increasing, which is in conformance of second thermodynamic law. The rate of growth reflects the amount of information collected in the blockchain. With time, this rate reduces.

Currently, the entropy for BTC and ETH is pretty close in numbers, and ETH entropy approaching BTC. As a physical system, blockchain is pretty small and not very random.

*This article was composed of the data and by analytical tools from [Bloxy.info](https://bloxy.info/) analytical engine. [Bloxy.info](https://bloxy.info/) web site provides a set of tools for analytics, traders, companies, and crypto enthusiasts. The tools include APIs, dashboards, and search engines, all available on-site, providing accurate data, indexed directly from the blockchain live node. Bloxy mission is to make blockchain more transparent and accessible to people and businesses. Please, make a reference to the source of data when referencing this article.*

References
------------

*  [https://www.omnilayer.org/](https://www.omnilayer.org/)
*  [https://en.wikipedia.org/wiki/Maximum_entropy_probability_distribution](https://en.wikipedia.org/wiki/Maximum_entropy_probability_distribution)
*  [https://en.wikipedia.org/wiki/Second_law_of_thermodynamics](https://en.wikipedia.org/wiki/Second_law_of_thermodynamics)
*  [https://en.wikipedia.org/wiki/Entropy_(information_theory)](https://en.wikipedia.org/wiki/Entropy_(information_theory))]]></description>
        </item>
        <item>
            <title><![CDATA[FairWin Scam Smart Contract Coinpath Investigation​]]></title>
            <link>https://bitquery.io/blog/fairwin-scam-smart-contract-coinpath-investigation</link>
            <guid>https://bitquery.io/blog/fairwin-scam-smart-contract-coinpath-investigation</guid>
            <pubDate>Mon, 13 Jul 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[

What if you see a smart contract in Ethereum blockchain with the following impressive activity:

*  More than 500K ETH coin flow for less than a month (around $100M / month)
*  More than 60K ETH per day (around $10M / day)
*  More than 400K transactions, with significant gas prices


**You probably will be thinking that this is another ICO or some new Vitalik project… NO! This is a scam smart contract, mockingly called "FairWin".**


And here it is along with September,2019 activity, daily :

![September](/blog/fairwin-scam-smart-contract-coinpath-investigation/fiarwin_scan_september_activity.png)

Fairwin scam: September activity of FairWin smart contract. Source: [Bloxy.info](https://bloxy.info/address/0x01eacc3ae59ee7fbbc191d63e8e1ccfdac11628c?utm_source=blog&utm_medium=fairwin)
This is so called "Ponzi scheme" type of scam, where gullible people send their money in the wait to multiply them in a short term. This is totally a crowd manipulation technique, when everybody believes he is smarter than others.

Running ahead will note, that now it is totally dead, emptied, and not interesting to track. However the historical data worth analyzing.

The balance history of the contract can be seen on Portfolio analysis tab of the page on [bloxy.info](https://bloxy.info/?utm_source=blog&utm_medium=fairwin):

![Balance history](/blog/fairwin-scam-smart-contract-coinpath-investigation/fiarwin-scan-Balance.png)

Fiarwin scam: Balance on smart contract, by day. Source: [Bloxy.info](https://bloxy.info/portfolios/0x01eacc3ae59ee7fbbc191d63e8e1ccfdac11628c)

The pattern for this balance graph is very clear — contract has an "accumulating" period, when it accumulates the funds from people, some “plato” to identify that the growth is not developing anymore, and abrupt "fall". During the fall, most of the people are loosing the previously invested money.

We have a hypothesis, that the accumulating money on the smart contract was actually done with the help of artificially created deposits and withdraws. The money could be cycled many times to make an impression of constant activity and growth. It forced other people to believe that there are many other actors, involved in the scam.

Checking this hypothesis is not easy, as there are hundreds thousands transactions from a similar count of addresses for this smart contract, with very distinct amounts and behaviors.

We applied the advanced [Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=fairwin) technology from [Bloxy.info](https://bloxy.info/?utm_source=blog&utm_medium=fairwin) to build a graph of the money flow. We place two goals in this investigation to identify:

*  abnormal patterns of money flow during the “accumulating” phase, in particular “loops” and automated activities
*  where money actually gone on “fall” period, find the main beneficiaries of the scam

**[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=fairwin) is accessible as a set of API endpoints from the [Bloxy.info](https://bloxy.info/?utm_source=blog&utm_medium=fairwin) web site. However, it does not require any software or programming efforts to use**

Looking for end to end Crypto investigation tool?  Explore Coinpath Moneyflow, built for investors and law enforcement agencies. [Check it out here!](https://share.hsforms.com/1r66O41lbSuOElm1REXeptQ3rc4g)


Where is the money from?
-------------------------

This contract has 57,691 inbound transactions, depositing Ethereum, with the amount of 693 K Eth in total. The question is where these 693K ETH, which is by the way around $100M, came from?

We use the [Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=fairwin) method "Inbound addresses, sending coin or tokens to an address in a number of hops":

![API endpoints](/blog/fairwin-scam-smart-contract-coinpath-investigation/api-endpoints.png)

Set of API endpoints for [Coinpath® Bloxy API](https://bloxy.info/api_methods#coinpath)

This methods tracks the money of one or multiple tokens, received by the specific address. It goes more than one level, identifying which particular transactions participated in amount received by the address under investigation. For FairWin we get the following list of top contributors:

![Source addresses for FairWin](/blog/fairwin-scam-smart-contract-coinpath-investigation/source-add-fairwin.png)

Fairwin scam: Source addresses for FairWin. Source [Bloxy.info Coinpath API](https://bloxy.info/api_methods#coinpath)


What you first see is that all of them except the one (#7) did not participate directly. The min Hop value is 2, meaning that between the address and FairWin was at least one intermediary address, which actually sent ETH to smart contract.

Most of these addresses are not exchanges. The first exchange found is #10, Gate.io. It means, that they collected funds on address before the game begins, and did not withdraw from exchange. All of top 10 addresses are high volume & balance addresses. If you are curious of further looking on them, here is a short list:

*  [https://bloxy.info/address/0x137ad9c4777e1d36e4b605e745e8f37b2b62e9c5](https://bloxy.info/address/0x137ad9c4777e1d36e4b605e745e8f37b2b62e9c5)
*  [https://bloxy.info/address/0x5861b8446a2f6e19a067874c133f04c578928727](https://bloxy.info/address/0x5861b8446a2f6e19a067874c133f04c578928727)
*  [https://bloxy.info/address/0xd8a83b72377476d0a66683cde20a8aad0b628713](https://bloxy.info/address/0xd8a83b72377476d0a66683cde20a8aad0b628713)
*  [https://bloxy.info/address/0x926fc576b7facf6ae2d08ee2d4734c134a743988](https://bloxy.info/address/0x926fc576b7facf6ae2d08ee2d4734c134a743988)

If you look at statistics for these addresses, they all look very similar in volumes and patters. As example, compare these 2 graphs of activities for 0xd8a83b72377476d0a66683cde20a8aad0b628713 and 0x926fc576b7facf6ae2d08ee2d4734c134a743988:


![Activity by time for address](/blog/fairwin-scam-smart-contract-coinpath-investigation/activity-by-time1.png)

[https://bloxy.info/address/0x926fc576b7facf6ae2d08ee2d4734c134a743988](https://bloxy.info/address/0x926fc576b7facf6ae2d08ee2d4734c134a743988)


![Activity by time for address 2](/blog/fairwin-scam-smart-contract-coinpath-investigation/activity-by-time2.png)

[https://bloxy.info/address/0xd8a83b72377476d0a66683cde20a8aad0b628713](https://bloxy.info/address/0xd8a83b72377476d0a66683cde20a8aad0b628713)

There is a very high probability they all belongs to the same person or organization.

How is the game going?
---------------------------


What about the direct participants in the game? We will now look on a more detailed graph of the money flow using a different [Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog&utm_medium=fairwin) method, "Inbound Money Address Graph". It builds the graph of the money flow, starting from the FairWin smart contract and looking for all inbound money transfers, tracking the money for multiple hops from it.

The result can be exported as CSV, JSON, or in GEFX XML format, used for the graph investigation. The graph then can be exported to the tools like [Gephi](https://gephi.org/) or processed using C++, R, Python and any other language.

We loaded the graph of inbound graph in Gephi, and filtered just the most connected participants using K-core algorithm and Fruchteman Reingold Layout technique. Here is the graph we get in a result:



![Graph of major active participants in FairWin game](/blog/fairwin-scam-smart-contract-coinpath-investigation/fairwin-scam-smart-contract-coinpath-investigation_cover.png)

Fiarwin scam: Graph of major active participants in FairWin game

This "blowball" has some remarkable features:

*  The center of it is FairWin smart contract, which receives from and sends ETH to other addresses. The red arrows means higher volume transactions, the blue means lower volume.
*  Most other addresses are organized in “clouds”. They exchange money between each other in a very random way, working as a “money mixer”. We previously seen several of them, including the Large Ethereum Mixer.


Selecting just one of the "top" addresses that we identified as top sources, we get the graph, showing how many intermediary participants were "funded"from this source:


![Graph filtered by the one of top addresses](/blog/fairwin-scam-smart-contract-coinpath-investigation/graph-filterer.png)

Fiarwin scam: Graph filtered by the one of top addresses


The source address 0x137ad9c4777e1d36e4b605e745e8f37b2b62e9c5 did not contributed directly, but through the huge number of addresses. The same story with the other top addresses from the list above.

We can give more dynamics to this using wonderful Gephi tool feature of “timeline”. This allows to build a series of snapshots, or even the movie of how the graph was developed:


![fairwin scam money flow](/blog/fairwin-scam-smart-contract-coinpath-investigation/scam-money-flow.png)

Fairwin scam money flow

**The video of the complete story can be seen at [youtube](https://youtu.be/7_SYsaxEzzo)**

Who get all the money?
--------------------------

I mean not directly, but in a result…see what i mean? Most of the money withdrawn from the smart contract were forwarded to a limited set of top addresses, some of them we already see in source addresses:

![scam-money-flow](/blog/fairwin-scam-smart-contract-coinpath-investigation/who-get-money.png)

Outbound addresses, received coin or tokens from an address in a number of hops, source: [Coinpath](https://bloxy.info/api_methods#coinpath)

Here the minimum number of hops is 3, that is there are at least 2 intermediary addresses between it and the FairWin.

Conclusions
---------------

It was exciting experience to make this analytics, as FairWin case shown many features, that are well known, but hardly can be found in one place:

*  Definitely the network around FairWin smart contract was artificially generated. Most of the money was fed into by several top addresses and distributed using a series of intermediary addresses
*  The network originated from the funds, received from the previous version of FairWin smart contract, which was active in July, 2019;
*  In addition, some sort of mixer was used, as a set of hundreds of addresses moving money between in some random manner.

Technology support as [Coinpath®](https://bitquery.io/products/coinpath) from Bloxy.info and Gephi graph analytical tools is essential to make such kind of analysis. The number of transactions does not allow to operate this manually, and the complexity of patterns requires sophisticated algorithms to use.

This article was composed of the data and by analytical tools from [Bloxy.info](https://bloxy.info/) analytical engine BLADE. [Bloxy.info](https://bloxy.info/) web site provides a set of tools for analytics, traders, companies, and crypto enthusiasts.

The tools include [Bitquery](https://bitquery.io/), a set of APIs, [Coinpath®](https://bitquery.io/products/coinpath), dashboards, and search engines. All information is available on the [Bloxy website](https://bloxy.info/), providing accurate data, indexed directly from the blockchain live node.

[Bloxy’s mission](https://bitquery.io/about) is to make blockchain more transparent and accessible to people and businesses. Please, make a reference to the source of data when referencing this article.
]]></description>
        </item>
        <item>
            <title><![CDATA[MakerDAO Spike of Popularity​]]></title>
            <link>https://bitquery.io/blog/makerdao-spike-of-popularity</link>
            <guid>https://bitquery.io/blog/makerdao-spike-of-popularity</guid>
            <pubDate>Mon, 13 Jul 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[

[MakerDAO](https://makerdao.com/en/) "SaiTub" smart contract daily call number immediately grown from a previous average ~10K/day to astonishing 103,580 calls per day at Saturday, 27 July 2019:

![Daily calls ](/blog/makerdao-spike-of-popularity/daily_calls_of_saitub.png)

Daily calls of SaiTub smart contract, [source](https://bloxy.info/address/0x448a5065aebb8e423f0896e6c5d525c040f59af3)

This is absolute daily maximum, and it made July as the most active month in all MakerDAO history:

![Monthly calls ](/blog/makerdao-spike-of-popularity/monthly-call-of-saitub.png)

Monthly calls of SaiTub smart contract, source

Actually without this particular spike, which lasted from 27 to 31 July, this July would look rather normal, with the same average statistics as the previous June.

So, this looked kind of strange and abnormal, and we wanted to look closer on this activity.


Which methods were used?
----------------------------


First lets look at the top methods that were actually called:

![Methods](/blog/makerdao-spike-of-popularity/cover.png)

Contract Methods Call number, by day,

Top methods by call number are

*   draw (7.14K / day ) issue the new DAI
*   lock ( 6.82K / day ) add PETH collateral
*   join ( 6.82K / day ) deposit ETH in exchange to PETH
*   open ( 6.48 K /day ) creates CDP

More details on MakerDAO methods can be found in described in [Maker DAO Transactions Illustrated article](https://medium.com/coinmonks/maker-dao-transactions-illustrated-691ad2715cf7).

The first impression from the the top methods list is that people, absolutely new to MakerDAO project, are opening the new CDP by placing their own ETH. The sequence then should look as

**JOIN -> OPEN -> LOCK -> DRAW**

Let’s look at particular addresses in this time frame to confirm this:


![Methods](/blog/makerdao-spike-of-popularity/txn-saiproxy.png)

Example of the transaction over SaiProxy. [Source](https://bloxy.info/tx/0x11416ddb18b65212caf2807f8b5a721ed25078d3f3dc7a2c270f5ba3a7de960d)

This transaction is doing exactly all operations listed above, through the [proxy smart contract](https://bloxy.info/address/0x526af336d614ade5cc252a407062b8861af998f5). From user perspective, it gets DAI in exchange to Ether for the caller. Internally, it invokes JOIN -> OPEN -> LOCK -> DRAW sequence of SaiTub smart contract.

How many people involved?
---------------------------

Here is the most interesting part. In one day, more than 27 thousand addresses called Maker DAO !

![Methods](/blog/makerdao-spike-of-popularity/daily-unique-smart-calls.png)

Daily unique smart contract callers ( senders of TX )

Is it a lot? Yes! Lets compare that with auditorium of some other DeFi projects to make sense of it:

![Methods](/blog/makerdao-spike-of-popularity/montly-lending-protocols.png)

Monthly unique users of lending protocols

So this number appear to be well above all other similar project metrics. This is high even comparing with ALL traders ( makers / takers ) count on all Ethereum DEX'es:

![Methods](/blog/makerdao-spike-of-popularity/dex-traders-count.png)

DEX traders counts Source 

How much money involved?
----------------------------

Not so much… just ~ 327 ETH ( in + out ) in a day :

![Methods](/blog/makerdao-spike-of-popularity/proxy-contract.png)
ETH deposited using proxy contract. [Source](https://bloxy.info/address/0x526af336d614ade5cc252a407062b8861af998f5)

Average deposited amount ~ 327 / 2 / 28,000 = 0.005 ETH per address. Not so much, around $14.What is more interesting, they all deposited virtually THE SAME amount, around 0.006 ETH :


![Methods](/blog/makerdao-spike-of-popularity/distribution-amounts.png)

Distribution of amounts deposited, in ETH


Where they come from?
------------------------

There is a strong suspect, that all the activity is caused by Coinbase advertising in [DAI Lesson](https://www.coinbase.com/earn/dai?utm_medium=social&utm_source=twitter&utm_campaign=earn_dai_adv_lessons) that gives 14 USD in DAI token when you pass it.

Need not be Sherlock to identify this features

*  all amounts are the same
*  many people involved doing the same activity
*  limited in time and bound to advertising campaign ( it appeared 26 June in Twitter ).
*  Good news is this allows to get a lot of unique users of MakerDAO technology.

Conclusion
------------------


This is a good example, when we found the consequence as event, as anomaly data on-chain, and ultimately get to the reasons of this.

Digital marketing probably has the new area of analytics, using the blockchain. This allows to combine the existing tracking capabilities, as Google analytics, with on-chain analytics, as Bloxy.info to measure the efficiency of ad campaigns.

It is very easy to measure MAU/DAU metrics, but way more important is to measure the retention of users on specific project, as MakerDAO. Even more important is to get revenue / ROI figures, that can be derived from the blockchain explicitly.

We can look in a month if any of these addresses started using DAI / PETH with Maker DAO smart contract and how successfully. We hope some of them will convert to Maker DAO traders.

*This article was composed from the data and by analytical tools from [Bloxy.info](https://bloxy.info/) analytical engine. [Bloxy.info](https://bloxy.info/) web site provides a set of tools for analytics, traders, companies and crypto enthusiasts. The tools include APIs, dashboards and search engine, all available on-site, providing accurate data, indexed directly from the blockchain live node. Bloxy mission is to make blockchain more transparent and accessible to people and businesses. Please, make a reference to the source of data when referencing this article.*

*  [Bitcoin and Ethereum Balances and its Entropy](/blog/bitcoin-and-ethereum-balances-and-its-entropy)
*  [FairWin Scam Smart Contract Coinpath Investigation](/blog/fairwin-scam-smart-contract-coinpath-investigation)]]></description>
        </item>
        <item>
            <title><![CDATA[MakerDAO Tokens Explained: DAI, WETH, PETH, SIN, MKR. Part 1]]></title>
            <link>https://bitquery.io/blog/makerdao-tokens-explained</link>
            <guid>https://bitquery.io/blog/makerdao-tokens-explained</guid>
            <pubDate>Mon, 13 Jul 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[


Maker Dao
---------------

Maker DAO system consists of several smart contracts ( Sai Tap, Sai Tub, Vox, Medianiser, etc.), and ERC-20 tokens. Together they work to ensure the stability of DAI token.

In this article, we will mostly focus on how tokens are rotated, and used. The diagram below shows the main token flows and smart contract methods, used to convert one token to another:


![Maker DAO Tokens Turnaround and Contract Methods](/blog/makerdao-tokens-explained/cover.png)

Maker DAO Tokens Turnaround and Contract Methods


Tokens are shown as circles, while smart contracts and their entities are rounded rectangular. The arrows on the diagram means that using these smart contract methods you can change the balance from one token to another.

For example, calling join() will remove WETH tokens from you and give you appropriate amount of PETH tokens instead.

> Also read : [MakerDAO Spike of Popularity](/blog/makerdao-spike-of-popularity).


Unstable ( "Ether"-like) Tokens
-------------------------------


The left side of the diagram shows tokens, related to Ether:

![Ether](/blog/makerdao-tokens-explained/ether.png)
Ether

[Ether](https://explorer.bitquery.io/ethereum?utm_source=blog&utm_medium=makerdao_explained) itself is not directly used in Maker DAO system. If you have Ether originally ( as most of us ),  you have to first convert it to WETH ( Wrapped ETH ) token.

![WETH](/blog/makerdao-tokens-explained/weth.png)
Weth

[WETH](https://explorer.bitquery.io/ethereum/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2?utm_source=blog&utm_medium=makerdao_explained) is one-to-one reflection of ETH, but as ERC-20 token. In any moment you can change Ether to WETH and back. The downside is that every such transformation requires gas.

![PETH](/blog/makerdao-tokens-explained/peth.png)
PETH


[PETH](https://explorer.bitquery.io/ethereum/token/0xf53ad2c6851052a81b42133467480961b2321c09?utm_source=blog&utm_medium=makerdao_explained) is short for “Pooled Ether”. When you deposit WETH to Maker DAO, you get back this token. Note, that It is not exactly one-to-one to Ether, it rate is calculated.


Stable ( "DAI"-like ) Tokens
----------------------------

![DAI](/blog/makerdao-tokens-explained/dai.png)
DAI


[DAI](https://explorer.bitquery.io/ethereum/token/0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359?utm_source=blog&utm_medium=makerdao_explained) is MakerDAO stable coin, which is expected to be close enough to 1 US dollar. It is minted for you when you generate a loan with CDP

![SIN](/blog/makerdao-tokens-explained/sin.png)
SIN

[SIN](https://explorer.bitquery.io/ethereum/token/0x79f6d0f646706e1261acf0b93dcb864f357d4680?utm_source=blog&utm_medium=makerdao_explained) token represent the liquidated debt. It is equal in value to 1 DAI and used instead of DAI in debt clearance process


Maker DAO Utility Token
-------------------------------


![WETH](/blog/makerdao-tokens-explained/mkr.png)
MKR

MKR token used to pay commission fee on closing the debt ( by wipe method ).

Smart Contracts
----------------

![SAI tub](/blog/makerdao-tokens-explained/sai_tub.png)
SAI Tub

[Sai Tub](https://explorer.bitquery.io/ethereum/smart_contract/0x448a5065aebb8e423f0896e6c5d525c040f59af3?utm_medium=makerdao_explained&utm_source=blog) smart contract stores CDP’s. CDP is your debt in DAI leveraged by PETH. Most operations with Maker DAO done using it.

![SAI Tap](/blog/makerdao-tokens-explained/sai_tap.png)
SAI Tap

[Sai Tap](https://explorer.bitquery.io/ethereum/smart_contract/0xbda109309f9fafa6dd6a9cb9f1df4085b27ee8ef?utm_medium=makerdao_explained&utm_source=blog) smart contract allows to liquidate the debt and generate the profit from it.

Smart Contract Methods
-----------------------

Maker DAO smart contracts have a lot of methods, major of them are categorized in the table below

![Maker DAO smart contracts](/blog/makerdao-tokens-explained/maker-dao-smart-contract-methods.png)

Maker DAO smart contracts 

Most of the method operate with the tokens we listed above and with CDP as internal Sai Tub entity.

A more detailed description of these methods you can find in [Maker DAO transactions Illustrated article](https://medium.com/coinmonks/maker-dao-transactions-illustrated-691ad2715cf7).

Token Usage Pattern
---------------------

The material below is created based on the Bloxy.info and Bitquery Token Flow tool and Maker DAO analytical dashboard.

*Bloxy.info web site provides a set of tools for analytics, traders, companies, and crypto enthusiasts.*

*The tools include APIs, dashboards, and search engine, all available on-site, providing accurate data, indexed directly from the blockchain live node.*

*Bloxy's mission is to make blockchain more transparent and accessible to people and businesses.*

*Please, make a reference to the source of data when referencing this article.*

Our goal was to match the smart contract code and the diagram above with actual token flows and user actions regarding these tokens. We will investigate tokens one by one, from different perspectives, using our tools and analytical approach.

And our first token is….


WETH ( Wrapped Ether)
-----------------------

WETH is wrapped Ether and can be used instead of Ether where ERC-20 tokens are expected. The first coming to mind is decentralized exchanges (DEX). Typically DEX protocols expect ERC20 tokens as buy/sell-side assets, and they can not work with Ether directly. So you first change your Ether to WETH, exchange it, and later WETH can be changed back to Ether.

This token started at December, 2017, the same time as Maker DAO protocol. Note, that the largest holder is Maker DAO smart contract:

![WETH largest holders](/blog/makerdao-tokens-explained/weth-largest-holders.png)

WETH largest holders


The intersection by owners with other tokens also shows Maker DAO tokens:

![Tokens correlated](/blog/makerdao-tokens-explained/token-correlated.png)

Tokens correlated by common holders, Source: [Bitquery](https://explorer.bitquery.io/ethereum/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2/holders?utm_source=blog&utm_medium=makerdao_explained)

This high WETH balance on SaiTub MaerDAO smart contract appear, as users deposit WETH to Maker DAO’s SaiTub smart contract to create CDPs later. We analyzed the dynamics of this process on the MakerDAO dashboard:

![weth-locked-amount](/blog/makerdao-tokens-explained/weth-locked-amount.png)

WETH locked amount, deposits, withdrawals. Source: Bitquery MakerDAO dashboard


As seen from this graph, on 10 May, 2019 the locked WETH amount is approx. 2 million ETH ( orange line), while totally minted amount is above 4 million ETH.

How many people involved in this activity? 
The number of traders can be estimated by unique addresses, initiating exit/join transactions on SaiTub smart contract:

![unique-count.png](/blog/makerdao-tokens-explained/unique-count.png)

Unique count of addresses, locking and freeing WETH on Maker DAO smart contract. Source: Bitquery


Traders behavior is described by how many WETH the lock and free each month:

![lock-weth-amount.png](/blog/makerdao-tokens-explained/lock-weth-amount.png)

Monthly free/lock WETH amount. Source: Bitquery 


Interesting trend that the lock and free amount looks rather symmetrical, before the April 2019, when more people started to withdraw ( free ) WETH from Maker DAO, comparing to deposit ( lock ) it. These are 2 right columns of this diagram. This in turn caused that reduction in WETH balance on Maker DAO.


WETH outside Maker DAO?
------------------------

The question is - is it used anywhere except Maker DAO?

Answer is yes. First, it is very actively traded on ZeroX and Oasis ( Matching Market ) exchanges, as shown on Bloxy.info WETH trading page.

[Token Flow Tool](https://bloxy.info/token_graphs/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2) shows major flows of WETH:

![token-flow-tool.png](/blog/makerdao-tokens-explained/token-flow-tool.png)

Main WETH flows. Source: [bloxy.info](https://bloxy.info/token_graphs/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2?utm_source=blog&utm_medium=makerdao_explained)

As you see, there are several "centers of gravity" for WETH token:

*    SaiTub from MakerDAI
*    Oasis, DDEX exchanges
*    ZeroX (not involved in transfers, so not explicitly shown on this graph)

Example of WETH trading by one of the most active traders on DEX is this transaction:

![weth-dai-pair.png](/blog/makerdao-tokens-explained/weth-dai-pair.png)

DEX trade between many parties with WETH/DAI pair. Source: [bloxy.info](https://bloxy.info/tx/0xc538725a76c26695c3fae183bea430bfb86449bc9a066288e52716d22b10f009)

WETH is traded not just agains DAI, here is the list of top 10 pairs on DEX exchanges:

![top-10-pair](/blog/makerdao-tokens-explained/top-10-pairs.png)

Top 10 pairs for WETH on DEX. Source: [bloxy.info DEX API](https://bloxy.info/api_methods)

PETH ( Pooled Ether)
-----------------------

PETH represents ETH, that you put into Maker DAO smart contract to create DAI debt in the future. It has the rate against WETH, equals to

PETH = (WETH balance ) / (Total PETH supply) WETH

It is now equal to 1.04, as part of PETH has been burnt due to debt liquidations. This number increased with time as shown on the diagram:

![PETH/WETH](/blog/makerdao-tokens-explained/pooled-ether.png)

PETH/WETH rate and profit associated with it. Source: bloxy.info

***The change of PETH/WETH rate generate the APR and profit for the users, who joined the pool and received PETH in exchange to WETH, long time ago. Their summary profit is estimated around 80,000 ETH.***


PETH is not traded on DEX and seems to be used solely inside MakerDAO infrastructure.

Token flow below shows, that the major PETH flow goes from traders to Sai Tub smart contract. Part of the flow then goes to SaiTap ( in case of debt liquidation), or to system address ( for burning ):

![peth-token](/blog/makerdao-tokens-explained/peth-token-flow.png)

PETH token flow. Source: [Bitquery MoneyFlow tool](https://explorer.bitquery.io/ethereum/token/0xf53ad2c6851052a81b42133467480961b2321c09?utm_source=blog&utm_medium=makerdao_explained)


**To be continued!** In part 2 we will talk about the tokens DAI, MKR and SIN !]]></description>
        </item>
        <item>
            <title><![CDATA[Analysis of Blockchain Availability Based on Block Lag]]></title>
            <link>https://bitquery.io/blog/analysis-of-blockchain-availabilitybased-on-block-lag</link>
            <guid>https://bitquery.io/blog/analysis-of-blockchain-availabilitybased-on-block-lag</guid>
            <pubDate>Mon, 16 Mar 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
By Aleksey Studnev, Bitquery.io, 16 May, 2023

This analysis focuses on examining the on-chain block lag of four blockchain networks: Bitcoin, Ethereum, Solana, and Binance Smart Chain. The aim is to calculate various statistics related to the block time.

To conduct this analysis, data sets were obtained and processed using Pandas tools within a Jupyter Notebook environment. The resulting findings and insights are documented in a GitHub project. By exploring the block lag statistics, we can gain a better understanding of the performance and efficiency of these blockchain networks.

### Why Block Lags Matter?

The goal for this analysis is to measure how well blockhain networks of different kind meet client expectations on availability and speed. This is not just defined by the mean statistics, as average block time and transactions per second. The distribution of these parameters is also important, and especially the corner cases of unexpectedly long lags in block times.

When the blockchain network does not add the new block for a long time, all applications that are elying on that network, efffectively stalled. It is equivallent to the program hangs on your computer. Blockchain clients, as wallets or DApps, can not execute transactions, make transfers or smart contract calls.

Too long time lag between the blocks is equivalent to the service outage of the blockchain network. Here we tried to measure how often this happens and how severe it is in different blockchains.

Here we consider outage when the next block does not appear in 10x time interval from the average block period. For example, if average period in Ethereum is 14 seconds, we consider 140 seconds as outage. This is calculated relative to the average values, because the expectations of the clients ( both humans and applications ) are adapted to the average block times, which are very different across blockchain networks


### Aggregated Statistics on Block Times

Here is the agregated statistics of the 4 blockchain networks under consideration:

![Track inbound and outbound NFT transfers ](/blog/blockchain/analysis-of-blockchain-availabilitybased-on-block-lag/Screenshot-2023-05-17-174356.png "Track inbound and outbound NFT transfers ")

Ethereum can be divided into two periods: before the Proof of Stake (POS) fork and after it, as statistics show notable differences.The table clearly indicates that the maximum time can greatly surpass the average figures, sometimes even extending to hours or even days. We will now examine each chain individually and then return to analyze the SLA figures as a whole.

## Ethereum Before POS

The distribution of the block time in Ethereum Before POS ( logarithmic frequency scale ):

![Track inbound and outbound NFT transfers ](/blog/blockchain/analysis-of-blockchain-availabilitybased-on-block-lag/alekseyblog-768x367.png "Track inbound and outbound NFT transfers ")

The hystogram in logarithmic scale looks very smooth and has almost linear slope for a range of 10..120 seconds per block.
It can be approximately modeled as of exponential decay:

Freq ~ A * exp ( -t * B )

Proof of work requires the guessing of crypto puzzle, which is a random guessing, which must follow the Binomial distribution. We see here the trail of this distribution with t >> average(t), average is approximately 14 seconds.

It means, that any POW consensys by-design assumes the outages, when the block time due to probabalistic reasons exceed some pre-defined value.

On this diagram, the 140 seconds ( 14 sec avg x 10 factor) lies in the middle, showing quite a lot of blocks, which took more time than that to mine.

There are also several blocks with the lag exceeding 300 sec

ethereum[(ethereum[‘lag’]>300) & (ethereum[‘block’]<15537393)]

gives us the blocks with extreme block times:

![Track inbound and outbound NFT transfers ](/blog/blockchain/analysis-of-blockchain-availabilitybased-on-block-lag/Screenshot-2023-05-17-182700.png "Track inbound and outbound NFT transfers ")

Good news, that all of them well in the past!

## Ethereum After POS

The distribution of the block time in Ethereum After POS ( logarithmic frequency scale ):

![Track inbound and outbound NFT transfers ](/blog/blockchain/analysis-of-blockchain-availabilitybased-on-block-lag/alekseyblog5-768x366.png "Track inbound and outbound NFT transfers ")

Here we see very discrete histogram, with block times of multiples of 6 and 12 seconds. The maximum time is 96 = 12 * 8, minimum is 6 seconds.

## Bitcoin

The distribution of the block time in Bitcoin ( logarithmic frequency scale ):

![Track inbound and outbound NFT transfers ](/blog/blockchain/analysis-of-blockchain-availabilitybased-on-block-lag/alekseyblog2-768x367.png "Track inbound and outbound NFT transfers ")

Bitcoin and Ethereum both employ Proof of Work (PoW) for block mining, which contributes to their similar trends towards larger values. Notably, there is a noteworthy negative range of block times. This arises from utilizing the block mining time as a timestamp, rather than the actual time when the block was added to the blockchain. In practice, mining times can be established well before the block’s inclusion in the chain, resulting in a considerable number of blocks with negative time lags.

However, these negative lags should not significantly impact the measurement of block lags in the positive range. This is because their distribution declines much more rapidly than that of positive lags. Among the blocks, there are 151 instances where mining took more than 2 hours, with some taking more than 10 hours.

![Track inbound and outbound NFT transfers ](/blog/blockchain/analysis-of-blockchain-availabilitybased-on-block-lag/Screenshot-2023-05-17-183632.png "Track inbound and outbound NFT transfers ")

Note that these are all at the very beginning of the network… good times!

## Binance Smart Chain

The distribution of the block time in Binance Smart Chain ( logarithmic frequency scale ):

![Track inbound and outbound NFT transfers ](/blog/blockchain/analysis-of-blockchain-availabilitybased-on-block-lag/alekseyblog3-768x367.png "Track inbound and outbound NFT transfers ")

BSC distribution falls pretty fast, and there are no much extremely long block times here.

### Solana

The distribution of the block time in Solana ( logarithmic frequency scale ):

![Track inbound and outbound NFT transfers ](/blog/blockchain/analysis-of-blockchain-availabilitybased-on-block-lag/alekseyblog4-1-768x367.png "Track inbound and outbound NFT transfers ")

The hystogram in logarithmic scale looks very smooth and has almost linear slope for a range of 10..120 seconds per block.  
It can be approximately modeled as of exponential decay:

_**Freq ~ A \* exp ( -t \* B )**_

Proof of work requires the guessing of crypto puzzle, which is a random guessing, which must follow the Binomial distribution. We see here the trail of this distribution with t >> average(t), average is approximately 14 seconds.

It means, that any POW consensys by-design assumes the outages, when the block time due to probabalistic reasons exceed some pre-defined value.

On this diagram, the 140 seconds ( 14 sec avg x 10 factor) lies in the middle, showing quite a lot of blocks, which took more time than that to mine.

There are also several blocks with the lag exceeding 300 sec

_**ethereum\[(ethereum\[‘lag’\]>300) & (ethereum\[‘block’\]<15537393)\]**_  

gives us the blocks with extreme block times:

![](/blog/blockchain/analysis-of-blockchain-availabilitybased-on-block-lag/Screenshot-2023-05-17-182700.png)

Good news, that all of them well in the past!

Ethereum After POS
------------------

The distribution of the block time in Ethereum After POS ( logarithmic frequency scale ):

![](/blog/blockchain/analysis-of-blockchain-availabilitybased-on-block-lag/alekseyblog5-768x366.png)

Here we see very discrete histogram, with block times of multiples of 6 and 12 seconds. The maximum time is 96 = 12 \* 8, minimum is 6 seconds.

Bitcoin
-------

The distribution of the block time in Bitcoin ( logarithmic frequency scale ):

![](/blog/blockchain/analysis-of-blockchain-availabilitybased-on-block-lag/alekseyblog2-768x367.png)

Bitcoin and Ethereum both employ Proof of Work (PoW) for block mining, which contributes to their similar trends towards larger values. Notably, there is a noteworthy negative range of block times. This arises from utilizing the block mining time as a timestamp, rather than the actual time when the block was added to the blockchain. In practice, mining times can be established well before the block’s inclusion in the chain, resulting in a considerable number of blocks with negative time lags.

However, these negative lags should not significantly impact the measurement of block lags in the positive range. This is because their distribution declines much more rapidly than that of positive lags. Among the blocks, there are 151 instances where mining took more than 2 hours, with some taking more than 10 hours.

![](/blog/blockchain/analysis-of-blockchain-availabilitybased-on-block-lag/Screenshot-2023-05-17-183632.png)

Note that these are all at the very beginning of the network… good times!

Binance Smart Chain
-------------------

The distribution of the block time in Binance Smart Chain ( logarithmic frequency scale ):

![](/blog/blockchain/analysis-of-blockchain-availabilitybased-on-block-lag/alekseyblog3-768x367.png)

BSC distribution falls pretty fast, and there are no much extremely long block times here.

### Solana

The distribution of the block time in Solana ( logarithmic frequency scale ):

![](/blog/blockchain/analysis-of-blockchain-availabilitybased-on-block-lag/alekseyblog4-1-768x367.png)

Solana is famous for the very fast block times… and long outages! These are blocks that took over 10 minutes:

![](/blog/blockchain/analysis-of-blockchain-availabilitybased-on-block-lag/Screenshot-2023-05-17-185132-267x300.png)

And you see, they are sometimes close to the whole day (!) when the network effectively stalled.

Aggregated Availability Figures
-------------------------------

The aggregated figures from the distributions are collected in the following table:

![](/blog/blockchain/analysis-of-blockchain-availabilitybased-on-block-lag/Screenshot-2023-05-17-191059-768x173.png)

![](/blog/blockchain/analysis-of-blockchain-availabilitybased-on-block-lag/Screenshot-2023-05-17-191112-768x275.png)

Binance Smart Chain and Ethereum, particularly after the introduction of Proof of Stake (PoS), are highly favored for their exceptional availability, approaching nearly 100%. This level of availability ensures a high degree of predictability in application performance.

On the other hand, Solana, while being one of the fastest networks, exhibits slightly lower availability at 97%. This level of availability is considered inadequate, even for centralized non-redundant systems such as a single-server website.

### Data Sets

The data for inter-block lags in seconds versus the block number are quieried from Bitquery datasets for 4 blockchains.

They are available in S3 public :

[Binance Smart Chain](https://blockchain-time-data.s3.amazonaws.com/bsc_block_time.csv.gz)

 [Ethereum Mainnet](https://blockchain-time-data.s3.amazonaws.com/ethereum_block_time.csv.gz) 

[Bitcoin](https://blockchain-time-data.s3.amazonaws.com/btc_block_time.csv.gz)

[Solana Mainnnet  
](https://blockchain-time-data.s3.amazonaws.com/solana_block_time.csv.gz)

#### Jupyter Notebook

Jupyter notebook is in the [github project](https://github.com/bitquery/blockchain-time.git). To run the code, you will need standard Jupyter labs installation, and download the datasets in data folder inside the prject

After that run

% jupyter-lab

and load notebook BlockhainTimes.ipynb]]></description>
        </item>
        <item>
            <title><![CDATA[The Ultimate Guide to NFT Analytics]]></title>
            <link>https://bitquery.io/blog/the-ultimate-guide-to-nft-analytics</link>
            <guid>https://bitquery.io/blog/the-ultimate-guide-to-nft-analytics</guid>
            <pubDate>Mon, 16 Mar 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[
The rise of NFTs has opened up a world of opportunities for creators, developers, and businesses. Recognizing the potential of NFTs, many individuals and companies have begun capitalizing on this trend by creating NFTs and developing innovative NFT-based solutions.

As the NFT market has grown, so has the demand for NFT analytics. NFT data providers can help users track the performance of NFT projects, identify trends in the NFT market, and make informed investment decisions.

## What if we could get all the data we need in one place?

![I eat data for breakfast](/blog/blockchain/the-ultimate-guide-to-nft-analytics/giphy-1-420x420.gif "I eat data for breakfast")

Bitquery is a blockchain data platform that provides NFT APIs as-a-Service with access to a wide range of NFT data, including sales data, ownership data, and transfer data. Bitquery’s NFT APIs can be used to track the performance of any NFT project, and identify trends in the NFT market. In this article, let’s focus on a breakdown of the analytics that are possible with the Bitquery NFT APIs.

Outsource your need to build a node and capture the data you need.

## 2023 NFT Market Overview

Before diving into the details of Bitquery’s NFT API, let’s take a brief look at the state of the NFT market in 2023. The trading volume of NFTs in the first quarter of the year experienced a decrease followed by a sharp increase. This fluctuation indicates a maturing market that is still finding its footing. 

You can also get trade count using this query and volume using this query.

![2023 NFT Market Overview](/blog/blockchain/the-ultimate-guide-to-nft-analytics/newplot-2.png "2023 NFT Market Overview")

## NFT Analytics for Traders and Collectors

When people search for NFT analytics, they are typically looking for information about the following:

### Ownership data: Who owns which NFTs?

One of the fundamental aspects of NFT analytics is understanding who owns which NFTs.  Who’s earning the big bucks in the NFT world? Who are the whales?

Bitquery provides an Ownership API that allows you to determine the ownership of a particular NFT. This information is valuable for identifying potential buyers or sellers in the market. Additionally, the ownership history of an NFT can reveal how many times it has changed hands, providing insights into its popularity and trading activity.

![2023 NFT Market Overview](/blog/blockchain/the-ultimate-guide-to-nft-analytics/download-1.png "2023 NFT Market Overview")

Track the NFT balance of addresses: By tracking the NFT balance of addresses, you can identify the addresses that hold the largest amounts of the NFTs like Cryptopunks This information can be used to identify which investors are most bullish on NFTs and which NFTs are most likely to appreciate in value.

### Transfer history: What is the transfer history of an NFT?

NFT transfer history can show you who has owned a particular NFT. This history encompasses various metrics, such as the types of wallets involved in the transfers. It reveals whether the token was transferred from a MetaMask wallet to a cold wallet, or if it was moved from an exchange to a cold wallet.

The transfer history of a block in the blockchain records the movements of NFTs within that specific block. It provides a chronological account of the transfers made within a given timeframe. 

### Trade history of a specific NFT trader: What are the trends and patterns in the NFT market?

It is no secret that millions of people are influenced by crypto influencers who go on supporting projects. Conducting thorough research requires understanding the trades of an NFT, collection, or trade history of a particular wallet. This includes determining the trades made, including NFT transactions, to verify if they have actually acquired a particular NFT and at what price it was purchased. Knowing the trade history of a wallet is crucial in answering these questions and making informed investment decisions

The NFT world is expanding, and the strategies to become make gains are getting innovative.

NFT sniping has become popular among traders seeking to acquire undervalued NFTs and resell them for a profit. Bitquery’s NFT APIs can assist traders in monitoring NFT marketplaces for newly listed items, price drops, or rare and valuable NFTs. By leveraging these tools, traders can gain a competitive edge and act swiftly to capitalize on profitable opportunities

Get NFT data in real-time: By subscribing to the latest NFT transfers, you can stay up-to-date on the latest NFT activity. This information can be used to identify which NFTs are most popular and which NFTs are seeing the most trading activity.

## NFT Marketplace Data

Here are some of the things you can do with Bitquery’s NFT API:

### Track the sales of NFTs:

Axie Infinity and Art Blocks became the focus of media houses as their sales rocketed. More and more investors are looking to see which NFTs can make the most returns. The NFT API allows you to track the sales of NFTs on a variety of Ethereum marketplaces. This information can be used to identify which NFTs are selling well and which ones are not.

### Track the trading volume of NFTs:

People’s opinions on NFT sales may vary, with some claiming they are “flatlining” while others argue they are growing. To get a comprehensive understanding of the situation, it is crucial to consider the full story. The NFT API also allows you to track the trading volume of NFTs on marketplaces like Opensea. This information can be used to identify which NFTs are in high demand and which ones are not.

### Track the floor prices of NFTs: 

The NFT API  also allows you to track the floor prices of NFTs. The floor price is the lowest price that an NFT is currently listed for sale. It shows the minimum value of an NFT collection or project and helps you find the lowest price on the market for the NFT you want.

## How to Analyze NFT Projects

Start by researching the project: Before you start analyzing any NFT project, it’s important to do your research and understand the project’s goals and objectives. This information can be found on the project’s website, social media channels, and whitepaper.

### Use Bitquery to track the project’s performance 

Once you have a good understanding of the project, you can use Bitquery to track its performance over time. This information can be used to identify trends and patterns that may indicate whether the project is likely to be successful.

### Use the project’s metadata: 

The NFT project’s metadata can provide you with valuable information about the project. It can include the project’s name, the project’s description, the project’s artwork, and other properties. It also includes how many NFTs are there in the collection.

![2023 NFT Market Overview](/blog/blockchain/the-ultimate-guide-to-nft-analytics/download-2.png "2023 NFT Market Overview")

Identify holders of a collection: By identifying holders of a NFT collection, you can identify the community that is supporting the project. What other tokens are these wallets holding? Are the influential people in the crypto community? Questions like these help you gauge the popularity of the project.]]></description>
        </item>
        <item>
            <title><![CDATA[Token Sales Anatomy]]></title>
            <link>https://bitquery.io/blog/token-sales-anatomy</link>
            <guid>https://bitquery.io/blog/token-sales-anatomy</guid>
            <pubDate>Mon, 16 Mar 2020 05:35:07 GMT</pubDate>
            <description><![CDATA[The question of how much money worth one or other cryptocurrency, arises in different aspects. One way to answer is to estimate the amount of money people initially invested in cryptocurrency during the ICO. In some cases, this amount can be validated just by blockchain data, in other cases it cant. Let’s dig deeper into how ICO mechanic works and how it can be analyzed _post factum_ based on the trusted data source — blockchain itself.


### Initial Token Offering

When you issue your own token on blockchain, or plan to create own crypto coin, a big question appears, of how to distribute it first. If you just own it alone, there is no much value in such a token. There are a number of opportunities, and the new projects select from options:

1.  Issue the tokens and sell them to others during Initial token (coin) offering in ITO / ICO process. This is basically an initial exchange between your brand new token and some existing asset, typically existing cryptocurrency;
2.  Distribute token to people, that most need it, and may give it some value by generating demand and supply. An interesting scenario is when the token gets the value straight from the fact that some community owns it.

This investigation mostly concern the first case. Sometimes the cases mixed, with some tokens are sold and another part is distributed.

Successful ICO creates a big boost for the project, as it supplies the initial investment, and simultaneously generates the audience and community of supporters around the project.

> **Also Read:  [Do not be Fooled by Crypto Quiz Games!](https://bitquery.io/blog/crypto-quiz-games-or-scams)**

### Basic ICO Mechanics

So how it actually happens? In a **decentralized** world, there is no central authority, which sells tokens and ensures the correctness of conditions. Instead, there is a **smart contract**, provisioning the token sales.The simple example of how it actually works is shown on the diagram_:_

![Basic ICO Mechanics](https://miro.medium.com/max/705/1*lZsfVV17MEQ9V8gftFXZyg.png)

_Source:_ [_bloxy.info_](https://bloxy.info/tx/0x0000a869f651ad0d9c4fa9f19fe00c2d9fa14b3319a734983bf22dc3f0cf8923)

[StatusCrowdsale](https://bloxy.info/address/0x55d34b686aa8c04921397c5807db9ecedba00a4c) smart contract doing here all the job of selling token to the buyer, exchanging 7 ETH to 70K SNT tokens. The tokens are ‘minted’, similar to the cryptocurrency mining process, from the system (zero) address in the system. Though the smart contract for token sale can be quite complex, , the easy lines of code ensures this process:

// calculate how much token to give, based on exchange rate and  
// amount of ETH transfered ( contained in _toFund variable )  
uint256 tokensGenerated = _toFund.mul(exchangeRate);// create ( mint ) new tokens  
assert(SNT.generateTokens(_th, tokensGenerated));// how tokens are generated  
function generateTokens(address _owner, uint _amount  
) onlyController returns (bool) {  
   ...  
// Update balances and generate event on transfer tokens from system // (zero) address to token buyer    updateValueAtNow(balances[_owner], previousBalanceTo + _amount);  
    Transfer(0, _owner, _amount);  
     
}

If we even do not know the smart contract source code or logic, we still have a knowledge based on the transaction diagram above, which is built completely from the on-chain data:

1.  Smart contract exchanged ETH to SNT token in one transaction
2.  The same address (token buyer) sent ETH and got SNT token
3.  SNT token originated from zero system address, which in common means it was minted

Take a look at another transaction for the same smart contract, happened later:

![transaction](https://miro.medium.com/max/552/1*7ncdw3K4768gaeOIq418QQ.png)

_Source:_ [_bloxy.info_](https://bloxy.info/tx/0x5b5511dc93c06734cd4046f69997fb98bcc582f789be5c55c095e082c47566b0)

Apparently, now the crowd sale smart contract rules did not allow to accept the ETH sent for token sale, probably because of hard cap approached. However, the ETH were accepted and sent back to the sender. An important conclusion is that **you cant rely on ETH amounts**, sent to contracts, or other addresses, as the base for the ICO funds collected.

> **Also Read:  [FairWin Scam Smart Contract Coinpath Investigation](https://bitquery.io/blog/fairwin-scam-smart-contract-coinpath-investigation)**

There are variations of the scheme, where tokens are pre-mined and sent from a “token wallet”. First, the token wallet receives of the total amount of tokens:

![token wallet](https://miro.medium.com/max/482/1*WOTOqSl936WHHyyDl6rlmA.png)

_Source:_ [_bloxy.info_](https://bloxy.info/tx/0xa9b3ebc3d8e52509425e372a4a0c7eddd435e7559377c26c85da2d1ac8a28138)

and after sending token from this wallet ([0x778…](https://bloxy.info/address/0x77856d50941e1b5b29e291b083740e05e800883a)):

![token](https://miro.medium.com/max/679/1*545mVjRRUX_SFaTwI5OP1Q.png)

_Source:_ [_bloxy.info_](https://bloxy.info/tx/0x9fd32b40af6a04b02f0254460d0f105ab373c1ef150ef5303bfe00d32025b0c7)

Variation of this scheme is when token is sent from the same address, as ETH is transferred to:

![scheme](https://miro.medium.com/max/555/1*JYJ8-6_tIJ-f1vATFO9Q9g.png)

_Source:_ [_bloxy.info_](https://bloxy.info/tx/0x645b7756dbb48c83eee984ca57c5d940d9293860fa6781d96abb6e1490a4ad01)

… or ETH sent directly to the token contract, as in this example:

![token contract](https://miro.medium.com/max/592/1*0KjO9JlJu-3pfffRdXhQzg.png)

_Source:_ [_bloxy.info_](https://bloxy.info/tx/0x3568e210799b4becd0092f6fd95719198458db393109fbfc3a26a0a1a9b92e1a)

### Transaction-Based Analysis

Knowing the structure of the ICO transaction, we now can extract the data from the blockchain data. We are selecting the transactions from the blockchain following the criteria:

1.  Token buyer initiates the transaction with a smart contract
2.  Smart contract sends token back to the token buyer in exchange to ETH

There are additional rules, required to filter out some other cases, similar to the ICO, but they are not:

1.  no other currencies involved
2.  no DEX ( decentralized exchanges) smart contracts involved
3.  tokens sender did not receive tokens in exchange to ETH

The last point here requires some explanation. As we are blindly looking at blockchain transactions, sometimes is very hard to classify, if the token sales is initial or not.

### Secondary Token Sales

Look this example, which is extremely similar to an ICO transaction, except that it is actually not:

![Secondary Token Sales](https://miro.medium.com/max/676/1*1k2mB7kQ8e0CjVrckR6iZw.png)

_Source:_ [_bloxy.info_](https://bloxy.info/tx/0x1521ee8f826c642c802b87dbdbb7a7ee2b517b6398dc2b6b5df4d83d20f22283)

The only difference between ICO transaction for GNT token lies **outside** this transaction. Tokens, that are traded by this smart contracts, are on secondary market, they already were bought in ICO process, and now traded again. Somebody created a smart contract to automate this process.

The only way to filter out these transactions from calculating token sales values is to track the source of tokens, being sold in this transaction. To do that, we have to analyze the graph of token transfers, which preceded this transaction:

![graph](https://miro.medium.com/max/2007/1*4Hn_p5GU0hSstqYxwJp3bw.png)

_Source:_ [_bloxy.info_](https://bloxy.info/graphs/0xaaadd77341055d1eed488f184b165ec0e555f6af)

As you clearly see from this diagram, GNT tokens were initially bought on ICO for 11,5k ETH by address [0xaaad](https://bloxy.info/graphs/0xaaadd77341055d1eed488f184b165ec0e555f6af).. , transferred to the [smart contract](https://bloxy.info/address/0xa364b925adab4de983e6770277ee13570b573e3a) of interest, creating own trade, ultimately gaining 16.5k ETH from this secondary sale. Not a bad business!

### Which Scheme is More Popular?

Now when we see the most common schemes, we can take statistics over the whole blockchain and summarize the transactions of each one. The resulting shows the number of ICOs and corresponding ETH amounts by years:

![Scheme](https://miro.medium.com/max/895/1*AdFsfrJrnlRpDJ-CmBgChg.png)

The leader in popularity is “No minting”, “separate token sale contract”. The least popular combination is token smart contract, accepting ETH, with minting.

### Money Now, Tokens Later

ICO Smart contract can accept ETH, register the amount of tokens due to transfer to the buyer, and distribute them later. Example of this mechanics is shown below:

![Money Now, Tokens Later](https://miro.medium.com/max/676/1*jX_hxAkMCQMNbft7isDJVA.png)

_Source:_ [_bloxy.info_](https://bloxy.info/tx/0xa11be40bbafa1e71b242bd0d0c543b37270d646479a288b74e9f696654cdd238)

Smart contract actually does not transfer any tokens on the contract, just updating the due balances and fire an event:

// update circulating supply & the ledger address for the customer  
**tokenBalanceLedger_[msg.sender] = SafeMath.add(tokenBalanceLedger_[msg.sender], _amountOfTokens);**  
  
// Tells the contract that the buyer doesn't deserve dividends for the tokens before they owned them;  
//really i know you think you do but you don't  
int256 _updatedPayouts = (int256) ((profitPerShare_ * _amountOfTokens) - _fee);  
payoutsTo_[msg.sender] += _updatedPayouts;  
  
// fire event  
**onTokenPurchase(msg.sender, _incomingEthereum, _amountOfTokens, _referredBy);**

_Source:_ [_etherscan_](https://etherscan.io/address/0x51c46c33064a9d7171dbdbfc65c3bf2d2ef688a4#code)

This type of ICO contracts typically is a part of token contract. Otherwise it would be hard to bind the separate contract to the token distribution in a clear way.

To find the ICOs by this scheme, we have to find multiple ETH transfers to ERC20 tokens smart contracts.

The statistics of this kind of ICOs by years are:

![statistics](https://miro.medium.com/max/892/1*_ob6utvvAArtYl2d607CSQ.png)

Interesting, that by ICO count this type of mechanism is not as popular, as “in-transaction” sale, but by the collected ETH amount it far exceeds. It can be explained by couple of the very large ICO: [TheDAO](https://bloxy.info/address/0xbb9bc244d798123fde783fcc1c72d3bb8c189413) in 2016 and [EOS](https://bloxy.info/address/0x86fa049857e0209aa7d9e616f7eb3b3b78ecfdb0) in 2017-2018, which used this scheme.

### Money Now, Tokens Not Sure

The last in all senses way of doing ICO is taking money on some wallet, with manual token distribution later.

People sending ETH (or other crypto currency) to some designated address, as in this example:

![Money Now, Tokens Not Sure](https://miro.medium.com/max/877/1*BHdPmmcU46EjSIfPFJKYcg.png)

Source: [bloxy.info](https://bloxy.info/graphs/0xddfe42ddb9c406b9143d85f294583e0f1c00c223)

There is no relation in the blockchain between the future distribution of tokens with the collection of ETH on this address.

### Conclusions

1.  It is possible to identify transactions, related to initial token sales (ICO) just looking in the blockchain data;
2.  Most of ICOs follow the scheme, where tokens are distributed automatically by the separate “token sale” smart contract, in the same transaction as ETH payment;
3.  There are multiple variations of the scheme, where tokens are distributed by minting or by transferring pre-minted tokens, in the same, or separate transaction on blockchain.
4.  There are ICOs where the amount, in full or partially, may not be derived from the blockchain data. Most of them do not really use the decentralized nature of the blockchain and can be executed on any other payment mechanism.

-   [Bitcoin and Ethereum Balances and its Entropy](https://bitquery.io/blog/bitcoin-and-ethereum-balances-and-its-entropy)
-   [MakerDAO Tokens Explained: DAI, WETH, PETH, SIN, MKR](https://bitquery.io/blog/makerdao-tokens-explained)]]></description>
        </item>
    </channel>
</rss>