GithubHelp home page GithubHelp logo

oipwg / oip-hdmw Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 19.0 4.35 MB

BIP44 Lite Wallet - Powerful Open Source Javascript library to easily manage any BIP44 Wallet with multi-coin support

Home Page: https://oipwg.github.io/oip-hdmw/

License: MIT License

JavaScript 100.00%

oip-hdmw's People

Contributors

bitspill avatar davidp94 avatar dependabot[bot] avatar howl0s avatar iameddieyayaya avatar orpheus avatar ostlerdev avatar truedev08 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oip-hdmw's Issues

Add Coins

The documentation says to add new coins based on names at CoinInfo.name. Is there an example of this?

I am testing and would like to add DigiByte to my wallet. I've added the network info but wallet.addCoin('digibyte') is not working. Any suggestions?

Beautiful work here. I hope I can use it.

Address Discovery Promise Error

After installing this library, I try to create a wallet as shown in the Readme. I get to the line var myWallet = new Wallet(); and then as soon as I type console there is a bunch of error messages such as:

An Address Discovery Promise failed during Account Discovery! Error: Error Updating Address State for:
Error: Unable to getAddress: 502 Bad Gateway | html>

<title>502 Bad Gateway</title> then it points to the Address.js file and goes on and on with similar errors but showing different addresses.

TX Send

Improve utxo fetching process to reduce redundant calls and delay in processing.

It appears first each address is checked for a balance, then all utxo for each address is fetched. Should skip query of utxo if balance is zero

Error Sending Transaction

I'm having trouble sending a transaction. I've been following the errors, but not sure where the problem is.

Here is the current error in the console:

Unable to send Transaction! Error: Unable to build Transaction 
Error: No Inputs or Outputs selected! Fail! at TransactionBuilder.sendTX (TransactionBuilder.js:642)

Here is my current transaction code:

sendPayment(){
    let address = new HDMW.Address(this.digibyte.seed, HDMW.Networks.digibyte, false);
    this.myWallet.sendPayment({
      from: address,
      to: { "DU22gCjXbV8R43PPJXb8ichDfEVQdHJsaa": 1 },
      coin: "digibyte",
    }).then(function(txid){
      this.txid = txid;
      console.log("Successfully sent Transaction! " + this.txid);
    }).catch(function(error){
      console.error("Unable to send Transaction!", error)
    })
 }

I've tried different versions of this with the same error:

sendPayment(){
    this.myWallet.sendPayment({
      to: { "DU22gCjXbV8R43PPJXb8ichDfEVQdHJsaa": 1 },
      coin: "digibyte",
    }).then(function(txid){
      this.txid = txid;
      console.log("Successfully sent Transaction! " + this.txid);
    }).catch(function(error){
      console.error("Unable to send Transaction!", error)
    })
  }

I guess I'm not sure how to pass the options details correctly.

Bitcoin Offline - localbitcoinschain.com is down (502)

When running a simple script

const HDMW = require('oip-hdmw')
const Wallet = HDMW.Wallet;

const myWallet = new Wallet('carbon panda replace drum guess heart inside useless random bulb hint industry');
const coins = myWallet.getCoins()

console.log(`My Wallets Coins: ${coins}`)

as found here https://github.com/bkawk/flo-oip

I get this error

error: Unable to discoverChain #0!
Error: Discovery error in _discoverChain #0
Error: Error: discovery failed!
Error: Unable to update Address state in _chainPromise
Error: Error Updating Address State for: 14mKFHzncvUrSKUJJjH9Sb7ub21KyKWfMz
Error: Unable to getAddress: 502 Bad Gateway | <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
<head>

Why is the script tying to call http://localbitcoinschain.com/ which is down? The website dependency is listed here https://github.com/oipwg/oip-hdmw/blob/master/src/networks/bitcoin.js#L24

TX signing improvement

When signing a tx only pass the relevant private keys rather than silently catch errors for all extraneous keys

can't check balance, view recent transactions, or send FLO on wallet.oip.io

I generated about 90 mnemonics, logged in, and then refreshed the page and eventually the FLO wallet stopped working. The Bitcoin wallet is already in this state, and now the FLO wallet is too.

Seems like for other people it's still working, but even in different browsers and with cookies cleared, I am getting this error
Screenshot from 2019-06-09 21-57-46

edit: @bitspill mentioned that the Litecoin explorer was rate limiting people aggressively. It's possible this is an explorer rate limit issue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.