transactionConfigMaskHasComputeUnitLimit

function transactionConfigMaskHasComputeUnitLimit(mask): boolean;

Checks whether the transaction config mask indicates a compute unit limit is present.

The compute unit limit uses bit 2 of the mask.

Parameters

ParameterTypeDescription
masknumberThe transaction config mask to check.

Returns

boolean

true if the mask indicates a compute unit limit is present, false otherwise.

Example

const hasComputeUnitLimit = transactionConfigMaskHasComputeUnitLimit(0b100);
// true (bit 2 is set)

On this page