UNPKG

@okxweb3/coin-bitcoin

Version:

@okxweb3/coin-bitcoin is a Bitcoin SDK for building Web3 wallets and applications. It supports BTC, BSV, DOGE, LTC, and TBTC, enabling private key management, transaction signing, address generation, and inscriptions like BRC-20, Runes, CAT, and Atomicals

12 lines 359 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.encode = void 0; const typeFields_1 = require("../../typeFields"); function encode(data) { return { key: Buffer.from([typeFields_1.GlobalTypes.UNSIGNED_TX]), value: data.toBuffer(), }; } exports.encode = encode; //# sourceMappingURL=unsignedTx.js.map