Skip to content

Commit 85e74ad

Browse files
committed
swapserverrpc: add instantout quote req
1 parent c6e8664 commit 85e74ad

File tree

3 files changed

+245
-53
lines changed

3 files changed

+245
-53
lines changed

swapserverrpc/instantout.pb.go

Lines changed: 190 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swapserverrpc/instantout.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ service InstantSwapServer {
3333
// called if the swap has not been accepted yet.
3434
rpc CancelInstantSwap (CancelInstantSwapRequest)
3535
returns (CancelInstantSwapResponse);
36+
37+
// GetInstantOutQuote returns the absolute fee in satoshis for the swap and
38+
// the pubkey to query the route to estimate offchain payment fees.
39+
rpc GetInstantOutQuote (GetInstantOutQuoteRequest)
40+
returns (GetInstantOutQuoteResponse);
3641
}
3742

3843
message InstantLoopOutRequest {
@@ -130,6 +135,16 @@ message CancelInstantSwapRequest {
130135
message CancelInstantSwapResponse {
131136
}
132137

138+
message GetInstantOutQuoteRequest {
139+
// The amount to swap in satoshis.
140+
uint64 amount = 1;
141+
}
142+
143+
message GetInstantOutQuoteResponse {
144+
// The swap fee in satoshis.
145+
uint64 swap_fee = 1;
146+
}
147+
133148
enum InstantOutProtocolVersion {
134149
INSTANTOUT_NONE = 0;
135150
INSTANTOUT_FULL_RESERVATION = 1;

0 commit comments

Comments
 (0)