- Binance Smart Chain Developer APIs
- Access Blockchain Data
- Building DAPPs
- Verify Contracts
- Community Driven
- Introduction
- API PRO Subscription New
- Get Historical BNB Balance for a single Address By BlockNo
- Get Daily Average Block Size
- Get Daily Block Count and Rewards
- Get Daily Block Rewards
- Get Daily Average Block Time for A Block to be Included in the Binance Smart Chain
- Get Historical BEP20-Token TotalSupply by ContractAddress & BlockNo
- Get Historical BEP20-Token Account Balance for TokenContractAddress by BlockNo
- Get Token Holder List by ContractAddress
- Get Token Info by ContractAddress
- Get Daily Average Gas Limit
- Get Binance Smart Chain Daily Total Gas Used
- Get Daily Average Gas Price
- Get Daily Network Transaction Fee
- Get Daily New Address Count
- Get Daily Network Utilization
- Get Daily Transaction Count
- Get BNB Historical Price
- Get Address BEP20 Token Holding
- Get Address ERC721 Token Holding
- Get Address ERC721 Token Inventory By Contract Address
- Account APIs
- Get BNB Balance for a single Address
- Get BNB Balance for multiple Addresses in a single call
- Get Historical BNB Balance for a single Address By BlockNo PRO
- Get a list of ‘Normal’ Transactions By Address
- Get a list of ‘Internal’ Transactions by Address
- Get «Internal Transactions» by Transaction Hash
- Get «Internal Transactions» by Block Range
- Get a list of «BEP-20 — Token Transfer Events» by Address
- Get a list of «ERC721 — Token Transfer Events» by Address
- Get list of Blocks Validated by Address
- Contract APIs
- Get Contract ABI for Verified Contract Source Codes
- Get Contract Source Code for Verified Contract Source Codes
- Verify Source Code (beta)
- Transaction APIs
- Check Transaction Receipt Status
- Blocks APIs
- Get Block And Uncle Rewards by BlockNo
- Get Estimated Block Countdown Time by BlockNo
- Get Block Number by Timestamp
- Get Daily Average Block Size PRO
- Get Daily Block Count and Rewards PRO
- Get Daily Block Rewards PRO
- Get Daily Average Block Time for A Block to be Included in the Binance Smart Chain PRO
- Logs APIs
- Get Event Logs from block number 4993830 to 4993832 Block, where log address = 0xe561479bebee0e606c19bb1973fc4761613e3c42 and topic[0] = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
- Get Event Logs from block number 4993830 to block 4993832 , where log address = 0xe561479bebee0e606c19bb1973fc4761613e3c42, topic[0] = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef ‘AND’ topic[1] = 0x000000000000000000000000730e2065b9daee84c3003c05bf6d2b3a08e55667
- Geth/Parity Proxy APIs
- Contracts With verified source codes only
- Company
- Community
- Products
Binance Smart Chain Developer APIs
Access Blockchain Data
Building DAPPs
Verify Contracts
Community Driven
Introduction
The Binance Smart Chain Developer APIs are provided as a community service and without warranty, so please use what you need and no more. We support both GET/POST requests and there is a rate limit of 5 calls per sec/IP.
1. To use the API service, please create a FREE Api-Key Token from within the ClientPortal->MyApiKey area, which you can then use with all your API requests.
2. Kindly refer API Key Rate Limit & Errors for expected returns. Please contact us if you would like to upgrade your API Plan.
3. Source attribution via a link back or mention that your app is «Powered by BscScan.com APIs» is required except for personal/private usage.
API PRO Subscription New
Get Historical BNB Balance for a single Address By BlockNo
Get Daily Average Block Size
[Parameters] startdate and enddate format ‘yyyy-MM-dd’
Get Daily Block Count and Rewards
[Parameters] startdate and enddate format ‘yyyy-MM-dd’
Get Daily Block Rewards
[Parameters] startdate and enddate format ‘yyyy-MM-dd’
Get Daily Average Block Time for A Block to be Included in the Binance Smart Chain
[Parameters] startdate and enddate format ‘yyyy-MM-dd’
Get Historical BEP20-Token TotalSupply by ContractAddress & BlockNo
Get Historical BEP20-Token Account Balance for TokenContractAddress by BlockNo
Get Token Holder List by ContractAddress
Sample return of token info API:
Get Token Info by ContractAddress
Sample return of token info API:
Get Daily Average Gas Limit
[Parameters] startdate and enddate format ‘yyyy-MM-dd’
Get Binance Smart Chain Daily Total Gas Used
[Parameters] startdate and enddate format ‘yyyy-MM-dd’
Get Daily Average Gas Price
[Parameters] startdate and enddate format ‘yyyy-MM-dd’
Get Daily Network Transaction Fee
[Parameters] startdate and enddate format ‘yyyy-MM-dd’
Get Daily New Address Count
[Parameters] startdate and enddate format ‘yyyy-MM-dd’
Get Daily Network Utilization
[Parameters] startdate and enddate format ‘yyyy-MM-dd’
Get Daily Transaction Count
[Parameters] startdate and enddate format ‘yyyy-MM-dd’
Get BNB Historical Price
[Parameters] startdate and enddate format ‘yyyy-MM-dd’
Get Address BEP20 Token Holding
Sample return of API:
Get Address ERC721 Token Holding
Sample return of API:
Get Address ERC721 Token Inventory By Contract Address
Sample return of API:
Account APIs
Get BNB Balance for a single Address
Get BNB Balance for multiple Addresses in a single call
Separate addresses by comma, up to a maxium of 20 accounts in a single batch
Get Historical BNB Balance for a single Address By BlockNo PRO
Get a list of ‘Normal’ Transactions By Address
[Optional Parameters] startblock: starting blockNo to retrieve results, endblock: ending blockNo to retrieve results
(Returned ‘isError’ values: 0=No Error, 1=Got Error)
(Returns up to a maximum of the last 10000 transactions only)
or
(To get paginated results use page=
Get a list of ‘Internal’ Transactions by Address
[Optional Parameters] startblock: starting blockNo to retrieve results, endblock: ending blockNo to retrieve results
(Returned ‘isError’ values: 0=No Error, 1=Got Error)
(Returns up to a maximum of the last 10000 transactions only)
or
(To get paginated results use page=
Get «Internal Transactions» by Transaction Hash
(Returned ‘isError’ values: 0=Ok, 1=Rejected/Cancelled)
(Returns up to a maximum of the last 10000 transactions only)
Get «Internal Transactions» by Block Range
(Returns up to a maximum of the last 10000 transactions only)
Get a list of «BEP-20 — Token Transfer Events» by Address
[Optional Parameters] startblock: starting blockNo to retrieve results, endblock: ending blockNo to retrieve results
(Returns up to a maximum of the last 10000 transactions only)
or
(To get paginated results use page=
or
(To get transfer events for a specific token contract, include the contractaddress parameter)
Get a list of «ERC721 — Token Transfer Events» by Address
[Optional Parameters] startblock: starting blockNo to retrieve results, endblock: ending blockNo to retrieve results
(Returns up to a maximum of the last 10000 transactions only)
or
(To get paginated results use page=
or
(To get transfer events for a specific token contract, include the contractaddress parameter)
Get list of Blocks Validated by Address
or
(To get paginated results use page=
** type = blocks (full blocks only)
Contract APIs
Get Contract ABI for Verified Contract Source Codes
A simple sample for retrieving the contractABI using Web3.js and Jquery to interact with a contract
Get Contract Source Code for Verified Contract Source Codes
Verify Source Code (beta)
See Demo Source Verification Submission Code at Source Code Verification Sample
Source Code Submission Gist (returns a guid as part of the result upon success):
Check Source code verification submission status:
Transaction APIs
Check Transaction Receipt Status
Note: status: 0 = Fail, 1 = Pass.
Blocks APIs
Get Block And Uncle Rewards by BlockNo
Get Estimated Block Countdown Time by BlockNo
Get Block Number by Timestamp
[Parameters] timestamp format: Unix timestamp (supports Unix timestamps in seconds), closest value: ‘before’ or ‘after’
Get Daily Average Block Size PRO
[Parameters] startdate and enddate format ‘yyyy-MM-dd’
Get Daily Block Count and Rewards PRO
[Parameters] startdate and enddate format ‘yyyy-MM-dd’
Get Daily Block Rewards PRO
[Parameters] startdate and enddate format ‘yyyy-MM-dd’
Get Daily Average Block Time for A Block to be Included in the Binance Smart Chain PRO
[Parameters] startdate and enddate format ‘yyyy-MM-dd’
Logs APIs
The Event Log API was designed to provide an alternative to the native eth_getLogs. Below are the list of supported filter parameters:
- fromBlock, toBlock, address
- topic0, topic1, topic2, topic3 (32 Bytes per topic)
- topic0_1_opr (and|or between topic0 & topic1), topic1_2_opr (and|or between topic1 & topic2), topic2_3_opr (and|or between topic2 & topic3), topic0_2_opr (and|or between topic0 & topic2), topic0_3_opr (and|or between topic0 & topic3), topic1_3_opr (and|or between topic1 & topic3)
— FromBlock & ToBlock accepts the blocknumber (integer, NOT hex) or ‘latest’ (earliest & pending is NOT supported yet)
— Topic Operator (opr) choices are either ‘and‘ or ‘or‘ and are restricted to the above choices only
— FromBlock & ToBlock parameters are required
— An address and/or topic(X) parameters are required, when multiple topic(X) parameters are used the topicX_X_opr (and|or operator) is also required
— For performance & security considerations, only the first 1000 results are return. So please narrow down the filter parameters
Here are some examples of how this filter maybe used:
Get Event Logs from block number 4993830 to 4993832 Block, where log address = 0xe561479bebee0e606c19bb1973fc4761613e3c42 and topic[0] = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
Get Event Logs from block number 4993830 to block 4993832 , where log address = 0xe561479bebee0e606c19bb1973fc4761613e3c42, topic[0] = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef ‘AND’ topic[1] = 0x000000000000000000000000730e2065b9daee84c3003c05bf6d2b3a08e55667
Geth/Parity Proxy APIs
The following are the limited list of supported Proxied APIs for Geth available through BscScan.
eth_blockNumber
Returns the number of most recent block
eth_getBlockByNumber
Returns information about a block by block number
eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block from a block matching the given block number
eth_getTransactionByHash
Returns the information about a transaction requested by transaction hash
eth_getTransactionByBlockNumberAndIndex
Returns information about a transaction by block number and transaction index position
eth_getTransactionCount
Returns the number of transactions sent from an address
eth_sendRawTransaction
Creates new message call transaction or a contract creation for signed transactions
(Replace the hex value with your raw hex encoded transaction that you want to send.
Send as a POST request, if your hex code is particularly long)
eth_getTransactionReceipt
Returns the receipt of a transaction by transaction hash
eth_call
Executes a new message call immediately without creating a transaction on the block chain
(The gas parameter to eth_call is capped at 2x the current block gas limit)
eth_getCode
Returns code at a given address
eth_getStorageAt (**experimental)
Returns the value from a storage position at a given address
eth_gasPrice
Returns the current price per gas in wei
eth_estimateGas
Makes a call or transaction, which won’t be added to the blockchain and returns the used gas, which can be used for estimating the used gas
(The gas parameter to eth_estimateGas is capped at 2x the current block gas limit)
Источник
Contracts With verified source codes only
Showing the last 500 verified contracts source code
Address | Contract Name | Compiler | Version | Balance | Txns | Setting | Verified | Audited | License |
---|---|---|---|---|---|---|---|---|---|
GigaChadToken | Solidity | 0 BNB | 0 | 6/11/2021 | — | MIT | |||
LotteryNFT | Solidity(Json) | 0 BNB | 0 | 6/11/2021 | — | — | |||
DiamondFinance | Solidity | 0 BNB | 0 | 6/11/2021 | — | MIT | |||
LotteryIVT | Solidity(Json) | 0 BNB | 0 | 6/11/2021 | — | — | |||
Lottery | Solidity(Json) | 0 BNB | 0 | 6/11/2021 | — | — | |||
LotteryUpgradeProxy | Solidity(Json) | 0 BNB | 0 | 6/11/2021 | — | — | |||
BurningMoonBSC | Solidity | 0 BNB | 0 | — | 6/11/2021 | — | None | ||
HypernovaFinance | Solidity | 0 BNB | 0 | — | 6/11/2021 | — | None | ||
Rockets | Solidity | 0 BNB | 0 | — | 6/11/2021 | — | GNU LGPLv3 | ||
BlueBerryDormitory | Solidity | 0 BNB | 0 | 6/11/2021 | — | None | |||
BlackOpps | Solidity | 0 BNB | 1 | — | 6/11/2021 | — | None | ||
LittleAkitaDoge | Solidity | 0 BNB | 0 | 6/11/2021 | — | Unlicense | |||
BEP20Token | Solidity | 0 BNB | 0 | 6/11/2021 | — | None | |||
OBAMACARE | Solidity | 0 BNB | 0 | 6/11/2021 | — | Unlicense | |||
BmwFinance | Solidity | 0 BNB | 0 | 6/11/2021 | — | MIT | |||
Med1calV3da | Solidity | 0 BNB | 0 | — | 6/11/2021 | — | None | ||
EelOnMusk | Solidity | 0 BNB | 0 | — | 6/11/2021 | — | Unlicense | ||
CoinToken | Solidity | 0 BNB | 0 | 6/11/2021 | — | None | |||
GainsBee | Solidity | 0 BNB | 0 | — | 6/11/2021 | — | Unlicense | ||
LittleAkitaDoge | Solidity | 0 BNB | 0 | 6/11/2021 | — | Unlicense | |||
CroxTimelock | Solidity(Json) | 0 BNB | 0 | 6/11/2021 | — | — | |||
CaptainDogemerica | Solidity | 0 BNB | 0 | 6/11/2021 | — | MIT | |||
SHEEWOLF | Solidity | 0 BNB | 0 | — | 6/11/2021 | — | None | ||
OBAMACARE | Solidity | 0 BNB | 0 | 6/11/2021 | — | Unlicense | |||
Address | Solidity | 0 BNB | 0 | 6/11/2021 | — | None |
BscScan is a Block Explorer and Analytics Platform for Binance Smart Chain
Company
Community
Products
BscScan © 2020 (BSC-D) | ⛏ Built by the same team behind Etherscan | Donate
Источник