Skip to content

CallEstimate

CallEstimate includes both the call cost and the optional size of the call result.

new CallEstimate(min, max, ResultSize?): CallEstimate

bigint

bigint

SizeEstimate

CallEstimate

CostEstimate.constructor

readonly Max: bigint

CostEstimate.Max


readonly Min: bigint

CostEstimate.Min


readonly optional ResultSize?: SizeEstimate

add(other): CostEstimate

add returns the sum of two cost ranges with uint64 overflow protection.

CostEstimate

CostEstimate

CostEstimate.add


multiply(other): CostEstimate

multiply returns the product of two cost ranges with uint64 overflow protection.

CostEstimate

CostEstimate

CostEstimate.multiply


multiplyByCostFactor(costPerUnit): CostEstimate

multiplyByCostFactor scales a cost range and rounds each bound up.

number

CostEstimate

CostEstimate.multiplyByCostFactor


union(other): CostEstimate

union returns the smallest estimate that covers both ranges.

CostEstimate

CostEstimate

CostEstimate.union