///<param name="account">Stellar AccountResponse instance</param> ///<param name="keypair">Account keypair</param> public Account(StellarResponses.AccountResponse account, Stellar.KeyPair keypair) { this.InnerAccount = account; this.InnerKeyPair = keypair; this.AssetIssuers = new Dictionary <string, string>(); this.ClientInstance = new Client().HorizonClient; }
///<summary>Invalidates current account information.</summary> ///<returns>Promise returns reloaded account.</returns> async public Task <StellarResponses.AccountResponse> Reload() { this.InnerAccount = null; this.InnerAccount = await this.ClientInstance.Accounts.Account(this.InnerKeyPair); return(this.InnerAccount); }