transact

Führe eine CVM-Transaktion im Convex-Netzwerk aus. Verwende dies, wenn der Benutzer den On-Chain-Zustand ändern, Actor-Funktionen aufrufen oder Werte definieren möchte.

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

Execute a Convex Transaction

Transactions modify global state atomically. They consume juice, paid in copper by the origin account, and must be signed.

Source: $ARGUMENTS

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

Authorisation

A transaction requires a key. You have one only if the user has supplied it — a signing-service passphrase, or a raw seed. There is no ambient authority here, so:

  1. User has a key in the signing service — use the MCP signingTransact tool with their address and passphrase.
  2. User has a raw seed — use the MCP transact tool with address and seed.
  3. Neither — you cannot execute. Use prepare to build the unsigned transaction, or the CLI below, and hand it back for the user to sign.

Do not treat case 3 as a blocker to work around. Preparing the transaction and returning it is the correct outcome.

Via the CLI

Works from a built convex.jar and needs no MCP server:

java -jar convex.jar client transact -a #13 '(def my-var 42)'
java -jar convex.jar client transact -a #13 -k <key> -p <keypass> '(transfer #42 1000000000)'

-k / --key selects the key from the keystore and -p / --keypass is its passphrase; --keystore and --storepass select the keystore itself. Add --host / --port for a non-default network.

Common Patterns

TaskSource
Transfer coins(transfer #DEST AMOUNT)
Define a value(def my-var 42)
Call an actor(call #ACTOR (function-name arg1 arg2))
Call a library(@convex.fungible/transfer #TOKEN #DEST AMOUNT)
Set controller(set-controller #ADDR)

Confirm source, destination and amount with the user before executing anything that moves value or changes account control. State what will happen in CVM units, not copper.

Mehr Skills von convex-dev

account
convex-dev
Convex-Konten erstellen oder überprüfen. Verwenden, wenn der Benutzer ein neues Konto einrichten, Kontodetails prüfen oder Schlüssel verwalten möchte.
build-convex
convex-dev
Baue das Convex-Projekt aus dem Quellcode. Verwende dies, wenn ein Mitwirkender Convex kompilieren, testen oder paketieren möchte.
cad3-encoding
convex-dev
CAD3-Kodierungsformat — Zellen, eingebettete vs. Verzweigungsreferenzen, Wert-IDs, Gültigkeitsregeln. Verwenden bei der Arbeit an Encodern, Decodern, Serialisierung, Hashing oder…
cad-reference
convex-dev
Index der Convex-Architekturdokumente (CADs), der normativen Spezifikationen für Convex. Verwenden Sie dies, um herauszufinden, welcher CAD ein Subsystem regelt, bevor Sie das Protokoll ändern, …
cns
convex-dev
Lösen oder registrieren Sie Convex Name System (CNS)-Namen. Verwenden Sie dies, wenn der Benutzer einen CNS-Namen nachschlagen, einen neuen Namen registrieren oder das Ziel eines Namens aktualisieren möchte.
convex-db
convex-dev
Verwenden Sie Convex DB — eine gittergestützte SQL-Datenbank. Verwenden Sie es, wenn Sie Benutzern helfen, Abfragen zu schreiben, über JDBC- oder PostgreSQL-Clients zu verbinden, Tabellen zu erstellen, Daten einzufügen/abzufragen,…
convex-lisp
convex-dev
Convex Lisp Sprachreferenz — CVM-Konventionen, Aufruf von Bibliothekscode, Actor-Definitionen, Juice- und Fehlercodes. Verwenden beim Schreiben oder Debuggen von CVM-Quellcode für…
deploy
convex-dev
Einen Actor (Smart Contract) im Convex-Netzwerk bereitstellen. Verwenden, wenn der Benutzer einen neuen On-Chain-Actor mit exportierten Funktionen erstellen möchte.