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