UNPKG

@hashgraph/sdk

Version:
68 lines (67 loc) 2.7 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.ITokenInfo} HieroProto.proto.ITokenInfo * @typedef {import("@hashgraph/proto").proto.ITokenGetInfoQuery} HieroProto.proto.ITokenGetInfoQuery * @typedef {import("@hashgraph/proto").proto.ITokenGetInfoResponse} HieroProto.proto.ITokenGetInfoResponse */ /** * @typedef {import("../channel/Channel.js").default} Channel * @typedef {import("../client/Client.js").default<*, *>} Client * @typedef {import("../account/AccountId.js").default} AccountId */ /** * Retrieve the detail characteristics for a token. * @augments {Query<TokenInfo>} */ export default class TokenInfoQuery extends Query<TokenInfo> { /** * @internal * @param {HieroProto.proto.IQuery} query * @returns {TokenInfoQuery} */ static _fromProtobuf(query: HieroProto.proto.IQuery): TokenInfoQuery; /** * @param {object} properties * @param {TokenId | string} [properties.tokenId] */ constructor(properties?: { tokenId?: string | TokenId | undefined; }); /** * @private * @type {?TokenId} */ private _tokenId; /** * @returns {?TokenId} */ get tokenId(): TokenId | null; /** * Set the token ID for which the info is being requested. * * @param {TokenId | string} tokenId * @returns {TokenInfoQuery} */ setTokenId(tokenId: TokenId | string): TokenInfoQuery; } 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; type ITokenInfo = import("@hashgraph/proto").proto.ITokenInfo; type ITokenGetInfoQuery = import("@hashgraph/proto").proto.ITokenGetInfoQuery; type ITokenGetInfoResponse = import("@hashgraph/proto").proto.ITokenGetInfoResponse; } } export type Channel = import("../channel/Channel.js").default; export type Client = import("../client/Client.js").default<any, any>; export type AccountId = import("../account/AccountId.js").default; import TokenInfo from "./TokenInfo.js"; import Query from "../query/Query.js"; import TokenId from "./TokenId.js";