getComputationOffset
getComputationOffset(
tx):BN|undefined
Gets the computation offset from a transaction.
Parameters
| Parameter | Type | Description |
|---|---|---|
tx | VersionedTransactionResponse | The transaction to get the computation offset from. |
Returns
BN | undefined
The computation offset if one is found, otherwise undefined.
Throws
Error if multiple computation offsets are found in the transaction.