Skip to content
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

Create instructions on how to create expose ports necessary to create an SDK connection to both the Consenus Nodes plus the Mirror Node #816

Closed
6 tasks
Tracked by #400
jeromy-cannon opened this issue Nov 8, 2024 · 5 comments · Fixed by #832
Assignees
Labels
P1 High priority issue. Required to be completed in the assigned milestone. released Requested by Stakeholder Requested by an individual or team that uses Solo

Comments

@jeromy-cannon
Copy link
Contributor

jeromy-cannon commented Nov 8, 2024

Tasks

Preview Give feedback
@jeromy-cannon jeromy-cannon added P1 High priority issue. Required to be completed in the assigned milestone. Requested by Stakeholder Requested by an individual or team that uses Solo labels Nov 8, 2024
@leninmehedy
Copy link
Member

leninmehedy commented Nov 13, 2024

@JeffreyDallas and @jeromy-cannon I was thinking of the outline below where someone would be able to setup a network, accounts and use a code example to query the network. We could use it for a technical workshop.

Table of contents:

  • Setup a network using solo
  • Create account using solo
  • Top-up account (e.g. with 10000 HBAR) using solo
  • Retrieve account keys (DER encoded private key)
    (use kubectl command to retrieve from secrets unless solo allows to retrieve it)
  • Create your .env File with MY_ACCOUNT_ID and MY_PRIVATE_KEY (DER encoded private key): Something like https://docs.hedera.com/hedera/getting-started/environment-set-up#step-3-create-your-.env-file)
  • Expose consensus node port (50211) to different ports using kubectl
  # for example, please test and update as required
   kubectl port-forward svc/haproxy-node0-svc -n solo 50211:30311 &
   kubectl port-forward svc/haproxy-node1-svc -n solo 50211:30411 &
   kubectl port-forward svc/haproxy-node2-svc -n solo 50211:30511 &

*** We may provide examples of other SDK (Java & GO) separately or in the same doc ***

@JeffreyDallas
Copy link
Contributor

Great suggestion, I just started yesterday with some sample code

main...00816-D-client-doc-example

One thing I would suggest is that an solo end user may not care about what is under hood, they
just want a hedera network to interact with their apps.

So we should do as much as possible to avoid them to touch kubectl or anything cluster specific commands.
maybe we could have a solo create account command that will display newly created account id
and private key, so user does not need the trouble to retrieve it with kubectl

@jeromy-cannon
Copy link
Contributor Author

@leninmehedy , yes, this is similar to what I was thinking as well. We have an example folder already created as well.

@swirlds-automation
Copy link
Contributor

🎉 This issue has been resolved in version 0.32.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 High priority issue. Required to be completed in the assigned milestone. released Requested by Stakeholder Requested by an individual or team that uses Solo
Projects
Status: 🆕 New
Development

Successfully merging a pull request may close this issue.

4 participants