How to use the @shapeshiftoss/hdwallet-core.supportsBTC function in @shapeshiftoss/hdwallet-core

To help you get started, we’ve selected a few @shapeshiftoss/hdwallet-core 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 shapeshift / hdwallet / integration / src / bitcoin / testnet.ts View on Github external
beforeAll(() => {
      const { wallet: w } = get()
      if (supportsBTC(w))
        wallet = w
    })
github shapeshift / hdwallet / integration / src / bitcoin / litecoin.ts View on Github external
beforeAll(() => {
      const { wallet: w } = get()
      if (supportsBTC(w))
        wallet = w
    })
github shapeshift / hdwallet / integration / src / bitcoin / bitcoin.ts View on Github external
beforeAll(() => {

      const { wallet: w, info: i } = get()

      if (supportsBTC(w)) {
        wallet = w
        if (!infoBTC(i)) {
          throw new Error("wallet info does not _supportsBTCInfo?")
        }
        info = i
      }
    })
github shapeshift / hdwallet / examples / sandbox / index.ts View on Github external
$ltcTx.on('click', async (e) => {
  e.preventDefault()
  if (!wallet) { $ltcResults.val("No wallet?"); return}
  if (supportsBTC(wallet)) {
    const txid = '1de79c706f34c81bbefad49a9ff8d12b6ca86b77605a1998505e4f8792a5892d'
    const hex = '010000000196f5704ef948abb958f32ff216112d3283142baf50723833c378882c14a9adea010000006a47304402207c899ba5197a23b1f3cc4b3621abbc682b5142f3ae29af4b951952573f6c82a002203fd7f038aa8403d2c06fd32c237ab4e915939c25aafa7bcb06fb0ddd46afbfd3012103eddbce765b6d7ae1c91b779696e8b8f72ce444070f83beba2f823af76fd4dfebffffffff0290680a00000000001976a91491e975a0238fa1dfff703e50f062e2544a3e372088aca6791100000000001976a91415757f526dc67b52ae9f74918db532eebc39608688ac00000000'

    const inputs = [{
      addressNList: ltcBip44.addressNList,
      scriptType: BTCInputScriptType.SpendAddress,
      amount: String(2160258),
      vout: 0,
      txid,
      segwit: false,
      tx: ltcTxJson,
      hex
    }]

    const outputs = [{
      address: 'LLe4PciAJgMMJSAtQQ5nkC13t6SSMmERJ3',