Class FixedPricingMode.FixedPricingModeBuilder
- java.lang.Object
-
- com.casper.sdk.model.transaction.pricing.FixedPricingMode.FixedPricingModeBuilder
-
- Enclosing class:
- FixedPricingMode
public static class FixedPricingMode.FixedPricingModeBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FixedPricingMode.FixedPricingModeBuilderadditionalComputationFactor(int additionalComputationFactor)User-specified additional computation factor (minimum 0).FixedPricingModebuild()FixedPricingMode.FixedPricingModeBuildergasPriceTolerance(int gasPriceTolerance)User-specified gas_price tolerance (minimum 1).java.lang.StringtoString()
-
-
-
Method Detail
-
additionalComputationFactor
public FixedPricingMode.FixedPricingModeBuilder additionalComputationFactor(int additionalComputationFactor)
User-specified additional computation factor (minimum 0). If "0" is provided, no additional logic is applied to the computation limit. Each value above "0" tells the node that it needs to treat the transaction as if it uses more gas than it's serialized size indicates. Each "1" will increase the "wasm lane" size bucket for this transaction by 1. So if the size of the transaction indicates bucket "0" and "additional_computation_factor = 2", the transaction will be treated as a "2".- Returns:
this.
-
gasPriceTolerance
public FixedPricingMode.FixedPricingModeBuilder gasPriceTolerance(int gasPriceTolerance)
User-specified gas_price tolerance (minimum 1). This is interpreted to mean "do not include this transaction in a block if the current gas price is greater than this number"- Returns:
this.
-
build
public FixedPricingMode build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-