コード例 #1
0
 public SmartHoldemAccount GetSmartHoldemAccount()
 {
     if (_account == null)
     {
         _account = AccountService.GetByAddress(Crypto.GetAddress(Crypto.GetKeys(_passPhrase), SmartHoldemNetApi.Instance.NetworkSettings.BytePrefix)).Account;
     }
     return(_account);
 }
コード例 #2
0
        public async Task <SmartHoldemAccount> GetSmartHoldemAccountAsync()
        {
            if (_account == null)
            {
                var accountResponse = await AccountService.GetByAddressAsync(Crypto.GetAddress(Crypto.GetKeys(_passPhrase), SmartHoldemNetApi.Instance.NetworkSettings.BytePrefix));

                _account = accountResponse.Account;
            }
            return(_account);
        }