Binance Smart Chain
Introduction
Binance Smart Chain (BSC) is best described as a blockchain that runs in parallel to the Binance Chain. Unlike Binance Chain, BSC boasts smart contract functionality and compatibility with the Ethereum Virtual Machine (EVM). The design goal here was to leave the high throughput of Binance Chain intact while introducing smart contracts into its ecosystem.
Quick facts
Property | Value |
---|---|
BSC Mainnet chainId | 56 |
BSC Testnet chainId | 97 |
BSC Blockchain Explorer | https://bscscan.com/ |
Block time | ~5 seconds |
Supported endpoints
chain_id
and wallet address
, return current token balances along with their spot prices. This endpoint supports a variety of token standards like ERC20, ERC721 and ERC1155. As a special case, network native tokens like ETH on Ethereum are also returned even though it’s not a token contract.
chain_id
and wallet address
, return all transactions along with their decoded log events. This endpoint does a deep-crawl of the blockchain to retrieve all kinds of transactions that references the address
including indexed topics within the event logs.
Go to Covalent’s API Reference
Appendix
BNB Gas token
The BNB token is the native token of the BSC network. This is similar to Ether in Ethereum. To interact with the BSC network, BNB tokens are required to pay as gas fees. The Covalent API response returns gas_*
fields in fiat units.
Token mapping
Covalent maintains an on-chain real-time mapping of token addresses between Ethereum mainnet and the BSC chain. These addresses are used to reverse-lookup prices on BSC and also to return the right token logo urls.
Some example of mapped tokens:
Token | Ethereum mainnet | BSC mainnet |
---|---|---|
USDT | 0xdac17f958d2ee523a2206206994597c13d831ec7 | 0x55d398326f99059ff775485246999027b3197955 |
BAND | 0xba11d00c5f74255f56a5e366f4f77f5a186d7f55 | 0xad6caeb32cd2c308980a548bd0bc5aa4306c6c18 |
Token prices
For tokens that have a mapping back to Ethereum mainnet, Covalent is able to return the mapped prices.
Infrastructure Providers
The following provide infrastructure for this blockchain network: