chaingate
Version:
A complete TypeScript library for connecting to and making transactions on different blockchains
12 lines • 646 B
JavaScript
import { UtxoWallet } from '../UtxoWallet/UtxoWallet';
import { LegacyUtxoPreparedTransaction } from './LegacyUtxoPreparedTransaction';
export class LegacyUtxoWallet extends 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(this.utils, await this.getAddress(), toAddress, amount, this.networkParams, privateKeyProvider);
}
}
//# sourceMappingURL=LegacyUtxoWallet.js.map