一键导入
cardano-cli-transactions
"Transaction guidance: build, sign, submit patterns. Provides templates (no execution). Use operator skill to execute."
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
"Transaction guidance: build, sign, submit patterns. Provides templates (no execution). Use operator skill to execute."
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | cardano-cli-transactions |
| description | Transaction guidance: build, sign, submit patterns. Provides templates (no execution). Use operator skill to execute. |
| allowed-tools | ["Read"] |
| user-invocable | true |
| context | ["!cardano-cli version 2>&1 | head -5"] |
| metadata | {"openclaw":{"emoji":"🧰","requires":{"anyBins":["cardano-cli","docker"]},"install":[{"id":"brew","kind":"brew","formula":"colima docker docker-compose curl","bins":["colima","docker","docker-compose","curl"],"label":"Install Docker runtime (Colima) + Docker CLI + Compose + curl (brew)","os":["darwin","linux"]}]}} |
This is a guidance skill. Provides templates and explanations. For execution, use
cardano-cli-transactions-operator.
If cardano-cli is not installed locally, use the wrapper script in this skill folder to run cardano-cli inside Docker (the Cardano node container images include the CLI).
chmod +x {baseDir}/scripts/cardano-cli.sh
{baseDir}/scripts/cardano-cli.sh version
Notes:
/work so files like pparams.json, tx.body, datum.json work normally.CARDANO_NODE_SOCKET_PATH before running so query commands work.CARDANO_DOCKER_IMAGE=ghcr.io/intersectmbo/cardano-node:<tag>.# 1. Query sender UTxOs
cardano-cli conway query utxo \
--address <sender-addr> \
--testnet-magic 1
# 2. Get protocol parameters
cardano-cli conway query protocol-parameters \
--testnet-magic 1 \
--out-file pparams.json
# 3. Build transaction
cardano-cli conway transaction build \
--testnet-magic 1 \
--tx-in <utxo-hash>#<index> \
--tx-out <recipient>+<amount-lovelace> \
--change-address <sender-addr> \
--out-file tx.unsigned
# 4. Sign
cardano-cli conway transaction sign \
--tx-file tx.unsigned \
--signing-key-file payment.skey \
--testnet-magic 1 \
--out-file tx.signed
# 5. Submit
cardano-cli conway transaction submit \
--testnet-magic 1 \
--tx-file tx.signed
# 6. Verify
cardano-cli conway transaction txid --tx-file tx.signed
cardano-cli conway transaction build \
--testnet-magic 1 \
--tx-in <utxo>#<index> \
--tx-out <addr1>+<amount1> \
--tx-out <addr2>+<amount2> \
--tx-out <addr3>+<amount3> \
--change-address <sender> \
--out-file tx.unsigned
cardano-cli conway transaction build \
--testnet-magic 1 \
--tx-in <utxo>#<index> \
--tx-out "<recipient>+<lovelace>+<amount> <policy-id>.<asset-name>" \
--change-address <sender> \
--out-file tx.unsigned
cardano-cli conway transaction build \
--testnet-magic 1 \
--tx-in <utxo>#<index> \
--tx-out <recipient>+<amount> \
--change-address <sender> \
--metadata-json-file metadata.json \
--out-file tx.unsigned
User request: "Send 10 ADA to addr_test1qz..."
Response:
# === Send 10 ADA on Preprod ===
# Setup
SENDER_ADDR="addr_test1..."
RECIPIENT="addr_test1qz..."
AMOUNT=10000000 # 10 ADA in lovelace
# 1. Query UTxOs
cardano-cli conway query utxo \
--address $SENDER_ADDR \
--testnet-magic 1
# 2. Build (using first UTxO with sufficient funds)
cardano-cli conway transaction build \
--testnet-magic 1 \
--tx-in <paste-utxo-here>#0 \
--tx-out "$RECIPIENT+$AMOUNT" \
--change-address $SENDER_ADDR \
--out-file tx.unsigned
# 3. Sign
cardano-cli conway transaction sign \
--tx-file tx.unsigned \
--signing-key-file payment.skey \
--testnet-magic 1 \
--out-file tx.signed
# 4. Submit (use operator skill or run manually)
# cardano-cli conway transaction submit --testnet-magic 1 --tx-file tx.signed
tx-20240115-143022/
├── pparams.json # Protocol parameters used
├── tx.unsigned # Unsigned transaction
├── tx.signed # Signed transaction
├── utxos.json # Input UTxOs at build time
└── commands.log # Commands executed
shared/PRINCIPLES.mdcardano-cli-transactions-operator (for execution)Read-only wallet state via cardano MCP: balances, addresses, and UTxOs. Requires a configured cardano MCP server.
Retrieve ADAHandle identities ($handle) for the connected wallet via cardano MCP. Read-only.
Query staking delegation status and available rewards via cardano MCP. Read-only, no delegation changes.
Sign and submit pre-built Cardano transactions via cardano MCP. High-risk: requires structured preview and explicit user confirmation.
"Aiken workflows: validators, building, blueprints, .plutus generation. Safe guidance for smart contract development."
"Diagnose cardano-cli: version, era-prefixed vs legacy syntax, network flags. Produces compatibility report."