chaingate
Version:
A complete TypeScript library for connecting to and making transactions on different blockchains
16 lines • 847 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LegacyUtxoWallet = void 0;
const UtxoWallet_1 = require("../UtxoWallet/UtxoWallet");
const LegacyUtxoPreparedTransaction_1 = require("./LegacyUtxoPreparedTransaction");
class LegacyUtxoWallet extends UtxoWallet_1.UtxoWallet {
constructor(utils, transports, networkParams) {
super(utils, transports, networkParams);
}
async createTransfer(toAddress, amount) {
const privateKeyProvider = await this.transports.getPrivateKeyProvider(this.utils.currencyInfo.id);
return new LegacyUtxoPreparedTransaction_1.LegacyUtxoPreparedTransaction(this.utils, await this.getAddress(), toAddress, amount, this.networkParams, privateKeyProvider);
}
}
exports.LegacyUtxoWallet = LegacyUtxoWallet;
//# sourceMappingURL=LegacyUtxoWallet.js.map