-
Notifications
You must be signed in to change notification settings - Fork 6
Add Hydra micropayments #425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
michalrus
wants to merge
32
commits into
main
Choose a base branch
from
feat/hydra-payments
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Deploying blockfrost-platform with
|
| Latest commit: |
4330e59
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://71bbc4e7.blockfrost-platform.pages.dev |
| Branch Preview URL: | https://feat-hydra-payments.blockfrost-platform.pages.dev |
3e34343 to
4330e59
Compare
vladimirvolek
approved these changes
Jan 5, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #277
Resolves #400
Related to:
Context
We want to set up an opt-in Layer 2 micropayments channel between the Platform and the Gateway.
Every few requests (configurable) a micro-transaction is sent over that channel. After N such microtransactions, the state is flushed to Layer 1.
How to use
Use this branch of the Gateway.
In the Gateway config, set the following new keys:
Run the Gateway, potentially with a new feature,
dev_mock_db, to skip the whole Icebreaker registration in Postgres:Now, go back to the Platform repository.
Export
BLOCKFROST_GATEWAY_URL=http://127.0.0.1:3001(or analogously).Run the platform with a new CLI option:
Note that the Layer 2 ceremony will also eat funds from this second Platform-side signing key for the large Hydra transaction fees (~13 ADA per L2 session in total).
Now make requests to the Platform through the Gateway – otherwise they won’t be counted by the Gateway.
Observe in logs the sending of transactions, Fanout to L1, and re-opening of the Hydra Head.
Verify with
cardano-cli query utxo --address $reward_addressthat the funds are really moved on L1 to the set reward address.