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

Function libauthOutputToCashScriptOutput

packages/cashscript/src/utils.ts:157–163  ·  view source on GitHub ↗
(output: LibauthOutput)

Source from the content-addressed store, hash-verified

155}
156
157export function libauthOutputToCashScriptOutput(output: LibauthOutput): Output {
158 return {
159 to: output.lockingBytecode,
160 amount: output.valueSatoshis,
161 token: output.token && libauthTokenDetailsToCashScriptTokenDetails(output.token),
162 };
163}
164
165export function libauthTokenDetailsToCashScriptTokenDetails(token: LibauthTokenDetails): TokenDetails {
166 return {

Callers 1

getTxOutputsFunction · 0.85

Tested by

no test coverage detected