Arcium LogoArcium TS SDK Docs

getComputationOffset

getComputationOffset(tx): BN | undefined

Get the computation offset from a transaction.

Parameters

ParameterTypeDescription
txVersionedTransactionResponseTransaction to extract the computation offset from.

Returns

BN | undefined

Computation offset if found, otherwise undefined.

Throws

Error if multiple computation offsets are found in the transaction.

On this page