Skip to content

BrokedTV/binance-smart-chain-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binance Smart Chain node Docker image

QuickStart

docker run -d -v /data/bsc:/root --name binance-smart-chain-node \
-p 127.0.0.1:8545:8545 -p 127.0.0.1:8546:8546 -p 127.0.0.1:6060:6060 -p 30311:30311 -p 30311:30311/udp \
brokedtv/bsc:latest --cache 100000 --rpc.allow-unprotected-txs --txlookuplimit 0 --http --maxpeers 100 --ws --syncmode=full --snapshot=false --diffsync

Blockchain data will be stored at /data/bsc folder.

config.toml will be created if not exists at /data/bsc/.ethereum/config.toml

Check sync status

docker exec binance-smart-chain-node bsc attach --exec eth.syncing

docker logs -f binance-smart-chain-node

JSONRPC

  • HTTP JSONRPC at port 8545
  • WebSocket at 8546
  • IPC (unix socket) at /data/bsc/.ethereum/geth.ipc

Test it using geth_linux binary:

geth_linux attach http://localhost:8545
geth_linux attach ws://localhost:8546
geth_linux attach /data/bsc/.ethereum/geth.ipc
# Last one needs root privileges

More info

original BSC repo

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 60.4%
  • Shell 39.6%