Altcoins Talks - Cryptocurrency Forum
Learning & News => News related to Crypto => Topic started by: taera249 on January 25, 2018, 11:43:14 AM
-
I'm trying to get a number of total fees in the bitcoin mempool (live, in BTC) using python.
I was able to connect bitcoinrpc, but stil struggle with commands and a proper way of acquiring the number. One way of doing this would be to get information on all unconfirmed transactions in the bitcoin mempool and sum their fees, however running the code below returns me an empty list.
from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException
rpc_user = 'xxx'
rpc_password = 'xxx'
rpc_connection = AuthServiceProxy("http://%s:%[email protected]:8332"%(rpc_user, rpc_password))
transactions = rpc_connection.listtransactions("*")