decodeTapscript is a function that decodes an ark tapsript from a raw script.
if the script is not a valid ark tapscript
const arkTapscript = decodeTapscript(new Uint8Array(32));console.log("type:", arkTapscript.type); Copy
const arkTapscript = decodeTapscript(new Uint8Array(32));console.log("type:", arkTapscript.type);
decodeTapscript is a function that decodes an ark tapsript from a raw script.