UNPKG

@bitgo/utxo-bin

Version:

Command-line utility for BitGo UTXO transactions

23 lines 943 B
import * as utxolib from '@bitgo/utxo-lib'; import { Parser, ParserNode } from './Parser'; declare const paymentTypes: readonly ["p2sh", "p2shP2wsh", "p2pkh", "p2wpkh", "p2wsh", "p2ms"]; type PaymentType = (typeof paymentTypes)[number]; export declare class ScriptParser extends Parser { network: utxolib.Network; constructor({ network }: { network: utxolib.Network; }); static toASM(script: Buffer, { insertNewlines }?: { insertNewlines?: boolean | undefined; }): string | undefined; static classify(script: Buffer | undefined, witness: Buffer[] | undefined): { input: string | undefined; output: string | undefined; witness: string | undefined; }; parsePayment(type: PaymentType, payment: utxolib.Payment): ParserNode; parseBufferAsPayment(script: Buffer): ParserNode[]; parse(script: Buffer): ParserNode; } export {}; //# sourceMappingURL=ScriptParser.d.ts.map