介绍:
10 分钟读懂 Arbitrum | 登链社区 | 区块链技术社区
自定义节点:
Running a Node | Arbitrum Documentation Center
mkdir/data/arbitrum
chmod-fR777/data/arbitrum
— 官方推荐 初始化时间 特别长 还容易失败
dockerrun –rm -it -v /data/arbitrum:/home/user/.arbitrum-p0.0.0.0:8547:8547 -p0.0.0.0:8548:8548 offchainlabs/nitro-node:v2.0.5-208d9d5 –l1.url=https://172.20.192.47:8545–l2.chain-id=42161–http.api=net,web3,eth,debug,admin –http.corsdomain=* –http.addr=0.0.0.0 –http.vhosts=* –node.feed.input.url=wss://arb1.arbitrum.io/feed–init.url=”https://snapshot.arbitrum.io/mainnet/nitro.tar” –node.rpc.classic-redirect=”https://arb-mainnet.g.alchemy.com/v2/rwQ5PfDeqB11Ptak2pb_SEI0zR9TjZXH”
本地文件初始化(推荐)
mkdir -p /jira/arbitrum && cd /jira/arbitrum && wget -b https://snapshot.arbitrum.io/mainnet/nitro.tar
chmod -fR 777/jira/arbitrum/nitro.tar
docker run –privileged –rm -it -v /data/arbitrum:/home/user/.arbitrum-v /jira/arbitrum:/jira/arbitrum-p 0.0.0.0:8547:8547 -p 0.0.0.0:8548:8548 offchainlabs/nitro-node:v2.0.5-208d9d5 –l1.url=”http://172.20.192.47:8545″ –l2.chain-id=42161 –http.api=net,web3,eth,debug –http.corsdomain=* –http.addr=0.0.0.0 –http.vhosts=* –node.feed.input.url=”wss://arb1.arbitrum.io/feed” –node.archive –init.url=”file:/jira/arbitrum/nitro.tar” –node.rpc.classic-redirect=”https://arb-mainnet.g.alchemy.com/v2/rwQ5PfDeqB11Ptak2pb_SEI0zR9TjZXH”
查看同步高度
curl http://172.20.192.204:8547 -X POST -H “Content-Type: application/json” -d ‘{“jsonrpc”:”2.0″,”method”:”eth_blockNumber”,”params”:[],”id”:0}’
可以和下面的链接对比
Arbitrum (ETH) Blockchain Explorer