UNPKG

@btc-vision/transaction

Version:

OPNet transaction library allows you to create and sign transactions for the OPNet network.

19 lines (18 loc) 1.17 kB
import { TransactionType } from '../enums/TransactionType.js'; import { IChallengeSolutionTransactionParameters } from '../interfaces/ITransactionParameters.js'; import { Psbt, PsbtInput, Signer } from '@btc-vision/bitcoin'; import { TransactionBuilder } from './TransactionBuilder.js'; import { ECPairInterface } from 'ecpair'; export declare class ChallengeSolutionTransaction extends TransactionBuilder<TransactionType.CHALLENGE_SOLUTION> { readonly type: TransactionType.CHALLENGE_SOLUTION; protected amount: bigint; protected readonly challengeSolution: Buffer; constructor(parameters: IChallengeSolutionTransactionParameters); protected buildTransaction(): Promise<void>; protected signInput(transaction: Psbt, input: PsbtInput, i: number, signer: Signer | ECPairInterface, reverse?: boolean, errored?: boolean): Promise<void>; protected customFinalizerP2SH: (inputIndex: number, input: PsbtInput, scriptA: Buffer, isSegwit: boolean, isP2SH: boolean, isP2WSH: boolean) => { finalScriptSig: Buffer | undefined; finalScriptWitness: Buffer | undefined; }; protected getSignerKey(): Signer | ECPairInterface; }