@btc-vision/transaction
Version:
OPNet transaction library allows you to create and sign transactions for the OPNet network.
16 lines • 668 B
TypeScript
import { Network, Stack, XOnlyPublicKey } from '../../../node_modules/@btc-vision/bitcoin/browser/index.js';
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