如何使用 nodejs 创建一个 tron 钱包

How to Create a tron wallet with nodejs

我想创建一个 TRON 网络钱包,但我完全是个菜鸟。 我的第一个问题是如何离线生成地址并使用私有主密钥或助记符种子 第二个问题是如何通过对TronGrid的一次请求查询我生成的所有地址的余额?

假设您已安装 TronWeb

您可以TronWeb.createAccount()生成地址并保存输出,example from docs

您可能需要通过发帖到 TronGrid 一一查看地址余额,https://api.trongrid.io/wallet/getaccountexample from docs