UNPKG

@hashgraph/sdk

Version:
68 lines (67 loc) 2.73 kB
/** * @namespace proto * @typedef {import("@hashgraph/proto").proto.IQuery} HieroProto.proto.IQuery * @typedef {import("@hashgraph/proto").proto.IQueryHeader} HieroProto.proto.IQueryHeader * @typedef {import("@hashgraph/proto").proto.IResponse} HieroProto.proto.IResponse * @typedef {import("@hashgraph/proto").proto.IResponseHeader} HieroProto.proto.IResponseHeader * @typedef {import("@hashgraph/proto").proto.CryptoGetInfoResponse.IAccountInfo} HieroProto.proto.CryptoGetInfoResponse.IAccountInfo * @typedef {import("@hashgraph/proto").proto.ICryptoGetInfoQuery} HieroProto.proto.ICryptoGetInfoQuery * @typedef {import("@hashgraph/proto").proto.ICryptoGetInfoResponse} HieroProto.proto.ICryptoGetInfoResponse */ /** * @typedef {import("../channel/Channel.js").default} Channel * @typedef {import("../client/Client.js").default<*, *>} Client */ /** * Retrieves the metadata of an account * @augments {Query<AccountInfo>} */ export default class AccountInfoQuery extends Query<AccountInfo> { /** * @internal * @param {HieroProto.proto.IQuery} query * @returns {AccountInfoQuery} */ static _fromProtobuf(query: HieroProto.proto.IQuery): AccountInfoQuery; /** * @param {object} props * @param {AccountId | string} [props.accountId] */ constructor(props?: { accountId?: string | AccountId | undefined; }); /** * @private * @type {?AccountId} */ private _accountId; /** * @returns {?AccountId} */ get accountId(): AccountId | null; /** * Set the account ID for which the info is being requested. * * @param {AccountId | string} accountId * @returns {AccountInfoQuery} */ setAccountId(accountId: AccountId | string): AccountInfoQuery; } export namespace HieroProto { namespace proto { type IQuery = import("@hashgraph/proto").proto.IQuery; type IQueryHeader = import("@hashgraph/proto").proto.IQueryHeader; type IResponse = import("@hashgraph/proto").proto.IResponse; type IResponseHeader = import("@hashgraph/proto").proto.IResponseHeader; namespace CryptoGetInfoResponse { type IAccountInfo = import("@hashgraph/proto").proto.CryptoGetInfoResponse.IAccountInfo; } type ICryptoGetInfoQuery = import("@hashgraph/proto").proto.ICryptoGetInfoQuery; type ICryptoGetInfoResponse = import("@hashgraph/proto").proto.ICryptoGetInfoResponse; } } export type Channel = import("../channel/Channel.js").default; export type Client = import("../client/Client.js").default<any, any>; import AccountInfo from "./AccountInfo.js"; import Query from "../query/Query.js"; import AccountId from "./AccountId.js";