To run the examples in this tutorial, you'll need yarn
(or npm
, or pnpm
) installed and a few JavaScript libraries.
Make sure to install dependencies by running:
yarn
Then, Kupo
will be needed (obviously!)
Follow the instruction on Kupo's user manual: Installation.
If you don't want to install and run Kupo yourself, you can use the Demeter.run platform to create a cloud environment with access to common Cardano infrastructure.
The following button will open this repo in a private, web-based VSCode IDE with access to a shared Cardano Node and Kupo.
As a reminder, you can always refer to Kupo's user manual for details and reference.
Note
We'll only interact with the preview network in this tutorial; so make sure to pick the right configurations files and to check information on preview networks should you cross-check with an explorer.
This example demonstrates how to use Kupo to track a single UTxO entry, by its output reference. The use case is, for example, to find out when a UTxO was spent (if it was).
See examples/1-watch-single-output.
This is a canonical example of aggregating a large amount of data from Kupo (600k+ results) and how we can leverage streaming.
See examples/2-aggregate-total-value-locked.
Another example of aggregating large set of data, but only over a specific period of time using
Kupo's ranges. Here, we're going to look at $HOSKYt holders on preview
.
See examples/3-find-hosky-holders.
Let's demonstrate how we can pattern on transaction metadata-tag to collect outputs from transactions minting CIP-0025 compliant NFTS. This example also shows how to fetch the associated metadata directly from Kupo.