0

I performed a bitcoin payment in the testnet, here is what I get when I execute bitcoin-cli gettransaction "11b8d5f89793e83e9e10b7ee51fa1b3445f6029f7d7efe4c82b3b261ec513a0e", as you can see the info doesn't include the fee charged in the transaction:

{
    "amount" : 0.20000000,
    "confirmations" : 2148,
    "blockhash" : "0000000086bd0907763b02e8bcd45b18d9320441b7ffe7c019e9c95795c35cd9",
    "blockindex" : 3,
    "blocktime" : 1439865905,
    "txid" : "11b8d5f89793e83e9e10b7ee51fa1b3445f6029f7d7efe4c82b3b261ec513a0e",
    "walletconflicts" : [
    ],
    "time" : 1439865606,
    "timereceived" : 1439865606,
    "details" : [
        {
            "account" : "",
            "address" : "mn2dMSfAX7s77ZD5jY3k8kjcuwtPLgu1Yi",
            "category" : "receive",
            "amount" : 0.20000000,
            "vout" : 1
        }
    ],
    "hex" : "..................."
}

But on blocktrail.com I can see the Fee for this same transaction:

detail of the transaction on blocktrail.com

1

Bitcoin transaction fees are implied by sum(vin) - sum(vout). The daemon doesn't display fee information on transactions you did not create because the value of the inputs isn't retained after they have been spent.

Block explorers show information that takes an additional set of indexes, it's not fair to compare the information shown by one and that returned by a very light weight full node. If you need more information like this on a regular basis you can use a middle layer like Bitpays Insight which will maintain a comprehensive index of this sort of information for you externally.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.