Skip to content

Getting Started as a Data Engineer with a Blockchain Scenario

License

Notifications You must be signed in to change notification settings

Edgxtech/blockchain-data-engineering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License

Blockchain Data Engineering

This is a companion repository for the "Getting Started as a Data Engineer with a Blockchain Scenario" tutorial series.

Setup

Configure a blockchain source which is a cardano-node with the ogmios bridge interface.

Options are to use:

  1. Ogmios service from Demeter.run (perhaps only for quickstart and testing), or
  2. Custom service

Configure src/cardano_streamer/app.properties

cardano.ogmios.address=mainnet-v6.ogmios-m1.demeter.run
cardano.ogmios.port=443
cardano.ogmios.ssl.enabled=True
cardano.ogmios.demeter.apikey=<your api key>

## The Cardano Node Ogmios Service - Own Cardano-Node / Ogmios Example
#cardano.ogmios.address=<your ogmios url or ip address>
#cardano.ogmios.port=<your ogmios port>
#cardano.ogmios.ssl.enabled=False

## Blockchain point to start streaming from
# Hint: slot corresponds to an absolute unix time[s] via; <slot> + 1591566291
cardano.start.point.block=4eaff920aa8392f4796365b97c6fc77d92eb9756940651e23b4ec28513eae8a4
cardano.start.point.slot=133303289

Configure environment

pip install -r src/cardano_streamer/requirements.txt
pip install -r src/etl_blockchain/requirements.txt

Run

Start the streamer app

cd src/cardano_streamer
python main.py

Start the ETL app Duration of the run, is hard coded, change within

cd src/etl_blockchain
python main.py

Run the other example

Edit: src/etl_vol_transfers/app.properties

Make sure the streamer app is running (see above)

pip install -r src/etl_vol_transfers/requirements.txt
cd src/etl_vol_transfers
python main.py

Run the Jupyter Notebook

pip install -r src/jupyter/requirements.txt
cd src/jupyter
# Install if needed; conda install jupyterlab
jupyter lab

Python Version

Tested with Python 3.12

Support

This project is made possible by Delegators to the AUSST Cardano Stakepool and supporters of Edgx R&D

About

Getting Started as a Data Engineer with a Blockchain Scenario

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published