I am using electrum protocol to query history of a bitcoin address using blockchain.address.get_history.

All is good I am receiving the tx data for every transaction. My problem is that I unable to figure out a way to get the fee and transaction details for every tx received. ( I want to use same stratum protocol if possible )


  • Stratum is a mining protocol, unrelated to electrum. Please add more clarity to your question in terms of what API you are using.
    – morsecoder
    Mar 14 '17 at 2:24
  • 1
    The protocol used by Electrum to connect to its servers is also called stratum. Aug 12 '17 at 2:34

You can calculate the fee by taking the sum of the value of the transaction inputs and subtracting that from the sum of the value of the transaction outputs. The fee is really just the leftover amount of a transaction that is not specifically sent as an output.

  • i am getting only tx hash don't know how to retrive details about that transaction
    – octav
    Mar 14 '17 at 16:37
  • From what I see, using the electrum protocol you will then need to use blockchain.transaction.get and this will return the hex encoded transaction. You will then have to figure out a way to decode the hex.
    – presstab
    Mar 14 '17 at 16:48
  • any tips on that ?
    – octav
    Mar 14 '17 at 16:49

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.