Skip to main content

getBackTraceInfo

@opcat-labs/scrypt-ts-opcat v1.0.4


@opcat-labs/scrypt-ts-opcat / getBackTraceInfo

Function: getBackTraceInfo()

getBackTraceInfo(prevTxHex, prevPrevTxHex, prevTxInputIndex): BacktraceInfo

Defined in: packages/scrypt-ts-opcat/src/utils/proof.ts:74

prevPrevTx: input1 + input2 + ... = output1 + output2 + ... prevTx: input1(prevPrevTx.output1) + input2 + ... = output1 + output2 + ... curTx: input1(prevTx.output1) + input2 + ... = output1 + output2 + ...

if we want to backtrace curTx.input1, the arguments should be:

Parameters

prevTxHex

string

prevPrevTxHex

string

prevTxInputIndex

number

Returns

BacktraceInfo