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 Bitcoin balance is zero after successful txs #16

Open
geoffwhittington opened this issue Oct 16, 2020 · 2 comments
Open

Testnet Bitcoin balance is zero after successful txs #16

geoffwhittington opened this issue Oct 16, 2020 · 2 comments

Comments

@geoffwhittington
Copy link

Do I have a misunderstanding of bitcoin testnet - can you help me clarify things?

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
@geoffwhittington
Copy link
Author

It appears testnet bitcoin is no longer supported at bitcoin.com ? https://www.reddit.com/r/btc/comments/fyydwa/alternatives_to_restbitcoincom/

@iamnotstatic
Copy link

Yeah, you have to specify a network on the constructor while creating a new instance of CryptoAccount

const account = new CryptoAccount(privateKey, {
    network: 'testnet',
});

This should work.

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

3 participants
@geoffwhittington @iamnotstatic and others