-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Open
Labels
Description
Take a look at this transaction:
https://testnet.smartbit.com.au/tx/947ddb7d22b0c7e8edd3a56a92b8ec771aa8b18667ef508270f928b14821e924
I've double checked with getaddressinfo
and only the first input is mine, and the second output is mine. So the transaction looks like
Inputs: [1.02 BTC mine, 1.1 BTC not-mine]
Outputs: [0.10481803 BTC not-mine, 2.01 BTC mine]
So clearly this transaction makes me 0.99 BTC richer. (-1.02 + 2.01)
So now let's look at what gettransaction
returns:
{
"amount": -0.10481803,
"fee": 1.09481803,
"confirmations": 0,
"trusted": false,
"txid": "947ddb7d22b0c7e8edd3a56a92b8ec771aa8b18667ef508270f928b14821e924",
"walletconflicts": [
],
"time": 1535929790,
"timereceived": 1535929790,
"bip125-replaceable": "no",
"details": [
{
"address": "2N8qCRsKMJ3qNYo8LRb9kLpy3qiigAuedMT",
"category": "send",
"amount": -0.10481803,
"vout": 0,
"fee": 1.09481803,
"abandoned": false
},
{
"address": "2MzFcfPF56Jp6BC3FJk6yXwCY6FzhnbGt3o",
"category": "send",
"amount": -2.01000000,
"label": "",
"vout": 1,
"fee": 1.09481803,
"abandoned": false
},
{
"address": "2MzFcfPF56Jp6BC3FJk6yXwCY6FzhnbGt3o",
"category": "receive",
"amount": 2.01000000,
"label": "",
"vout": 1
}
],
"hex": "020000000001022eb1b5698216f56eea3770c949a5d9555dcd1062571cc3113cae68132a5ba5660100000017160014f67a19d36a915d7e0360d3a66d1f055c7bd34687feffffffe165f072311e71825b47a4797221d7ae56d4b40b7707c540049aee43302448a401000000171600142fa1c410210f8228467e53f450c9e4e56337895ffeffffff028bf09f000000000017a914aaf6ba68cf6a2369445f119596adb84412d28d3a874004fb0b0000000017a9144cdbced31bab78d8a248204a961a4ad475d6b48a87024730440220724dbbdc278315ed367036b163749702c7810730dc2b17ba3226f72c7d0078ab02207945ffb8ffc78bcefa207ac8e172983b5c3d91f64c3cb869cdcd288e6c1d85610121037426b52590172ce72df80829e4a9f7530224306399c399080fc917d19ae44a72024730440220168c025d48f3ee4d626d37a85c92a75e778649e966d8f008caeed688cb6da73902202e00fb70c80e0ba591a12a8feb067cf3216eb054ac5059d0f38ce805bbdd478701210213be1638b4620ccacf4e1bec9748c3fc27561aa7169dbd1639be00bb20236ab800000000"
}
Note the "fee" thing it has is pretty confused. The actual fee is: 0.00518197 BTC
Running on the 0.17 branch if it makes a difference.