AgentStack
SKILL verified MIT Self-run

Cardano Cli Transactions

skill-flux-point-studios-cardano-agent-skills-cardano-cli-transactions · by Flux-Point-Studios

Transaction guidance: build, sign, submit patterns. Provides templates (no execution). Use operator skill to execute.

No reviews yet
0 installs
14 views
0.0% view→install

Install

$ agentstack add skill-flux-point-studios-cardano-agent-skills-cardano-cli-transactions

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Cardano Cli Transactions? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

cardano-cli-transactions

> This is a guidance skill. Provides templates and explanations. For execution, use cardano-cli-transactions-operator.

When to use

  • Learning transaction building patterns
  • Understanding UTxO selection and change
  • Getting command templates for various tx types

Operating rules (must follow)

  • Confirm network (mainnet/preprod/preview) before providing commands
  • Never execute—only provide templates
  • Always include fee handling and change
  • Include verification steps

Docker fallback mode

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:

  • The wrapper mounts your current directory into the container as /work so files like pparams.json, tx.body, datum.json work normally.
  • If you have a local node socket, set CARDANO_NODE_SOCKET_PATH before running so query commands work.
  • Override the image with CARDANO_DOCKER_IMAGE=ghcr.io/intersectmbo/cardano-node:.

Workflow templates

Simple ADA transfer

# 1. Query sender UTxOs
cardano-cli conway query utxo \
  --address  \
  --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 # \
  --tx-out + \
  --change-address  \
  --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

Multi-output transaction

cardano-cli conway transaction build \
  --testnet-magic 1 \
  --tx-in # \
  --tx-out + \
  --tx-out + \
  --tx-out + \
  --change-address  \
  --out-file tx.unsigned

With native tokens

cardano-cli conway transaction build \
  --testnet-magic 1 \
  --tx-in # \
  --tx-out "++ ." \
  --change-address  \
  --out-file tx.unsigned

With metadata

cardano-cli conway transaction build \
  --testnet-magic 1 \
  --tx-in # \
  --tx-out + \
  --change-address  \
  --metadata-json-file metadata.json \
  --out-file tx.unsigned

Examples

Example: Send 10 ADA on preprod

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 #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 bundle folder structure

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

Safety / key handling

  • Never expose signing keys
  • Verify recipient address carefully
  • On mainnet: small test transfer first
  • Keep tx bundle for audit trail

References

  • shared/PRINCIPLES.md
  • cardano-cli-transactions-operator (for execution)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.