NuGet 引入依赖库
PM> Install-Package Tron.Wallet.Net
随机生成私钥和对应的地址
using Tron.Wallet.Net;
namespace ConsoleApp1 {
internal class Program {
static async Task Main(string[] args) {
var tronECKey = TronECKey.GenerateKey(TronNetwork.MainNet);
var privateKey = tronECKey.GetPrivateKey();
var address = tronECKey.GetPublicAddress();
}
}
}
标签:Core,私钥,Tron,离线,tronECKey,var,NET
From: https://www.cnblogs.com/lijingkun/p/17300999.html