PancakeSwap
Launch App
English
English
  • Welcome to PancakeSwap
    • Product Overview
    • ✨How-to Guides
      • Get Started (BSC)
        • Create a Wallet
        • Get BEP20 Tokens
        • Using PancakeSwap without Centralized Exchanges
        • Connect Your Wallet to PancakeSwap
      • Get Started (Aptos)
        • Create a Wallet
        • Get Aptos Coins
        • CAKE Bridging Guide
        • Connect Your Wallet to PancakeSwap
        • Aptos FAQ
      • V3/V2 Migration
        • How to migrate
        • How v3 APR is calculated
        • FAQ
        • V2 Migration
          • Migrate Your Stakings
          • MasterChef v2
            • List of Farms
          • CAKE Syrup Pool
    • 🗺️Roadmap
    • veCAKE Sunset
      • Staked Cake Redemption
      • 🔷[Archive] veCAKE
        • What is veCAKE?
        • How to get veCAKE?
        • Migrate from CAKE Pool
        • veCAKE Managers
        • Bridge your veCAKE
        • Earn CAKE Weekly
          • FAQ
    • 📈Analytics (Info Page)
    • ✅Audits
    • 🤙Contact Us
      • Social Accounts
      • Telegram & Discord Communities
      • 💼Business Partnerships
        • ⛽veCAKE / Gauges
        • 🧑‍🌾Initial Farm Offerings - IFOs
        • 🥞Syrup Pools and Farms
        • 🖼️NFT Marketplace
        • ❓Commonly Asked Business Partnerships Questions
      • Ambassador Program
        • What can you do as an Ambassador?
        • Benefits of a PancakeSwap Ambassador
        • Want to be an Ambassador?
        • ❓ FAQs Page
      • General FAQ
        • I need help
        • Troubleshooting Errors
        • What is an Approval Transaction?
        • Fixing Stuck Pending Transactions on MetaMask
    • 👨‍👨‍👦About Us
      • Team
        • The Kitchen Team
        • Become a Chef
          • Brand / Graphics Designer
          • Motion / Interaction Designer
          • Social Media & Content Manager
          • Developer Relations Manager
          • Product Designer (UX/I)
          • Business Development Manager
          • Senior Backend Engineer
      • Brand & Logos
  • 👴Archive
    • 📂Legacy Products
      • 🖼️[Archived] NFT Marketplace
      • 🎮[Archived] Gaming Platform
        • 📒Brand Kit
        • 🎓Pancake Mayor
        • 🛡️Pancake Protectors
          • FAQ
      • 🍯[Archived] Pottery
        • How to Play Pottery
        • Pottery FAQ
      • 🧈[Archived] Trading Reward
        • How to Participate
          • Top Traders Campaign
          • CAKE Stakers Campaign
        • FAQ
      • 🤝[Archived] Simple Staking
        • How to start Simple Staking
        • FAQ
        • Terms & Conditions
      • 🎯[Archived] PancakeSwap Quest
        • Getting Started
        • How to Join and Complete a Quest
        • Rewards
      • 💧[Archived] Liquid Staking Integration
        • How To Liquid Stake
        • WBETH
          • WBETH FAQ
        • SnBNB
          • SnBNB FAQ
      • 💸[Archived] Options
        • Options Primer
        • CLAMM Options
        • Options FAQ
      • [Archived] CAKE Syrup Pool
        • How to use the Flexible Staking option
        • How to use the Fixed-Term Staking option
    • Old Tokenomics
      • CAKE Tokenomics v1
      • Controlling CAKE supply v1
    • How to Use Farms with BscScan
    • [Archived] Affiliate Program
      • Dashboard & Link
      • Commission Structure and Payment
      • Program Rules & Guidelines
      • Terms & Conditions
  • Trade
    • 🔄Swap
      • Token Swaps
      • How to Trade
      • Fees and Routes
      • Market Maker Integration
      • Smart Router (V2)
        • How to trade using Smart Router
    • ♾️PancakeSwap Infinity
      • Key Features
      • Hooks
        • Dynamic Fee Hook
      • Pool Types
      • Farms
    • 🎯Limit Orders and Twap
      • How to use Limit Orders
      • How to use TWAP
    • 📈Perpetual Trading
      • What is Perpetual Trading?
      • Perpetual Trading V2
        • How can I use it?
        • Dumb Mode
          • Dumb Mode Guide
        • Degen Mode
          • Degen Mode Dynamic Fee
        • MADBTCUSD
          • MADBTCUSD FAQ
        • Perpetuals V2 Glossary
        • Forex
        • Perpetual Trading FAQ
          • Arbitrum
            • ALP Syrup Pool (Arbitrum)
              • ALP Buying & Selling Fees
        • Trading Rewards Program
          • Arbitrum
        • Supported Chains, Modes & Markets
      • Perpetual Trading V1
        • Perpetuals V1 Glossary
        • How can I use it?
        • V1 Perpetual Trading FAQ
    • 🏦Stableswap
      • How to StableSwap
    • 💳Buy Crypto
    • ❓Trading FAQ
      • Swap FAQ
      • v4 FAQ
      • Limit Orders and TWAP FAQ
  • Trading Tools
    • 🛡️PancakeSwap MEV Guard
    • PancakeSwap Auto Slippage
      • How to Set Slippage on PancakeSwap
    • 🔔Notifications
    • ❓Trading Tools FAQ
      • MEV Guard FAQ
  • Bridge
    • 🌉Bridging
      • Between EVMs
      • Between EVM and Aptos
      • Wormhole Bridge Guide
    • ❓Bridging FAQ
      • Wormhole Bridge FAQ
  • Earn
    • 🌊Liquidity Pools
      • How to Add/Remove Liquidity
      • ⛏️Pancake Picks
      • Zap
        • Zap (V2)
    • 🚜Yield Farming
      • How to Use Farms
        • How to Use Farms (Legacy)
      • APR/ROI/IL Calculator
      • Farming on Aptos
        • FAQ
      • Crosschain Farming
        • FAQ
    • 🥩Cake Staking
      • 🍯Syrup Pools - Stake CAKE
        • Syrup Pools
    • 🛍️IFO (Initial Farm Offering)
      • How to Participate in an IFO
      • How to Participate in CrossChain IFOs
      • FAQ
      • NFT Profile System
        • How to Set Up an NFT Profile
        • Teams
      • Contract Details
    • ❓Earn FAQ
      • Cake Staking FAQ
        • Syrup Pool FAQ & Troubleshooting
  • Play
    • 🔮Prediction
      • How to Use Prediction
      • AI Prediction
      • Prediction FAQ
      • Prediction Troubleshooting
      • Prediction Mini App
    • 🎟️Lottery
      • How to Play Lottery
      • Lottery FAQ
  • ❓Play FAQ
  • Protocol
    • 🍰CAKE Tokenomics
    • 📔Governance
      • How to Vote
        • How to Vote with SafePal Wallet
    • 💻Developers
      • Developer Docs
      • Contributing
        • Codebase Overview
