Skip to content

bloxbean/utxo-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Utxo Tracker for script addresses using Yaci Store

This is an example of utxo-tracker using Yaci Store Spring Boot Starter.

Configuration

Update config/application.properties to set Cardano Network, Postgres DB connection, and other application specific properties like policy_id, script.deploy.address etc.

Build and Run

Prerequisites

Steps to Install Java 21 using SDKMAN

  1. Use SDKMAN to install Java 21

    sdk install java 21.0.7-tem
  2. 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
  3. Verify that Java 21 is installed and set as default:

    java -version

Build

./mvnw clean package

Run

java -jar target/utxo-tracker-0.0.1-SNAPSHOT.jar

Tables

  1. address : Keep track of all script addresses derived from reference script in deploy transaction.
  2. address_utxo : Keep track of all utxos for tracked addresses.
  3. 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.

Swagger-UI for REST APIs

https://localhost:8080/swagger-ui/index.html

Using Docker Compose

Change config/application.properties for DB to use docker service specified in the docker compose

docker-compose up --build

About

A custom scope indexer app to store utxos for tracked script addresses. (Example)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •