Chain ID
56
Currency symbol
BNB
Trang web
https://www.bnbchain.org/en
Block explorer URL
https://bscscan.com
| RPC Endpoint | Thêm vào ví |
|---|---|
| https://binance.llamarpc.com | |
| https://bsc-dataseed.bnbchain.org | |
| https://bsc-dataseed1.defibit.io | |
| https://bsc-dataseed1.ninicoin.io | |
| https://bsc-dataseed2.defibit.io | |
| https://bsc-dataseed3.defibit.io | |
| https://bsc-dataseed4.defibit.io | |
| https://bsc-dataseed2.ninicoin.io | |
| https://bsc-dataseed3.ninicoin.io | |
| https://bsc-dataseed4.ninicoin.io | |
| https://bsc-dataseed1.bnbchain.org | |
| https://bsc-dataseed2.bnbchain.org | |
| https://bsc-dataseed3.bnbchain.org | |
| https://bsc-dataseed4.bnbchain.org | |
| https://bsc-dataseed6.dict.life | |
| https://rpc-bsc.48.club | |
| https://koge-rpc-bsc.48.club | |
| https://endpoints.omniatech.io/v1/bsc/mainnet/public | |
| https://bsc-pokt.nodies.app | |
| https://bsc-mainnet.nodereal.io/v1/64a9df0874fb4a93b9d0a3849de012d3 | |
| https://rpc.ankr.com/bsc | |
| https://bscrpc.com | |
| https://bsc.rpcgator.com | |
| https://binance.nodereal.io | |
| https://bsc-mainnet.rpcfast.com?api_key=xbhWBI1Wkguk8SNMu1bvvLurPGLXmgwYeC4S6g2H7WdwFigZSmPWVZRxrskEQwIf | |
| https://nodes.vefinetwork.org/smartchain | |
| https://1rpc.io/bnb | |
| https://bsc.rpc.blxrbdn.com | |
| https://bsc.blockpi.network/v1/rpc/public | |
| https://bnb.api.onfinality.io/public | |
| https://bsc.publicnode.com | |
| wss://bsc.publicnode.com | |
| https://bsc-mainnet.public.blastapi.io | |
| https://bsc.meowrpc.com | |
| https://api.zan.top/node/v1/bsc/mainnet/public | |
| https://bsc.drpc.org | |
| https://services.tokenview.io/vipapi/nodeservice/bsc?apikey=qVHq2o6jpaakcw3lRstl | |
| wss://bsc-ws-node.nariox.org |
Bạn có thể sử dụng BNB Smart Chain Mainnet RPC Endpoint để kết nối với các thư viện web3 như: ethejs, web3 hoặc các ví web3 như: Metamask, WalletConnect, WalletConnect.. cho phép bạn có thể dễ dàng tương tác với blockchain cũng như sử dụng cho các ứng dụng phi tập trung trên BNB Smart Chain Mainnet
const Web3 = require('web3');
// Replace 'YOUR_RPC_URL' with the BNB Smart Chain Mainnet RPC endpoint URL
const rpcURL = https://binance.llamarpc.com;
// Create a new Web3 instance using the RPC endpoint
const web3 = new Web3(new Web3.providers.HttpProvider(rpcURL));
// Now you can use the 'web3' object to interact with BNB Smart Chain Mainnet
web3.eth.getBlockNumber()
.then(blockNumber => {
console.log('Latest block number:', blockNumber);
})
.catch(error => {
console.error('Error:', error);
});
const ethers = require('ethers');
// Replace 'YOUR_RPC_URL' with the BNB Smart Chain Mainnet RPC endpoint URL
const rpcURL = https://binance.llamarpc.com;
// Create a provider using the BNB Smart Chain Mainnet RPC endpoint
const provider = new ethers.providers.JsonRpcProvider(rpcURL);
// You can use the 'provider' object to interact with BNB Smart Chain Mainnet
provider.getBlockNumber()
.then(blockNumber => {
console.log('Latest block number:', blockNumber);
})
.catch(error => {
console.error('Error:', error);
});
