BNB Smart Chain (BSC)

GetBlock provides fast and reliable access to BNB Smart Chain nodes via JSON-RPC API. Connect to the BSC network without running your own infrastructure.

BNB Smart Chain (BSC) is a high-performance, EVM-compatible blockchain launched by Binance in September 2020. Designed to run alongside BNB Beacon Chain, BSC enables the creation and deployment of smart contracts and decentralized applications (DApps) with low transaction fees and fast block times. The network uses Proof of Staked Authority (PoSA) consensus, combining delegated Proof of Stake and Proof of Authority for high throughput and decentralization.

Key Features

  • EVM Compatibility: Full Ethereum Virtual Machine compatibility for seamless dApp migration

  • Fast Block Times: ~3 second block production with ~6 second finality

  • Low Transaction Fees: Average fees around $0.10, significantly lower than Ethereum

  • Proof of Staked Authority (PoSA): Hybrid consensus combining PoS and PoA

  • 55 Validators: Decentralized validator set with staking-based governance

  • BNB Token: Native token for gas fees, staking, and governance (18 decimals)

  • Rich Ecosystem: 1,500+ DApps including PancakeSwap, Venus, and BakerySwap

  • Cross-Chain Compatibility: Interoperability with BNB Beacon Chain

  • Developer-Friendly: Compatible with MetaMask, Truffle, Remix, and other Ethereum tools

circle-info

TECHNICAL DISCLAIMER: AUTHORITATIVE JSON-RPC API SPECIFICATION.

GetBlock's RPC API reference documentation is provided exclusively for informational purposes and to optimize the developer experience. The canonical and normative specification for Ethereum Virtual Machine (EVM) JSON-RPC methods is solely maintained and published through the official Ethereum Foundation documentation portal at ethereum.orgarrow-up-right. This resource constitutes the sole authoritative reference implementation of the JSON-RPC 2.0 protocol interface across EVM-compatible execution clients.

Network Information

Property
Value

Network Name

BNB Smart Chain Mainnet

Chain ID

56

Native Currency

BNB

Decimals

18

Block Time

~3 seconds

Consensus

Proof of Staked Authority (PoSA)

EVM Compatible

Yes

Base URL

Supported Networks

Network
Chain ID
JSON-RPC
WSS
GraphQL
MEV protected (WebSocket)
MEV protected (JSON-RPC)
Frankfurt, Germany
New York, USA
Singapore, Singapore

Mainnet

56

Testnet

97

Quickstart

1

Setup project

Create and initialize a new project:

2

Install Axios

3

Create file

Create a new file named index.js. This is where you will make your first call.

4

Set ES module type

Set the ES module "type": "module" in your package.json.

5

Add code

Add the following code to index.js:

Replace <ACCESS-TOKEN> with your actual access token from GetBlock.

6

Run the script

Expected output (example):

Available API Methods

Transaction Methods

Method
Description

eth_sendRawTransaction

Submits a signed transaction

eth_sendTransaction

Sends a transaction (requires unlocked account)

eth_getTransactionByHash

Returns transaction by hash

eth_getTransactionByBlockHashAndIndex

Returns transaction by block hash and index

eth_getTransactionByBlockNumberAndIndex

Returns transaction by block number and index

eth_getTransactionCount

Returns the transaction count (nonce)

eth_getTransactionReceipt

Returns the receipt of a transaction

Block Methods

Method
Description

eth_blockNumber

Returns the current block number

eth_getBlockTransactionCountByHash

Returns transaction count by block hash

eth_getBlockTransactionCountByNumber

Returns transaction count by block number

eth_getUncleByBlockHashAndIndex

Returns uncle by block hash and index

eth_getUncleByBlockNumberAndIndex

Returns uncle by block number and index

eth_getUncleCountByBlockHash

Returns uncle count by block hash

eth_getUncleCountByBlockNumber

Returns uncle count by block number

Account/State Methods

Method
Description

eth_accounts

Returns addresses owned by client

eth_getBalance

Returns the BNB balance of an address

eth_getStorageAt

Returns the value at a storage position

eth_getCode

Returns the code at an address

eth_getProof

Returns account and storage proof

eth_call

Executes a call without creating a transaction

eth_sign

Signs data with account

Gas and Fee Methods

Method
Description

eth_gasPrice

Returns the current gas price

eth_estimateGas

Estimates gas for a transaction

eth_feeHistory

Returns historical gas information

eth_maxPriorityFeePerGas

Returns current max priority fee

Filter Methods

Method
Description

eth_getLogs

Returns logs matching filter criteria

eth_newFilter

Creates a log filter

eth_newBlockFilter

Creates a block filter

eth_newPendingTransactionFilter

Creates a pending transaction filter

eth_getFilterChanges

Returns filter changes since last poll

eth_getFilterLogs

Returns all logs matching filter

eth_uninstallFilter

Removes a filter

Subscription Methods (WebSocket)

Method
Description

eth_unsubscribe

Cancels an existing subscription

Network/Chain Methods

Method
Description

eth_chainId

Returns the chain ID (56)

eth_syncing

Returns sync status

eth_coinbase

Returns the coinbase address

eth_mining

Returns mining status

net_version

Returns the network ID

net_listening

Returns listening status

net_peerCount

Returns number of connected peers

web3_clientVersion

Returns client version

web3_sha3

Returns Keccak-256 hash of data

Transaction Pool Methods

Method
Description

txpool_status

Returns transaction pool status

Debug Methods

Method
Description

debug_traceTransaction

Traces a specific transaction

debug_traceBlockByHash

Traces block by hash

debug_traceBlockByNumber

Traces block by number

debug_traceCall

Traces a call

debug_traceBlock

Traces a block

debug_accountRange

Returns accounts in range

debug_storageRangeAt

Returns storage range

debug_standardTraceBadBlockToFile

Traces bad block to file

debug_standardTraceBlockToFile

Traces block to file

Support

For technical support and questions:

See Also

Last updated

Was this helpful?