PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-vet/dist/src/lib/transaction
Просмотр файла: transaction.d.ts
import { BaseTransaction, TransactionType, TransactionRecipient } from '@bitgo/sdk-core';
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { TransactionClause, Transaction as VetTransaction } from '@vechain/sdk-core';
import { VetTransactionExplanation, VetTransactionData } from '../iface';
export declare class Transaction extends BaseTransaction {
protected _rawTransaction: VetTransaction;
protected _type: TransactionType;
protected _recipients: TransactionRecipient[];
protected _clauses: TransactionClause[];
protected _contract: string;
protected _transactionData: string;
private _chainTag;
private _blockRef;
private _expiration;
private _gasPriceCoef;
private _gas;
private _dependsOn;
private _nonce;
private _sender;
private _senderSignature;
private _feePayerAddress;
private _feePayerSignature;
constructor(_coinConfig: Readonly<CoinConfig>);
get id(): string;
get rawTransaction(): VetTransaction;
set rawTransaction(rawTx: VetTransaction);
get type(): TransactionType;
set type(type: TransactionType);
get sender(): string;
set sender(address: string);
get senderSignature(): Uint8Array | undefined;
set senderSignature(sig: Buffer);
get feePayerAddress(): string;
set feePayerAddress(address: string);
get feePayerSignature(): Uint8Array | undefined;
set feePayerSignature(sig: Buffer);
get chainTag(): number;
set chainTag(tag: number);
get blockRef(): string;
set blockRef(ref: string);
get expiration(): number;
set expiration(exp: number);
get recipients(): TransactionRecipient[];
set recipients(recipients: TransactionRecipient[]);
get clauses(): TransactionClause[];
set clauses(clauses: TransactionClause[]);
get gasPriceCoef(): number;
set gasPriceCoef(coef: number);
get gas(): number;
set gas(g: number);
get dependsOn(): string | null;
set dependsOn(dep: string | null);
get nonce(): string;
set nonce(n: string);
get contract(): string;
set contract(address: string);
get transactionData(): string;
set transactionData(transactionData: string);
/**
* Get all signatures associated with this transaction
* Required by BaseTransaction
*/
get signature(): string[];
/**
* Set signatures for this transaction
* Required by BaseTransaction
* Note: This is mainly for compatibility with the base class.
* Prefer using senderSignature and feePayerSignature directly.
*/
set signature(sigs: string[]);
/** @inheritdoc */
canSign(): boolean;
/**
* Check if this is a fee delegated transaction
*/
isFeeDelegated(): boolean;
addRecipients(clauses: TransactionClause[]): void;
buildClauses(): void;
/**
* Populates the transaction object with data from a deserialized VeChain transaction
* @param signedTx - The deserialized VeChain transaction containing body, signatures, and other transaction data
* @throws {InvalidTransactionError} When the transaction is invalid or missing required data
*/
fromDeserializedSignedTransaction(signedTx: VetTransaction): void;
addSenderSignature(signature: Buffer): void;
addFeePayerSignature(signature: Buffer): void;
build(): Promise<void>;
/**
* Sets the transaction ID from the raw transaction if it is signed
* @protected
*/
protected generateTxnIdAndSetSender(): void;
protected buildRawTransaction(): Promise<void>;
loadInputsAndOutputs(): void;
fromRawTransaction(rawTransaction: string): void;
/** @inheritdoc */
toJson(): VetTransactionData;
getFee(): string;
get signablePayload(): Buffer;
/** @inheritdoc */
toBroadcastFormat(): string;
serialize(): string;
static deserializeTransaction(rawTx: string): VetTransaction;
explainTransaction(): VetTransactionExplanation;
}
//# sourceMappingURL=transaction.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!