Module ic_kit::ic[][src]

Expand description

APIs/Methods to work with the Internet Computer.

Functions

The balance of the canister.

Perform the call and return the response.

Perform a call.

The caller who has invoked this method on the canister.

Returns the data certificate authenticating certified_data set by this canister.

Remove the data associated with the given data type.

Return the data associated with the given type. If the data is not present the default value of the type is returned.

Return a mutable reference to the given data type, if the data is not present the default value of the type is constructed and stored. The changes made to the data during updates is preserved.

ID of the current canister.

Accept the given amount of cycles, returns the actual amount of accepted cycles.

Return the number of available cycles that is sent by the caller.

Return the cycles that were sent back by the canister that was just called. This method should only be called right after an inter-canister call.

Print a message.

Set the certified data of the canister, this method traps if data.len > 32.

Restore the data from the stable storage. If the data is not already stored the None value is returned.

Store the given data to the stable storage.

Store the given data to the storage.

The time in nanoseconds.

Trap the code.