NuGet 引入依賴庫 PM> Install-Package Tron.Wallet.Net 隨機生成私鑰和對應的地址 using Tron.Wallet.Net; namespace ConsoleApp1 { internal class Program { static async Task ...
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();
}
}
}