Skip to main content

getOperation

Retrieve a specific operation by its unique ID. This is a query method that doesn’t modify state.

Method Signature

Parameters

Response

Returns an optional Operation:
  • [] - Operation not found
  • [Operation] - Operation found

OperationType

Operations can be one of several types:
For detailed type definitions, see the getOperations documentation.

Example Usage

Basic Operation Lookup

Check Operation Type

Batch Operation Lookup

Format Operation Timestamp

Query Method

This is a query method, meaning:
  • It doesn’t modify canister state
  • It’s faster and cheaper to call
  • Results are not certified (for certified data, use update calls)
  • Can be called without authentication in some cases