@hashgraph/sdk
Version:
68 lines (67 loc) • 2.88 kB
TypeScript
/**
* @namespace proto
* @typedef {import("@hiero-ledger/proto").proto.IQuery} HieroProto.proto.IQuery
* @typedef {import("@hiero-ledger/proto").proto.IQueryHeader} HieroProto.proto.IQueryHeader
* @typedef {import("@hiero-ledger/proto").proto.IResponse} HieroProto.proto.IResponse
* @typedef {import("@hiero-ledger/proto").proto.IResponseHeader} HieroProto.proto.IResponseHeader
* @typedef {import("@hiero-ledger/proto").proto.ICryptoGetAccountRecordsQuery} HieroProto.proto.ICryptoGetAccountRecordsQuery
* @typedef {import("@hiero-ledger/proto").proto.ICryptoGetAccountRecordsResponse} HieroProto.proto.ICryptoGetAccountRecordsResponse
* @typedef {import("@hiero-ledger/proto").proto.ITransactionRecord} HieroProto.proto.ITransactionRecord
*/
/**
* @typedef {import("../channel/Channel.js").default} Channel
* @typedef {import("../client/Client.js").default<*, *>} Client
*/
/**
* Get all the records for an account for any transfers into it and out of it,
* that were above the threshold, during the last 25 hours.
*
* @augments {Query<TransactionRecord[]>}
*/
export default class AccountRecordsQuery extends Query<TransactionRecord[]> {
/**
* @internal
* @param {HieroProto.proto.IQuery} query
* @returns {AccountRecordsQuery}
*/
static _fromProtobuf(query: HieroProto.proto.IQuery): AccountRecordsQuery;
/**
* @param {object} [props]
* @param {AccountId | string} [props.accountId]
*/
constructor(props?: {
accountId?: string | AccountId | undefined;
});
/**
* @type {?AccountId}
* @private
*/
private _accountId;
/**
* @returns {?AccountId}
*/
get accountId(): AccountId | null;
/**
* Set the account ID for which the records are being requested.
*
* @param {AccountId | string} accountId
* @returns {this}
*/
setAccountId(accountId: AccountId | string): this;
}
export namespace HieroProto {
namespace proto {
type IQuery = import("@hiero-ledger/proto").proto.IQuery;
type IQueryHeader = import("@hiero-ledger/proto").proto.IQueryHeader;
type IResponse = import("@hiero-ledger/proto").proto.IResponse;
type IResponseHeader = import("@hiero-ledger/proto").proto.IResponseHeader;
type ICryptoGetAccountRecordsQuery = import("@hiero-ledger/proto").proto.ICryptoGetAccountRecordsQuery;
type ICryptoGetAccountRecordsResponse = import("@hiero-ledger/proto").proto.ICryptoGetAccountRecordsResponse;
type ITransactionRecord = import("@hiero-ledger/proto").proto.ITransactionRecord;
}
}
export type Channel = import("../channel/Channel.js").default;
export type Client = import("../client/Client.js").default<any, any>;
import TransactionRecord from "../transaction/TransactionRecord.js";
import Query from "../query/Query.js";
import AccountId from "./AccountId.js";