cardano-protocol-params
Protocol parameters: fetch pparams, understand fees, min-UTxO, execution budgets. Read-only diagnostics.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Protocol parameters: fetch pparams, understand fees, min-UTxO, execution budgets. Read-only diagnostics.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
CRITICAL: Use for performance optimization. Triggers: performance, optimization, benchmark, profiling, flamegraph, criterion, slow, fast, allocation, cache, SIMD, make it faster, 性能优化, 基准测试
Use when integrating crates or ecosystem questions. Keywords: E0425, E0433, E0603, crate, cargo, dependency, feature flag, workspace, which crate to use, using external C libraries, creating Python extensions, PyO3, wasm, WebAssembly, bindgen, cbindgen, napi-rs, cannot find, private, crate recommendation, best crate for, Cargo.toml, features, crate 推荐, 依赖管理, 特性标志, 工作空间, Python 绑定
Encode and decode bech32 and bech32m strings using the local bech32 and bech32m CLI.
Diagnose cardano-cli: version, era-prefixed vs legacy syntax, network flags. Produces compatibility report.
Execute Plutus script transactions: script spends, datum/redeemer submission. Manual invoke only.
Plutus script guidance: datums, redeemers, collateral, reference scripts. Templates only—use operator to execute.
| name | cardano-protocol-params |
| description | Protocol parameters: fetch pparams, understand fees, min-UTxO, execution budgets. Read-only diagnostics. |
| allowed-tools | ["Bash(cardano-cli:*)","Read"] |
| context | ["!cardano-cli version 2>&1 | head -5"] |
minFeeA: 44 # lovelace per byte
minFeeB: 155381 # base fee in lovelace
Formula: fee = minFeeA * txSize + minFeeB
coinsPerUTxOByte: 4310 # lovelace per byte of UTxO
Minimum ADA required = size of UTxO (including datum) × coinsPerUTxOByte
maxTxExecutionUnits:
steps: 10000000000 # CPU budget
memory: 10000000 # Memory budget
executionUnitPrices:
priceSteps: 0.0000721 # lovelace per step
priceMemory: 0.0577 # lovelace per memory unit
minFeeRefScriptCostPerByte: 15 # Cost for using reference scripts
# Preprod
cardano-cli conway query protocol-parameters \
--testnet-magic 1 \
--out-file pparams-preprod.json
# Mainnet
cardano-cli conway query protocol-parameters \
--mainnet \
--out-file pparams-mainnet.json
# Using jq
cat pparams.json | jq '{
minFeeA: .txFeePerByte,
minFeeB: .txFeeFixed,
coinsPerUTxOByte: .utxoCostPerByte,
maxTxSize: .maxTxSize,
maxValSize: .maxValueSize
}'
# Approximate: base ~160 bytes + datum size
# For simple ADA-only output: ~1 ADA minimum
# For output with tokens: varies by token count/names
Problem: Transaction fails with min-UTxO error
Response:
# 1. Fetch current params
cardano-cli conway query protocol-parameters \
--testnet-magic 1 \
--out-file pparams.json
# 2. Check coinsPerUTxOByte
cat pparams.json | jq .utxoCostPerByte
# Result: 4310
# 3. Estimate min-UTxO for your output
# Simple ADA output: ~160 bytes × 4310 = ~690,000 lovelace
# With inline datum: add datum size × 4310
# With tokens: add ~30 bytes per token
# 4. Solution: increase output amount above minimum
Problem: Need to budget for Plutus script
Response:
# 1. Get execution prices
cat pparams.json | jq '{
priceSteps: .executionUnitPrices.priceSteps,
priceMemory: .executionUnitPrices.priceMemory
}'
# 2. If script uses 1M steps and 100K memory:
# Cost = (1000000 × 0.0000721) + (100000 × 0.0577)
# Cost = 72.1 + 5770 = 5842.1 lovelace (~0.006 ADA)
# 3. Add to base tx fee for total
Mainnet: (no flag, use --mainnet)
Preprod: --testnet-magic 1
Preview: --testnet-magic 2
shared/PRINCIPLES.md