chaingate
Version:
A complete TypeScript library for connecting to and making transactions on different blockchains
26 lines • 969 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Bitcoin = void 0;
const Utils_1 = require("../../../../../Utils/Utils");
const Bech32Utxo_1 = require("../../abstract/Bech32Utxo/Bech32Utxo");
class Bitcoin extends Bech32Utxo_1.Bech32Utxo {
constructor(api, currencyProviders) {
super({
symbol: 'BTC',
id: 'bitcoin',
name: 'Bitcoin',
svgLogoUrl: (0, Utils_1.buildUrlWithApiKey)('https://api.chaingate.dev/bitcoin/logo'),
decimals: 8,
defaultDerivationPath: 'm/84\'/0\'/0\'/0/0',
minimalUnitSymbol: 'satoshi',
commonDerivationPaths: ['m/44\'/0\'/0\'/0/0', 'm/84\'/0\'/0\'/0/0', 'm/86\'/0\'/0\'/0/0']
}, api, currencyProviders, {
bech32: 'bc',
pubKeyHash: 0x00,
scriptHash: 0x05,
wif: 0x80
});
}
}
exports.Bitcoin = Bitcoin;
//# sourceMappingURL=Bitcoin.js.map