Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

BAS support

gladcow edited this page Feb 27, 2023 · 1 revision

Prerequisites

To connect erigon to BAS network you need enode address of one or more of its nodes and genesis.json file to initialize chain params.

Build erigon

$> git clone https://github.com/Ankr-network/erigon
$> cd erigon
$> git checkout stable
$> make

Prepare and sync erigon

Go to the folder with erigon binaries:

$> cd build/bin

First, init the BAS chain params in given folder:

$> ./erigon init --datadir=bas_data ./genesis.json

After that start erigone on this folder with known enode addresses as bootnodes and correct networkid. For example:

$>./erigon --datadir=bas_data --bootnodes="enode://f258a4dd5946885e409ba2c2d1daad29b02ca27b09c3aa8568f7fc4ca67fb15c19efd39f2025b458dccd80f5dd4a5a1abef78023975dee57b282a0fe17f03e87@107.6.112.106:23611,enode:0dd8ba8019fa6e6c7cdbe85527678b76c05d2045ff1cccb983f2e6464a5648c4a86c49b8991c55e11ebcbd7b28eb5a210ace43be2226feee99d2effe60749e22@107.6.112.106:23610" --networkid=16355 --http --http.api=eth,erigon,web3,net,debug,trace,parity,txpool --p2p.protocol 66

Wait for erigon node is synced

Clone this wiki locally