Struct hedera::AccountInfo
source · pub struct AccountInfo {Show 19 fields
pub account_id: AccountId,
pub contract_account_id: String,
pub is_deleted: bool,
pub proxy_account_id: Option<AccountId>,
pub proxy_received: Hbar,
pub key: Key,
pub balance: Hbar,
pub send_record_threshold: Hbar,
pub receive_record_threshold: Hbar,
pub is_receiver_signature_required: bool,
pub expiration_time: Option<OffsetDateTime>,
pub auto_renew_period: Option<Duration>,
pub account_memo: String,
pub owned_nfts: u64,
pub max_automatic_token_associations: u32,
pub alias_key: Option<PublicKey>,
pub ethereum_nonce: u64,
pub ledger_id: LedgerId,
pub staking: Option<StakingInfo>,
}
Expand description
Response from AccountInfoQuery
.
Fields§
§account_id: AccountId
The account that is being referenced.
contract_account_id: String
The Contract Account ID comprising of both the contract instance and the cryptocurrency account owned by the contract instance, in the format used by Solidity.
is_deleted: bool
If true, then this account has been deleted, it will disappear when it expires, and all transactions for it will fail except the transaction to extend its expiration date.
proxy_account_id: Option<AccountId>
The Account ID of the account to which this is proxy staked.
If proxy_account_id
is None
, an invalid account, or an account that isn’t a node,
then this account is automatically proxy staked to a node chosen by the network,
but without earning payments.
If the proxy_account_id
account refuses to accept proxy staking, or if it is not currently
running a node, then it will behave as if proxy_account_id
is None
.
proxy_received: Hbar
The total number of hbars proxy staked to this account.
key: Key
The key for the account, which must sign in order to transfer out, or to modify the account in any way other than extending its expiration date.
balance: Hbar
Current balance of the referenced account.
send_record_threshold: Hbar
The threshold amount for which an account record is created (and this account charged for them) for any send/withdraw transaction.
receive_record_threshold: Hbar
The threshold amount for which an account record is created (and this account charged for them) for any transaction above this amount.
is_receiver_signature_required: bool
If true, no transaction can transfer to this account unless signed by this account’s key.
expiration_time: Option<OffsetDateTime>
The time at which this account is set to expire.
auto_renew_period: Option<Duration>
The duration for expiration time will extend every this many seconds.
account_memo: String
The memo associated with the account.
owned_nfts: u64
The number of NFTs owned by this account
max_automatic_token_associations: u32
The maximum number of tokens that an Account can be implicitly associated with.
alias_key: Option<PublicKey>
The alias of this account.
ethereum_nonce: u64
The ethereum transaction nonce associated with this account.
ledger_id: LedgerId
The ledger ID the response was returned from.
staking: Option<StakingInfo>
Staking metadata for this account.
Implementations§
source§impl AccountInfo
impl AccountInfo
sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Create a new AccountInfo
from protobuf-encoded bytes
.
§Errors
Error::FromProtobuf
if decoding the bytes fails to produce a valid protobuf.Error::FromProtobuf
if decoding the protobuf fails.
Trait Implementations§
source§impl Clone for AccountInfo
impl Clone for AccountInfo
source§fn clone(&self) -> AccountInfo
fn clone(&self) -> AccountInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for AccountInfo
impl RefUnwindSafe for AccountInfo
impl Send for AccountInfo
impl Sync for AccountInfo
impl Unpin for AccountInfo
impl UnwindSafe for AccountInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request