How to use bip44-constants - 2 common examples

To help you get started, we’ve selected a few bip44-constants examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github oipwg / oip-hdmw / src / networks / bitcoin.js View on Github external
import { Insight } from 'insight-explorer'
import { networks } from 'bitcoinjs-lib'
import bip44constants from 'bip44-constants'
import config from './config'

var bitcoinFeePerKb = 100000

var n = networks.bitcoin

n.slip44 = bip44constants.BTC

module.exports = {
  name: 'bitcoin',
  displayName: 'Bitcoin',
  ticker: 'BTC',
  satPerCoin: 1e8,
  feePerKb: bitcoinFeePerKb,
  feePerByte: bitcoinFeePerKb / 1024,
  maxFeePerByte: 100,
  minFee: bitcoinFeePerKb,
  dust: 546,

  txVersion: 1,

  explorer: new Insight(config.defaultApiUrls.bitcoin),
github oipwg / oip-hdmw / src / networks / litecoin.js View on Github external
maxFeePerByte: 100,
  minFee: litecoinFeePerKb,
  dust: 54600,

  txVersion: 1,

  explorer: new Insight(config.defaultApiUrls.litecoin),

  getExtraBytes: function (options) { },

  network: {
    bip32: {
      public: n.bip32.public,
      private: n.bip32.private
    },
    slip44: bip44constants.LTC,
    messagePrefix: '\u0018Litecoin Signed Message:\n',
    pubKeyHash: n.pubKeyHash,
    scriptHash: n.scriptHash,
    wif: n.wif
  }
}

bip44-constants

Bitcoin BIP44 constants.

MIT
Latest version published 2 days ago

Package Health Score

72 / 100
Full package analysis

Popular bip44-constants functions