Module api

Source
Expand description

System API and low level functions for it.

Modules§

call
APIs to make and manage calls in the canister.
management_canister
Functions and types for calling the IC management canister.
stable
APIs to manage stable memory.

Functions§

caller
Returns the caller of the current call.
canister_balance
Get the amount of funds available in the canister.
canister_balance128
Get the amount of funds available in the canister.
canister_version
Get the value of canister version.
data_certificate
When called from a query call, returns the data certificate authenticating certified_data set by this canister.
id
Returns the canister id as a blob.
instruction_counter
Returns the number of instructions that the canister executed since the last entry point.
is_controller
Determine if a Principal is a controller of the canister.
performance_counter
Get the value of specified performance counter.
print
Prints the given message.
set_certified_data
Sets the certified data of this canister.
time
Get current timestamp, in nanoseconds since the epoch (1970-01-01)
trap
Traps with the given message.