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

Function getOutputSize

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

Source from the content-addressed store, hash-verified

131}
132
133export function getOutputSize(output: Output): number {
134 const encodedOutput = encodeOutput(output);
135 return encodedOutput.byteLength;
136}
137
138export function encodeOutput(output: Output): Uint8Array {
139 return encodeTransactionOutput(cashScriptOutputToLibauthOutput(output));

Callers 3

calculateDustFunction · 0.85
getTxSizeWithoutInputsFunction · 0.85

Calls 1

encodeOutputFunction · 0.85

Tested by

no test coverage detected