import _m0 from "protobufjs/minimal"; import { AccountID, Key, StakingInfo, TokenRelationship } from "./basic_types"; import { LiveHash } from "./crypto_add_live_hash"; import { Duration } from "./duration"; import { QueryHeader } from "./query_header"; import { ResponseHeader } from "./response_header"; import { Timestamp } from "./timestamp"; export declare const protobufPackage = "proto"; /** * Get all the information about an account, including the balance. This does not get the list of * account records. */ export interface CryptoGetInfoQuery { /** * Standard info sent from client to node, including the signed payment, and what kind of * response is requested (cost, state proof, both, or neither). */ header: QueryHeader | undefined; /** The account ID for which information is requested */ accountID: AccountID | undefined; } /** Response when the client sends the node CryptoGetInfoQuery */ export interface CryptoGetInfoResponse { /** * Standard response from node to client, including the requested fields: cost, or state proof, * or both, or neither */ header: ResponseHeader | undefined; /** Info about the account (a state proof can be generated for this) */ accountInfo: CryptoGetInfoResponse_AccountInfo | undefined; } export interface CryptoGetInfoResponse_AccountInfo { /** The account ID for which this information applies */ accountID: AccountID | undefined; /** * 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 */ contractAccountID: string; /** * 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 */ deleted: boolean; /** * [Deprecated] The Account ID of the account to which this is proxy staked. If proxyAccountID is null, * or is an invalid account, or is 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 proxyAccountID account refuses to accept proxy staking , or if it is not currently * running a node, then it will behave as if proxyAccountID was null. * * @deprecated */ proxyAccountID: AccountID | undefined; /** The total number of tinybars proxy staked to this account */ proxyReceived: number; /** * 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. */ key: Key | undefined; /** The current balance of account in tinybars */ balance: number; /** * [Deprecated]. The threshold amount, in tinybars, at which a record is created of any * transaction that decreases the balance of this account by more than the threshold * * @deprecated */ generateSendRecordThreshold: number; /** * [Deprecated]. The threshold amount, in tinybars, at which a record is created of any * transaction that increases the balance of this account by more than the threshold * * @deprecated */ generateReceiveRecordThreshold: number; /** If true, no transaction can transfer to this account unless signed by this account's key */ receiverSigRequired: boolean; /** The TimeStamp time at which this account is set to expire */ expirationTime: Timestamp | undefined; /** * The duration for expiration time will extend every this many seconds. If there are * insufficient funds, then it extends as long as possible. If it is empty when it expires, * then it is deleted. */ autoRenewPeriod: Duration | undefined; /** * All of the livehashes attached to the account (each of which is a hash along with the * keys that authorized it and can delete it) */ liveHashes: LiveHash[]; /** * [DEPRECATED] The metadata of the tokens associated to the account. This field was * deprecated by HIP-367, which allowed * an account to be associated to an unlimited number of tokens. This scale makes it more * efficient for users to consult mirror nodes to review their token associations. * * @deprecated */ tokenRelationships: TokenRelationship[]; /** The memo associated with the account */ memo: string; /** The number of NFTs owned by this account */ ownedNfts: number; /** The maximum number of tokens that an Account can be implicitly associated with. */ maxAutomaticTokenAssociations: number; /** The alias of this account */ alias: Uint8Array; /** The ledger ID the response was returned from; please see HIP-198 for the network-specific IDs. */ ledgerId: Uint8Array; /** The ethereum transaction nonce associated with this account. */ ethereumNonce: number; /** Staking metadata for this account. */ stakingInfo: StakingInfo | undefined; } export declare const CryptoGetInfoQuery: { encode(message: CryptoGetInfoQuery, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CryptoGetInfoQuery; fromJSON(object: any): CryptoGetInfoQuery; toJSON(message: CryptoGetInfoQuery): unknown; create(base?: DeepPartial): CryptoGetInfoQuery; fromPartial(object: DeepPartial): CryptoGetInfoQuery; }; export declare const CryptoGetInfoResponse: { encode(message: CryptoGetInfoResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CryptoGetInfoResponse; fromJSON(object: any): CryptoGetInfoResponse; toJSON(message: CryptoGetInfoResponse): unknown; create(base?: DeepPartial): CryptoGetInfoResponse; fromPartial(object: DeepPartial): CryptoGetInfoResponse; }; export declare const CryptoGetInfoResponse_AccountInfo: { encode(message: CryptoGetInfoResponse_AccountInfo, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CryptoGetInfoResponse_AccountInfo; fromJSON(object: any): CryptoGetInfoResponse_AccountInfo; toJSON(message: CryptoGetInfoResponse_AccountInfo): unknown; create(base?: DeepPartial): CryptoGetInfoResponse_AccountInfo; fromPartial(object: DeepPartial): CryptoGetInfoResponse_AccountInfo; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends { $case: string; } ? { [K in keyof Omit]?: DeepPartial; } & { $case: T["$case"]; } : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {}; //# sourceMappingURL=crypto_get_info.d.ts.map