Ejemplo n.º 1
0
 ///<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;
 }
Ejemplo n.º 2
0
        ///<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);
        }