Voted Coins

Author Topic: Bitcoin RPC. Get sum of all fees in the mempool.  (Read 911 times)

Offline taera249

  • Jr. Member
  • *
  • Activity: 70
  • points:
    3440
  • Karma: 2
  • Trade Count: (0)
  • Referrals: 0
  • Last Active: March 23, 2018, 05:40:40 PM
    • View Profile

  • Total Badges: 11
    Badges: (View All)
    Topic Starter 50 Posts 10 Posts
Bitcoin RPC. Get sum of all fees in the mempool.
« 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("*")

Altcoins Talks - Cryptocurrency Forum

Bitcoin RPC. Get sum of all fees in the mempool.
« on: January 25, 2018, 11:43:14 AM »

This is an Ad. Advertised sites are not endorsement by our Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise Here


 

ETH & ERC20 Tokens Donations: 0x2143F7146F0AadC0F9d85ea98F23273Da0e002Ab
BNB & BEP20 Tokens Donations: 0xcbDAB774B5659cB905d4db5487F9e2057b96147F
BTC Donations: bc1qjf99wr3dz9jn9fr43q28x0r50zeyxewcq8swng
BTC Tips for Moderators: 1Pz1S3d4Aiq7QE4m3MmuoUPEvKaAYbZRoG
Powered by SMFPacks Social Login Mod