Get transaction history of address using electrum commands

1

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 )

Thanks

octav

Posted 2017-03-13T17:38:43.067

Reputation: 51

Stratum is a mining protocol, unrelated to electrum. Please add more clarity to your question in terms of what API you are using.morsecoder 2017-03-14T02:24:29.840

1The protocol used by Electrum to connect to its servers is also called stratum.Pieter Wuille 2017-08-12T02:34:23.667

Answers

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.

presstab

Posted 2017-03-13T17:38:43.067

Reputation: 166

i am getting only tx hash don't know how to retrive details about that transactionoctav 2017-03-14T16:37:44.700

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 2017-03-14T16:48:38.887

any tips on that ?octav 2017-03-14T16:49:51.363