How To Compare Layer 2 Transaction Count Over Time
Compare Layer 2 transaction count over time with growthepie and the public API.
Explore It Live
API Paths
Example Request
curl -s https://api.growthepie.com/v1/export/txcount.jsonReal Task Example
import pandas as pd
import requests
rows = requests.get("https://api.growthepie.com/v1/export/txcount.json", timeout=30).json()
df = pd.DataFrame(rows)
df["date"] = pd.to_datetime(df["date"])
chains = ["arbitrum", "base", "optimism"]
comparison = df[df["origin_key"].isin(chains)].pivot_table(
index="date",
columns="origin_key",
values="value",
aggfunc="sum",
).sort_index()
print(comparison.tail())Caveats
Related Pages
Last updated
