<p>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.</p>

CC BY-SA 3.0
2017-03-14T16:37:44.700Z
i am getting only tx hash don't know how to retrive details about that transaction
octav
CC BY-SA 3.0
2017-03-14T16:48:38.887Z
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
CC BY-SA 3.0
2017-03-14T16:49:51.363Z
any tips on that ?
octav
CC BY-SA 3.0
2017-03-14T16:30:47.213Z
2017-03-14T16:30:47.213Z
presstab
<p>I am using electrum protocol to query history of a bitcoin address using <code>blockchain.address.get_history</code>.</p>
<p>All is good; I am receiving the tx data for every transaction. My problem is that I am 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.)</p>

CC BY-SA 3.0
2017-03-14T02:24:29.840Z
Stratum is a mining protocol, unrelated to electrum. Please add more clarity to your question in terms of what API you are using.
morsecoder
CC BY-SA 3.0
2017-08-12T02:34:23.667Z
The protocol used by Electrum to connect to its servers is also called stratum.
Pieter Wuille
<electrum><stratum>
Get transaction history of address using electrum commands
octav
# Get transaction history of address using electrum commands

(Asked by: username_0 on 2017-03-13)

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 am 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.)

**Tags:** electrum, stratum

> **Comments:**
> **username_1**: Stratum is a mining protocol, unrelated to electrum. Please add more clarity to your question in terms of what API you are using.  
> **username_2**: The protocol used by Electrum to connect to its servers is also called stratum.  

---

## 1 answers

### Answer by username_3 on 2017-03-14. Score: 0

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.

> **Comments:**
> **username_0**: i am getting only tx hash don't know how to retrive details about that transaction  
> **username_3**: 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.  
> **username_0**: any tips on that ?  

---

