MCPcopy Create free account
hub / github.com/CashScript/cashscript / isOpReturnOutput

Function isOpReturnOutput

packages/cashscript/src/utils.ts:122–124  ·  view source on GitHub ↗
(output: Output)

Source from the content-addressed store, hash-verified

120}
121
122export function isOpReturnOutput(output: Output): output is Output & { to: Uint8Array } {
123 return typeof output.to !== 'string' && output.to[0] === Op.OP_RETURN;
124}
125
126export function calculateDust(output: Output): number {
127 const outputSize = getOutputSize(output);

Callers 1

validateOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected