@arcium-hq/readerFunctions
getComputationOffset
getComputationOffset(
tx):BN|undefined
Get the computation offset from a transaction.
Parameters
| Parameter | Type | Description |
|---|---|---|
tx | VersionedTransactionResponse | Transaction 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.