-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indexing mempool txs #4161
Comments
@gregdhill please ignore the scammy scammers above. don't click their fake tech support links. @raphjaph @casey I've reported both the scammers above - can you drop the banhammer on them, please? [mark8700-bit and Berge511] |
Hi greg, If you're running a fully indexed I'm not sure if this helps answer your question though - if not, please provide more context on what |
We want to use GET Edit: are you saying we need |
If you're running a fully indexed Do you have a need to query addresses outside of your own? |
Yes we need to query for all users, our frontend allows users to sign Bitcoin txs we (currently) construct using Esplora and sign with a web wallet such as Xverse or UniSat. This is why we need to use the REST API, will that return also mempool UTXOs or that is only available for the current user locally? |
I think you should be able to use ord's curl -s -H "Accept: application/json" \
"http://0.0.0.0:80/outputs/358mMRwcxuCSkKheuVWaXHJBGKrXo3f6JW?type=cardinal" |
@cryptoni9n I still need to run some more tests, but we're pretty sure Ord is not returning UXTOs in the mempool. We can see the difference when we check esplora for example. |
@gregdhill you are right, ord does not have support for mempool txs and it would be great to have them. I think there is a misunderstanding @cryptoni9n , ord does not index unconfirmed/mempool transactions and this is a feature request which makes sense. I remember sometime ago @casey mentioned it will be great to have someone to add this. You can actually look at the source code that ord only indexes confirmed blocks: Line 281 in 1b40956
Line 81 in 1b40956
|
thanks guys - I wasn't making the connection that mempool = uncomfirmed, which is obvious when I think about it. I think @emilcondrea is right - I also remember Casey mentioning that he'd love to have mempool integration in ord, but that it would be a lot of work. Sorry for the confusion. |
Yes, unfortunately |
We have front-end wallet logic (in Javascript) that uses Esplora to fetch UTXOs for users to sign but we've had some issues with users accidentally sending their Ordinals or Runes. For example the OKX wallet doesn't use a separate address like Xverse which reserves P2TR exclusively for Ordinals. We're now using the Ord API to fetch the Cardinals but from what we can tell Ord doesn't support indexing mempool txs which results in a degraded user experience since it then takes some time to see the current wallet balance. Is this something that is possible to support here easily?
The text was updated successfully, but these errors were encountered: