Implement raw transaction RPC calls #1456

pull gavinandresen wants to merge 4 commits into bitcoin:master from gavinandresen:signrawtx changing 13 files +846 −332
  1. gavinandresen commented at 1:46 am on June 14, 2012: contributor

    Implement listunspent / getrawtx / createrawtx / signrawtx, to support creation and signing-on-multiple-device multisignature transactions.

    See https://secure.bettermeans.com/projects/4180/wiki/Raw_Transaction_RPC_Test_Plan for the test plan.

    See https://gist.github.com/2839617 for the API design.

  2. luke-jr commented at 0:26 am on June 19, 2012: member

    Breaks Bitcoin-Qt without this:

     0diff --git a/bitcoin-qt.pro b/bitcoin-qt.pro
     1index 9885e1e..b562560 100644
     2--- a/bitcoin-qt.pro
     3+++ b/bitcoin-qt.pro
     4@@ -217,6 +217,7 @@ SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \
     5     src/qt/walletmodel.cpp \
     6     src/bitcoinrpc.cpp \
     7     src/rpcdump.cpp \
     8+    src/rpcrawtx.cpp \
     9     src/qt/overviewpage.cpp \
    10     src/qt/csvmodelwriter.cpp \
    11     src/crypter.cpp \
    
  3. gavinandresen commented at 1:13 am on June 19, 2012: contributor

    Rebased to master and added rpcrawtx.cpp to bitcoin-qt.pro.

    But I’m having second thoughts on how to specify previous outputs; especially with @sipa’s compression work I think maybe specifying them as [txid,n,hex_scriptPubkey] might be better than just “hex_serialized_complete_transaction”

  4. gavinandresen closed this on Jun 21, 2012

  5. gavinandresen reopened this on Jun 26, 2012

  6. gavinandresen closed this on Jun 26, 2012

  7. gavinandresen reopened this on Jun 26, 2012

  8. jgarzik commented at 3:55 pm on June 27, 2012: contributor
    ACK latest revision
  9. Rework gettransaction / getblock RPC calls
    This PULL reworks new (post-0.6.*) features of the
    gettransaction/getblock RPC calls as follows:
    
    It removes the 'decompositions' object argument from getblock,
    replacing it just a list of transaction hashes; equivalent
    (I believe) of passing the {"tx":"hash"} decomposition.
    
    It replaces the 'decompositions' object argument of
    gettransaction with a boolean flag; if true, returns
    the same stuff that the {"script":"obj"} decomposition
    would return (txins/txouts as hex, disassembled, and bitcoin
    addresses).
    
    It adds a "rawtx" field to the output of gettransaction,
    that is the entire transaction serialized and hex-encoded.
    
    It removes the "size" field from gettransaction, since the size
    is trivial to compute from the "rawtx" field (either take the
    length after hex-decoding, or just compute it as hex-length/2).
    9a6ab7f142
  10. Refactor: SignSignature/VerifyScript
    Minor refactor to support signrawtx signing/verifying transactions
    when it might only have the previous transaction's txid and
    txOut.
    34420d655d
  11. RPCTypeCheck method to make type-checking JSON Arrays easier. 899d373b3c
  12. Implement raw transaction RPC calls
    Implement listunspent / getrawtransaction / createrawtransaction /
    signrawtransaction, to support creation and
    signing-on-multiple-device multisignature transactions.
    a2709fad7f
  13. gavinandresen merged this on Jul 5, 2012
  14. gavinandresen closed this on Jul 5, 2012

  15. suprnurd referenced this in commit c0450f609c on Dec 5, 2017
  16. lateminer referenced this in commit 8f8509ff99 on Jan 22, 2019
  17. lateminer referenced this in commit 42567f14b2 on May 6, 2020
  18. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-02-17 06:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me