FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add withdrawal endpoint for portable token exit by melvincarvalho · Pull Request #180 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Repository navigation

Add withdrawal endpoint for portable token exit - #180

Merged
melvincarvalho merged 1 commit into
gh-pagesfrom
issue-179-withdraw
Mar 11, 2026
Merged

melvincarvalho merged 1 commit into
gh-pagesfrom
issue-179-withdraw

Conversation

Copy link
Copy Markdown
Contributor

Summary

  • Adds POST /pay/.withdraw endpoint to convert sat balance into portable MRC20 tokens
  • Supports tokens, sats, or all: true to drain entire balance
  • Uses same payRate as buy endpoint for symmetric pricing
  • Returns portable proof (state chain + anchor) for independent verification

Test plan

  • Deposit sats, withdraw 50 tokens — balance deducted correctly
  • Bitcoin TX broadcast on testnet4
  • Portable proof returned with full state chain and anchor
  • 289 existing tests pass

Closes #179

Users can withdraw their webledger sat balance as MRC20 tokens at the
configured payRate. Supports tokens, sats, or all:true to drain the
entire balance. Returns portable proof with state chain and anchor for
independent verification.

Closes #179
melvincarvalho merged commit 3030897 into gh-pages Mar 11, 2026
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
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.

Add withdrawal endpoint for converting balance to portable tokens

1 participant


Back | FazBrowse Home | New Git URL