query

tarafından convex-dev

Convex ağı üzerinde salt okunur bir CVM sorgusu yürütür. Zincir üstü durumu okurken, bakiyeleri kontrol ederken, hesapları ararken veya Convex Lisp değerlendirirken kullanın…

npx skills add https://github.com/convex-dev/convex --skill query

Query Convex State

Queries are read-only, free and instant. They never modify state and need no key, so prefer a query over a transaction whenever you only need to read.

Expression: $0 Address (optional): $1 — the account context for the query (e.g. #13)

See the convex-lisp skill for CVM conventions and error codes.

How to Run It

With a Convex MCP server configured (tool names look like mcp__<server>__query), use its query tool. The server is configured per user, not by this repository — do not assume it is present.

Otherwise use the CLI, which always works from a built convex.jar:

java -jar convex.jar client query '(balance #13)'
java -jar convex.jar client query --host <host> --port <port> '(balance #13)'
java -jar convex.jar client query -a #13 '*balance*'

-a / --address sets the account context. Against a local network started with the local-network skill, pass --host localhost --port <PORT>.

Common Queries

TaskExpression
Coin balance(balance #13)
Own balance*balance*
Account info(account #13)
Token balance(@convex.fungible/balance #TOKEN #USER)
Token supply(@convex.fungible/total-supply #TOKEN)
Lookup symbol(lookup #ADDR 'symbol)
Full state*state* (large!)

lookup needs a literal symbol as its last argument — it is resolved at compile time, so a computed symbol fails with :COMPILE.

Present balances in CVM units (e.g. "1.5 CVM", not "1500000000 copper").

convex-dev tarafından daha fazla skill

account
convex-dev
Convex hesapları oluşturun veya inceleyin. Kullanıcı yeni bir account kurmak, account ayrıntılarını kontrol etmek veya anahtarları yönetmek istediğinde kullanın.
account
convex-dev
Convex hesapları oluşturun veya inceleyin. Kullanıcı yeni bir hesap kurmak, hesap detaylarını kontrol etmek veya anahtarları yönetmek istediğinde kullanın.
token
convex-dev
Convex üzerinde değiştirilebilir token'lar oluşturun ve yönetin. Kullanıcı yeni bir token oluşturmak, token bakiyelerini kontrol etmek veya token arzını yönetmek istediğinde kullanın.
build-convex
convex-dev
Convex projesini kaynak koddan derleyin. Bir katılımcının Convex'i derlemek, test etmek veya paketlemek istediğinde kullanın.
convex-db
convex-dev
Convex DB — kafes destekli bir SQL veritabanını kullanın. Kullanıcıların sorgu yazmasına, JDBC veya PostgreSQL istemcileriyle bağlanmasına, tablo oluşturmasına, veri eklemesine/sorgulamasına yardımcı olurken kullanın,…
convex-lisp
convex-dev
Convex Lisp dil referansı — CVM kuralları, kütüphane kodu çağırma, aktör tanımları, juice ve hata kodları. CVM kaynağı yazarken veya hata ayıklarken kullanın…
deploy
convex-dev
Bir aktörü (akıllı sözleşme) Convex ağına dağıtın. Kullanıcı, dışa aktarılmış işlevlere sahip yeni bir zincir üstü aktör oluşturmak istediğinde kullanın.
ecosystem
convex-dev
Convex ekosisteminde yön bulma — hangi depoda ne var, spec'ler ve dokümanlar nerede ve hangi istemci kütüphaneleri mevcut. Bağlam gerektiğinde kullan…