PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@hashgraph/sdk/lib/account
Просмотр файла: AccountDeleteTransaction.d.ts
/**
* @namespace proto
* @typedef {import("@hashgraph/proto").proto.ITransaction} HashgraphProto.proto.ITransaction
* @typedef {import("@hashgraph/proto").proto.ISignedTransaction} HashgraphProto.proto.ISignedTransaction
* @typedef {import("@hashgraph/proto").proto.TransactionBody} HashgraphProto.proto.TransactionBody
* @typedef {import("@hashgraph/proto").proto.ITransactionBody} HashgraphProto.proto.ITransactionBody
* @typedef {import("@hashgraph/proto").proto.ITransactionResponse} HashgraphProto.proto.ITransactionResponse
* @typedef {import("@hashgraph/proto").proto.ICryptoDeleteTransactionBody} HashgraphProto.proto.ICryptoDeleteTransactionBody
* @typedef {import("@hashgraph/proto").proto.IAccountID} HashgraphProto.proto.IAccountID
*/
/**
* @typedef {import("../channel/Channel.js").default} Channel
* @typedef {import("../client/Client.js").default<*, *>} Client
* @typedef {import("../transaction/TransactionId.js").default} TransactionId
*/
/**
* Marks an account as deleted, moving all its current hbars to another account.
*
* It will remain in the ledger, marked as deleted, until it expires.
* Transfers into it a deleted account fail. But a deleted account can still have its
* expiration extended in the normal way.
*/
export default class AccountDeleteTransaction extends Transaction {
/**
* @internal
* @param {HashgraphProto.proto.ITransaction[]} transactions
* @param {HashgraphProto.proto.ISignedTransaction[]} signedTransactions
* @param {TransactionId[]} transactionIds
* @param {AccountId[]} nodeIds
* @param {HashgraphProto.proto.ITransactionBody[]} bodies
* @returns {AccountDeleteTransaction}
*/
static _fromProtobuf(transactions: HashgraphProto.proto.ITransaction[], signedTransactions: HashgraphProto.proto.ISignedTransaction[], transactionIds: TransactionId[], nodeIds: AccountId[], bodies: HashgraphProto.proto.ITransactionBody[]): AccountDeleteTransaction;
/**
* @param {object} props
* @param {AccountId} [props.accountId]
* @param {AccountId} [props.transferAccountId]
*/
constructor(props?: {
accountId?: AccountId | undefined;
transferAccountId?: AccountId | undefined;
});
/**
* @private
* @type {?AccountId}
*/
private _accountId;
/**
* @private
* @type {?AccountId}
*/
private _transferAccountId;
/**
* @returns {?AccountId}
*/
get accountId(): AccountId | null;
/**
* Set the account ID which is being deleted in this transaction.
*
* @param {AccountId | string} accountId
* @returns {AccountDeleteTransaction}
*/
setAccountId(accountId: AccountId | string): AccountDeleteTransaction;
/**
* @returns {?AccountId}
*/
get transferAccountId(): AccountId | null;
/**
* Set the account ID which will receive all remaining hbars.
*
* @param {AccountId | string} transferAccountId
* @returns {AccountDeleteTransaction}
*/
setTransferAccountId(transferAccountId: AccountId | string): AccountDeleteTransaction;
/**
* @override
* @protected
* @returns {HashgraphProto.proto.ICryptoDeleteTransactionBody}
*/
protected override _makeTransactionData(): HashgraphProto.proto.ICryptoDeleteTransactionBody;
}
export namespace HashgraphProto {
namespace proto {
type ITransaction = import("@hashgraph/proto").proto.ITransaction;
type ISignedTransaction = import("@hashgraph/proto").proto.ISignedTransaction;
type TransactionBody = import("@hashgraph/proto").proto.TransactionBody;
type ITransactionBody = import("@hashgraph/proto").proto.ITransactionBody;
type ITransactionResponse = import("@hashgraph/proto").proto.ITransactionResponse;
type ICryptoDeleteTransactionBody = import("@hashgraph/proto").proto.ICryptoDeleteTransactionBody;
type IAccountID = import("@hashgraph/proto").proto.IAccountID;
}
}
export type Channel = import("../channel/Channel.js").default;
export type Client = import("../client/Client.js").default<any, any>;
export type TransactionId = import("../transaction/TransactionId.js").default;
import Transaction from "../transaction/Transaction.js";
import AccountId from "./AccountId.js";
Выполнить команду
Для локальной разработки. Не используйте в интернете!