Bitcoin Forum
May 10, 2024, 01:12:26 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: get value of transactions in mempool on: September 02, 2022, 10:26:45 PM
also, on a related note, is it possible for my node to miss any unconfirmed bitcoin transactions if, for some reason, they don't ever show up in my mempool. Or is there a low chance of this happening? thanks
2  Bitcoin / Bitcoin Technical Support / Re: get value of transactions in mempool on: September 02, 2022, 08:12:34 PM
got it, this is a great solution. Cheers!
3  Bitcoin / Bitcoin Technical Support / Re: get value of transactions in mempool on: September 02, 2022, 04:30:37 PM
Thanks for the advice!
for this project i'm using python as i have no clue how to use other languages. threads approach sounds very interesting!

how do you clear the cache from transactions not in the mempool. is this also an rpc call?

Thanks again!
4  Bitcoin / Bitcoin Technical Support / Re: get value of transactions in mempool on: September 01, 2022, 02:13:06 PM
Cheers pal, i'll get to it then  Grin

btw just out of curiosity would you know how services like blochain.info do it?
5  Bitcoin / Bitcoin Technical Support / Re: get value of transactions in mempool on: September 01, 2022, 02:01:19 PM
My concern was that perhaps by the time i complete a for loop on lets say 30 of the transactions in the mempool and get each corresponding values, i may have missed new entries in the mempool which would also have to be looped through... Honestly it's a valid option but i was just wondering if there would be a better solution. Perhaps a single rpc call that returns all the data regarding the transactions?

Sorry, the goal is to generate a database filled with unconfirmed transactions. Each entry would have the txid, time of the tx, value of the tx and the fee. It's sort of a datascience project

Thanks again!!
6  Bitcoin / Bitcoin Technical Support / get value of transactions in mempool on: September 01, 2022, 01:20:38 PM
Hi, i'm new to the rpc interface but i'm trying to get details on all of the latest unconfirmed transactions in real time.


I'm using bitcoin core and i'd like to get the latest unconfirmed transactions on the whole network with their value, fee and timestamps.

I've tried to query
Code:
getrawmempool verbose=true
and it gives the timestamp and fees for each of the transactions along with other data however it doesn't give the value of the transactions.

I thought I could do
Code:
getrawmempool verbose=true
and query each transaction id with
Code:
getrawtransaction "mytxid" true
to get the value of the transactions however it seems like a long process to loop through each txid in the mempool in real time.

Does anyone know a good solution?
Thanks

p.s with getrawmempool verbose=true it also shows the size of the transaction but i don't know how/if it can be interprated as the value. Thanks!!
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!