I've been testing out interacting with the XRP Ledger, coding in Python. I started coding some basic queries regarding the status of the XRP Ledger from scratch based on the XRPL documentation (available here) but then discovered XRPL-PY (I've reviewed the GitHub repo here and the documentation here) and have since been predominately using XRPL-PY to interact with the XRP Ledger given its general ease of use. I've been able to accomplish most of the basic types of interactions with the XRP Ledger one might want to do, including creating a wallet and submitting an offer to exchange one currency for another on the XRP Ledger (what I'll call an "Offer"). However, one point that I have been unable to figure out, whether by using XRPL-PY or interacting with the XRP Ledger directly, is how to determine when/whether a previously submitted Offer has been fully consumed (i.e., another transaction, or transactions, were submitted to the XRP Ledger that accepted my Offer such that it is no longer outstanding and the offered currencies were exchanged at the offered rate). This seems like a basic query that most people interacting with the XRP Ledger would want to be able to establish, but I haven't seen anything in the XRPL or XRPL-PY documentation explaining how to do it. My preference would be to be able to subscribe to updates from the XRPL Ledger such that it lets me know once my Offer has been partially or fully consumed, but if that's not possible I would like to at least be able to repeatedly query the status of my Offer from the XRP Ledger and know what will change in the response once my Offer has been partially or fully consumed. Any suggestions would be greatly appreciated.
How to check when/whether an offer on the XRP Ledger's DEX has been accepted/fully consumed? [XRP] [XRPL]
203 Views Asked by brokeharvard At
1
There are 1 best solutions below
Related Questions in RIPPLE
- Ripple effect on buttons not working when using @react-native-community/blur in other component
- No ripple effect in compound view
- Android Compose ripple on part of text
- Is ripple-keypairs package deprecated ? it's not working for me
- Ripple with Full Alpha Compose Android
- Need ripple button with pure html & css with perfectly wave from clicked pointer
- How we can achieve Cross border payment based on xrp-ledger
- Android: How to detect touch on clickable RelativeLayout?
- Unknown yellow ripple effect on Dialog item click
- Is there a way to store two months of history in my Ripple testnet?
- React native material ripple typescript error when using children
- How to disable ripple effect of Angular Material Pagination button?
- where do xrp ledger gateways get their xrp from?
- Change color of Ripple for IconButton in Jetpack compose
- How to check when/whether an offer on the XRP Ledger's DEX has been accepted/fully consumed? [XRP] [XRPL]
Related Questions in XRP
- Keep getting { throw new Error('Invalid API Key and/or API Secret. Use dotenv or constructor params.');}
- Ripple XRP Ledger - How much data can i put in the memo field
- Ripple XRP Ledger - How do I create an asset or a token? What is the transaction type that accomplishes that?
- Unable to instantiate XrplClient object (Android Studio)
- Is there a way to store two months of history in my Ripple testnet?
- Generate digest/ binary blob for XRP raw transaction using rippled c++ library
- TrustSet - Error: Invalid type to construct an Amount
- Get XRP Blockchain Data
- Ripple XRP Ledger - Cant get transaction validated (Testnet)
- How to do the SET-UP for the XRP RIPPLED node in Exchange linux
- How to get a list of tokens, and the details of tokens, such as decimal, name
- Using BigQuery XRP transactions table to query XRP balance of an account at specific block number
- Fail to find an NFT via computed NFTokenPage ID as per docs on XRPL
- Make a Custom Report created in Acumatica ERP visible in Self-Service Portal
- In XRP, When source account = destination account and sourceTag != destinationTag at that time error is temREDUNDANT(Sends same currency to self.)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It looks like you had your question answered on another channel so I will include this here just in case people will find this useful later. Cheers!
You have 3 options:
POLLING account_offers. You can use the sequence number to identify the offer POLLING book_offer. You can use the "Account" and "Sequence" fields to identify the offer. WS subscribing to "accounts" using the account you want to track. This is the most "complex" because you need to parse all the metadata for all validated transactions that involve the particular account but it's the best because it's asynchronous and via websocket.