UNPKG

@btc-vision/transaction

Version:

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

16 lines 644 B
import { type Network, type Stack, type XOnlyPublicKey } from '@btc-vision/bitcoin'; import { Generator } from '../Generator.js'; /** * Class to generate bitcoin script for interaction transactions */ export declare class CustomGenerator extends Generator { constructor(senderPubKey: XOnlyPublicKey, network?: Network); /** * Compile an interaction bitcoin script * @param compiledData - The compiled data * @returns {Uint8Array} - The compiled script * @throws {Error} - If something goes wrong */ compile(compiledData: (Uint8Array | Stack)[]): Uint8Array; } //# sourceMappingURL=CustomGenerator.d.ts.map