with one click
meshtransaction
Cardano transaction building with @meshsdk/transaction
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Cardano transaction building with @meshsdk/transaction
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| 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-selectionImplement improvements from a goals file by section number or name
Regenerate app/gui/audio_goals.md with a fresh comprehensive analysis of the AudioPlayer component
Regenerate app/gui/goals.md with a fresh comprehensive analysis of the Veiled desktop app (excluding AudioPlayer and VideoPlayer internals)
Regenerate app/gui/video_goals.md with a fresh comprehensive analysis of the VideoPlayer component
Update app/gui/CLAUDE.md to match the current codebase state
Low-level Cardano utilities with @meshsdk/core-cst