Updated on 2024-11-14 GMT+08:00

Dedicated Edition

Table 1 BNB Smart Chain APIs

API Method

Description

Throughput (Time/s)

debug_traceBlockByNumber

This API returns tracing results by executing all transactions in the block specified by the block number. The results include the type of the call, the sender's address, the receiver's address, the value sent with the transactions, the gas, the input and output data.

5

debug_traceBlockByHash

This API returns tracing results by executing all transactions in the block specified by the block hash. The results include the type of the call, the sender's address, the receiver's address, the value sent with the transactions, the gas, the input and output data.

15

debug_traceBlock

This API returns a full stack trace of all invoked opcodes of all transactions that were included in a block.

50

debug_traceTransaction

This API tracks specified transactions.

200

eth_accounts

This API returns an array of addresses owned by the client.

30000

eth_call

This API executes a new message call immediately without creating a transaction on the blockchain.

24500

eth_estimateGas

This API returns an estimation of gas for a given transaction.

2500

eth_getFilterLogs

This API returns an array of all the logs matching the given filter ID.

1900

eth_getLogs

This API returns an array of all the logs matching the given filter object.

10

eth_getFilterChanges

The polling method for a filter, which returns an array of logs which occurred since last poll. Call eth_newFilter, eth_newBlockFilter, or eth_newPendingTransactionFilter to create a filter.

39000

eth_blockNumber

This API returns the latest block number of the blockchain.

40000

debug_traceCall

This API returns tracing result by executing an eth call within the context of the given block execution.

1000

eth_chainId

This API returns the currently configured chain ID.

34000

eth_feeHistory

This API returns historical gas information.

30000

eth_gasPrice

This API returns the current gas price in wei.

41000

eth_getBalance

This API returns the balance of the given account address.

27000

eth_getBlockByHash

This API returns information about the block by block hash.

  • 2000 if a complete block object is returned
  • 22000 if a complete block object is not returned

eth_getBlockByNumber

This API returns information about the block by block number.

  • 2000 if a complete block object is returned
  • 22000 if a complete block object is not returned

eth_getBlockTransactionCountByHash

This API returns the number of transactions for the block by block hash.

29000

eth_getBlockTransactionCountByNumber

This API returns the number of transactions for the block by block number.

32000

eth_getCode

This API returns the compiled byte code of a smart contract, if any, at a given address.

27000

eth_getProof

This API returns the account and storage values, including the Merkle proof, of the specified account.

11000

eth_getStorageAt

This API returns the balance of the given account address.

24000

eth_getTransactionByBlockHashAndIndex

This API returns information about a transaction by a block hash and transaction index position.

28000

eth_getTransactionByBlockNumberAndIndex

This API returns information about a transaction by a block number and transaction index position.

30000

eth_getTransactionByHash

This API returns the information about a transaction by transaction hash.

25000

eth_getTransactionCount

This API returns the number of transactions sent from an address.

28000

eth_getTransactionReceipt

This API returns the receipt of a transaction by transaction hash.

21000

eth_getUncleByBlockHashAndIndex

This API returns information about an uncle of a block by hash and uncle index position.

6000

eth_getUncleByBlockNumberAndIndex

This API returns information about an uncle of a block by number and uncle index position.

6000

eth_getUncleCountByBlockHash

This API returns the number of uncles for the block by block hash.

30000

eth_getUncleCountByBlockNumber

This API returns the number of uncles for the block by block number.

32000

eth_maxPriorityFeePerGas

This API returns a fee per gas that is an estimate of how much you can pay as a priority fee, or a tip, to get a transaction included in the current block.

38000

eth_newBlockFilter

This API creates a filter in the node to notify when a new block arrives.

29000

eth_newFilter

This API creates a filter object based on the given filter options to notify when the state changes (logs).

24000

eth_newPendingTransactionFilter

This API creates a filter in the node to notify when new pending transactions arrive at BSC.

80

eth_sendRawTransaction

This API creates a new message call transaction or creates a contract for signed transactions.

2500

eth_subscribe

This API creates a new subscription for particular events. The node returns a subscription ID. For each event that matches the subscription, a notification with relevant data is sent together with the subscription ID.

1000

eth_syncing

This API returns the sync status.

35000

eth_uninstallFilter

This API uninstalls a filter with the given filter ID. It should always be called when watching is no longer needed. Additionally, filters time out when they are not requested with eth_getFilterChanges for a period of time.

33000

eth_unsubscribe

This API cancels subscriptions with the subscription ID. It returns a boolean indicating that the subscription was canceled successfully.

1000

net_listening

This API returns true if the client is actively listening for network connections.

32000

net_version

This API returns the current network ID.

34000

txpool_content

This API returns all pending and queued transactions.

40

txpool_inspect

This API returns a textual summary of all pending and queued transactions.

200

txpool_status

This API returns the number of transactions in pending and queued states.

25000

web3_clientVersion

This API returns the current version of the chain client.

30000

web3_sha3

This API returns Keccak-256 (not the standardized SHA3-256) hash of the given data.

32000

eth_hashrate

This API returns the number of hashes per second calculated by the node.

40000

eth_mining

This API returns true if the node is actively mining new blocks.

42000

eth_getBlobSidecars

This API returns the blob sidecar of a given block.

600

eth_getBlobSidecarByTxHash

This API returns the blob sidecar of a given transaction.

1000

nes_sendGasOptimizedTransaction

This API returns an ID. This ID can be used to query the gas optimization status.

250

nes_getGasOptimizedTransactionStatus

This API returns the gas optimization status.

1500