Syncs the core info from an ixo blockchain to an instance of PostgreSQL. The core info consists of the Block data, Transactions, Messages and Events.
For now this server doesnt expose any API interfaces as it's purpose is only to generate and keep up to date the ixo-blocksync-core database, we plan on adding API interfaces in the near future
Requirements
git clone https://github.com/ixofoundation/ixo-blocksync-core.git
cd ixo-blocksync-core/
Copy .env.example
to .env
and configure. If this step is skipped, ixo-blocksync-core will use .env.example
as the configuration by default.
- Create a database called Blocksync-core
yarn install
yarn start
Requirements
git clone https://github.com/ixofoundation/ixo-blocksync-core.git
cd ixo-blocksync-core/
Copy .env.example
to .env
and configure. If this step is skipped, ixo-blocksync will use .env.example
as the configuration by default.
Don't use quotations when asign env vars for docker
Create a role(e.g. app_user) in the DB for postgress to work.
docker build -t ixofoundation/ixo-blocksync-core:latest .
docker compose up -d
.