transfer

Chuyển CVM coins hoặc token có thể thay thế giữa các tài khoản Convex. Sử dụng khi người dùng muốn gửi coin hoặc token đến một tài khoản khác.

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

Transfer Coins or Tokens

A transfer is a transaction, so it needs a key the user has supplied — see the transact skill for the authorisation model and the CLI form. Without a key you can prepare the transfer but not execute it.

CVM Coin Transfer

Source: (transfer #42 1000000000) — sends 1 CVM.

With a Convex MCP server configured, its transfer tool takes to (destination address) and amount (in copper).

Fungible Token Transfer

Source: (@convex.fungible/transfer #TOKEN #DEST AMOUNT)

With the MCP transfer tool, set the token parameter to the token actor address.

Before Executing

  • Confirm destination and amount with the user. Restate both in CVM units — "send 2.5 CVM to #42" — and get agreement before signing. A transfer is irreversible.
  • Convert to copper: multiply CVM by 1,000,000,000. Getting this wrong by a factor of 10^9 is the easiest and most expensive mistake here.
  • Check the sender's balance first with a query, so a :FUNDS failure is caught before signing rather than after.
  • For tokens, check the token balance, not the coin balance — they are unrelated.

Report the result in CVM units (e.g. "Sent 2.5 CVM to #42").

Thêm skills từ convex-dev

account
convex-dev
Tạo hoặc kiểm tra các account Convex. Sử dụng khi người dùng muốn thiết lập account mới, kiểm tra chi tiết account, hoặc quản lý keys.
account
convex-dev
Tạo hoặc kiểm tra tài khoản Convex. Sử dụng khi người dùng muốn thiết lập tài khoản mới, kiểm tra chi tiết tài khoản hoặc quản lý khóa.
token
convex-dev
Tạo và quản lý token có thể thay thế trên Convex. Sử dụng khi người dùng muốn tạo token mới, kiểm tra số dư token, hoặc quản lý nguồn cung token.
build-convex
convex-dev
Xây dựng dự án Convex từ mã nguồn. Sử dụng khi một người đóng góp muốn biên dịch, kiểm thử hoặc đóng gói Convex.
convex-db
convex-dev
Sử dụng Convex DB — cơ sở dữ liệu SQL hỗ trợ lattice. Sử dụng khi giúp người dùng viết truy vấn, kết nối qua JDBC hoặc máy khách PostgreSQL, tạo bảng, chèn/truy vấn dữ liệu,…
convex-lisp
convex-dev
Tài liệu tham khảo ngôn ngữ Convex Lisp — quy ước CVM, gọi mã thư viện, định nghĩa actor, mã juice và lỗi. Sử dụng khi viết hoặc gỡ lỗi mã nguồn CVM cho…
deploy
convex-dev
Triển khai một actor (hợp đồng thông minh) lên mạng Convex. Sử dụng khi người dùng muốn tạo một actor trên chuỗi mới với các hàm được xuất.
ecosystem
convex-dev
Định hướng trong hệ sinh thái Convex — thứ gì nằm trong repository nào, specs và docs ở đâu, và những thư viện client nào tồn tại. Sử dụng khi bạn cần ngữ cảnh…