A rust based API for generating and verifying Merkle trees used in Sablier.
For more details about Sablier, check out our website and our documentation at docs.sablier.com.
Sablier Drops rely on pre-configured merkle trees. This data structure contains the list of recipients as well as their individual claim details. Utilities are required to create, manage and validate such merkle trees.
To make these functionalities available to the Sablier client interfaces as well as 3rd party integrators we've created
a Rust backend service called merkle-api
. Through a REST API, it provides access to creating, storing and reading from
Airstream related Merkle trees.
To integrate the Sablier V2 Merkle API into your own product or if you want ro test locally please check here.
The API provides endpoints that support actions like: creating a campaign, checking eligibility for a particular address etc. For more details see endpoints
You can an example of a Rust CSV Generator here:
https://gist.github.com/gavriliumircea/2a9797f207a2a2f3832ddaa376337e8c
We've explained the rules for formatting such CSVs in our docs.
Feel free to dive in! Open an issue, start a discussion or submit a PR.
You will need the following software on your machine:
You will need the following VSCode extensions:
We recommend forking this repository and running the merkle backend using your own infrastructure or a vercel environment hosted under an account you own. This guarantees you'll have more control over the up-time of the service, as well as access to add any custom features or optimizations you may require.
Sablier V2 Merkle API is licensed under GPL v3 or later.