You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BNB Chain Reth is a cutting-edge rust client developed in collaboration with Paradigm, designed to provide seamless support
13
-
for [BNB Smart Chain(BSC)](https://github.com/bnb-chain/bsc) and [opBNB](https://github.com/bnb-chain/op-geth).
15
+
BNB Chain Reth is a cutting-edge rust client developed in collaboration with Paradigm, designed to provide seamless
16
+
support for [BNB Smart Chain(BSC)](https://github.com/bnb-chain/bsc) and [opBNB](https://github.com/bnb-chain/op-geth).
14
17
15
18
## Build from Source
16
19
17
-
For prerequisites and detailed build instructions please read the [Installation Instructions](https://paradigmxyz.github.io/reth/installation/source.html).
20
+
For prerequisites and detailed build instructions please read
21
+
the [Installation Instructions](https://paradigmxyz.github.io/reth/installation/source.html).
18
22
19
23
With Rust and the dependencies installed, you're ready to build BNB Chain Reth. First, clone the repository:
In the realm of BSC, you have the option to execute the following commands to compile reth:
30
+
In the realm of BSC, you have the option to execute the following commands to compile bsc-reth:
27
31
28
32
```shell
29
-
make build
33
+
make build-bsc
30
34
```
31
35
32
36
Alternatively, you can install reth using the following command:
33
37
34
38
```shell
35
-
make install
39
+
make install-bsc
36
40
```
37
41
38
42
When it comes to opBNB, you can run the following commands to compile op-reth:
@@ -49,25 +53,70 @@ make install-op
49
53
50
54
## Run Reth for BSC
51
55
52
-
Coming soon......
56
+
The command below is for an archive node. To run a full node, simply add the `--full` tag.
53
57
54
-
## Run Reth for opBNB
58
+
```shell
59
+
# for testnet
60
+
export network=bsc-testnet
55
61
56
-
The op-reth can function as both a full node and an archive node. Due to its unique storage advantages, it is primarily utilized for running archive nodes.
62
+
# for mainnet
63
+
# export network=bsc
57
64
58
-
### Hardware Requirements
65
+
./target/release/bsc-reth node \
66
+
--datadir=./datadir \
67
+
--chain=${network} \
68
+
--http \
69
+
--http.addr=0.0.0.0 \
70
+
--http.port=8545 \
71
+
--http.api="eth, net, txpool, web3, rpc" \
72
+
--ws \
73
+
--ws.addr=0.0.0.0 \
74
+
--ws.port=8546 \
75
+
--nat=any \
76
+
--log.file.directory ./datadir/logs
77
+
```
78
+
79
+
You can run `bsc-reth --help` for command explanations.
80
+
81
+
For running bsc-reth with docker, please use the following command:
82
+
83
+
```shell
84
+
# for testnet
85
+
export network=bsc-testnet
86
+
87
+
# for mainnet
88
+
# export network=bsc
59
89
60
-
* CPU with 16+ cores
61
-
* 128GB RAM
62
-
* High-performance NVMe SSD with at least 3TB of free space
63
-
* A broadband internet connection with upload/download speeds of 25 MB/s
90
+
# check this for version of the docker image, https://github.com/bnb-chain/reth/pkgs/container/bsc-reth
91
+
export version=latest
64
92
65
-
### Steps to Run op-reth
93
+
# the directory where reth data will be stored
94
+
export data_dir=/xxx/xxx
66
95
67
-
The op-reth is an [execution client](https://ethereum.org/en/developers/docs/nodes-and-clients/#execution-clients) for opBNB.
You can run `op-reth --help` for command explanations. More details on running opbnb nodes can be found [here](https://docs.bnbchain.org/opbnb-docs/docs/tutorials/running-a-local-node/).
197
+
You can run `op-reth --help` for command explanations. More details on running opbnb nodes can be
198
+
found [here](https://docs.bnbchain.org/opbnb-docs/docs/tutorials/running-a-local-node/).
199
+
200
+
For running op-reth with docker, please use the following command:
0 commit comments