Skip to content

Conversation

@marc0olo
Copy link
Member

Summary

  • Adds --query flag to icp canister call for making query calls instead of update calls
  • Query calls are faster (single replica, no consensus) but return uncertified responses
  • When Candid metadata is available and the method is an update method, errors preemptively with a clear message instead of letting the replica return a cryptic "Canister has no query method" error
  • --query conflicts with --proxy at the clap level (proxy calls are inherently update calls due to cycle forwarding)
  • Default behavior is unchanged: all calls remain update calls unless --query is explicitly passed

@marc0olo marc0olo requested a review from a team as a code owner February 12, 2026 11:35
@marc0olo marc0olo merged commit bea3b85 into main Feb 12, 2026
82 checks passed
@marc0olo marc0olo deleted the marc0olo/allow-query-calls branch February 12, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants