Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testnet is broken at trest.bitcoin.com/v2 #190

Open
mariusk opened this issue Aug 1, 2020 · 5 comments
Open

testnet is broken at trest.bitcoin.com/v2 #190

mariusk opened this issue Aug 1, 2020 · 5 comments

Comments

@mariusk
Copy link

mariusk commented Aug 1, 2020

I've managed to fund Copay wallet using a testnet faucet. Using the mnemonic master key, I managed to duplicate this using bitbox-sdk. This sdk generates the right address, but when I call bitbox.Address.details it returns a zero balance.

I've verified that the testnet address I generated and funded has money here:

https://www.blockchain.com/bch-testnet/address/bchtest:qz8tccq6zlc3umyk0y9xj90yw8cjwmm435s4e566wh

When I look up the same address using trest.bitcion.com/v2 directly however I get the same zero balance info as the bitbox-sdk call:

balance: {
  balance: 0,
  balanceSat: 0,
  totalReceived: 0,
  totalReceivedSat: 0,
  totalSent: 0,
  totalSentSat: 0,
  unconfirmedBalance: 0,
  unconfirmedBalanceSat: 0,
  unconfirmedTxApperances: 0,
  txApperances: 0,
  transactions: [],
  legacyAddress: 'mtXfur2QYkEmjjMbxNmmbS7cUpvcHDThjQ',
  cashAddress: 'bchtest:qz8tccq6zlc3umyk0y9xj90yw8cjwmm435s4e566wh',
  slpAddress: 'slptest:qz8tccq6zlc3umyk0y9xj90yw8cjwmm435tp70qdu2',
  currentPage: 0,
  pagesTotal: 0
}

So it really seems the testnet or the node hosting it at trest.bitcon.com is broken. As if this stuff wasn't hard enough for newbs from the get go! :P

@mariusk mariusk changed the title testnet is broken testnet is broken at trest.bitcoin.com/v2 Aug 1, 2020
@christroutner
Copy link

bch-js is forked from BITBOX, but maintained by FullStack.cash. You might give it a go and see if you get better results. We have a similar examples directory as the examples in BITBOX:
https://fullstack.cash/examples

You can also do a quick test using our Explorer UI:
https://fullstack.cash/explore-testnet

@mariusk
Copy link
Author

mariusk commented Aug 2, 2020

@christroutner Thanks, I will look into it. On that testnet explorer tool it finds the tx fine.

A heads up though; the link to get an API key at:

https://account.bchjs.cash/

has an invalid certificate, making it unavailable for most users.

@christroutner
Copy link

Where did you see the link to bchjs.cash? I'm trying to change all those links to fullstack.cash.

@mariusk
Copy link
Author

mariusk commented Aug 2, 2020

From here: https://api.fullstack.cash/

@mariusk
Copy link
Author

mariusk commented Aug 5, 2020

@christroutner Some more feedback, assuming you're interested:

  • Inconsistent/missing docs. The docs indicates this function is synchronous, but I can only get it working if I treat it like a Promise: bchjs.Mnemonic.toSeed

  • Docs/examples out of sync. bchjs.HDNode.derivePath does not seem to work at all. I've tried it the "bitbox" way (calling .derivePath directly on the wallet object itself, and the way described in the bch-js docs, i.e. bchjs.HDNode.derivePath(hdnode, path) (which just returns hdnode.derivePath is not a function error).

So still quite "challenging" to get started to put it mildly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants