/// <summary> /// Updates all segwit inputs and outputs in a PSBT with data from output descriptors, the UTXO set or the mempool. /// </summary> /// <param name="psbt">A base64 string of a PSBT.</param> /// <param name="outputDescriptors">An array of <c>OutputDescriptor</c> objects.</param> /// <returns></returns> public async Task <string> UtxoUpdatePSBT(string psbt, List <OutputDescriptor> outputDescriptors) { UtxoUpdatePSBT utxoUpdatePSBT = new UtxoUpdatePSBT { PSBT = psbt, OutputDescriptorsWithExtra = outputDescriptors }; string response = await httpRequest.SendReq(MethodName.utxoupdatepsbt, utxoUpdatePSBT); return(response); }
/// <summary> /// Updates all segwit inputs and outputs in a PSBT with data from output descriptors, the UTXO set or the mempool. /// </summary> /// <param name="psbt">A base64 string of a PSBT.</param> /// <returns></returns> public async Task <string> UtxoUpdatePSBT(string psbt) { UtxoUpdatePSBT utxoUpdatePSBT = new UtxoUpdatePSBT { PSBT = psbt }; string response = await httpRequest.SendReq(MethodName.utxoupdatepsbt, utxoUpdatePSBT); return(response); }