원클릭으로
meshtransaction
Cardano transaction building with @meshsdk/transaction
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Cardano transaction building with @meshsdk/transaction
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Scaffold a new Express API endpoint with controller, route (OpenAPI annotations), response type, and barrel exports.
Low-level Cardano utilities with @meshsdk/core-cst
Cardano wallet integration with @meshsdk/wallet
Scaffold a new cron job with in-process guard, env-configurable schedule, SyncStatus DB locking, and job registry wiring.
Scaffold a new Prisma database model with project conventions (snake_case mapping, BigInt for lovelace, timestamps, relations).
Analyze feedback and evolve skills through structured improvement. The meta-skill that makes other skills better.
| name | MeshTransaction |
| description | Cardano transaction building with @meshsdk/transaction |
| version | 1.9.0 |
| triggers | ["mesh","meshsdk","meshtxbuilder","cardano transaction","cardano tx","plutus script","minting tokens","stake delegation","drep","governance vote"] |
AI-assisted Cardano transaction building using MeshTxBuilder from @meshsdk/transaction.
npm install @meshsdk/transaction
# or
npm install @meshsdk/core # includes transaction + wallet + provider
| Task | Method Chain |
|---|---|
| Send ADA | txIn() -> txOut() -> changeAddress() -> complete() |
| Mint tokens (Plutus) | mintPlutusScriptV2() -> mint() -> mintingScript() -> mintRedeemerValue() -> ... |
| Mint tokens (Native) | mint() -> mintingScript() -> ... |
| Script spending | spendingPlutusScriptV2() -> txIn() -> txInScript() -> txInDatumValue() -> txInRedeemerValue() -> ... |
| Stake delegation | delegateStakeCertificate(rewardAddress, poolId) |
| Withdraw rewards | withdrawal(rewardAddress, coin) -> withdrawalScript() -> withdrawalRedeemerValue() |
| Governance vote | vote(voter, govActionId, votingProcedure) |
| DRep registration | drepRegistrationCertificate(drepId, anchor?, deposit?) |
import { MeshTxBuilder } from '@meshsdk/transaction';
const txBuilder = new MeshTxBuilder({
fetcher?: IFetcher, // For querying UTxOs (e.g., BlockfrostProvider)
submitter?: ISubmitter, // For submitting transactions
evaluator?: IEvaluator, // For script execution cost estimation
serializer?: IMeshTxSerializer, // Custom serializer
selector?: IInputSelector, // Custom coin selection
isHydra?: boolean, // Hydra L2 mode (zero fees)
params?: Partial<Protocol>, // Custom protocol parameters
verbose?: boolean, // Enable logging
});
| Method | Async | Balanced | Use Case |
|---|---|---|---|
complete() | Yes | Yes | Production - auto coin selection, fee calculation |
completeSync() | No | No | Testing - requires manual inputs/fee |
completeUnbalanced() | No | No | Partial build for inspection |
completeSigning() | No | N/A | Add signatures after complete() |
All methods return this for chaining:
txBuilder
.txIn(hash, index)
.txOut(address, amount)
.changeAddress(addr)
.complete();
spendingPlutusScriptV1/V2/V3() - Set before txIn() for script inputsmintPlutusScriptV1/V2/V3() - Set before mint() for Plutus mintingwithdrawalPlutusScriptV1/V2/V3() - Set before withdrawal() for script withdrawalsvotePlutusScriptV1/V2/V3() - Set before vote() for script votesDatum and redeemer values accept three formats:
"Mesh" (default) - Mesh Data type"JSON" - Raw constructor format"CBOR" - Hex-encoded CBOR stringUse *TxInReference() methods to reference scripts stored on-chain instead of including them in the transaction (reduces tx size/fees).
complete() fails without changeAddress()txInCollateral()spendingPlutusScriptV2() BEFORE txIn() for script inputsselectUtxosFrom() for auto-selection