Powered by GitBook
On this page

Was this helpful?

  1. To Delete
  2. API

Subgraph

Indexing data from PancakeSwap contracts

Last updated 1 year ago

Was this helpful?

Please refer to Github repo for the latest version

Code:

  1. : Tracks all blocks on Binance Smart Chain.

    • BSC

    • zkSync

    • zkSync testnet

    • Polygon zkEVM

    • opBNB

  2. : Tracks all PancakeSwap V2 Exchange data with price, volume, liquidity, ...

    • BSC

    • ETH

    • Polygon zkEVM

    • Polygon zkEVM testnet

    • zkSync

    • zkSync testnet

    • Linea

    • Base

    • opBNB

  3. : Tracks all PancakeSwap Farm Auctions with auctions and bids.

  4. : Tracks all PancakeSwap Lottery with rounds, draws and tickets.

  5. : Tracks all PancakeSwap NFT Market for ERC-721.

  6. : Tracks all PancakeSwap Pairs and Tokens.

  7. : Tracks all Pancake Squad metrics with Owners, Tokens (including metadata), and Transactions.

  8. : Tracks all PancakeSwap Prediction (v1) with market, rounds, and bets.

  9. : Tracks all PancakeSwap Prediction (v2) with market, rounds, and bets.

  10. : Tracks all PancakeSwap Profile with teams, users, points and campaigns.

  11. : Tracks all PancakeSwap SmartChef (a.k.a. Syrup Pools) with tokens and rewards.

  12. : Tracks all PancakeSwap Timelock queued, executed, and cancelled transactions.

  13. : Tracks all metrics for the Easter Battle (April 07—14, 2021).

  14. : Tracks data for MasterChefV2.

  15. MasterChef (v3): Tracks data for MasterChefV3.

    • BSC

    • BSC testnet

    • ETH

    • GOR

    • Polygon zkEVM

    • Polygon zkEVM testnet

  16. Exchange (v3): Tracks all PancakeSwap V3 Exchange data with price, volume, liquidity

    • BSC

    • BSC testnet

    • ETH

    • GOR

    • Polygon zkEVM

    • Polygon zkEVM testnet

    • zkSync

    • zkSync testnet

    • Linea

    • Base

    • opBNB

  17. StableSwap

    • BSC

