Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1// Copyright (c) 2011-present The Bitcoin Core developers2// Distributed under the MIT software license, see the accompanying3// file COPYING or http://www.opensource.org/licenses/mit-license.php.5#ifndef BITCOIN_QT_PSBTOPERATIONSDIALOG_H6#define BITCOIN_QT_PSBTOPERATIONSDIALOG_H8#include <QDialog>9#include <QString>11#include <psbt.h>12#include <qt/clientmodel.h>13#include <qt/walletmodel.h>15namespace Ui {16class PSBTOperationsDialog;17}19/** Dialog showing transaction details. */20class PSBTOperationsDialog : public QDialog21{22Q_OBJECT24public:25explicit PSBTOperationsDialog(QWidget* parent, WalletModel* walletModel, ClientModel* clientModel);26~PSBTOperationsDialog();28void openWithPSBT(PartiallySignedTransaction psbtx);30public Q_SLOTS:31void signTransaction();32void broadcastTransaction();33void copyToClipboard();34void saveTransaction();36private:37Ui::PSBTOperationsDialog* m_ui;38std::optional<PartiallySignedTransaction> m_transaction_data;39WalletModel* m_wallet_model;40ClientModel* m_client_model;42enum class StatusLevel {43Info,44Warn,45Error46};48size_t couldSignInputs(const PartiallySignedTransaction &psbtx);49void updateTransactionDisplay();50QString renderTransaction(const PartiallySignedTransaction &psbtx);51void showStatus(const QString &msg, StatusLevel level);52void showTransactionStatus(const PartiallySignedTransaction &psbtx);53};55#endif // BITCOIN_QT_PSBTOPERATIONSDIALOG_H
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.