Skip to main content

BSC API Documentation

In this section we will see how to fetch data on different tokens, transactions, DEXs like Uniswap, Pancakeswap, Four Meme etc via APIs and Streams.

If you need help getting data on Binance Smart Chain,reach out to support

What is BSC API?​

Bitquery BSC APIs help you fetch onchain data by writing a graphQL query.

What are capabilities of Bitquery BSC API?​

Bitquery BSC APIs are very flexible, you can fetch trade, transaction, balance information for a specific wallet and join with other information.

Difference between BSC RPC, Bitquery BSC API and Bitquery Kafka Stream?​

BSC RPCBitquery BSC APIBitquery Kafka Stream
JSON-RPC endpoint exposing raw EVM on-chain state and transactionsGraphQL endpoint over pre-indexed, parsed BSC chain data (token transfers, DEX trades, logs, calls, etc.)Provides fully managed Kafka topics (bsc.dextrades.proto, bsc.tokens.proto, bsc.transactions.proto)
No built-in history or analyticsβ€”any indexing/aggregation you build or outsourceHistorical data, joins, aggregations & real-time subscriptionsDelivers pre-parsed, enriched Protocol-Buffers events (DEX trades, token transfers and transactions)
Ideal for submitting transactionsGreat for real-time data and historical backtesting without running your own indexerGreat for Enterprise usage with built-in replication/failover and no node ops or custom parsing needed

Read more about Kafka streams here and contact sales via Telegram or form for a Trial.

Does Bitquery support BSC Websocket and BSC Webhooks?​

Bitquery supports websocket and webhooks, you can convert most of the graphQL APIs into graphQL streams by changing the word query to subscription. You can monitor this data via a websocket. More code samples available here

BSC DEX APIs​

Other BSC APIs​

Videos​

Four Meme | How to Get Top Traders of a Token on BSC Four Meme DEX​

Track Newly Created Tokens and Liquidity Pools on BSC​

Video Tutorial on Getting Real Time BSC DEXTrades​

Video Tutorial on BSC Protobuf Streams | Building BSC Sniper Trading Bot Using Bitquery Protobuf Kafka Streams​