Skip to content
1 change: 1 addition & 0 deletions .changes/added/2912.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add the `allow_partial` parameter to the `coinsToSpend` query. The default value of this parameters is `false` to preserve the old behavior. If set to `true`, the query returns available coins instead of failing when the requested amount is unavailable.
4 changes: 4 additions & 0 deletions crates/client/assets/schema.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -1281,6 +1281,10 @@ input SpendQueryElementInput {
The maximum number of currencies for selection.
"""
max: U16
"""
If true, returns available coins instead of failing when the requested amount is unavailable.
"""
allowPartial: Boolean
}

type SqueezedOutStatus {
Expand Down
Loading
Loading