This is my Motoko function and structure (type) how i can call the canister from the console to use the function ?
type MarsLand = {
name: Text;
imageurl: Text;
tokenid:Text;
};
// adds new MarsLand to
public func addMarsLand (newMarsLand: MarsLand) : async Id {
let id = next;
next +%= 1;
MarsLands := Trie.replace(
MarsLands,
key(id),
eq,
?newMarsLand,
).0;
return id;
};
My canister is marspoolxyx and can i call with below code in console.