Loading...
Loading...
PSBT (Partially Signed Bitcoin Transaction) construction and signing — build PSBTs for ordinals purchases, estimate fees, sign with the active wallet, and broadcast finalized PSBTs.
npx skill4agent add aibtcdev/skills psbtbun run psbt/psbt.ts <subcommand> [options]bun run psbt/psbt.ts estimate-fee --psbt <base64>--psbt <base64>{
"network": "mainnet",
"vsize": 253,
"inputsLength": 2,
"outputsLength": 3,
"feeEstimates": {
"fast": { "satPerVb": 12, "totalSats": 3036 },
"medium": { "satPerVb": 6, "totalSats": 1518 },
"slow": { "satPerVb": 2, "totalSats": 506 }
},
"currentFeeSats": "1200"
}bun run psbt/psbt.ts sign --psbt <base64>--psbt <base64>--inputs <indexes>--finalize{
"success": true,
"network": "mainnet",
"signedInputs": [1, 2],
"finalizedInputs": [],
"skippedInputs": [{ "index": 0, "reason": "no matching key for this input" }],
"psbtBase64": "<updated-base64>"
}bun run psbt/psbt.ts broadcast --psbt <base64>--psbt <base64>{
"success": true,
"network": "mainnet",
"txid": "abc123...",
"explorerUrl": "https://mempool.space/tx/abc123...",
"txHex": "0200..."
}bun run wallet/wallet.ts unlocksignpsbt_create_ordinal_buybroadcasttx.finalize()estimate-fee