Skip to content
This repository was archived by the owner on May 7, 2023. It is now read-only.

blinklabs-io/blockchain-query-api

Repository files navigation

blockchain-query-api

Note: this is experimental and prone to breakage

Service to query blockchain data from cardano-db-sync's database

Building

Build the binary.

$ make

Build the docker image.

$ make image

Testing locally

Setup a port forward to the cardano-db-sync Postgres instance.

$ kubectl port-forward svc/cardano-kstack-cardano-postgres-testnet 5432

Run the service.

$ DATASOURCE_CARDANODBSYNC_USERNAME=postgres DATASOURCE_CARDANODBSYNC_PASSWORD=xxxxxxxx ./blockchain-query-api

Perform a request.

$ curl -s http://localhost:8080/api/v0/block/xxxxxxxx | jq .

About

Service to query cardano-db-sync data for the Cardano blockchain

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages