Skip to content

Commit

Permalink
Allow CreatePSBT.ExplicitChangeAddress to be an hex script
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasDorier committed Jan 30, 2025
1 parent fed67b3 commit 80f16ce
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion NBXplorer.Client/Models/CreatePSBTRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class CreatePSBTRequest
/// <summary>
/// Use a specific change address (Optional, default: null, mutually exclusive with ReserveChangeAddress)
/// </summary>
public BitcoinAddress ExplicitChangeAddress { get; set; }
public PSBTDestination ExplicitChangeAddress { get; set; }

/// <summary>
/// Rebase the hdkey paths (if no rebase, the key paths are relative to the xpub that NBXplorer knows about)
Expand Down
2 changes: 1 addition & 1 deletion NBXplorer.Client/NBXplorer.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.1</TargetFrameworks>
<Company>Digital Garage</Company>
<Version>4.3.8</Version>
<Version>4.3.9</Version>
<Copyright>Copyright © Digital Garage 2017</Copyright>
<Description>Client API for the minimalist HD Wallet Tracker NBXplorer</Description>
<PackageIcon>Bitcoin.png</PackageIcon>
Expand Down
2 changes: 1 addition & 1 deletion NBXplorer/NBXplorer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<OutputType>Exe</OutputType>
<TargetFramework Condition="'$(TargetFrameworkOverride)' == ''">net8.0</TargetFramework>
<TargetFramework Condition="'$(TargetFrameworkOverride)' != ''">$(TargetFrameworkOverride)</TargetFramework>
<Version>2.5.19</Version>
<Version>2.5.20</Version>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\NBXplorer.xml</DocumentationFile>
<NoWarn>1701;1702;1705;1591;CS1591</NoWarn>
<LangVersion>12</LangVersion>
Expand Down
2 changes: 1 addition & 1 deletion NBXplorer/wwwroot/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@
},
"explicitChangeAddress": {
"type": "string",
"description": "Optional. Use a specific change address. Mutually exclusive with 'reserveChangeAddress'. Default is null."
"description": "Optional. Use a specific change address or script (in hex format). Mutually exclusive with 'reserveChangeAddress'. Default is null."
},
"minConfirmations": {
"type": "integer",
Expand Down

0 comments on commit 80f16ce

Please sign in to comment.