Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Keawe on March 15, 2024, 09:37:51 AM



Title: Getrawmemepool
Post by: Keawe on March 15, 2024, 09:37:51 AM
What exactly is retrieved by the command?  I have done some searching to no clear answer.  Is it retrieving from the whole blockchain or?


Title: Re: Getrawmemepool
Post by: satscraper on March 15, 2024, 10:05:54 AM
What exactly is retrieved by the command?  I have done some searching to no clear answer.  Is it retrieving from the whole blockchain or?


It is retrieving solely from the mempool relevant to  your node

"Returns all transaction ids in memory pool as a json array of string transaction ids." (https://bitcoincore.org/en/doc/24.0.0/rpc/blockchain/getrawmempool/)


Title: Re: Getrawmemepool
Post by: NotATether on March 15, 2024, 12:14:39 PM
And keep in mind that it ONLY returns transaction ids and mempool-related information. It does not return raw transactions. Currently there is no easy way to fetch a raw mempool transaction without knowing its transaction ID.