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
Add API functions to get wallet transfers and withdraw funds [$400] #141
Comments
There is a bounty on this issue, the amount is in the title. The bounty will be awarded to the first person(s) who resolves this issue. Read the full conditions in the 'bounties.md' file. If you are starting to work on this issue, please write a comment here, so that we can assign the issue to you and avoid duplicated work. |
I can begin working on this issue. |
@l0nelyc0w Checking in. How's it going? |
@woodser I managed to get getXmrTxs working with the tests after the problem I had with null values, I followed ProcessModel.java and it helped to get the reply back. I have a question regarding createXmrTx(destinations) though, destinations isn't the only parameter for createXmrTx() right? It should also have the desired amount and the rest of fields that are mandatory to create a tx (as transfer in Monero RPC doc). And relayXmrTx() should take as it's only parameter the tx_metadata created by createXmrTx() (as relayTx in Monero RPC doc). I think I will have a PR ready within the next 7 days. |
@l0nelyc0w The amounts are part of the destinations. The only other required field is the account index which is always 0 for Haveno's wallet, so it doesn't need to be provided. Yes, relayTxXmr() should take the tx metadata as an argument (I fixed the documentation). |
OK account index was the actual field of interest thank you for clarifying. |
PR: #199 |
Reward sent. @l0nelyc0w please confirm you received it :) |
Closing this as resolved. |
I confirm I got the reward @erciccione thank you :) |
This issue requests adding new API functions to get transfers and withdraw funds.
These API calls will feed the UI wallet functionality:
The following functions are requested as additions to HavenoDaemon.ts. Feedback is welcome.
havenod.getXmrTxs()
XmrTx[]
havenod.createXmrTx(destinations: XmrDestination)
XmrTx
havenod.relayXmrTx(txMetadata: string)
string
Note these wallet functions are already implemented:
havenod.getNewDepositSubaddress()
string
havenod.getBalances()
XmrBalanceInfo
How to implement
A test should be added to HavenoDaemon.test.ts to test all Haveno wallet functions including sending and receiving funds and testing wallet balances and transactions.
Follow these instructions to add and test new API functions end-to-end.
The text was updated successfully, but these errors were encountered: