UNPKG

chaingate

Version:

A complete TypeScript library for connecting to and making transactions on different blockchains

15 lines 693 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Bech32UtxoWallet = void 0; const LegacyUtxoWallet_1 = require("../LegacyUtxoWallet/LegacyUtxoWallet"); class Bech32UtxoWallet extends LegacyUtxoWallet_1.LegacyUtxoWallet { constructor(utils, transports, networkParams) { super(utils, transports, networkParams); } async getAddress(addressType = 'segwit-p2wpkh') { const publicKey = await (await this.transports.getPublicKeyProvider(this.utils.currencyInfo.id))(); return this.utils.publicKeyToAddress(publicKey, addressType); } } exports.Bech32UtxoWallet = Bech32UtxoWallet; //# sourceMappingURL=Bech32UtxoWallet.js.map