UNPKG

chaingate

Version:

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

11 lines 521 B
import { LegacyUtxoWallet } from '../LegacyUtxoWallet/LegacyUtxoWallet'; export class Bech32UtxoWallet extends 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); } } //# sourceMappingURL=Bech32UtxoWallet.js.map