Loading...
Loading...
Parent-child Ordinals inscriptions — estimate fees, broadcast commit tx, and reveal child inscription establishing on-chain provenance per the Ordinals provenance spec.
npx skill4agent add aibtcdev/skills child-inscriptionbun run child-inscription/child-inscription.ts <subcommand> [options]bun run child-inscription/child-inscription.ts estimate \
--parent-id <inscription-id> \
--content-type <mime> \
--content <string>--parent-idabc123...i0--content-typetext/plainimage/png--content--fee-rate{
"parentId": "abc123...i0",
"contentType": "text/plain",
"contentSize": 42,
"feeRate": 12,
"fees": {
"commitFee": 1440,
"revealFee": 2100,
"revealAmount": 3394,
"totalCost": 4834
},
"breakdown": "Commit tx: 1440 sats | Reveal amount: 3394 sats (includes 2100 reveal fee) | Total: 4834 sats"
}revealbun run child-inscription/child-inscription.ts inscribe \
--parent-id <inscription-id> \
--content-type <mime> \
--content <string> \
[--fee-rate <sats-per-vbyte>]--parent-id--content-type--content--fee-ratefastmediumslowmedium{
"status": "commit_broadcast",
"commitTxid": "deadbeef...",
"commitExplorerUrl": "https://mempool.space/tx/deadbeef...",
"revealAddress": "bc1p...",
"revealAmount": 3394,
"commitFee": 1440,
"feeRate": 12,
"parentInscriptionId": "abc123...i0",
"contentType": "text/plain",
"contentSize": 42,
"nextStep": "After commit confirms, call reveal with commitTxid and revealAmount from this response."
}bun run child-inscription/child-inscription.ts reveal \
--commit-txid <txid> \
--vout <num>--commit-txidinscribe--vout0.child-inscription-state.jsoninscribe{
"status": "success",
"inscriptionId": "revealthash...i0",
"parentInscriptionId": "abc123...i0",
"contentType": "text/plain",
"contentSize": 42,
"commit": {
"txid": "deadbeef...",
"explorerUrl": "https://mempool.space/tx/deadbeef..."
},
"reveal": {
"txid": "revealthash...",
"fee": 2100,
"explorerUrl": "https://mempool.space/tx/revealthash..."
},
"recipientAddress": "bc1p..."
}estimateinscribe.child-inscription-state.jsonrevealinscriberevealbun run wallet/wallet.ts unlockNETWORK