Canister class

A Canister on the internet-computer.

Constructors

Canister(Principal principal)

Properties

hashCode int
The hash code for this object.
no setteroverride
principal Principal
The Principal of this Canister.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call({required CallType calltype, required String method_name, Uint8List? put_bytes, Caller? caller, Duration timeout_duration = const Duration(minutes: 5)}) Future<Uint8List>
Call a method on this Canister.
candid_service_metadata({Caller? caller}) Future<String?>
The metadata of the standardized candid:service custom section which holds a canister's can.did service definition file.
controllers() Future<List<Principal>>
Returns the controller Principals of this Canister.
metadata(String name, {Caller? caller}) Future<Uint8List?>
The content of the canister's custom-section called icp:public [name] or icp:private [name].
module_hash() Future<Uint8List?>
Returns the hash of the module this canister is running. If the canister is empty returns null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override