PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, July 28, 2022

[FIXED] How to Create a tron wallet with nodejs

 July 28, 2022     blockchain, cryptocurrency, node.js, tron     No comments   

Issue

I want to create a TRON web wallet but I`m completely a noob in it. My first question is how do I generate addresses offline and with a private master key or with mnemonic seeds The second question is how can I query the balance of all addresses generated by me with a single request to TronGrid?


Solution

Assuming you have TronWeb installed.

You can do TronWeb.createAccount() to generate an address and save the output, example from docs.

You may need to check balance of address one by one by posting to TronGrid, https://api.trongrid.io/wallet/getaccount, example from docs



Answered By - Ming
Answer Checked By - Katrina (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing