estimateAndUpdateProvisoryComputeUnitLimitFactory
Given a transaction message, if it does not have an explicit compute unit limit, estimates the compute unit limit and updates the transaction message with the estimated limit. Otherwise, returns the transaction message unchanged.
It requires a function that estimates the compute unit limit.
Example
Parameters
Parameter | Type |
---|---|
estimateComputeUnitLimit | EstimateComputeUnitLimitFactoryFunction |
Returns
EstimateAndUpdateProvisoryComputeUnitLimitFactoryFunction
See
estimateAndUpdateProvisoryComputeUnitLimitFactory