Gettransaction #24

pull gavinandresen wants to merge 1 commits into bitcoin:master from gavinandresen:gettransaction changing 1 files +14 −6
  1. gavinandresen commented at 7:11 PM on January 7, 2011: contributor

    Adds a "details" array to gettransaction output. e.g.

    { "amount" : 0.00000000, "fee" : 0.00000000, "confirmations" : 609, "txid" : "b593920033b905c0e7c1d82d5b3e15a114841fa916719e968add3212e07c73a0", "time" : 1294342907, "details" : [ { "account" : "Test2", "address" : "mtQArCTnZHGsPf89jus6khxriYsJbU673P", "category" : "send", "amount" : -11.00000000, "fee" : 0.00000000 }, { "account" : "Test1", "address" : "mtQArCTnZHGsPf89jus6khxriYsJbU673P", "category" : "receive", "amount" : 11.00000000 } ] }

  2. Add account/address details to gettransaction output 80be6e69a9
  3. mikegogulski commented at 9:43 AM on January 8, 2011: none

    Hooray!

  4. laanwj referenced this in commit b8afa21fad on Sep 28, 2011
  5. coblee referenced this in commit c8ada487d7 on Jul 17, 2012
  6. orweinberger commented at 11:12 AM on January 7, 2014: none

    @gavinandresen @laanwj The gettransaction call does not return the 'fee' attribute for some reason.

    I'm using version 0.8.6-1.el6 and I'm getting the following output for a transaction that was sent with a fee:

    {
        "amount" : 0.00100000,
        "confirmations" : 92,
        "blockhash" : "0000000000000000977e56d6c0997d54b1b83c4e5bde4b5fccbe2098b4db4e00",
        "blockindex" : 307,
        "blocktime" : 1389053730,
        "txid" : "883e4841ef28d32f26129a9cdad3d2e13e0147707f3aa8b751b8351a38511705",
        "time" : 1389051738,
        "timereceived" : 1389051738,
        "details" : [
            {
                "account" : "52cb3f4469a80",
                "address" : "1KF6CMVjkS2bdkpx8HCHCTUpkensU6dybj",
                "category" : "receive",
                "amount" : 0.00100000
            }
        ]
    }
    
  7. laanwj commented at 6:01 PM on January 7, 2014: member

    @orweinberger it only adds a fee attribute if the transaction is from you (sent) see https://github.com/bitcoin/bitcoin/blob/master/src/rpcwallet.cpp#L1471

  8. orweinberger commented at 6:20 PM on January 7, 2014: none

    @laanwj Thanks for clarifying that. Is there any way for me to see if a transaction that was sent to me had a fee included in it?

  9. laanwj commented at 7:31 PM on January 7, 2014: member

    No idea... maybe you can remove the check and it will work for received transactions too, I'm not sure.

  10. sipa commented at 10:17 PM on January 7, 2014: member

    You can only compute the fee if you know the values of all inputs. This is only the case if all inputs are from yourself.

  11. justmoon referenced this in commit eb0a333004 on Apr 7, 2014
  12. rdponticelli referenced this in commit b110f84bbb on Nov 26, 2014
  13. rubensayshi referenced this in commit f33b4a7d8f on Mar 16, 2015
  14. dexX7 referenced this in commit 829eabef81 on Apr 26, 2015
  15. sdaftuar referenced this in commit 8399527864 on May 14, 2015
  16. jtimon referenced this in commit b4e420a24c on Jun 23, 2015
  17. TheBlueMatt referenced this in commit 835757c144 on Oct 20, 2015
  18. ptschip referenced this in commit 5704a58d08 on Mar 11, 2016
  19. danjurious referenced this in commit 0c15767527 on Jul 25, 2016
  20. MarcoFalke referenced this in commit 3650668cdb on Sep 25, 2016
  21. ptschip referenced this in commit b0e16fb981 on May 4, 2017
  22. jameshilliard referenced this in commit 6b0ef27b85 on Jun 25, 2017
  23. MarcoFalke referenced this in commit d9e62d3e19 on Sep 29, 2017
  24. laanwj referenced this in commit 22a6c1fd8f on Nov 30, 2017
  25. laanwj referenced this in commit 9b80fc1498 on Nov 30, 2017
  26. laanwj referenced this in commit dd49862a70 on Nov 30, 2017
  27. classesjack referenced this in commit ea51c467e2 on Jan 2, 2018
  28. nining referenced this in commit 4f33ac1055 on Jan 3, 2018
  29. HashUnlimited referenced this in commit 2340d25dbb on Mar 14, 2018
  30. KrzysiekJ referenced this in commit cf9eb9f3e8 on Mar 28, 2018
  31. uhliksk referenced this in commit 3393d47288 on May 1, 2019
  32. uhliksk referenced this in commit 191551b3ac on Jun 27, 2019
  33. uhliksk referenced this in commit 0eb6589033 on Jun 27, 2019
  34. uhliksk referenced this in commit 4ebbd2e983 on Jun 27, 2019
  35. uhliksk referenced this in commit dc48d679e2 on Jun 27, 2019
  36. uhliksk referenced this in commit 1509f99281 on Jun 28, 2019
  37. uhliksk referenced this in commit 0645118268 on Jun 28, 2019
  38. fxtc referenced this in commit 3856c1aafd on Aug 6, 2019
  39. uhliksk referenced this in commit 375cf4e12a on Aug 6, 2019
  40. Warchant referenced this in commit 7958da26e8 on Dec 31, 2019
  41. velesnetwork referenced this in commit 13ce5c40d5 on Jan 12, 2020
  42. mdfkbtc referenced this in commit 0ea71dc01a on Feb 5, 2020
  43. Losangelosgenetics referenced this in commit 94f1d8fc76 on Mar 12, 2020
  44. Bushstar referenced this in commit 610b3e1b06 on Apr 8, 2020
  45. MarcoFalke referenced this in commit ca30d34cf9 on Aug 28, 2020
  46. fanquake referenced this in commit 2a55a0ed30 on Nov 20, 2020
  47. fanquake referenced this in commit 8d6a87d154 on Nov 23, 2020
  48. jonasschnelli referenced this in commit c33662a0ea on Dec 2, 2020
  49. rajarshimaitra referenced this in commit 61e1f78302 on Mar 23, 2021
  50. MarcoFalke referenced this in commit bce09da122 on Apr 28, 2021
  51. MarcoFalke referenced this in commit c857148636 on May 15, 2021
  52. satindergrewal referenced this in commit c45e1a47e2 on Jun 22, 2021
  53. rajarshimaitra referenced this in commit c0b0a4cc85 on Aug 5, 2021
  54. DrahtBot locked this on Sep 8, 2021
