pub async fn account_info(&self, account: &Address) -> Result<AccountInfo, crate::errors::Error> {
        let request = json!({
            "action": "account_info",
            "account": account.0,
			"representative": true,
        });
        let account_info: AccountInfo = self.client
            .post(self.rpc_api.clone())
            .json(&request)
            .send().await?
            .json().await?;
        Ok(account_info)
    }
/// Returns frontier, open block, change representative block, balance, last modified timestamp from local database & block count for account.
/// Only works for accounts that have received their first transaction and have an entry on the ledger, will return "Account not found"
/// otherwise. To open an account, use `receive`.
Returns frontier, open block, change representative block, balance, last modified timestamp from local database & block count for account.
Only works for accounts that have received their first transaction and have an entry on the ledger, will return "Account not found"
otherwise. To open an account, use `receive`.
Returns frontier open block change representative block balance last modified timestamp from local database & block count for account . Only works for accounts that have received their first transaction and have an entry on the ledger will return " Account not found " otherwise . To open an account use ` receive ` .
pub async fn account_info(&self, account: &Address) -> Result<AccountInfo, crate::errors::Error> {
        let request = json!({
            "action": "account_info",
            "account": account.0,
			"representative": true,
        });
        let account_info: AccountInfo = self.client
            .post(self.rpc_api.clone())
            .json(&request)
            .send().await?
            .json().await?;
        Ok(account_info)
    }
pub async fn account_info ( & self , account : & Address ) -> Result < AccountInfo , crate :: errors :: Error > { let request = json ! ( { " " " " " " account 0 " " true } ) ; let account_info : AccountInfo = self . client . post ( self . rpc_api . clone ( ) ) . json ( & request ) . send ( ) . await ? . json ( ) . await ? ; Ok ( account_info ) }
Returns frontier, open block, change representative block, balance, last modified timestamp from local database & block count for account.
Returns frontier open block change representative block balance last modified timestamp from local database & block count for account .
&self
account
&Address
&self
account
&Address