bitcoin-computer / react-bitcoin-wallet

A basic Bitcoin Wallet built in React
5 stars 7 forks source link

Uncaught Error: We are currently only supporting LTC #5

Open blueskyocean123 opened 2 years ago

blueskyocean123 commented 2 years ago

Hi sir, Thanks for your good project and I am learning a lot from your react-bitcoin-wallet project. And I tried to apply this project for BTC, not LTC. But I got the error : "Uncaught Error: We are currently only supporting LTC". This is the sample code:

  const [computer] = useState(new Computer({
    seed: 'travel upgrade inside soda birth essence junk merit never twenty system opinion',
    chain: 'LTC'
  }))

Here, I replaced the seed with my Bitcoin testnet wallet seed, and the value of 'chain' is changed into 'BTC'. Above error means that this project is not for BTC wallet? I am a bitcoin newbie and want your great help. Why did I get this error? Thanks in advance.

ClemensLey commented 2 years ago

Hi @blueskyocean123, thanks for your interest! We currently only support LTC. We are working on support for BTC and have it almost working. Given your input we will enable experimental support for BTC in the next update.

Also, we moved to a monorepo recently and now this repo is deprecated. You can find it here: https://github.com/bitcoin-computer/monorepo/tree/main/packages/wallet https://github.com/bitcoin-computer/monorepo

Thank you sir!