Labels
Linked (view graph)
#999 v0.6.0rc5 segfault on initial blockchain download when out of diskspace#1098 segfault in qrcode message dialog#2472 System error: database corrupted: void boost::recursive_mutex::lock(): Assertion `!pthread_mutex_lock(&m)' failed#5795 Bizarre test_bitcoin crash, but passes in debugger#6540 scheduler_tests (currently disabled) occasionally deadlocks#9759 Setting -maxsigcachesize to zero causes segfault#9883 [Qt] Segfault on startup#9997 Running out of disk space during GUI init results in hang and non-drawing windows#10209 Stalled shutdown#11355 LevelDB read failure: Corruption: block checksum mismatch#11794 Prefix leveldb debug logging#12038 deadlock on database corruption#12189 [Qt] Display transaction fee with sat/vbyte value in SendCoinsDialog#13316 make check fails for configure option --with-incompatible-bdb and Berkeley DB 5.3#14349 mac: make check failure on macOS 10.14#14923 segmentation fault on gui startup#17540 ci build fails in ./qt/test/test_bitcoin-qt on aarch64 native tsan#17729 Fuzzing Bug undefined-behavior pubkey.cpp:210:38#18362 gui: segfault unloading and immediately reloading wallet with gui#18948 qt: Call setParent() in the parent's context#20618 Data race in interface_zmq.py#21632 MemorySanitizer: use-of-uninitialized-value in sqlite3BtreeOpen#21773 fuzz: Ensure prevout is consensus-valid#21948 test: Fix off-by-one in mockscheduler test RPC#22548 CheckQueue_Correct_Random data race#24290 segfault when compiled with depends DEBUG=1 and libc++#25146 Starting with an unsupported wallet configured leads to a segfault (master only?)#25323 miniscript fuzzer failing after qa-assets update#25365 ThreadSanitizer: data race on vptr (ctor/dtor vs virtual call) in BaseIndex#25632 SUMMARY: ThreadSanitizer: SEGV src/index/base.cpp:388:9 in BaseIndex::SetBestBlockIndex(CBlockIndex const*)::$_1::operator()() const#25857 IBD core dumped during recursive call to CCoinsViewCache::FetchCoin (while connecting best chain tip)#26068 Segmentation fault in the scheduler thread when an index fails to commit to the db#26274 bitcoind dumps core when deriveaddresses is called with index 2147483647 (2^31-1)#26477 validation: fix broken maxtipage comparison#27222 test: use-of-uninitialized-value in sqlite3Strlen30#27354 wallet: Data race in GetOrCreateLegacyScriptPubKeyMan vs IsMine#27360 ci: use LLVM/clang-16 in native_asan job#27582 TSAN: lock-order-inversion (potential deadlock) in ZapSelectTx test#27922 ci: fix llvm-symbolizer in MSAN jobs#28510 migratewallet crashes on an freshly created datadir ( wallet/wallet.h:959: int wallet::CWallet::GetLastBlockHeight() const: Assertion `m_last_block_processed_height >= 0' failed.)#28665 'std::out_of_range' crash in I2P fuzz test#29767 ThreadSanitizer: data race src/flatfile.cpp:47:13 in FlatFileSeq::Open(FlatFilePos const&, bool)#30284 Mini miner `AncestorFeerateComparator` Signed Integer Overflow#30402 Illegal Instruction in `CoinStatsIndex::CustomAppend`#31234 fuzz: connman target: terminate called after throwing an instance of 'std::bad_alloc'#32173 validation: `CheckBlockIndex` crashes during block reconsideration#32957 SegFault in QSortFilterProxyModelPrivate::build_source_to_proxy_mapping#33150 intermittent TSAN failure in lockmanager_tests::blockmanager_readblock_hash_mismatch#33277 intermittent Segmentation fault in mptest IPC path (callFnAsyncParams)#34655 fuzz: keep `coins_view` fuzzers within caller contracts#34734 test: Fix shutdown vptr race in BlockFilterIndexSync bench#34777 ipc: AddressSanitizer: heap-use-after-free in `capnp::CallContext<ipc::capnp::messages::BlockTemplate::GetBlockParams, ipc::capnp::messages::BlockTemplate::GetBlockResults>::getParams()`#34782 mptest: mp::CancelMonitor: AddressSanitizer: stack-use-after-return

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-04-28 03:16 UTC

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