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:

     0{
     1    "amount" : 0.00100000,
     2    "confirmations" : 92,
     3    "blockhash" : "0000000000000000977e56d6c0997d54b1b83c4e5bde4b5fccbe2098b4db4e00",
     4    "blockindex" : 307,
     5    "blocktime" : 1389053730,
     6    "txid" : "883e4841ef28d32f26129a9cdad3d2e13e0147707f3aa8b751b8351a38511705",
     7    "time" : 1389051738,
     8    "timereceived" : 1389051738,
     9    "details" : [
    10        {
    11            "account" : "52cb3f4469a80",
    12            "address" : "1KF6CMVjkS2bdkpx8HCHCTUpkensU6dybj",
    13            "category" : "receive",
    14            "amount" : 0.00100000
    15        }
    16    ]
    17}
    
  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

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: 2024-07-08 22:13 UTC

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