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