This is an example of utxo-tracker using Yaci Store Spring Boot Starter.
Update config/application.properties
to set Cardano Network, Postgres DB connection, and
other application specific properties like policy_id
, script.deploy.address
etc.
-
Java 21
-
Install SDKMAN
-
Use SDKMAN to install Java 21
sdk install java 21.0.7-tem
-
Confirm the installation and set Java 21 as the default version:
sdk use java 21.0.7-tem sdk default java 21.0.7-tem
-
Verify that Java 21 is installed and set as default:
java -version
./mvnw clean package
java -jar target/utxo-tracker-0.0.1-SNAPSHOT.jar
- address : Keep track of all script addresses derived from reference script in deploy transaction.
- address_utxo : Keep track of all utxos for tracked addresses.
- tx_input : Spent inputs. It currently stores all inputs. We will add a filter to store only the inputs that are spent from tracked addresses.
https://localhost:8080/swagger-ui/index.html
Change config/application.properties
for DB to use docker service specified in the docker compose
docker-compose up --build