Open mariusk opened 4 years ago
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
@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:
has an invalid certificate, making it unavailable for most users.
Where did you see the link to bchjs.cash? I'm trying to change all those links to fullstack.cash.
From here: https://api.fullstack.cash/
@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.
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 callbitbox.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 thebitbox-sdk
call:So it really seems the
testnet
or the node hosting it attrest.bitcon.com
is broken. As if this stuff wasn't hard enough for newbs from the get go! :P