Skip to main content

TransactionCostModel

For the complete documentation index, see llms.txt

@midnight/ledger v8.0.3


@midnight/ledger / TransactionCostModel

Class: TransactionCostModel

Properties​

baselineCost​

readonly baselineCost: RunningCost;

시작 기준 비용입니다.


inputFeeOverhead​

readonly inputFeeOverhead: bigint;

트랜잭션에 새 입력을 추가할 때 예상되는 수수료 증가분입니다.


outputFeeOverhead​

readonly outputFeeOverhead: bigint;

트랜잭션에 새 출력을 추가할 때 예상되는 수수료 증가분입니다.


runtimeCostModel​

readonly runtimeCostModel: CostModel;

트랜잭션 수수료를 계산하기 위한 비용 모델입니다.

Methods​

serialize()​

serialize(): Uint8Array;

Returns​

Uint8Array


toString()​

toString(compact?): string;

Parameters​

compact?​

boolean

Returns​

string


deserialize()​

static deserialize(raw): TransactionCostModel;

Parameters​

raw​

Uint8Array

Returns​

TransactionCostModel


initialTransactionCostModel()​

static initialTransactionCostModel(): TransactionCostModel;

Midnight의 초기 비용 모델입니다.

Returns​

TransactionCostModel