-
Notifications
You must be signed in to change notification settings - Fork 14
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
Implement MirrorNodeClient.queryTransaction #26
Comments
Hey, seems like an easy introduction task :) I would gladly try my best to solve this. From my understanding, I should:
|
agree :) |
My situation changed, I do not have time right now to participate in any project. Sorry for inconvenience. |
Hey @hendrikebbers do you need help with any REST API documentation? I'm looking to get some experience documenting so if you need help please let me know! Thank you |
@Ashleycodesseo did you mean you are interested on working on this issue? |
Hello @Ndacyayisenga-droid can you please assign me this issue, if no one has worked on it. |
Hello @hendrikebbers I worked on this issue and was able to finish all the possible suggestions but when I try running the |
Hello @Ndacyayisenga-droid please help me here |
@Ariho-Seth I think you dont have enough HBARs on your testnet account to run all tests in this repo. You can use |
Alternatively, you can test your code in your fork using the current github workflow since github has enough HBARs for that. Like we did last time we had a call |
Hello @hendrikebbers and @Ndacyayisenga-droid, Am facing issues when I try running any tests in the entire repo |
🆕🐥 First Timers Only
This issue is reserved for people who have never contributed to this project or any open source project in general.
We know that creating a pull request (PR) is a major barrier for new contributors.
The goal of this issue and all other issues labeled by 'good first issue' is to help you make your first contribution.
👾 Description of the issue
The interface
MirrorNodeClient
provides the methodOptional<TransactionInfo> queryTransaction(@NonNull String transactionId)
. The implementation of the method inMirrorNodeClientImpl
calls the Mirror Node REST API but do not use the result of that call. Instead, only a record containing thetransactionId
asString
is returned (seeTransactionInfo
).When doing a call against the REST API way more information about a transaction are returned as you can see in the following sample
Query:
Result:
The additional information should be added to the
TransactionInfo
record.Suggestion for solving the issue
In the
MirrorNodeClientImpl
class you can already find several samples on how a JSON response of a REST call is parsed and transfered in a custom method return type. The same should be done in theOptional<TransactionInfo> queryTransaction(@NonNull String transactionId)
method andTransactionInfo
should become a rich object that is based on all the information coming from JSON.Additional information
Information about the rest api of the mirror node can be found here. The API can be accessed by Swagger UI. The Swagger UI frontend for testnet can be found here.
📋 Step by step guide to do a contribution
If you have never contributed to an open source project at GitHub, the following step-by-step guide will introduce you to the workflow.
A more detailed general documentation of the GitHub PR workflow can be found here.
🎉 Contribute to Hacktoberfest
Solve this issue as part of the Hacktoberfest event and get a chance to receive cool goodies like a T-Shirt. 🎽
🤔 Additional informantion
If you have any questions, just ask us directly in this issue by adding a comment. You can join the Hedera community chat at Discord. A general manual about open-source contributions can be found here.
The text was updated successfully, but these errors were encountered: