Hi there, I’m very new to the Motoko language and the ICP. I recently deployed a new project to production. After doing so, I confirmed I have enough cycles to call a certain function by running dfx wallet --network ic balance
in my terminal, which returned more than 5.2 Trillion cycles. But I’m getting an error, saying that I don’t have enough cycles, although I do not understand why.
The function was called in the terminal like this: dfx canister --network ic call opend mint '(vec {*many Nat8 Numbers*}, "Text input")'
but was returned an error,
Error: The Replica returned an error: code 4, message: "Canister installation failed with Canister afixf-dyaaa-aaaaj-adamq-cai is out of cycles: requested 80000590000 cycles but the available balance is 500,000,000 cycles and the freezing threshold 0 cycles
"`
If I have more than 5.2 Trillion cycles in my network ic wallet, why does my terminal say that I only have exactly 500 million? Do I need to transfer my cycles from my wallet to this canister? If so, how would I, because each time I run this command, it creates a new Canister with a different ID.
This function call was working seamlessly in developing mode (non-production), but now that we’re in production, I’m running into these cycles issues.
Hope to hear from someone soon,
Thanks