/// <summary> /// Ctor /// </summary> public AntChainHelper(string accessId, string accessKey, string tenantId, string account, string mykmsKeyId) { Config = new AntChainConfig(); Config.AccessId = accessId; Config.AccessKey = accessKey; Config.TenantId = tenantId; Config.Account = account; Config.MykmsKeyId = mykmsKeyId; RefreshAccessToken(); }
private SinoChainHelper() { config = new AntChainConfig() { AccessId = "UaP57TiaLEUNSLQR", AccessKey = GetAccessKey(), TenantId = "LEUNSLQR", Account = "sinocloud", MykmsKeyId = "X16U3lOwLEUNSLQR1596598416300", }; chainHelper = new AntChainHelper(config); }
/// <summary> /// Ctor /// </summary> public AntChainHelper(AntChainConfig config) { this.Config = config; RefreshAccessToken(); }