Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }