Module ic_cdk::api

source ·
Expand description

System API and low level functions for it.

Modules§

Functions§

  • Returns the number of WebAssembly instructions the canister has executed within the call context of the current Message execution since Call context creation.
  • Returns the caller of the current call.
  • Gets the amount of funds available in the canister.
  • Gets the amount of funds available in the canister.
  • Gets the value of canister version.
  • Burns cycles from the canister.
  • When called from a query call, returns the data certificate authenticating certified_data set by this canister.
  • Returns the canister id as a blob.
  • Returns the number of instructions that the canister executed since the last entry point.
  • Determines if a Principal is a controller of the canister.
  • Gets the value of specified performance counter.
  • Prints the given message.
  • Sets the certified data of this canister.
  • Gets current timestamp, in nanoseconds since the epoch (1970-01-01)
  • Traps with the given message.