Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想创建一个 TRON 网络钱包,但我完全是个菜鸟。我的第一个问题是如何使用私钥或助记符种子离线生成地址第二个问题是如何通过对 TronGrid 的单个请求查询我生成的所有地址的余额?
假设你已经TronWeb安装了。
TronWeb
您可以TronWeb.createAccount()生成地址并保存输出,例如来自 docs。
TronWeb.createAccount()
您可能需要通过发布到 TronGrid 来一一检查地址余额https://api.trongrid.io/wallet/getaccount,例如来自 docs
https://api.trongrid.io/wallet/getaccount