https://github.com/pancakeswap/pancake-subgraph
Blocks
https://thegraph.com/legacy-explorer/subgraph/pancakeswap/blocks
https://api.studio.thegraph.com/query/45376/blocks-zksync/version/latest
https://api.studio.thegraph.com/query/45376/blocks-zksync-testnet/version/latest
https://api.studio.thegraph.com/query/45376/polygon-zkevm-block/version/latest
https://opbnb-mainnet-graph.nodereal.io/subgraphs/name/pancakeswap/blocks
Exchange V2
https://nodereal.io/meganode/api-marketplace/pancakeswap-graphql
https://api.thegraph.com/subgraphs/name/pancakeswap/exhange-eth
https://api.studio.thegraph.com/query/45376/exchange-v2-polygon-zkevm/version/latest
https://api.studio.thegraph.com/query/45376/exchange-v2-polygon-zkevm-test/version/latest
https://api.studio.thegraph.com/query/45376/exchange-v2-zksync/version/latest
https://api.studio.thegraph.com/query/45376/exchange-v2-zksync-testnet/version/latest
https://graph-query.linea.build/subgraphs/name/pancakeswap/exhange-v2
https://api.studio.thegraph.com/query/45376/exchange-v2-base/version/latest
https://opbnb-mainnet-graph.nodereal.io/subgraphs/name/pancakeswap/exchange-v2
Farm Auctions
Lottery
NFT Market (v1)
Pairs
Pancake Squad
Prediction (v1)
Prediction (v2)
Profile
SmartChef
Timelock
Trading Competition (v1)
MasterChef (v2)
https://thegraph.com/hosted-service/subgraph/pancakeswap/masterchef-v3-bsc
https://thegraph.com/hosted-service/subgraph/pancakeswap/masterchef-v3-chapel
https://thegraph.com/hosted-service/subgraph/pancakeswap/masterchef-v3-eth
https://thegraph.com/hosted-service/subgraph/pancakeswap/masterchef-v3-goerli
https://api.studio.thegraph.com/query/45376/masterchef-v3-polygon-zkevm/version/latest
https://api.studio.thegraph.com/query/45376/masterchef-v3-zkevm-testnet/version/latest
https://thegraph.com/hosted-service/subgraph/pancakeswap/exchange-v3-bsc
https://thegraph.com/hosted-service/subgraph/pancakeswap/exchange-v3-chapel
https://thegraph.com/hosted-service/subgraph/pancakeswap/exchange-v3-eth
https://thegraph.com/hosted-service/subgraph/pancakeswap/exchange-v3-goerli
https://api.studio.thegraph.com/query/45376/exchange-v3-polygon-zkevm/version/latest
https://api.studio.thegraph.com/query/45376/exchange-v3-polygon-zkevm-test/version/latest
https://api.studio.thegraph.com/query/45376/exchange-v3-zksync/version/latest
https://api.studio.thegraph.com/query/45376/exchange-v3-zksync-testnet/version/latest
https://graph-query.linea.build/subgraphs/name/pancakeswap/exchange-v3-linea
https://api.studio.thegraph.com/query/45376/exchange-v3-base/version/latest
https://opbnb-mainnet-graph.nodereal.io/subgraphs/name/pancakeswap/exchange-v3
https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-stableswap