Bitcoin Forum
March 29, 2020, 03:34:57 PM *
News: Latest Bitcoin Core release: 0.19.0.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Transactions with no inputs and negative value outputs (Resolved)  (Read 79 times)
joey.rich
Member
**
Offline Offline

Activity: 100
Merit: 16


View Profile WWW
May 25, 2019, 05:34:29 PM
Last edit: May 25, 2019, 08:44:57 PM by joey.rich
Merited by Foxpup (3), bones261 (2), ETFbitcoin (1)
 #1

I am building a blockchain explorer and found a couple of transactions which are causing problems for me.

These transactions have no inputs and have negative value outputs.  Furthermore, the negative value outputs have been spent in transactions which appear to have greater outputs than inputs.  When I check these transactions on block explorers like Blockchain.com these transactions look ok.  But what I get from running getrawtransaction and decoderawtransaction is not consistent with those explorers.

The outputs that I'm looking at are:
Created in tx 9789cf1e36def70ea44219c6c2bd633bf831a67cb659a19c2757b709883cdd6e
Spent in tx 4faba86e9cc006378216defa5bb29c87826d8aa5d02c7a03af2c1f237ec98354

Created in tx 797d455d6a13c9418a8c6d75aa119827c3b6036b015687e9de7f4d2f16bfadee
Spent in tx 8728c4ddc43c8f1259cb4fe08c28eea732f168b9960c3f40c0e5ac81baeddc0c

Can anyone help me understand what's going on with these transactions?  If this isn't the right place for this issue, please direct me appropriately.

decoderawtransaction returns the following for the creation transactions:
9789cf1e36def70ea44219c6c2bd633bf831a67cb659a19c2757b709883cdd6e
Quote
{
  "txid": "2666d2a297ebfae94acde2de646da030e89390f8a5db47b28b2facd2aa115de8",
  "hash": "2666d2a297ebfae94acde2de646da030e89390f8a5db47b28b2facd2aa115de8",
  "version": 2,
  "size": 247,
  "vsize": 247,
  "weight": 988,
  "locktime": 577040,
  "vin": [
  ],
  "vout": [
    {
      "value": -17534850228.57082879,
      "n": 0,
      "scriptPubKey": {
        "asm": "f741af6d43f263469ebdd637ef675f3993c8a4ba3a484700000000171600149f056ad3eca966bcc 2fd0d42094f832b OP_GREATERTHANOREQUAL b96ffeffffff0208154000000000 0 a9145d1de5b2624c864dec38c31c03ce231fc98d941d87 a107000000000017a91469f3770869d3e1050705a261ce889a5ad06279668702 30440220199d3ee61b66f104dedb00cd2c2ef9ec5f14d4c01616774d823ca005eeda10f502206c1 0a5c0b54d0c3afa453d2398b7972ee641290de2030ec5f0a827a0a3bbfad301 0270f02837ac8a22f0339de1682c691e09e329ed10cbabdcb327bbc5aa55688020",
        "hex": "2ff741af6d43f263469ebdd637ef675f3993c8a4ba3a484700000000171600149f056ad3eca966b cc2fd0d42094f832ba20eb96ffeffffff02081540000000000017a9145d1de5b2624c864dec38c3 1c03ce231fc98d941d8720a107000000000017a91469f3770869d3e1050705a261ce889a5ad0627 96687024730440220199d3ee61b66f104dedb00cd2c2ef9ec5f14d4c01616774d823ca005eeda10 f502206c10a5c0b54d0c3afa453d2398b7972ee641290de2030ec5f0a827a0a3bbfad301210270f 02837ac8a22f0339de1682c691e09e329ed10cbabdcb327bbc5aa55688020",
        "type": "nonstandard"
      }
    }
  ]
}


797d455d6a13c9418a8c6d75aa119827c3b6036b015687e9de7f4d2f16bfadee
Quote
{
  "txid": "d8467acfda16257379be1382ea79119157d2e44df8fae0e694f6f0b18f3faac9",
  "hash": "d8467acfda16257379be1382ea79119157d2e44df8fae0e694f6f0b18f3faac9",
  "version": 1,
  "size": 225,
  "vsize": 225,
  "weight": 900,
  "locktime": 0,
  "vin": [
  ],
  "vout": [
    {
      "value": -85052256939.66577919,
      "n": 0,
      "scriptPubKey": {
        "asm": "15 dcd732092c3063a77677e25289666c3482343b9949a70100000000ffffffff0277baae000000000 01600148cd6335dc07c41004977476a589eca62 b6ea8be0a28d08000000001976a914fbc4c33466c70d971163ef30b3fcf0acc2698ee988ac02473 04402204ad820377dff239d04ff25dddb294f28cb22956586 11 c2fa8ddbcef9122b9202200fc0935ca6f50c85b80022ab2b62d527d625e4dce4c1dc48295d0de1c 77eb83b01 02d4e71f92096d026a383c3500c6bdb5688b40281e2e0cf42636aff8a8e271f828",
        "hex": "5f3bdcd732092c3063a77677e25289666c3482343b9949a70100000000ffffffff0277baae00000 000001600148cd6335dc07c41004977476a589eca6240b6ea8be0a28d08000000001976a914fbc4 c33466c70d971163ef30b3fcf0acc2698ee988ac0247304402204ad820377dff239d04ff25dddb2 94f28cb229565865b2cc2fa8ddbcef9122b9202200fc0935ca6f50c85b80022ab2b62d527d625e4 dce4c1dc48295d0de1c77eb83b012102d4e71f92096d026a383c3500c6bdb5688b40281e2e0cf42 636aff8a8e271f828",
        "type": "nonstandard"
      }
    }
  ]
}
1585496097
Hero Member
*
Offline Offline

Posts: 1585496097

View Profile Personal Message (Offline)

Ignore
1585496097
Reply with quote  #2

1585496097
Report to moderator
Roullete Flip Duels Bubble Player vs B2 Player vs Player Player vs B2 Supports Lightning Network The Social Gambling Games Play Now
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1585496097
Hero Member
*
Offline Offline

Posts: 1585496097

View Profile Personal Message (Offline)

Ignore
1585496097
Reply with quote  #2

1585496097
Report to moderator
1585496097
Hero Member
*
Offline Offline

Posts: 1585496097

View Profile Personal Message (Offline)

Ignore
1585496097
Reply with quote  #2

1585496097
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 2086
Merit: 3187


bc1qshxkrpe4arppq89fpzm6c0tpdvx5cfkve2c8kl


View Profile WWW
May 25, 2019, 07:58:31 PM
Merited by Foxpup (3), bones261 (2), ETFbitcoin (1)
 #2

This is just an issue with decoderawtransaction. Those transactions are segwit transactions which decoderawtransaction confuses for 0 input transactions. If you use getrawtransaction with verbose set to true, you'll get the correct decoding.

joey.rich
Member
**
Offline Offline

Activity: 100
Merit: 16


View Profile WWW
May 25, 2019, 08:41:13 PM
 #3

Ok I just tried getrawtransaction with verbose=true and I can see the inputs properly now. Thanks.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!