getOperation
Retrieve a specific operation by its unique ID. This is a query method that doesn’t modify state.Method Signature
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
id | bigint | Yes | The unique operation ID to retrieve |
Response
Returns an optionalOperation
:
[]
- Operation not found[Operation]
- Operation found
OperationType
Operations can be one of several types: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