BNB Smart Chain API
The Crypto APIs BNB Smart Chain API, part of the Blockchain API, lets you read balances, token transfers and blocks on BNB Smart Chain and send transactions without running a node. One API key covers mainnet and testnet. Webhooks tell your server when a payment confirms, and we never hold your private keys.
What can you do with the BNB Smart Chain API?
Read balances and history
Confirmed balances and transactions for any BNB Smart Chain address, and blocks.
Work with xPubs
Derive addresses and sync balances from an extended public key (xPub).
Estimate fees
Fee recommendations for slow, standard and fast confirmation on BNB Smart Chain.
Prepare and broadcast
We build the unsigned transaction. You sign it, and we send it to the network.
Get webhooks
We call your URL when coins arrive at an address and when the transaction confirms.
Same shape on 35+ networks
Swap binance-smart-chain for another chain in the path, such as Ethereum or Polygon.
How do I get the latest BNB Smart Chain block?
Send one GET request with your API key; the same request works on testnet when you replace mainnet with testnet in the path.
- Base URL
https://rest.cryptoapis.io - Auth: the X-API-Key header
- JSON responses, same shape on every chain
curl https://rest.cryptoapis.io/blocks/evm/binance-smart-chain/mainnet/latest/details \ -H "X-API-Key: YOUR_API_KEY"
const res = await fetch( "https://rest.cryptoapis.io/blocks/evm/binance-smart-chain/mainnet/latest/details", { headers: { "X-API-Key": process.env.CRYPTOAPIS_KEY } }, ); const { data } = await res.json(); console.log(data.item);
import os, requests r = requests.get( "https://rest.cryptoapis.io/blocks/evm/binance-smart-chain/mainnet/latest/details", headers={"X-API-Key": os.environ["CRYPTOAPIS_KEY"]}, ) print(r.json()["data"]["item"])
{
"height": 234324,
"hash": "0x6b1fdd6357845016fb238d1bd58992a01b01c94e668f55e9502d65f0a50ac021",
"transactionsCount": 23432,
"timestamp": 1681893875
}
Which BNB Smart Chain endpoints are available?
The main calls. Every path takes the network: mainnet or testnet.
/addresses-latest/evm/binance-smart-chain/mainnet/{address}/transactions/addresses-latest/evm/binance-smart-chain/mainnet/{address}/tokens-transfers/utils/binance-smart-chain/mainnet/xpubs/{extendedPublicKey}/derive-addresses/prepare-transactions/evm/binance-smart-chain/mainnet/native-coins/blockchain-events/binance-smart-chain/mainnet/address-coins-transactions-confirmedHow do I send a BNB Smart Chain transaction without giving up my keys?
Crypto APIs never holds your private keys. You keep signing; we do the rest.
- Step 1 Derive Get BNB Smart Chain addresses from your xPub.
- Step 2 Prepare We build the unsigned transaction with the fee set.
- Step 3 Sign locally You sign on your own servers. Keys never leave.
- Step 4 Broadcast We push the signed transaction to the BNB Smart Chain network.
- Step 5 Confirm A webhook tells you when it confirms.
BNB Smart Chain API vs BNB Smart Chain RPC: which do I need?
Most apps start with the API. Use RPC when you need a method the node exposes directly.
BNB Smart Chain RPC
Need raw node calls (JSON-RPC)? NodeGrid RPC will give you one endpoint with automatic failover between partner providers. Until then, JSON-RPC access is part of the Blockchain API.
Explore NodeGrid RPCCheck a BNB Smart Chain address for AML risk
A free risk band and sanctions check for any BNB Smart Chain address is coming soon. Today, screen addresses with the AML API.
Coming soonBSC - a flexible blockchain
BNB Smart Chain (BSC) incorporates dual-chain architecture on which users can build decentralized apps and digital assets easily. BNB Smart Chain has smart contract functionality and is compatible with BNB Beacon Chain (formerly Binance Chain) and the Ethereum Virtual Machine (EVM).
BSC has the perfect environment for developing high-performance decentralized applications. Its user-friendly design extends the functionality of the BNB Beacon Chain while facilitating fast and decentralized trading.
Other EVM chains, same request shape
BNB Smart Chain API questions
Is there a free BNB Smart Chain API?
You can try it free for 14 days. The Blockchain API free trial covers BNB Smart Chain and every feature, with no card. It ends after 14 days or when its credits run out; after that, calls need a subscription, listed on the pricing page.
How do I get the balance of a BNB Smart Chain address?
Call the address balance endpoint with the address; it returns the confirmed BNB balance. Token balances live in the token contracts, so list the address's token transfers to see them.
How do I broadcast a BNB Smart Chain transaction?
Sign the transaction on your own server, then send the signed raw transaction to the broadcast endpoint, authenticated with your API key, and Crypto APIs pushes it to the BNB Smart Chain network and returns the transaction ID. We can prepare the unsigned transaction for you first.
Do you support BNB Smart Chain testnet?
Yes. Every BNB Smart Chain endpoint works on mainnet and testnet. Change mainnet to testnet in the path; the same API key works on both.
What makes BNB Smart Chain different to work with?
It is an account-model EVM chain — every address has a single balance and a nonce. Tokens live in their own contracts rather than in the account balance, so reading them means calling the token contract; and every transaction needs the account's next nonce, which the same API returns.
How do I know when a BNB Smart Chain transaction is confirmed?
Create a webhook subscription for the address. Crypto APIs calls your URL when a transaction to or from it confirms on BNB Smart Chain.
Start building on BNB Smart Chain today
14-day free trial, mainnet included. No card needed.