@lelantos-org/sdk / advanced / locateOperation
Function: locateOperation()
ts
function locateOperation(
logs,
pool,
commitments
):
| OperationLocation
| undefined;Defined in: @lelantos-org/sdk/dist/chain/operation.d.ts:35
Find the operation that published commitments among logs.
commitments are the operation's output commitments, as bytes32 hex. Its RootAdvanced is the last one before its first matching NotePayload. undefined when no NotePayload from pool carries one of them, or none is preceded by a RootAdvanced; the pool produces neither layout for a spend.
Parameters
| Parameter | Type |
|---|---|
logs | readonly TxLog[] |
pool | string | EvmAddress |
commitments | readonly string[] |
Returns
| OperationLocation | undefined