Skip to content

feat(node): prefund registered accounts - #2636

Merged
Mirko-von-Leipzig merged 2 commits into
nextfrom
mirko/prefund-registered-accounts
Sep 22, 2026
Merged

Mirko-von-Leipzig merged 2 commits into
nextfrom
mirko/prefund-registered-accounts

Conversation

@Mirko-von-Leipzig

@Mirko-von-Leipzig Mirko-von-Leipzig commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add --funding-service.url and --funding-service.amount to the sequencer. Both options must be set together. The amount is a positive number of native-asset base units.
  • Request funding inline after each new account registration through RegisterAccount or the admin API, including imports that bind an existing invitation.
  • Use the POST /request-funds JSON API from feat(funding-service): add the RequestFunds endpoint #2601. This PR assumes that service is deployed; it does not include the service implementation.

Registration commits before the funding request. The call waits for the service to confirm the public P2ID note. Funding failures return gRPC UNAVAILABLE or HTTP 503, without undoing registration. Identical registration retries do not request more funds. There is no background worker, persistent queue, or automatic retry. Account owners retrieve funding notes through their account's note tag.

Changelog

[[entry]]
scope = "node"
impact = "added"
description = "Sequencers can prefund newly registered accounts through a configured funding service."

@Mirko-von-Leipzig
Mirko-von-Leipzig added this pull request to stack #2637 September 16, 2026 14:18
@Mirko-von-Leipzig
Mirko-von-Leipzig force-pushed the mirko/prefund-registered-accounts branch from 31339ec to daf6311 Compare September 17, 2026 08:50
Base automatically changed from mirko/inspect-account-allowness to next September 17, 2026 09:01
@Mirko-von-Leipzig
Mirko-von-Leipzig force-pushed the mirko/prefund-registered-accounts branch 2 times, most recently from f354924 to 6ed1bb3 Compare September 21, 2026 13:38
@Mirko-von-Leipzig
Mirko-von-Leipzig marked this pull request as ready for review September 21, 2026 13:44

@kkovaacs kkovaacs left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@Mirko-von-Leipzig
Mirko-von-Leipzig force-pushed the mirko/prefund-registered-accounts branch from b6426c6 to d15e541 Compare September 22, 2026 09:33
@Mirko-von-Leipzig
Mirko-von-Leipzig merged commit 578f8a1 into next Sep 22, 2026
27 checks passed
@Mirko-von-Leipzig
Mirko-von-Leipzig deleted the mirko/prefund-registered-accounts branch September 22, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants