PACKAGE
op_context
Functions and properties that are only accessible withing the scope of an operation.
Example
operation my_operation() {
print(op_context.exists()); // Prints true
}
query my_query() {
return op_context.exists(); // Returns false
}
Functions
emit_event
Register an event for handling by the blockchain at the end of the current transaction.
get_all_operations
Gets all operations in the current transaction.
get_current_operation
Get a struct representing the current operation.
get_signers
Get the signers of the current transaction.
is_signer
Check if a given public key is a signer of the current transaction; i.e. if it's in the list of
Properties
exists
Indicates whether there is currently an operation context, i.e. if the currently executing code has
last_block_time
The timestamp of the most recent completed block in the blockchain, in milliseconds.
block_height
The height of the block being built, i.e. the number of completed blocks in the blockchain.
op_index
The index of the current operation within the transaction.
© 2026 Chromia