Add Fee Service Example for Asset Transfers Without LBTC #115
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.
Description
This example demonstrates how to implement a fee service that allows users to send assets on the Liquid Network without needing LBTC in their wallet to pay transaction fees. The fee service pays the network fees on behalf of users by providing its LBTC UTXO in a collaborative transaction (similar to a payjoin).
What this example includes
lwk_wollet/examples/fee_service.rs
- A complete working example with three different implementation approachesKey Features
How it Works
Three Implementation Approaches
1. Basic Approach (Default)
2. Unified PSET Approach
drain_lbtc_to()
3. Split App/Server Approach
Requirements
lwk_wollet/examples/keys.env
fileScreenshot